AWS AppSync 2017-07-25
- Client: Aws\AppSync\AppSyncClient
- Service ID: appsync
- Version: 2017-07-25
This page describes the parameters and results for the operations of the AWS AppSync (2017-07-25), and shows how to use the Aws\AppSync\AppSyncClient object to call the described operations. This documentation is specific to the 2017-07-25 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- AssociateApi ( array $params = [] )
Maps an endpoint to your custom domain.
- CreateApiCache ( array $params = [] )
Creates a cache for the GraphQL API.
- CreateApiKey ( array $params = [] )
Creates a unique key that you can distribute to clients who invoke your API.
- CreateDataSource ( array $params = [] )
Creates a DataSource object.
- CreateDomainName ( array $params = [] )
Creates a custom DomainName object.
- CreateFunction ( array $params = [] )
Creates a Function object.
- CreateGraphqlApi ( array $params = [] )
Creates a GraphqlApi object.
- CreateResolver ( array $params = [] )
Creates a Resolver object.
- CreateType ( array $params = [] )
Creates a Type object.
- DeleteApiCache ( array $params = [] )
Deletes an ApiCache object.
- DeleteApiKey ( array $params = [] )
Deletes an API key.
- DeleteDataSource ( array $params = [] )
Deletes a DataSource object.
- DeleteDomainName ( array $params = [] )
Deletes a custom DomainName object.
- DeleteFunction ( array $params = [] )
Deletes a Function.
- DeleteGraphqlApi ( array $params = [] )
Deletes a GraphqlApi object.
- DeleteResolver ( array $params = [] )
Deletes a Resolver object.
- DeleteType ( array $params = [] )
Deletes a Type object.
- DisassociateApi ( array $params = [] )
Removes an ApiAssociation object from a custom domain.
- FlushApiCache ( array $params = [] )
Flushes an ApiCache object.
- GetApiAssociation ( array $params = [] )
Retrieves an ApiAssociation object.
- GetApiCache ( array $params = [] )
Retrieves an ApiCache object.
- GetDataSource ( array $params = [] )
Retrieves a DataSource object.
- GetDomainName ( array $params = [] )
Retrieves a custom DomainName object.
- GetFunction ( array $params = [] )
Get a Function.
- GetGraphqlApi ( array $params = [] )
Retrieves a GraphqlApi object.
- GetIntrospectionSchema ( array $params = [] )
Retrieves the introspection schema for a GraphQL API.
- GetResolver ( array $params = [] )
Retrieves a Resolver object.
- GetSchemaCreationStatus ( array $params = [] )
Retrieves the current status of a schema creation operation.
- GetType ( array $params = [] )
Retrieves a Type object.
- ListApiKeys ( array $params = [] )
Lists the API keys for a given API.
- ListDataSources ( array $params = [] )
Lists the data sources for a given API.
- ListDomainNames ( array $params = [] )
Lists multiple custom domain names.
- ListFunctions ( array $params = [] )
List multiple functions.
- ListGraphqlApis ( array $params = [] )
Lists your GraphQL APIs.
- ListResolvers ( array $params = [] )
Lists the resolvers for a given API and type.
- ListResolversByFunction ( array $params = [] )
List the resolvers that are associated with a specific function.
- ListTagsForResource ( array $params = [] )
Lists the tags for a resource.
- ListTypes ( array $params = [] )
Lists the types for a given API.
- StartSchemaCreation ( array $params = [] )
Adds a new schema to your GraphQL API.
- TagResource ( array $params = [] )
Tags a resource with user-supplied tags.
- UntagResource ( array $params = [] )
Untags a resource.
- UpdateApiCache ( array $params = [] )
Updates the cache for the GraphQL API.
- UpdateApiKey ( array $params = [] )
Updates an API key.
- UpdateDataSource ( array $params = [] )
Updates a DataSource object.
- UpdateDomainName ( array $params = [] )
Updates a custom DomainName object.
- UpdateFunction ( array $params = [] )
Updates a Function object.
- UpdateGraphqlApi ( array $params = [] )
Updates a GraphqlApi object.
- UpdateResolver ( array $params = [] )
Updates a Resolver object.
- UpdateType ( array $params = [] )
Updates a Type object.
Operations
AssociateApi
$result = $client->associateApi
([/* ... */]); $promise = $client->associateApiAsync
([/* ... */]);
Maps an endpoint to your custom domain.
Parameter Syntax
$result = $client->associateApi([ 'apiId' => '<string>', // REQUIRED 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'apiAssociation' => [ 'apiId' => '<string>', 'associationStatus' => 'PROCESSING|FAILED|SUCCESS', 'deploymentDetail' => '<string>', 'domainName' => '<string>', ], ]
Result Details
Members
- apiAssociation
-
- Type: ApiAssociation structure
The
ApiAssociation
object.
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
An internal AppSync error occurred. Try your request again.
-
The resource specified in the request was not found. Check the resource, and then try again.
CreateApiCache
$result = $client->createApiCache
([/* ... */]); $promise = $client->createApiCacheAsync
([/* ... */]);
Creates a cache for the GraphQL API.
Parameter Syntax
$result = $client->createApiCache([ 'apiCachingBehavior' => 'FULL_REQUEST_CACHING|PER_RESOLVER_CACHING', // REQUIRED 'apiId' => '<string>', // REQUIRED 'atRestEncryptionEnabled' => true || false, 'transitEncryptionEnabled' => true || false, 'ttl' => <integer>, // REQUIRED 'type' => 'T2_SMALL|T2_MEDIUM|R4_LARGE|R4_XLARGE|R4_2XLARGE|R4_4XLARGE|R4_8XLARGE|SMALL|MEDIUM|LARGE|XLARGE|LARGE_2X|LARGE_4X|LARGE_8X|LARGE_12X', // REQUIRED ]);
Parameter Details
Members
- apiCachingBehavior
-
- Required: Yes
- Type: string
Caching behavior.
-
FULL_REQUEST_CACHING: All requests are fully cached.
-
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
- apiId
-
- Required: Yes
- Type: string
The GraphQL API ID.
- atRestEncryptionEnabled
-
- Type: boolean
At-rest encryption flag for cache. You cannot update this setting after creation.
- transitEncryptionEnabled
-
- Type: boolean
Transit encryption flag when connecting to cache. You cannot update this setting after creation.
- ttl
-
- Required: Yes
- Type: long (int|float)
TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
- type
-
- Required: Yes
- Type: string
The cache instance type. Valid values are
-
SMALL
-
MEDIUM
-
LARGE
-
XLARGE
-
LARGE_2X
-
LARGE_4X
-
LARGE_8X
(not available in all regions) -
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
-
T2_SMALL: A t2.small instance type.
-
T2_MEDIUM: A t2.medium instance type.
-
R4_LARGE: A r4.large instance type.
-
R4_XLARGE: A r4.xlarge instance type.
-
R4_2XLARGE: A r4.2xlarge instance type.
-
R4_4XLARGE: A r4.4xlarge instance type.
-
R4_8XLARGE: A r4.8xlarge instance type.
Result Syntax
[ 'apiCache' => [ 'apiCachingBehavior' => 'FULL_REQUEST_CACHING|PER_RESOLVER_CACHING', 'atRestEncryptionEnabled' => true || false, 'status' => 'AVAILABLE|CREATING|DELETING|MODIFYING|FAILED', 'transitEncryptionEnabled' => true || false, 'ttl' => <integer>, 'type' => 'T2_SMALL|T2_MEDIUM|R4_LARGE|R4_XLARGE|R4_2XLARGE|R4_4XLARGE|R4_8XLARGE|SMALL|MEDIUM|LARGE|XLARGE|LARGE_2X|LARGE_4X|LARGE_8X|LARGE_12X', ], ]
Result Details
Members
- apiCache
-
- Type: ApiCache structure
The
ApiCache
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
CreateApiKey
$result = $client->createApiKey
([/* ... */]); $promise = $client->createApiKeyAsync
([/* ... */]);
Creates a unique key that you can distribute to clients who invoke your API.
Parameter Syntax
$result = $client->createApiKey([ 'apiId' => '<string>', // REQUIRED 'description' => '<string>', 'expires' => <integer>, ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The ID for your GraphQL API.
- description
-
- Type: string
A description of the purpose of the API key.
- expires
-
- Type: long (int|float)
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
Result Syntax
[ 'apiKey' => [ 'deletes' => <integer>, 'description' => '<string>', 'expires' => <integer>, 'id' => '<string>', ], ]
Result Details
Members
- apiKey
-
- Type: ApiKey structure
The API key.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
The request exceeded a limit. Try your request again.
-
You aren't authorized to perform this operation.
-
The request exceeded a limit. Try your request again.
-
An internal AppSync error occurred. Try your request again.
-
The API key exceeded a limit. Try your request again.
-
ApiKeyValidityOutOfBoundsException:
The API key expiration must be set to a value between 1 and 365 days from creation (for
CreateApiKey
) or from update (forUpdateApiKey
).
CreateDataSource
$result = $client->createDataSource
([/* ... */]); $promise = $client->createDataSourceAsync
([/* ... */]);
Creates a DataSource
object.
Parameter Syntax
$result = $client->createDataSource([ 'apiId' => '<string>', // REQUIRED 'description' => '<string>', 'dynamodbConfig' => [ 'awsRegion' => '<string>', // REQUIRED 'deltaSyncConfig' => [ 'baseTableTTL' => <integer>, 'deltaSyncTableName' => '<string>', 'deltaSyncTableTTL' => <integer>, ], 'tableName' => '<string>', // REQUIRED 'useCallerCredentials' => true || false, 'versioned' => true || false, ], 'elasticsearchConfig' => [ 'awsRegion' => '<string>', // REQUIRED 'endpoint' => '<string>', // REQUIRED ], 'httpConfig' => [ 'authorizationConfig' => [ 'authorizationType' => 'AWS_IAM', // REQUIRED 'awsIamConfig' => [ 'signingRegion' => '<string>', 'signingServiceName' => '<string>', ], ], 'endpoint' => '<string>', ], 'lambdaConfig' => [ 'lambdaFunctionArn' => '<string>', // REQUIRED ], 'name' => '<string>', // REQUIRED 'openSearchServiceConfig' => [ 'awsRegion' => '<string>', // REQUIRED 'endpoint' => '<string>', // REQUIRED ], 'relationalDatabaseConfig' => [ 'rdsHttpEndpointConfig' => [ 'awsRegion' => '<string>', 'awsSecretStoreArn' => '<string>', 'databaseName' => '<string>', 'dbClusterIdentifier' => '<string>', 'schema' => '<string>', ], 'relationalDatabaseSourceType' => 'RDS_HTTP_ENDPOINT', ], 'serviceRoleArn' => '<string>', 'type' => 'AWS_LAMBDA|AMAZON_DYNAMODB|AMAZON_ELASTICSEARCH|NONE|HTTP|RELATIONAL_DATABASE|AMAZON_OPENSEARCH_SERVICE', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID for the GraphQL API for the
DataSource
. - description
-
- Type: string
A description of the
DataSource
. - dynamodbConfig
-
- Type: DynamodbDataSourceConfig structure
Amazon DynamoDB settings.
- elasticsearchConfig
-
- Type: ElasticsearchDataSourceConfig structure
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
- httpConfig
-
- Type: HttpDataSourceConfig structure
HTTP endpoint settings.
- lambdaConfig
-
- Type: LambdaDataSourceConfig structure
Lambda settings.
- name
-
- Required: Yes
- Type: string
A user-supplied name for the
DataSource
. - openSearchServiceConfig
-
- Type: OpenSearchServiceDataSourceConfig structure
Amazon OpenSearch Service settings.
- relationalDatabaseConfig
-
- Type: RelationalDatabaseDataSourceConfig structure
Relational database settings.
- serviceRoleArn
-
- Type: string
The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
- type
-
- Required: Yes
- Type: string
The type of the
DataSource
.
Result Syntax
[ 'dataSource' => [ 'dataSourceArn' => '<string>', 'description' => '<string>', 'dynamodbConfig' => [ 'awsRegion' => '<string>', 'deltaSyncConfig' => [ 'baseTableTTL' => <integer>, 'deltaSyncTableName' => '<string>', 'deltaSyncTableTTL' => <integer>, ], 'tableName' => '<string>', 'useCallerCredentials' => true || false, 'versioned' => true || false, ], 'elasticsearchConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'httpConfig' => [ 'authorizationConfig' => [ 'authorizationType' => 'AWS_IAM', 'awsIamConfig' => [ 'signingRegion' => '<string>', 'signingServiceName' => '<string>', ], ], 'endpoint' => '<string>', ], 'lambdaConfig' => [ 'lambdaFunctionArn' => '<string>', ], 'name' => '<string>', 'openSearchServiceConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'relationalDatabaseConfig' => [ 'rdsHttpEndpointConfig' => [ 'awsRegion' => '<string>', 'awsSecretStoreArn' => '<string>', 'databaseName' => '<string>', 'dbClusterIdentifier' => '<string>', 'schema' => '<string>', ], 'relationalDatabaseSourceType' => 'RDS_HTTP_ENDPOINT', ], 'serviceRoleArn' => '<string>', 'type' => 'AWS_LAMBDA|AMAZON_DYNAMODB|AMAZON_ELASTICSEARCH|NONE|HTTP|RELATIONAL_DATABASE|AMAZON_OPENSEARCH_SERVICE', ], ]
Result Details
Members
- dataSource
-
- Type: DataSource structure
The
DataSource
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
CreateDomainName
$result = $client->createDomainName
([/* ... */]); $promise = $client->createDomainNameAsync
([/* ... */]);
Creates a custom DomainName
object.
Parameter Syntax
$result = $client->createDomainName([ 'certificateArn' => '<string>', // REQUIRED 'description' => '<string>', 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- certificateArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
- description
-
- Type: string
A description of the
DomainName
. - domainName
-
- Required: Yes
- Type: string
The domain name.
Result Syntax
[ 'domainNameConfig' => [ 'appsyncDomainName' => '<string>', 'certificateArn' => '<string>', 'description' => '<string>', 'domainName' => '<string>', 'hostedZoneId' => '<string>', ], ]
Result Details
Members
- domainNameConfig
-
- Type: DomainNameConfig structure
The configuration for the
DomainName
.
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
An internal AppSync error occurred. Try your request again.
CreateFunction
$result = $client->createFunction
([/* ... */]); $promise = $client->createFunctionAsync
([/* ... */]);
Creates a Function
object.
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Parameter Syntax
$result = $client->createFunction([ 'apiId' => '<string>', // REQUIRED 'dataSourceName' => '<string>', // REQUIRED 'description' => '<string>', 'functionVersion' => '<string>', // REQUIRED 'maxBatchSize' => <integer>, 'name' => '<string>', // REQUIRED 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The GraphQL API ID.
- dataSourceName
-
- Required: Yes
- Type: string
The
Function
DataSource
name. - description
-
- Type: string
The
Function
description. - functionVersion
-
- Required: Yes
- Type: string
The
version
of the request mapping template. Currently, the supported value is 2018-05-29. - maxBatchSize
-
- Type: int
The maximum batching size for a resolver.
- name
-
- Required: Yes
- Type: string
The
Function
name. The function name does not have to be unique. - requestMappingTemplate
-
- Type: string
The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template. - responseMappingTemplate
-
- Type: string
The
Function
response mapping template. - syncConfig
-
- Type: SyncConfig structure
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
Result Syntax
[ 'functionConfiguration' => [ 'dataSourceName' => '<string>', 'description' => '<string>', 'functionArn' => '<string>', 'functionId' => '<string>', 'functionVersion' => '<string>', 'maxBatchSize' => <integer>, 'name' => '<string>', 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], ], ]
Result Details
Members
- functionConfiguration
-
- Type: FunctionConfiguration structure
The
Function
object.
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
CreateGraphqlApi
$result = $client->createGraphqlApi
([/* ... */]); $promise = $client->createGraphqlApiAsync
([/* ... */]);
Creates a GraphqlApi
object.
Parameter Syntax
$result = $client->createGraphqlApi([ 'additionalAuthenticationProviders' => [ [ 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', // REQUIRED 'identityValidationExpression' => '<string>', ], 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', // REQUIRED ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', // REQUIRED 'userPoolId' => '<string>', // REQUIRED ], ], // ... ], 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', // REQUIRED 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', // REQUIRED 'identityValidationExpression' => '<string>', ], 'logConfig' => [ 'cloudWatchLogsRoleArn' => '<string>', // REQUIRED 'excludeVerboseContent' => true || false, 'fieldLogLevel' => 'NONE|ERROR|ALL', // REQUIRED ], 'name' => '<string>', // REQUIRED 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', // REQUIRED ], 'tags' => ['<string>', ...], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', // REQUIRED 'defaultAction' => 'ALLOW|DENY', // REQUIRED 'userPoolId' => '<string>', // REQUIRED ], 'xrayEnabled' => true || false, ]);
Parameter Details
Members
- additionalAuthenticationProviders
-
- Type: Array of AdditionalAuthenticationProvider structures
A list of additional authentication providers for the
GraphqlApi
API. - authenticationType
-
- Required: Yes
- Type: string
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
- lambdaAuthorizerConfig
-
- Type: LambdaAuthorizerConfig structure
Configuration for Lambda function authorization.
- logConfig
-
- Type: LogConfig structure
The Amazon CloudWatch Logs configuration.
- name
-
- Required: Yes
- Type: string
A user-supplied name for the
GraphqlApi
. - openIDConnectConfig
-
- Type: OpenIDConnectConfig structure
The OIDC configuration.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
A
TagMap
object. - userPoolConfig
-
- Type: UserPoolConfig structure
The Amazon Cognito user pool configuration.
- xrayEnabled
-
- Type: boolean
A flag indicating whether to use X-Ray tracing for the
GraphqlApi
.
Result Syntax
[ 'graphqlApi' => [ 'additionalAuthenticationProviders' => [ [ 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'userPoolId' => '<string>', ], ], // ... ], 'apiId' => '<string>', 'arn' => '<string>', 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'logConfig' => [ 'cloudWatchLogsRoleArn' => '<string>', 'excludeVerboseContent' => true || false, 'fieldLogLevel' => 'NONE|ERROR|ALL', ], 'name' => '<string>', 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'tags' => ['<string>', ...], 'uris' => ['<string>', ...], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'defaultAction' => 'ALLOW|DENY', 'userPoolId' => '<string>', ], 'wafWebAclArn' => '<string>', 'xrayEnabled' => true || false, ], ]
Result Details
Members
- graphqlApi
-
- Type: GraphqlApi structure
The
GraphqlApi
.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The request exceeded a limit. Try your request again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
The GraphQL API exceeded a limit. Try your request again.
CreateResolver
$result = $client->createResolver
([/* ... */]); $promise = $client->createResolverAsync
([/* ... */]);
Creates a Resolver
object.
A resolver converts incoming requests into a format that a data source can understand, and converts the data source's responses into GraphQL.
Parameter Syntax
$result = $client->createResolver([ 'apiId' => '<string>', // REQUIRED 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', // REQUIRED 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The ID for the GraphQL API for which the resolver is being created.
- cachingConfig
-
- Type: CachingConfig structure
The caching configuration for the resolver.
- dataSourceName
-
- Type: string
The name of the data source for which the resolver is being created.
- fieldName
-
- Required: Yes
- Type: string
The name of the field to attach the resolver to.
- kind
-
- Type: string
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
- maxBatchSize
-
- Type: int
The maximum batching size for a resolver.
- pipelineConfig
-
- Type: PipelineConfig structure
The
PipelineConfig
. - requestMappingTemplate
-
- Type: string
The mapping template to use for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
- responseMappingTemplate
-
- Type: string
The mapping template to use for responses from the data source.
- syncConfig
-
- Type: SyncConfig structure
The
SyncConfig
for a resolver attached to a versioned data source. - typeName
-
- Required: Yes
- Type: string
The name of the
Type
.
Result Syntax
[ 'resolver' => [ 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'resolverArn' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', ], ]
Result Details
Members
- resolver
-
- Type: Resolver structure
The
Resolver
object.
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
CreateType
$result = $client->createType
([/* ... */]); $promise = $client->createTypeAsync
([/* ... */]);
Creates a Type
object.
Parameter Syntax
$result = $client->createType([ 'apiId' => '<string>', // REQUIRED 'definition' => '<string>', // REQUIRED 'format' => 'SDL|JSON', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID.
- definition
-
- Required: Yes
- Type: string
The type definition, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
- format
-
- Required: Yes
- Type: string
The type format: SDL or JSON.
Result Syntax
[ 'type' => [ 'arn' => '<string>', 'definition' => '<string>', 'description' => '<string>', 'format' => 'SDL|JSON', 'name' => '<string>', ], ]
Result Details
Members
- type
-
- Type: Type structure
The
Type
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DeleteApiCache
$result = $client->deleteApiCache
([/* ... */]); $promise = $client->deleteApiCacheAsync
([/* ... */]);
Deletes an ApiCache
object.
Parameter Syntax
$result = $client->deleteApiCache([ 'apiId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DeleteApiKey
$result = $client->deleteApiKey
([/* ... */]); $promise = $client->deleteApiKeyAsync
([/* ... */]);
Deletes an API key.
Parameter Syntax
$result = $client->deleteApiKey([ 'apiId' => '<string>', // REQUIRED 'id' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DeleteDataSource
$result = $client->deleteDataSource
([/* ... */]); $promise = $client->deleteDataSourceAsync
([/* ... */]);
Deletes a DataSource
object.
Parameter Syntax
$result = $client->deleteDataSource([ 'apiId' => '<string>', // REQUIRED 'name' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DeleteDomainName
$result = $client->deleteDomainName
([/* ... */]); $promise = $client->deleteDomainNameAsync
([/* ... */]);
Deletes a custom DomainName
object.
Parameter Syntax
$result = $client->deleteDomainName([ 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
An internal AppSync error occurred. Try your request again.
-
The resource specified in the request was not found. Check the resource, and then try again.
DeleteFunction
$result = $client->deleteFunction
([/* ... */]); $promise = $client->deleteFunctionAsync
([/* ... */]);
Deletes a Function
.
Parameter Syntax
$result = $client->deleteFunction([ 'apiId' => '<string>', // REQUIRED 'functionId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DeleteGraphqlApi
$result = $client->deleteGraphqlApi
([/* ... */]); $promise = $client->deleteGraphqlApiAsync
([/* ... */]);
Deletes a GraphqlApi
object.
Parameter Syntax
$result = $client->deleteGraphqlApi([ 'apiId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
You don't have access to perform this operation on this resource.
DeleteResolver
$result = $client->deleteResolver
([/* ... */]); $promise = $client->deleteResolverAsync
([/* ... */]);
Deletes a Resolver
object.
Parameter Syntax
$result = $client->deleteResolver([ 'apiId' => '<string>', // REQUIRED 'fieldName' => '<string>', // REQUIRED 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DeleteType
$result = $client->deleteType
([/* ... */]); $promise = $client->deleteTypeAsync
([/* ... */]);
Deletes a Type
object.
Parameter Syntax
$result = $client->deleteType([ 'apiId' => '<string>', // REQUIRED 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
DisassociateApi
$result = $client->disassociateApi
([/* ... */]); $promise = $client->disassociateApiAsync
([/* ... */]);
Removes an ApiAssociation
object from a custom domain.
Parameter Syntax
$result = $client->disassociateApi([ 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
An internal AppSync error occurred. Try your request again.
-
The resource specified in the request was not found. Check the resource, and then try again.
FlushApiCache
$result = $client->flushApiCache
([/* ... */]); $promise = $client->flushApiCacheAsync
([/* ... */]);
Flushes an ApiCache
object.
Parameter Syntax
$result = $client->flushApiCache([ 'apiId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
GetApiAssociation
$result = $client->getApiAssociation
([/* ... */]); $promise = $client->getApiAssociationAsync
([/* ... */]);
Retrieves an ApiAssociation
object.
Parameter Syntax
$result = $client->getApiAssociation([ 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'apiAssociation' => [ 'apiId' => '<string>', 'associationStatus' => 'PROCESSING|FAILED|SUCCESS', 'deploymentDetail' => '<string>', 'domainName' => '<string>', ], ]
Result Details
Members
- apiAssociation
-
- Type: ApiAssociation structure
The
ApiAssociation
object.
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
An internal AppSync error occurred. Try your request again.
-
The resource specified in the request was not found. Check the resource, and then try again.
GetApiCache
$result = $client->getApiCache
([/* ... */]); $promise = $client->getApiCacheAsync
([/* ... */]);
Retrieves an ApiCache
object.
Parameter Syntax
$result = $client->getApiCache([ 'apiId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'apiCache' => [ 'apiCachingBehavior' => 'FULL_REQUEST_CACHING|PER_RESOLVER_CACHING', 'atRestEncryptionEnabled' => true || false, 'status' => 'AVAILABLE|CREATING|DELETING|MODIFYING|FAILED', 'transitEncryptionEnabled' => true || false, 'ttl' => <integer>, 'type' => 'T2_SMALL|T2_MEDIUM|R4_LARGE|R4_XLARGE|R4_2XLARGE|R4_4XLARGE|R4_8XLARGE|SMALL|MEDIUM|LARGE|XLARGE|LARGE_2X|LARGE_4X|LARGE_8X|LARGE_12X', ], ]
Result Details
Members
- apiCache
-
- Type: ApiCache structure
The
ApiCache
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
GetDataSource
$result = $client->getDataSource
([/* ... */]); $promise = $client->getDataSourceAsync
([/* ... */]);
Retrieves a DataSource
object.
Parameter Syntax
$result = $client->getDataSource([ 'apiId' => '<string>', // REQUIRED 'name' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'dataSource' => [ 'dataSourceArn' => '<string>', 'description' => '<string>', 'dynamodbConfig' => [ 'awsRegion' => '<string>', 'deltaSyncConfig' => [ 'baseTableTTL' => <integer>, 'deltaSyncTableName' => '<string>', 'deltaSyncTableTTL' => <integer>, ], 'tableName' => '<string>', 'useCallerCredentials' => true || false, 'versioned' => true || false, ], 'elasticsearchConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'httpConfig' => [ 'authorizationConfig' => [ 'authorizationType' => 'AWS_IAM', 'awsIamConfig' => [ 'signingRegion' => '<string>', 'signingServiceName' => '<string>', ], ], 'endpoint' => '<string>', ], 'lambdaConfig' => [ 'lambdaFunctionArn' => '<string>', ], 'name' => '<string>', 'openSearchServiceConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'relationalDatabaseConfig' => [ 'rdsHttpEndpointConfig' => [ 'awsRegion' => '<string>', 'awsSecretStoreArn' => '<string>', 'databaseName' => '<string>', 'dbClusterIdentifier' => '<string>', 'schema' => '<string>', ], 'relationalDatabaseSourceType' => 'RDS_HTTP_ENDPOINT', ], 'serviceRoleArn' => '<string>', 'type' => 'AWS_LAMBDA|AMAZON_DYNAMODB|AMAZON_ELASTICSEARCH|NONE|HTTP|RELATIONAL_DATABASE|AMAZON_OPENSEARCH_SERVICE', ], ]
Result Details
Members
- dataSource
-
- Type: DataSource structure
The
DataSource
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
GetDomainName
$result = $client->getDomainName
([/* ... */]); $promise = $client->getDomainNameAsync
([/* ... */]);
Retrieves a custom DomainName
object.
Parameter Syntax
$result = $client->getDomainName([ 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'domainNameConfig' => [ 'appsyncDomainName' => '<string>', 'certificateArn' => '<string>', 'description' => '<string>', 'domainName' => '<string>', 'hostedZoneId' => '<string>', ], ]
Result Details
Members
- domainNameConfig
-
- Type: DomainNameConfig structure
The configuration for the
DomainName
.
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
An internal AppSync error occurred. Try your request again.
-
The resource specified in the request was not found. Check the resource, and then try again.
GetFunction
$result = $client->getFunction
([/* ... */]); $promise = $client->getFunctionAsync
([/* ... */]);
Get a Function
.
Parameter Syntax
$result = $client->getFunction([ 'apiId' => '<string>', // REQUIRED 'functionId' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'functionConfiguration' => [ 'dataSourceName' => '<string>', 'description' => '<string>', 'functionArn' => '<string>', 'functionId' => '<string>', 'functionVersion' => '<string>', 'maxBatchSize' => <integer>, 'name' => '<string>', 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], ], ]
Result Details
Members
- functionConfiguration
-
- Type: FunctionConfiguration structure
The
Function
object.
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
GetGraphqlApi
$result = $client->getGraphqlApi
([/* ... */]); $promise = $client->getGraphqlApiAsync
([/* ... */]);
Retrieves a GraphqlApi
object.
Parameter Syntax
$result = $client->getGraphqlApi([ 'apiId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'graphqlApi' => [ 'additionalAuthenticationProviders' => [ [ 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'userPoolId' => '<string>', ], ], // ... ], 'apiId' => '<string>', 'arn' => '<string>', 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'logConfig' => [ 'cloudWatchLogsRoleArn' => '<string>', 'excludeVerboseContent' => true || false, 'fieldLogLevel' => 'NONE|ERROR|ALL', ], 'name' => '<string>', 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'tags' => ['<string>', ...], 'uris' => ['<string>', ...], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'defaultAction' => 'ALLOW|DENY', 'userPoolId' => '<string>', ], 'wafWebAclArn' => '<string>', 'xrayEnabled' => true || false, ], ]
Result Details
Members
- graphqlApi
-
- Type: GraphqlApi structure
The
GraphqlApi
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
You don't have access to perform this operation on this resource.
GetIntrospectionSchema
$result = $client->getIntrospectionSchema
([/* ... */]); $promise = $client->getIntrospectionSchemaAsync
([/* ... */]);
Retrieves the introspection schema for a GraphQL API.
Parameter Syntax
$result = $client->getIntrospectionSchema([ 'apiId' => '<string>', // REQUIRED 'format' => 'SDL|JSON', // REQUIRED 'includeDirectives' => true || false, ]);
Parameter Details
Members
Result Syntax
[ 'schema' => <string || resource || Psr\Http\Message\StreamInterface>, ]
Result Details
Members
- schema
-
- Type: blob (string|resource|Psr\Http\Message\StreamInterface)
The schema, in GraphQL Schema Definition Language (SDL) format.
For more information, see the GraphQL SDL documentation.
Errors
-
The GraphQL schema is not valid.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
GetResolver
$result = $client->getResolver
([/* ... */]); $promise = $client->getResolverAsync
([/* ... */]);
Retrieves a Resolver
object.
Parameter Syntax
$result = $client->getResolver([ 'apiId' => '<string>', // REQUIRED 'fieldName' => '<string>', // REQUIRED 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'resolver' => [ 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'resolverArn' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', ], ]
Result Details
Members
- resolver
-
- Type: Resolver structure
The
Resolver
object.
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
GetSchemaCreationStatus
$result = $client->getSchemaCreationStatus
([/* ... */]); $promise = $client->getSchemaCreationStatusAsync
([/* ... */]);
Retrieves the current status of a schema creation operation.
Parameter Syntax
$result = $client->getSchemaCreationStatus([ 'apiId' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'details' => '<string>', 'status' => 'PROCESSING|ACTIVE|DELETING|FAILED|SUCCESS|NOT_APPLICABLE', ]
Result Details
Members
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
GetType
$result = $client->getType
([/* ... */]); $promise = $client->getTypeAsync
([/* ... */]);
Retrieves a Type
object.
Parameter Syntax
$result = $client->getType([ 'apiId' => '<string>', // REQUIRED 'format' => 'SDL|JSON', // REQUIRED 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'type' => [ 'arn' => '<string>', 'definition' => '<string>', 'description' => '<string>', 'format' => 'SDL|JSON', 'name' => '<string>', ], ]
Result Details
Members
- type
-
- Type: Type structure
The
Type
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListApiKeys
$result = $client->listApiKeys
([/* ... */]); $promise = $client->listApiKeysAsync
([/* ... */]);
Lists the API keys for a given API.
API keys are deleted automatically 60 days after they expire. However, they may still be included in the response until they have actually been deleted. You can safely call DeleteApiKey
to manually delete a key before it's automatically deleted.
Parameter Syntax
$result = $client->listApiKeys([ 'apiId' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'apiKeys' => [ [ 'deletes' => <integer>, 'description' => '<string>', 'expires' => <integer>, 'id' => '<string>', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- apiKeys
-
- Type: Array of ApiKey structures
The
ApiKey
objects. - nextToken
-
- Type: string
An identifier to pass in the next request to this operation to return the next set of items in the list.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListDataSources
$result = $client->listDataSources
([/* ... */]); $promise = $client->listDataSourcesAsync
([/* ... */]);
Lists the data sources for a given API.
Parameter Syntax
$result = $client->listDataSources([ 'apiId' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'dataSources' => [ [ 'dataSourceArn' => '<string>', 'description' => '<string>', 'dynamodbConfig' => [ 'awsRegion' => '<string>', 'deltaSyncConfig' => [ 'baseTableTTL' => <integer>, 'deltaSyncTableName' => '<string>', 'deltaSyncTableTTL' => <integer>, ], 'tableName' => '<string>', 'useCallerCredentials' => true || false, 'versioned' => true || false, ], 'elasticsearchConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'httpConfig' => [ 'authorizationConfig' => [ 'authorizationType' => 'AWS_IAM', 'awsIamConfig' => [ 'signingRegion' => '<string>', 'signingServiceName' => '<string>', ], ], 'endpoint' => '<string>', ], 'lambdaConfig' => [ 'lambdaFunctionArn' => '<string>', ], 'name' => '<string>', 'openSearchServiceConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'relationalDatabaseConfig' => [ 'rdsHttpEndpointConfig' => [ 'awsRegion' => '<string>', 'awsSecretStoreArn' => '<string>', 'databaseName' => '<string>', 'dbClusterIdentifier' => '<string>', 'schema' => '<string>', ], 'relationalDatabaseSourceType' => 'RDS_HTTP_ENDPOINT', ], 'serviceRoleArn' => '<string>', 'type' => 'AWS_LAMBDA|AMAZON_DYNAMODB|AMAZON_ELASTICSEARCH|NONE|HTTP|RELATIONAL_DATABASE|AMAZON_OPENSEARCH_SERVICE', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- dataSources
-
- Type: Array of DataSource structures
The
DataSource
objects. - nextToken
-
- Type: string
An identifier to pass in the next request to this operation to return the next set of items in the list.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListDomainNames
$result = $client->listDomainNames
([/* ... */]); $promise = $client->listDomainNamesAsync
([/* ... */]);
Lists multiple custom domain names.
Parameter Syntax
$result = $client->listDomainNames([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'domainNameConfigs' => [ [ 'appsyncDomainName' => '<string>', 'certificateArn' => '<string>', 'description' => '<string>', 'domainName' => '<string>', 'hostedZoneId' => '<string>', ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- domainNameConfigs
-
- Type: Array of DomainNameConfig structures
Lists configurations for multiple domain names.
- nextToken
-
- Type: string
The API token.
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
An internal AppSync error occurred. Try your request again.
ListFunctions
$result = $client->listFunctions
([/* ... */]); $promise = $client->listFunctionsAsync
([/* ... */]);
List multiple functions.
Parameter Syntax
$result = $client->listFunctions([ 'apiId' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The GraphQL API ID.
- maxResults
-
- Type: int
The maximum number of results that you want the request to return.
- nextToken
-
- Type: string
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
Result Syntax
[ 'functions' => [ [ 'dataSourceName' => '<string>', 'description' => '<string>', 'functionArn' => '<string>', 'functionId' => '<string>', 'functionVersion' => '<string>', 'maxBatchSize' => <integer>, 'name' => '<string>', 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- functions
-
- Type: Array of FunctionConfiguration structures
A list of
Function
objects. - nextToken
-
- Type: string
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListGraphqlApis
$result = $client->listGraphqlApis
([/* ... */]); $promise = $client->listGraphqlApisAsync
([/* ... */]);
Lists your GraphQL APIs.
Parameter Syntax
$result = $client->listGraphqlApis([ 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
Result Syntax
[ 'graphqlApis' => [ [ 'additionalAuthenticationProviders' => [ [ 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'userPoolId' => '<string>', ], ], // ... ], 'apiId' => '<string>', 'arn' => '<string>', 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'logConfig' => [ 'cloudWatchLogsRoleArn' => '<string>', 'excludeVerboseContent' => true || false, 'fieldLogLevel' => 'NONE|ERROR|ALL', ], 'name' => '<string>', 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'tags' => ['<string>', ...], 'uris' => ['<string>', ...], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'defaultAction' => 'ALLOW|DENY', 'userPoolId' => '<string>', ], 'wafWebAclArn' => '<string>', 'xrayEnabled' => true || false, ], // ... ], 'nextToken' => '<string>', ]
Result Details
Members
- graphqlApis
-
- Type: Array of GraphqlApi structures
The
GraphqlApi
objects. - nextToken
-
- Type: string
An identifier to pass in the next request to this operation to return the next set of items in the list.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListResolvers
$result = $client->listResolvers
([/* ... */]); $promise = $client->listResolversAsync
([/* ... */]);
Lists the resolvers for a given API and type.
Parameter Syntax
$result = $client->listResolvers([ 'apiId' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID.
- maxResults
-
- Type: int
The maximum number of results that you want the request to return.
- nextToken
-
- Type: string
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
- typeName
-
- Required: Yes
- Type: string
The type name.
Result Syntax
[ 'nextToken' => '<string>', 'resolvers' => [ [ 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'resolverArn' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
An identifier to pass in the next request to this operation to return the next set of items in the list.
- resolvers
-
- Type: Array of Resolver structures
The
Resolver
objects.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListResolversByFunction
$result = $client->listResolversByFunction
([/* ... */]); $promise = $client->listResolversByFunctionAsync
([/* ... */]);
List the resolvers that are associated with a specific function.
Parameter Syntax
$result = $client->listResolversByFunction([ 'apiId' => '<string>', // REQUIRED 'functionId' => '<string>', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID.
- functionId
-
- Required: Yes
- Type: string
The function ID.
- maxResults
-
- Type: int
The maximum number of results that you want the request to return.
- nextToken
-
- Type: string
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
Result Syntax
[ 'nextToken' => '<string>', 'resolvers' => [ [ 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'resolverArn' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
An identifier that you can use to return the next set of items in the list.
- resolvers
-
- Type: Array of Resolver structures
The list of resolvers.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
Lists the tags for a resource.
Parameter Syntax
$result = $client->listTagsForResource([ 'resourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Result Syntax
[ 'tags' => ['<string>', ...], ]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
The request exceeded a limit. Try your request again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
You don't have access to perform this operation on this resource.
ListTypes
$result = $client->listTypes
([/* ... */]); $promise = $client->listTypesAsync
([/* ... */]);
Lists the types for a given API.
Parameter Syntax
$result = $client->listTypes([ 'apiId' => '<string>', // REQUIRED 'format' => 'SDL|JSON', // REQUIRED 'maxResults' => <integer>, 'nextToken' => '<string>', ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID.
- format
-
- Required: Yes
- Type: string
The type format: SDL or JSON.
- maxResults
-
- Type: int
The maximum number of results that you want the request to return.
- nextToken
-
- Type: string
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
Result Syntax
[ 'nextToken' => '<string>', 'types' => [ [ 'arn' => '<string>', 'definition' => '<string>', 'description' => '<string>', 'format' => 'SDL|JSON', 'name' => '<string>', ], // ... ], ]
Result Details
Members
- nextToken
-
- Type: string
An identifier to pass in the next request to this operation to return the next set of items in the list.
- types
-
- Type: Array of Type structures
The
Type
objects.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
StartSchemaCreation
$result = $client->startSchemaCreation
([/* ... */]); $promise = $client->startSchemaCreationAsync
([/* ... */]);
Adds a new schema to your GraphQL API.
This operation is asynchronous. Use to determine when it has completed.
Parameter Syntax
$result = $client->startSchemaCreation([ 'apiId' => '<string>', // REQUIRED 'definition' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'status' => 'PROCESSING|ACTIVE|DELETING|FAILED|SUCCESS|NOT_APPLICABLE', ]
Result Details
Members
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
Tags a resource with user-supplied tags.
Parameter Syntax
$result = $client->tagResource([ 'resourceArn' => '<string>', // REQUIRED 'tags' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
The request exceeded a limit. Try your request again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
You don't have access to perform this operation on this resource.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
Untags a resource.
Parameter Syntax
$result = $client->untagResource([ 'resourceArn' => '<string>', // REQUIRED 'tagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
Result Syntax
[]
Result Details
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
The request exceeded a limit. Try your request again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
You don't have access to perform this operation on this resource.
UpdateApiCache
$result = $client->updateApiCache
([/* ... */]); $promise = $client->updateApiCacheAsync
([/* ... */]);
Updates the cache for the GraphQL API.
Parameter Syntax
$result = $client->updateApiCache([ 'apiCachingBehavior' => 'FULL_REQUEST_CACHING|PER_RESOLVER_CACHING', // REQUIRED 'apiId' => '<string>', // REQUIRED 'ttl' => <integer>, // REQUIRED 'type' => 'T2_SMALL|T2_MEDIUM|R4_LARGE|R4_XLARGE|R4_2XLARGE|R4_4XLARGE|R4_8XLARGE|SMALL|MEDIUM|LARGE|XLARGE|LARGE_2X|LARGE_4X|LARGE_8X|LARGE_12X', // REQUIRED ]);
Parameter Details
Members
- apiCachingBehavior
-
- Required: Yes
- Type: string
Caching behavior.
-
FULL_REQUEST_CACHING: All requests are fully cached.
-
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
- apiId
-
- Required: Yes
- Type: string
The GraphQL API ID.
- ttl
-
- Required: Yes
- Type: long (int|float)
TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
- type
-
- Required: Yes
- Type: string
The cache instance type. Valid values are
-
SMALL
-
MEDIUM
-
LARGE
-
XLARGE
-
LARGE_2X
-
LARGE_4X
-
LARGE_8X
(not available in all regions) -
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
-
T2_SMALL: A t2.small instance type.
-
T2_MEDIUM: A t2.medium instance type.
-
R4_LARGE: A r4.large instance type.
-
R4_XLARGE: A r4.xlarge instance type.
-
R4_2XLARGE: A r4.2xlarge instance type.
-
R4_4XLARGE: A r4.4xlarge instance type.
-
R4_8XLARGE: A r4.8xlarge instance type.
Result Syntax
[ 'apiCache' => [ 'apiCachingBehavior' => 'FULL_REQUEST_CACHING|PER_RESOLVER_CACHING', 'atRestEncryptionEnabled' => true || false, 'status' => 'AVAILABLE|CREATING|DELETING|MODIFYING|FAILED', 'transitEncryptionEnabled' => true || false, 'ttl' => <integer>, 'type' => 'T2_SMALL|T2_MEDIUM|R4_LARGE|R4_XLARGE|R4_2XLARGE|R4_4XLARGE|R4_8XLARGE|SMALL|MEDIUM|LARGE|XLARGE|LARGE_2X|LARGE_4X|LARGE_8X|LARGE_12X', ], ]
Result Details
Members
- apiCache
-
- Type: ApiCache structure
The
ApiCache
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
UpdateApiKey
$result = $client->updateApiKey
([/* ... */]); $promise = $client->updateApiKeyAsync
([/* ... */]);
Updates an API key. You can update the key as long as it's not deleted.
Parameter Syntax
$result = $client->updateApiKey([ 'apiId' => '<string>', // REQUIRED 'description' => '<string>', 'expires' => <integer>, 'id' => '<string>', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The ID for the GraphQL API.
- description
-
- Type: string
A description of the purpose of the API key.
- expires
-
- Type: long (int|float)
From the update time, the time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .
- id
-
- Required: Yes
- Type: string
The API key ID.
Result Syntax
[ 'apiKey' => [ 'deletes' => <integer>, 'description' => '<string>', 'expires' => <integer>, 'id' => '<string>', ], ]
Result Details
Members
- apiKey
-
- Type: ApiKey structure
The API key.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
The request exceeded a limit. Try your request again.
-
An internal AppSync error occurred. Try your request again.
-
ApiKeyValidityOutOfBoundsException:
The API key expiration must be set to a value between 1 and 365 days from creation (for
CreateApiKey
) or from update (forUpdateApiKey
).
UpdateDataSource
$result = $client->updateDataSource
([/* ... */]); $promise = $client->updateDataSourceAsync
([/* ... */]);
Updates a DataSource
object.
Parameter Syntax
$result = $client->updateDataSource([ 'apiId' => '<string>', // REQUIRED 'description' => '<string>', 'dynamodbConfig' => [ 'awsRegion' => '<string>', // REQUIRED 'deltaSyncConfig' => [ 'baseTableTTL' => <integer>, 'deltaSyncTableName' => '<string>', 'deltaSyncTableTTL' => <integer>, ], 'tableName' => '<string>', // REQUIRED 'useCallerCredentials' => true || false, 'versioned' => true || false, ], 'elasticsearchConfig' => [ 'awsRegion' => '<string>', // REQUIRED 'endpoint' => '<string>', // REQUIRED ], 'httpConfig' => [ 'authorizationConfig' => [ 'authorizationType' => 'AWS_IAM', // REQUIRED 'awsIamConfig' => [ 'signingRegion' => '<string>', 'signingServiceName' => '<string>', ], ], 'endpoint' => '<string>', ], 'lambdaConfig' => [ 'lambdaFunctionArn' => '<string>', // REQUIRED ], 'name' => '<string>', // REQUIRED 'openSearchServiceConfig' => [ 'awsRegion' => '<string>', // REQUIRED 'endpoint' => '<string>', // REQUIRED ], 'relationalDatabaseConfig' => [ 'rdsHttpEndpointConfig' => [ 'awsRegion' => '<string>', 'awsSecretStoreArn' => '<string>', 'databaseName' => '<string>', 'dbClusterIdentifier' => '<string>', 'schema' => '<string>', ], 'relationalDatabaseSourceType' => 'RDS_HTTP_ENDPOINT', ], 'serviceRoleArn' => '<string>', 'type' => 'AWS_LAMBDA|AMAZON_DYNAMODB|AMAZON_ELASTICSEARCH|NONE|HTTP|RELATIONAL_DATABASE|AMAZON_OPENSEARCH_SERVICE', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID.
- description
-
- Type: string
The new description for the data source.
- dynamodbConfig
-
- Type: DynamodbDataSourceConfig structure
The new Amazon DynamoDB configuration.
- elasticsearchConfig
-
- Type: ElasticsearchDataSourceConfig structure
The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
- httpConfig
-
- Type: HttpDataSourceConfig structure
The new HTTP endpoint configuration.
- lambdaConfig
-
- Type: LambdaDataSourceConfig structure
The new Lambda configuration.
- name
-
- Required: Yes
- Type: string
The new name for the data source.
- openSearchServiceConfig
-
- Type: OpenSearchServiceDataSourceConfig structure
The new OpenSearch configuration.
- relationalDatabaseConfig
-
- Type: RelationalDatabaseDataSourceConfig structure
The new relational database configuration.
- serviceRoleArn
-
- Type: string
The new service role Amazon Resource Name (ARN) for the data source.
- type
-
- Required: Yes
- Type: string
The new data source type.
Result Syntax
[ 'dataSource' => [ 'dataSourceArn' => '<string>', 'description' => '<string>', 'dynamodbConfig' => [ 'awsRegion' => '<string>', 'deltaSyncConfig' => [ 'baseTableTTL' => <integer>, 'deltaSyncTableName' => '<string>', 'deltaSyncTableTTL' => <integer>, ], 'tableName' => '<string>', 'useCallerCredentials' => true || false, 'versioned' => true || false, ], 'elasticsearchConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'httpConfig' => [ 'authorizationConfig' => [ 'authorizationType' => 'AWS_IAM', 'awsIamConfig' => [ 'signingRegion' => '<string>', 'signingServiceName' => '<string>', ], ], 'endpoint' => '<string>', ], 'lambdaConfig' => [ 'lambdaFunctionArn' => '<string>', ], 'name' => '<string>', 'openSearchServiceConfig' => [ 'awsRegion' => '<string>', 'endpoint' => '<string>', ], 'relationalDatabaseConfig' => [ 'rdsHttpEndpointConfig' => [ 'awsRegion' => '<string>', 'awsSecretStoreArn' => '<string>', 'databaseName' => '<string>', 'dbClusterIdentifier' => '<string>', 'schema' => '<string>', ], 'relationalDatabaseSourceType' => 'RDS_HTTP_ENDPOINT', ], 'serviceRoleArn' => '<string>', 'type' => 'AWS_LAMBDA|AMAZON_DYNAMODB|AMAZON_ELASTICSEARCH|NONE|HTTP|RELATIONAL_DATABASE|AMAZON_OPENSEARCH_SERVICE', ], ]
Result Details
Members
- dataSource
-
- Type: DataSource structure
The updated
DataSource
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
UpdateDomainName
$result = $client->updateDomainName
([/* ... */]); $promise = $client->updateDomainNameAsync
([/* ... */]);
Updates a custom DomainName
object.
Parameter Syntax
$result = $client->updateDomainName([ 'description' => '<string>', 'domainName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'domainNameConfig' => [ 'appsyncDomainName' => '<string>', 'certificateArn' => '<string>', 'description' => '<string>', 'domainName' => '<string>', 'hostedZoneId' => '<string>', ], ]
Result Details
Members
- domainNameConfig
-
- Type: DomainNameConfig structure
The configuration for the
DomainName
.
Errors
-
You don't have access to perform this operation on this resource.
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
An internal AppSync error occurred. Try your request again.
-
The resource specified in the request was not found. Check the resource, and then try again.
UpdateFunction
$result = $client->updateFunction
([/* ... */]); $promise = $client->updateFunctionAsync
([/* ... */]);
Updates a Function
object.
Parameter Syntax
$result = $client->updateFunction([ 'apiId' => '<string>', // REQUIRED 'dataSourceName' => '<string>', // REQUIRED 'description' => '<string>', 'functionId' => '<string>', // REQUIRED 'functionVersion' => '<string>', // REQUIRED 'maxBatchSize' => <integer>, 'name' => '<string>', // REQUIRED 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The GraphQL API ID.
- dataSourceName
-
- Required: Yes
- Type: string
The
Function
DataSource
name. - description
-
- Type: string
The
Function
description. - functionId
-
- Required: Yes
- Type: string
The function ID.
- functionVersion
-
- Required: Yes
- Type: string
The
version
of the request mapping template. Currently, the supported value is 2018-05-29. - maxBatchSize
-
- Type: int
The maximum batching size for a resolver.
- name
-
- Required: Yes
- Type: string
The
Function
name. - requestMappingTemplate
-
- Type: string
The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template. - responseMappingTemplate
-
- Type: string
The
Function
request mapping template. - syncConfig
-
- Type: SyncConfig structure
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
Result Syntax
[ 'functionConfiguration' => [ 'dataSourceName' => '<string>', 'description' => '<string>', 'functionArn' => '<string>', 'functionId' => '<string>', 'functionVersion' => '<string>', 'maxBatchSize' => <integer>, 'name' => '<string>', 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], ], ]
Result Details
Members
- functionConfiguration
-
- Type: FunctionConfiguration structure
The
Function
object.
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
UpdateGraphqlApi
$result = $client->updateGraphqlApi
([/* ... */]); $promise = $client->updateGraphqlApiAsync
([/* ... */]);
Updates a GraphqlApi
object.
Parameter Syntax
$result = $client->updateGraphqlApi([ 'additionalAuthenticationProviders' => [ [ 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', // REQUIRED 'identityValidationExpression' => '<string>', ], 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', // REQUIRED ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', // REQUIRED 'userPoolId' => '<string>', // REQUIRED ], ], // ... ], 'apiId' => '<string>', // REQUIRED 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', // REQUIRED 'identityValidationExpression' => '<string>', ], 'logConfig' => [ 'cloudWatchLogsRoleArn' => '<string>', // REQUIRED 'excludeVerboseContent' => true || false, 'fieldLogLevel' => 'NONE|ERROR|ALL', // REQUIRED ], 'name' => '<string>', // REQUIRED 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', // REQUIRED ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', // REQUIRED 'defaultAction' => 'ALLOW|DENY', // REQUIRED 'userPoolId' => '<string>', // REQUIRED ], 'xrayEnabled' => true || false, ]);
Parameter Details
Members
- additionalAuthenticationProviders
-
- Type: Array of AdditionalAuthenticationProvider structures
A list of additional authentication providers for the
GraphqlApi
API. - apiId
-
- Required: Yes
- Type: string
The API ID.
- authenticationType
-
- Type: string
The new authentication type for the
GraphqlApi
object. - lambdaAuthorizerConfig
-
- Type: LambdaAuthorizerConfig structure
Configuration for Lambda function authorization.
- logConfig
-
- Type: LogConfig structure
The Amazon CloudWatch Logs configuration for the
GraphqlApi
object. - name
-
- Required: Yes
- Type: string
The new name for the
GraphqlApi
object. - openIDConnectConfig
-
- Type: OpenIDConnectConfig structure
The OpenID Connect configuration for the
GraphqlApi
object. - userPoolConfig
-
- Type: UserPoolConfig structure
The new Amazon Cognito user pool configuration for the
~GraphqlApi
object. - xrayEnabled
-
- Type: boolean
A flag indicating whether to use X-Ray tracing for the
GraphqlApi
.
Result Syntax
[ 'graphqlApi' => [ 'additionalAuthenticationProviders' => [ [ 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'userPoolId' => '<string>', ], ], // ... ], 'apiId' => '<string>', 'arn' => '<string>', 'authenticationType' => 'API_KEY|AWS_IAM|AMAZON_COGNITO_USER_POOLS|OPENID_CONNECT|AWS_LAMBDA', 'lambdaAuthorizerConfig' => [ 'authorizerResultTtlInSeconds' => <integer>, 'authorizerUri' => '<string>', 'identityValidationExpression' => '<string>', ], 'logConfig' => [ 'cloudWatchLogsRoleArn' => '<string>', 'excludeVerboseContent' => true || false, 'fieldLogLevel' => 'NONE|ERROR|ALL', ], 'name' => '<string>', 'openIDConnectConfig' => [ 'authTTL' => <integer>, 'clientId' => '<string>', 'iatTTL' => <integer>, 'issuer' => '<string>', ], 'tags' => ['<string>', ...], 'uris' => ['<string>', ...], 'userPoolConfig' => [ 'appIdClientRegex' => '<string>', 'awsRegion' => '<string>', 'defaultAction' => 'ALLOW|DENY', 'userPoolId' => '<string>', ], 'wafWebAclArn' => '<string>', 'xrayEnabled' => true || false, ], ]
Result Details
Members
- graphqlApi
-
- Type: GraphqlApi structure
The updated
GraphqlApi
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
-
You don't have access to perform this operation on this resource.
UpdateResolver
$result = $client->updateResolver
([/* ... */]); $promise = $client->updateResolverAsync
([/* ... */]);
Updates a Resolver
object.
Parameter Syntax
$result = $client->updateResolver([ 'apiId' => '<string>', // REQUIRED 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', // REQUIRED 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
- apiId
-
- Required: Yes
- Type: string
The API ID.
- cachingConfig
-
- Type: CachingConfig structure
The caching configuration for the resolver.
- dataSourceName
-
- Type: string
The new data source name.
- fieldName
-
- Required: Yes
- Type: string
The new field name.
- kind
-
- Type: string
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
- maxBatchSize
-
- Type: int
The maximum batching size for a resolver.
- pipelineConfig
-
- Type: PipelineConfig structure
The
PipelineConfig
. - requestMappingTemplate
-
- Type: string
The new request mapping template.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using an Lambda data source. For all other data sources, VTL request and response mapping templates are required.
- responseMappingTemplate
-
- Type: string
The new response mapping template.
- syncConfig
-
- Type: SyncConfig structure
The
SyncConfig
for a resolver attached to a versioned data source. - typeName
-
- Required: Yes
- Type: string
The new type name.
Result Syntax
[ 'resolver' => [ 'cachingConfig' => [ 'cachingKeys' => ['<string>', ...], 'ttl' => <integer>, ], 'dataSourceName' => '<string>', 'fieldName' => '<string>', 'kind' => 'UNIT|PIPELINE', 'maxBatchSize' => <integer>, 'pipelineConfig' => [ 'functions' => ['<string>', ...], ], 'requestMappingTemplate' => '<string>', 'resolverArn' => '<string>', 'responseMappingTemplate' => '<string>', 'syncConfig' => [ 'conflictDetection' => 'VERSION|NONE', 'conflictHandler' => 'OPTIMISTIC_CONCURRENCY|LAMBDA|AUTOMERGE|NONE', 'lambdaConflictHandlerConfig' => [ 'lambdaConflictHandlerArn' => '<string>', ], ], 'typeName' => '<string>', ], ]
Result Details
Members
- resolver
-
- Type: Resolver structure
The updated
Resolver
object.
Errors
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
UpdateType
$result = $client->updateType
([/* ... */]); $promise = $client->updateTypeAsync
([/* ... */]);
Updates a Type
object.
Parameter Syntax
$result = $client->updateType([ 'apiId' => '<string>', // REQUIRED 'definition' => '<string>', 'format' => 'SDL|JSON', // REQUIRED 'typeName' => '<string>', // REQUIRED ]);
Parameter Details
Members
Result Syntax
[ 'type' => [ 'arn' => '<string>', 'definition' => '<string>', 'description' => '<string>', 'format' => 'SDL|JSON', 'name' => '<string>', ], ]
Result Details
Members
- type
-
- Type: Type structure
The updated
Type
object.
Errors
-
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException:
Another modification is in progress at this time and it must complete before you can make your change.
-
The resource specified in the request was not found. Check the resource, and then try again.
-
You aren't authorized to perform this operation.
-
An internal AppSync error occurred. Try your request again.
Shapes
AccessDeniedException
Description
You don't have access to perform this operation on this resource.
Members
AdditionalAuthenticationProvider
Description
Describes an additional authentication provider.
Members
- authenticationType
-
- Type: string
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
- lambdaAuthorizerConfig
-
- Type: LambdaAuthorizerConfig structure
Configuration for Lambda function authorization.
- openIDConnectConfig
-
- Type: OpenIDConnectConfig structure
The OIDC configuration.
- userPoolConfig
-
- Type: CognitoUserPoolConfig structure
The Amazon Cognito user pool configuration.
ApiAssociation
Description
Describes an ApiAssociation
object.
Members
- apiId
-
- Type: string
The API ID.
- associationStatus
-
- Type: string
Identifies the status of an association.
-
PROCESSING: The API association is being created. You cannot modify association requests during processing.
-
SUCCESS: The API association was successful. You can modify associations after success.
-
FAILED: The API association has failed. You can modify associations after failure.
- deploymentDetail
-
- Type: string
Details about the last deployment status.
- domainName
-
- Type: string
The domain name.
ApiCache
Description
The ApiCache
object.
Members
- apiCachingBehavior
-
- Type: string
Caching behavior.
-
FULL_REQUEST_CACHING: All requests are fully cached.
-
PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
- atRestEncryptionEnabled
-
- Type: boolean
At-rest encryption flag for cache. You cannot update this setting after creation.
- status
-
- Type: string
The cache instance status.
-
AVAILABLE: The instance is available for use.
-
CREATING: The instance is currently creating.
-
DELETING: The instance is currently deleting.
-
MODIFYING: The instance is currently modifying.
-
FAILED: The instance has failed creation.
- transitEncryptionEnabled
-
- Type: boolean
Transit encryption flag when connecting to cache. You cannot update this setting after creation.
- ttl
-
- Type: long (int|float)
TTL in seconds for cache entries.
Valid values are 1–3,600 seconds.
- type
-
- Type: string
The cache instance type. Valid values are
-
SMALL
-
MEDIUM
-
LARGE
-
XLARGE
-
LARGE_2X
-
LARGE_4X
-
LARGE_8X
(not available in all regions) -
LARGE_12X
Historically, instance types were identified by an EC2-style value. As of July 2020, this is deprecated, and the generic identifiers above should be used.
The following legacy instance types are available, but their use is discouraged:
-
T2_SMALL: A t2.small instance type.
-
T2_MEDIUM: A t2.medium instance type.
-
R4_LARGE: A r4.large instance type.
-
R4_XLARGE: A r4.xlarge instance type.
-
R4_2XLARGE: A r4.2xlarge instance type.
-
R4_4XLARGE: A r4.4xlarge instance type.
-
R4_8XLARGE: A r4.8xlarge instance type.
ApiKey
Description
Describes an API key.
Customers invoke AppSync GraphQL API operations with API keys as an identity mechanism. There are two key versions:
da1: We introduced this version at launch in November 2017. These keys always expire after 7 days. Amazon DynamoDB TTL manages key expiration. These keys ceased to be valid after February 21, 2018, and they should no longer be used.
-
ListApiKeys
returns the expiration time in milliseconds. -
CreateApiKey
returns the expiration time in milliseconds. -
UpdateApiKey
is not available for this key version. -
DeleteApiKey
deletes the item from the table. -
Expiration is stored in DynamoDB as milliseconds. This results in a bug where keys are not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a one-time action, we deleted these keys from the table on February 21, 2018.
da2: We introduced this version in February 2018 when AppSync added support to extend key expiration.
-
ListApiKeys
returns the expiration time and deletion time in seconds. -
CreateApiKey
returns the expiration time and deletion time in seconds and accepts a user-provided expiration time in seconds. -
UpdateApiKey
returns the expiration time and and deletion time in seconds and accepts a user-provided expiration time in seconds. Expired API keys are kept for 60 days after the expiration time. You can update the key expiration time as long as the key isn't deleted. -
DeleteApiKey
deletes the item from the table. -
Expiration is stored in DynamoDB as seconds. After the expiration time, using the key to authenticate will fail. However, you can reinstate the key before deletion.
-
Deletion is stored in DynamoDB as seconds. The key is deleted after deletion time.
Members
- deletes
-
- Type: long (int|float)
The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded down to the nearest hour.
- description
-
- Type: string
A description of the purpose of the API key.
- expires
-
- Type: long (int|float)
The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
- id
-
- Type: string
The API key ID.
ApiKeyLimitExceededException
ApiKeyValidityOutOfBoundsException
Description
The API key expiration must be set to a value between 1 and 365 days from creation (for CreateApiKey
) or from update (for UpdateApiKey
).
Members
ApiLimitExceededException
AuthorizationConfig
Description
The authorization configuration in case the HTTP endpoint requires authorization.
Members
- authorizationType
-
- Required: Yes
- Type: string
The authorization type that the HTTP endpoint requires.
-
AWS_IAM: The authorization type is Signature Version 4 (SigV4).
- awsIamConfig
-
- Type: AwsIamConfig structure
The Identity and Access Management (IAM) settings.
AwsIamConfig
Description
The Identity and Access Management (IAM) configuration.
Members
BadRequestException
Description
The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
Members
CachingConfig
Description
The caching configuration for a resolver that has caching activated.
Members
- cachingKeys
-
- Type: Array of strings
The caching keys for a resolver that has caching activated.
Valid values are entries from the
$context.arguments
,$context.source
, and$context.identity
maps. - ttl
-
- Type: long (int|float)
The TTL in seconds for a resolver that has caching activated.
Valid values are 1–3,600 seconds.
CognitoUserPoolConfig
Description
Describes an Amazon Cognito user pool configuration.
Members
ConcurrentModificationException
Description
Another modification is in progress at this time and it must complete before you can make your change.
Members
DataSource
Description
Describes a data source.
Members
- dataSourceArn
-
- Type: string
The data source Amazon Resource Name (ARN).
- description
-
- Type: string
The description of the data source.
- dynamodbConfig
-
- Type: DynamodbDataSourceConfig structure
DynamoDB settings.
- elasticsearchConfig
-
- Type: ElasticsearchDataSourceConfig structure
Amazon OpenSearch Service settings.
- httpConfig
-
- Type: HttpDataSourceConfig structure
HTTP endpoint settings.
- lambdaConfig
-
- Type: LambdaDataSourceConfig structure
Lambda settings.
- name
-
- Type: string
The name of the data source.
- openSearchServiceConfig
-
- Type: OpenSearchServiceDataSourceConfig structure
Amazon OpenSearch Service settings.
- relationalDatabaseConfig
-
- Type: RelationalDatabaseDataSourceConfig structure
Relational database settings.
- serviceRoleArn
-
- Type: string
The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
- type
-
- Type: string
The type of the data source.
-
AWS_LAMBDA: The data source is an Lambda function.
-
AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
-
AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
-
AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain.
-
NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation.
-
HTTP: The data source is an HTTP endpoint.
-
RELATIONAL_DATABASE: The data source is a relational database.
DeltaSyncConfig
Description
Describes a Delta Sync configuration.
Members
DomainNameConfig
Description
Describes a configuration for a custom domain.
Members
- appsyncDomainName
-
- Type: string
The domain name that AppSync provides.
- certificateArn
-
- Type: string
The Amazon Resource Name (ARN) of the certificate. This can be an Certificate Manager (ACM) certificate or an Identity and Access Management (IAM) server certificate.
- description
-
- Type: string
A description of the
DomainName
configuration. - domainName
-
- Type: string
The domain name.
- hostedZoneId
-
- Type: string
The ID of your Amazon Route 53 hosted zone.
DynamodbDataSourceConfig
Description
Describes an Amazon DynamoDB data source configuration.
Members
- awsRegion
-
- Required: Yes
- Type: string
The Amazon Web Services Region.
- deltaSyncConfig
-
- Type: DeltaSyncConfig structure
The
DeltaSyncConfig
for a versioned data source. - tableName
-
- Required: Yes
- Type: string
The table name.
- useCallerCredentials
-
- Type: boolean
Set to TRUE to use Amazon Cognito credentials with this data source.
- versioned
-
- Type: boolean
Set to TRUE to use Conflict Detection and Resolution with this data source.
ElasticsearchDataSourceConfig
Description
Describes an OpenSearch data source configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use OpenSearchServiceDataSourceConfig to specify an OpenSearch data source.
Members
FunctionConfiguration
Description
A function is a reusable entity. You can use multiple functions to compose the resolver logic.
Members
- dataSourceName
-
- Type: string
The name of the
DataSource
. - description
-
- Type: string
The
Function
description. - functionArn
-
- Type: string
The Amazon Resource Name (ARN) of the
Function
object. - functionId
-
- Type: string
A unique ID representing the
Function
object. - functionVersion
-
- Type: string
The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.
- maxBatchSize
-
- Type: int
The maximum batching size for a resolver.
- name
-
- Type: string
The name of the
Function
object. - requestMappingTemplate
-
- Type: string
The
Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template. - responseMappingTemplate
-
- Type: string
The
Function
response mapping template. - syncConfig
-
- Type: SyncConfig structure
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
GraphQLSchemaException
GraphqlApi
Description
Describes a GraphQL API.
Members
- additionalAuthenticationProviders
-
- Type: Array of AdditionalAuthenticationProvider structures
A list of additional authentication providers for the
GraphqlApi
API. - apiId
-
- Type: string
The API ID.
- arn
-
- Type: string
The Amazon Resource Name (ARN).
- authenticationType
-
- Type: string
The authentication type.
- lambdaAuthorizerConfig
-
- Type: LambdaAuthorizerConfig structure
Configuration for Lambda function authorization.
- logConfig
-
- Type: LogConfig structure
The Amazon CloudWatch Logs configuration.
- name
-
- Type: string
The API name.
- openIDConnectConfig
-
- Type: OpenIDConnectConfig structure
The OpenID Connect configuration.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags.
- uris
-
- Type: Associative array of custom strings keys (String) to strings
The URIs.
- userPoolConfig
-
- Type: UserPoolConfig structure
The Amazon Cognito user pool configuration.
- wafWebAclArn
-
- Type: string
The ARN of the WAF access control list (ACL) associated with this
GraphqlApi
, if one exists. - xrayEnabled
-
- Type: boolean
A flag indicating whether to use X-Ray tracing for this
GraphqlApi
.
HttpDataSourceConfig
Description
Describes an HTTP data source configuration.
Members
- authorizationConfig
-
- Type: AuthorizationConfig structure
The authorization configuration in case the HTTP endpoint requires authorization.
- endpoint
-
- Type: string
The HTTP URL endpoint. You can specify either the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.
InternalFailureException
Description
An internal AppSync error occurred. Try your request again.
Members
LambdaAuthorizerConfig
Description
A LambdaAuthorizerConfig
specifies how to authorize AppSync API access when using the AWS_LAMBDA
authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.
Members
- authorizerResultTtlInSeconds
-
- Type: int
The number of seconds a response should be cached for. The default is 5 minutes (300 seconds). The Lambda function can override this by returning a
ttlOverride
key in its response. A value of 0 disables caching of responses. - authorizerUri
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard Lambda ARN, a version ARN (
.../v3
), or an alias ARN.Note: This Lambda function must have the following resource-based policy assigned to it. When configuring Lambda authorizers in the console, this is done for you. To use the Command Line Interface (CLI), run the following:
aws lambda add-permission --function-name "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id "appsync" --principal appsync.amazonaws.com --action lambda:InvokeFunction
- identityValidationExpression
-
- Type: string
A regular expression for validation of tokens before the Lambda function is called.
LambdaConflictHandlerConfig
Description
The LambdaConflictHandlerConfig
object when configuring LAMBDA
as the Conflict Handler.
Members
LambdaDataSourceConfig
Description
Describes an Lambda data source configuration.
Members
LimitExceededException
LogConfig
Description
The Amazon CloudWatch Logs configuration.
Members
- cloudWatchLogsRoleArn
-
- Required: Yes
- Type: string
The service role that AppSync assumes to publish to CloudWatch logs in your account.
- excludeVerboseContent
-
- Type: boolean
Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
- fieldLogLevel
-
- Required: Yes
- Type: string
The field logging level. Values can be NONE, ERROR, or ALL.
-
NONE: No field-level logs are captured.
-
ERROR: Logs the following information only for the fields that are in error:
-
The error section in the server response.
-
Field-level errors.
-
The generated request/response functions that got resolved for error fields.
-
-
ALL: The following information is logged for all fields in the query:
-
Field-level tracing information.
-
The generated request/response functions that got resolved for each field.
-
NotFoundException
Description
The resource specified in the request was not found. Check the resource, and then try again.
Members
OpenIDConnectConfig
Description
Describes an OpenID Connect (OIDC) configuration.
Members
- authTTL
-
- Type: long (int|float)
The number of milliseconds that a token is valid after being authenticated.
- clientId
-
- Type: string
The client identifier of the relying party at the OpenID identity provider. This identifier is typically obtained when the relying party is registered with the OpenID identity provider. You can specify a regular expression so that AppSync can validate against multiple client identifiers at a time.
- iatTTL
-
- Type: long (int|float)
The number of milliseconds that a token is valid after it's issued to a user.
- issuer
-
- Required: Yes
- Type: string
The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of
iss
in the ID token.
OpenSearchServiceDataSourceConfig
Description
Describes an OpenSearch data source configuration.
Members
PipelineConfig
Description
The pipeline configuration for a resolver of kind PIPELINE
.
Members
RdsHttpEndpointConfig
Description
The Amazon Relational Database Service (Amazon RDS) HTTP endpoint configuration.
Members
- awsRegion
-
- Type: string
Amazon Web Services Region for Amazon RDS HTTP endpoint.
- awsSecretStoreArn
-
- Type: string
Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.
- databaseName
-
- Type: string
Logical database name.
- dbClusterIdentifier
-
- Type: string
Amazon RDS cluster Amazon Resource Name (ARN).
- schema
-
- Type: string
Logical schema name.
RelationalDatabaseDataSourceConfig
Description
Describes a relational database data source configuration.
Members
- rdsHttpEndpointConfig
-
- Type: RdsHttpEndpointConfig structure
Amazon RDS HTTP endpoint settings.
- relationalDatabaseSourceType
-
- Type: string
Source type for the relational database.
-
RDS_HTTP_ENDPOINT: The relational database source type is an Amazon Relational Database Service (Amazon RDS) HTTP endpoint.
Resolver
Description
Describes a resolver.
Members
- cachingConfig
-
- Type: CachingConfig structure
The caching configuration for the resolver.
- dataSourceName
-
- Type: string
The resolver data source name.
- fieldName
-
- Type: string
The resolver field name.
- kind
-
- Type: string
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. You can use a UNIT resolver to run a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. You can use a PIPELINE resolver to invoke a series of
Function
objects in a serial manner. You can use a pipeline resolver to run a GraphQL query against multiple data sources.
- maxBatchSize
-
- Type: int
The maximum batching size for a resolver.
- pipelineConfig
-
- Type: PipelineConfig structure
The
PipelineConfig
. - requestMappingTemplate
-
- Type: string
The request mapping template.
- resolverArn
-
- Type: string
The resolver Amazon Resource Name (ARN).
- responseMappingTemplate
-
- Type: string
The response mapping template.
- syncConfig
-
- Type: SyncConfig structure
The
SyncConfig
for a resolver attached to a versioned data source. - typeName
-
- Type: string
The resolver type name.
SyncConfig
Description
Describes a Sync configuration for a resolver.
Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.
Members
- conflictDetection
-
- Type: string
The Conflict Detection strategy to use.
-
VERSION: Detect conflicts based on object versions for this resolver.
-
NONE: Do not detect conflicts when invoking this resolver.
- conflictHandler
-
- Type: string
The Conflict Resolution strategy to perform in the event of a conflict.
-
OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions don't match the latest version at the server.
-
AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
-
LAMBDA: Resolve conflicts with an Lambda function supplied in the
LambdaConflictHandlerConfig
.
- lambdaConflictHandlerConfig
-
- Type: LambdaConflictHandlerConfig structure
The
LambdaConflictHandlerConfig
when configuringLAMBDA
as the Conflict Handler.
Type
Description
Describes a type.
Members
UnauthorizedException
UserPoolConfig
Description
Describes an Amazon Cognito user pool configuration.
Members
- appIdClientRegex
-
- Type: string
A regular expression for validating the incoming Amazon Cognito user pool app client ID.
- awsRegion
-
- Required: Yes
- Type: string
The Amazon Web Services Region in which the user pool was created.
- defaultAction
-
- Required: Yes
- Type: string
The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration.
- userPoolId
-
- Required: Yes
- Type: string
The user pool ID.