Class AppSyncGraphQlApiHandler


  • public class AppSyncGraphQlApiHandler
    extends Object
    AppSync API implementation.
    • Field Detail

      • appSync

        private com.amazonaws.services.appsync.AWSAppSync appSync
        AWS AppSync API client.
    • Constructor Detail

      • AppSyncGraphQlApiHandler

        public AppSyncGraphQlApiHandler​(com.amazonaws.services.appsync.AWSAppSync appSync)
        Initializes object with given AppSync client.
        Parameters:
        appSync - AWS AppSync client.
    • Method Detail

      • read

        public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<AppSyncGraphQlApiDataResponse> read​(AppSyncGraphQlApiDataRequest input,
                                                                                                               String physicalResourceId)
        Handles domain description.
        Parameters:
        input - Resource creation request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Data about created project.
      • delete

        public pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<AppSyncGraphQlApiDataResponse> delete​(AppSyncGraphQlApiDataRequest input,
                                                                                                                 String physicalResourceId)
        Handles project deletion.
        Parameters:
        input - Resource delete request.
        physicalResourceId - Physical ID of existing resource (if present).
        Returns:
        Empty response.
      • extractDomainFromUri

        private static String extractDomainFromUri​(String uri)
        Extracts domain from API URL.
        Parameters:
        uri - Full API URI.
        Returns:
        Plain domain name.