Class AppSyncGraphQlApiHandler
- java.lang.Object
-
- pl.wrzasq.lambda.cform.appsync.graphqlapi.data.service.AppSyncGraphQlApiHandler
-
public class AppSyncGraphQlApiHandler extends Object
AppSync API implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private com.amazonaws.services.appsync.AWSAppSync
appSync
AWS AppSync API client.private static String
APPSYNC_API_URI_PREFIX
Schema URI prefix.private static String
APPSYNC_API_URI_SUFFIX
Path URI suffix.
-
Constructor Summary
Constructors Constructor Description AppSyncGraphQlApiHandler(com.amazonaws.services.appsync.AWSAppSync appSync)
Initializes object with given AppSync client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<AppSyncGraphQlApiDataResponse>
delete(AppSyncGraphQlApiDataRequest input, String physicalResourceId)
Handles project deletion.private static String
extractDomainFromUri(String uri)
Extracts domain from API URL.pl.wrzasq.commons.aws.cloudformation.CustomResourceResponse<AppSyncGraphQlApiDataResponse>
read(AppSyncGraphQlApiDataRequest input, String physicalResourceId)
Handles domain description.
-
-
-
Field Detail
-
APPSYNC_API_URI_PREFIX
private static final String APPSYNC_API_URI_PREFIX
Schema URI prefix.- See Also:
- Constant Field Values
-
APPSYNC_API_URI_SUFFIX
private static final String APPSYNC_API_URI_SUFFIX
Path URI suffix.- See Also:
- Constant Field Values
-
appSync
private com.amazonaws.services.appsync.AWSAppSync appSync
AWS AppSync API 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.
-
-