amazonka-appsync-2.0: Amazon AppSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AppSync.Lens

Description

 
Synopsis

Operations

AssociateApi

CreateApiCache

createApiCache_atRestEncryptionEnabled :: Lens' CreateApiCache (Maybe Bool) Source #

At-rest encryption flag for cache. You cannot update this setting after creation.

createApiCache_transitEncryptionEnabled :: Lens' CreateApiCache (Maybe Bool) Source #

Transit encryption flag when connecting to cache. You cannot update this setting after creation.

createApiCache_ttl :: Lens' CreateApiCache Integer Source #

TTL in seconds for cache entries.

Valid values are 1–3,600 seconds.

createApiCache_apiCachingBehavior :: Lens' CreateApiCache ApiCachingBehavior Source #

Caching behavior.

  • FULL_REQUEST_CACHING: All requests are fully cached.
  • PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.

createApiCache_type :: Lens' CreateApiCache ApiCacheType Source #

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.

CreateApiKey

createApiKey_description :: Lens' CreateApiKey (Maybe Text) Source #

A description of the purpose of the API key.

createApiKey_expires :: Lens' CreateApiKey (Maybe Integer) Source #

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 .

createApiKey_apiId :: Lens' CreateApiKey Text Source #

The ID for your GraphQL API.

CreateDataSource

createDataSource_elasticsearchConfig :: Lens' CreateDataSource (Maybe ElasticsearchDataSourceConfig) Source #

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.

createDataSource_serviceRoleArn :: Lens' CreateDataSource (Maybe Text) Source #

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.

createDataSource_apiId :: Lens' CreateDataSource Text Source #

The API ID for the GraphQL API for the DataSource.

createDataSource_name :: Lens' CreateDataSource Text Source #

A user-supplied name for the DataSource.

CreateDomainName

createDomainName_certificateArn :: Lens' CreateDomainName Text Source #

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.

CreateFunction

createFunction_code :: Lens' CreateFunction (Maybe Text) Source #

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

createFunction_functionVersion :: Lens' CreateFunction (Maybe Text) Source #

The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.

createFunction_maxBatchSize :: Lens' CreateFunction (Maybe Natural) Source #

The maximum batching size for a resolver.

createFunction_requestMappingTemplate :: Lens' CreateFunction (Maybe Text) Source #

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

createFunction_responseMappingTemplate :: Lens' CreateFunction (Maybe Text) Source #

The Function response mapping template.

createFunction_name :: Lens' CreateFunction Text Source #

The Function name. The function name does not have to be unique.

CreateGraphqlApi

createGraphqlApi_additionalAuthenticationProviders :: Lens' CreateGraphqlApi (Maybe [AdditionalAuthenticationProvider]) Source #

A list of additional authentication providers for the GraphqlApi API.

createGraphqlApi_logConfig :: Lens' CreateGraphqlApi (Maybe LogConfig) Source #

The Amazon CloudWatch Logs configuration.

createGraphqlApi_userPoolConfig :: Lens' CreateGraphqlApi (Maybe UserPoolConfig) Source #

The Amazon Cognito user pool configuration.

createGraphqlApi_xrayEnabled :: Lens' CreateGraphqlApi (Maybe Bool) Source #

A flag indicating whether to use X-Ray tracing for the GraphqlApi.

createGraphqlApi_name :: Lens' CreateGraphqlApi Text Source #

A user-supplied name for the GraphqlApi.

createGraphqlApi_authenticationType :: Lens' CreateGraphqlApi AuthenticationType Source #

The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

CreateResolver

createResolver_cachingConfig :: Lens' CreateResolver (Maybe CachingConfig) Source #

The caching configuration for the resolver.

createResolver_code :: Lens' CreateResolver (Maybe Text) Source #

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

createResolver_dataSourceName :: Lens' CreateResolver (Maybe Text) Source #

The name of the data source for which the resolver is being created.

createResolver_kind :: Lens' CreateResolver (Maybe ResolverKind) Source #

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.

createResolver_maxBatchSize :: Lens' CreateResolver (Maybe Natural) Source #

The maximum batching size for a resolver.

createResolver_requestMappingTemplate :: Lens' CreateResolver (Maybe Text) Source #

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.

createResolver_responseMappingTemplate :: Lens' CreateResolver (Maybe Text) Source #

The mapping template to use for responses from the data source.

createResolver_syncConfig :: Lens' CreateResolver (Maybe SyncConfig) Source #

The SyncConfig for a resolver attached to a versioned data source.

createResolver_apiId :: Lens' CreateResolver Text Source #

The ID for the GraphQL API for which the resolver is being created.

createResolver_fieldName :: Lens' CreateResolver Text Source #

The name of the field to attach the resolver to.

CreateType

createType_definition :: Lens' CreateType Text Source #

The type definition, in GraphQL Schema Definition Language (SDL) format.

For more information, see the GraphQL SDL documentation.

DeleteApiCache

DeleteApiKey

deleteApiKey_id :: Lens' DeleteApiKey Text Source #

The ID for the API key.

DeleteDataSource

deleteDataSource_name :: Lens' DeleteDataSource Text Source #

The name of the data source.

DeleteDomainName

DeleteFunction

DeleteGraphqlApi

DeleteResolver

deleteResolver_typeName :: Lens' DeleteResolver Text Source #

The name of the resolver type.

DeleteType

DisassociateApi

EvaluateCode

evaluateCode_function :: Lens' EvaluateCode (Maybe Text) Source #

The function within the code to be evaluated. If provided, the valid values are request and response.

evaluateCode_runtime :: Lens' EvaluateCode AppSyncRuntime Source #

The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.

evaluateCode_code :: Lens' EvaluateCode Text Source #

The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.

evaluateCode_context :: Lens' EvaluateCode Text Source #

The map that holds all of the contextual information for your resolver invocation. A context is required for this action.

evaluateCodeResponse_logs :: Lens' EvaluateCodeResponse (Maybe [Text]) Source #

A list of logs that were generated by calls to util.log.info and util.log.error in the evaluated code.

EvaluateMappingTemplate

evaluateMappingTemplate_template :: Lens' EvaluateMappingTemplate Text Source #

The mapping template; this can be a request or response template. A template is required for this action.

evaluateMappingTemplate_context :: Lens' EvaluateMappingTemplate Text Source #

The map that holds all of the contextual information for your resolver invocation. A context is required for this action.

evaluateMappingTemplateResponse_evaluationResult :: Lens' EvaluateMappingTemplateResponse (Maybe Text) Source #

The mapping template; this can be a request or response template.

evaluateMappingTemplateResponse_logs :: Lens' EvaluateMappingTemplateResponse (Maybe [Text]) Source #

A list of logs that were generated by calls to util.log.info and util.log.error in the evaluated code.

FlushApiCache

GetApiAssociation

GetApiCache

GetDataSource

getDataSource_name :: Lens' GetDataSource Text Source #

The name of the data source.

GetDomainName

GetFunction

GetGraphqlApi

getGraphqlApi_apiId :: Lens' GetGraphqlApi Text Source #

The API ID for the GraphQL API.

GetIntrospectionSchema

getIntrospectionSchema_includeDirectives :: Lens' GetIntrospectionSchema (Maybe Bool) Source #

A flag that specifies whether the schema introspection should contain directives.

getIntrospectionSchemaResponse_schema :: Lens' GetIntrospectionSchemaResponse (Maybe ByteString) Source #

The schema, in GraphQL Schema Definition Language (SDL) format.

For more information, see the GraphQL SDL documentation.

GetResolver

getResolver_fieldName :: Lens' GetResolver Text Source #

The resolver field name.

GetSchemaCreationStatus

getSchemaCreationStatusResponse_details :: Lens' GetSchemaCreationStatusResponse (Maybe Text) Source #

Detailed information about the status of the schema creation operation.

getSchemaCreationStatusResponse_status :: Lens' GetSchemaCreationStatusResponse (Maybe SchemaStatus) Source #

The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.

GetType

getType_format :: Lens' GetType TypeDefinitionFormat Source #

The type format: SDL or JSON.

getTypeResponse_httpStatus :: Lens' GetTypeResponse Int Source #

The response's http status code.

ListApiKeys

listApiKeys_maxResults :: Lens' ListApiKeys (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listApiKeys_nextToken :: Lens' ListApiKeys (Maybe Text) Source #

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.

listApiKeysResponse_nextToken :: Lens' ListApiKeysResponse (Maybe Text) Source #

An identifier to pass in the next request to this operation to return the next set of items in the list.

ListDataSources

listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listDataSources_nextToken :: Lens' ListDataSources (Maybe Text) Source #

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.

listDataSourcesResponse_nextToken :: Lens' ListDataSourcesResponse (Maybe Text) Source #

An identifier to pass in the next request to this operation to return the next set of items in the list.

ListDomainNames

listDomainNames_maxResults :: Lens' ListDomainNames (Maybe Natural) Source #

The maximum number of results that you want the request to return.

ListFunctions

listFunctions_maxResults :: Lens' ListFunctions (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listFunctions_nextToken :: Lens' ListFunctions (Maybe Text) Source #

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.

listFunctionsResponse_nextToken :: Lens' ListFunctionsResponse (Maybe Text) Source #

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.

ListGraphqlApis

listGraphqlApis_maxResults :: Lens' ListGraphqlApis (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listGraphqlApis_nextToken :: Lens' ListGraphqlApis (Maybe Text) Source #

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.

listGraphqlApisResponse_nextToken :: Lens' ListGraphqlApisResponse (Maybe Text) Source #

An identifier to pass in the next request to this operation to return the next set of items in the list.

ListResolvers

listResolvers_maxResults :: Lens' ListResolvers (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listResolvers_nextToken :: Lens' ListResolvers (Maybe Text) Source #

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.

listResolversResponse_nextToken :: Lens' ListResolversResponse (Maybe Text) Source #

An identifier to pass in the next request to this operation to return the next set of items in the list.

ListResolversByFunction

listResolversByFunction_maxResults :: Lens' ListResolversByFunction (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listResolversByFunction_nextToken :: Lens' ListResolversByFunction (Maybe Text) Source #

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.

listResolversByFunctionResponse_nextToken :: Lens' ListResolversByFunctionResponse (Maybe Text) Source #

An identifier that you can use to return the next set of items in the list.

ListTagsForResource

listTagsForResource_resourceArn :: Lens' ListTagsForResource Text Source #

The GraphqlApi Amazon Resource Name (ARN).

ListTypes

listTypes_maxResults :: Lens' ListTypes (Maybe Natural) Source #

The maximum number of results that you want the request to return.

listTypes_nextToken :: Lens' ListTypes (Maybe Text) Source #

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.

listTypesResponse_nextToken :: Lens' ListTypesResponse (Maybe Text) Source #

An identifier to pass in the next request to this operation to return the next set of items in the list.

listTypesResponse_httpStatus :: Lens' ListTypesResponse Int Source #

The response's http status code.

StartSchemaCreation

startSchemaCreation_definition :: Lens' StartSchemaCreation ByteString Source #

The schema definition, in GraphQL schema language format.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

startSchemaCreationResponse_status :: Lens' StartSchemaCreationResponse (Maybe SchemaStatus) Source #

The current state of the schema (PROCESSING, FAILED, SUCCESS, or NOT_APPLICABLE). When the schema is in the ACTIVE state, you can add data.

TagResource

tagResource_resourceArn :: Lens' TagResource Text Source #

The GraphqlApi Amazon Resource Name (ARN).

UntagResource

untagResource_resourceArn :: Lens' UntagResource Text Source #

The GraphqlApi Amazon Resource Name (ARN).

UpdateApiCache

updateApiCache_ttl :: Lens' UpdateApiCache Integer Source #

TTL in seconds for cache entries.

Valid values are 1–3,600 seconds.

updateApiCache_apiCachingBehavior :: Lens' UpdateApiCache ApiCachingBehavior Source #

Caching behavior.

  • FULL_REQUEST_CACHING: All requests are fully cached.
  • PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.

updateApiCache_type :: Lens' UpdateApiCache ApiCacheType Source #

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.

UpdateApiKey

updateApiKey_description :: Lens' UpdateApiKey (Maybe Text) Source #

A description of the purpose of the API key.

updateApiKey_expires :: Lens' UpdateApiKey (Maybe Integer) Source #

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 .

updateApiKey_apiId :: Lens' UpdateApiKey Text Source #

The ID for the GraphQL API.

UpdateDataSource

updateDataSource_description :: Lens' UpdateDataSource (Maybe Text) Source #

The new description for the data source.

updateDataSource_elasticsearchConfig :: Lens' UpdateDataSource (Maybe ElasticsearchDataSourceConfig) Source #

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.

updateDataSource_serviceRoleArn :: Lens' UpdateDataSource (Maybe Text) Source #

The new service role Amazon Resource Name (ARN) for the data source.

updateDataSource_name :: Lens' UpdateDataSource Text Source #

The new name for the data source.

UpdateDomainName

UpdateFunction

updateFunction_code :: Lens' UpdateFunction (Maybe Text) Source #

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

updateFunction_functionVersion :: Lens' UpdateFunction (Maybe Text) Source #

The version of the request mapping template. Currently, the supported value is 2018-05-29. Note that when using VTL and mapping templates, the functionVersion is required.

updateFunction_maxBatchSize :: Lens' UpdateFunction (Maybe Natural) Source #

The maximum batching size for a resolver.

updateFunction_requestMappingTemplate :: Lens' UpdateFunction (Maybe Text) Source #

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

updateFunction_responseMappingTemplate :: Lens' UpdateFunction (Maybe Text) Source #

The Function request mapping template.

UpdateGraphqlApi

updateGraphqlApi_additionalAuthenticationProviders :: Lens' UpdateGraphqlApi (Maybe [AdditionalAuthenticationProvider]) Source #

A list of additional authentication providers for the GraphqlApi API.

updateGraphqlApi_authenticationType :: Lens' UpdateGraphqlApi (Maybe AuthenticationType) Source #

The new authentication type for the GraphqlApi object.

updateGraphqlApi_logConfig :: Lens' UpdateGraphqlApi (Maybe LogConfig) Source #

The Amazon CloudWatch Logs configuration for the GraphqlApi object.

updateGraphqlApi_openIDConnectConfig :: Lens' UpdateGraphqlApi (Maybe OpenIDConnectConfig) Source #

The OpenID Connect configuration for the GraphqlApi object.

updateGraphqlApi_userPoolConfig :: Lens' UpdateGraphqlApi (Maybe UserPoolConfig) Source #

The new Amazon Cognito user pool configuration for the ~GraphqlApi object.

updateGraphqlApi_xrayEnabled :: Lens' UpdateGraphqlApi (Maybe Bool) Source #

A flag indicating whether to use X-Ray tracing for the GraphqlApi.

updateGraphqlApi_name :: Lens' UpdateGraphqlApi Text Source #

The new name for the GraphqlApi object.

UpdateResolver

updateResolver_cachingConfig :: Lens' UpdateResolver (Maybe CachingConfig) Source #

The caching configuration for the resolver.

updateResolver_code :: Lens' UpdateResolver (Maybe Text) Source #

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

updateResolver_kind :: Lens' UpdateResolver (Maybe ResolverKind) Source #

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.

updateResolver_maxBatchSize :: Lens' UpdateResolver (Maybe Natural) Source #

The maximum batching size for a resolver.

updateResolver_requestMappingTemplate :: Lens' UpdateResolver (Maybe Text) Source #

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.

updateResolver_syncConfig :: Lens' UpdateResolver (Maybe SyncConfig) Source #

The SyncConfig for a resolver attached to a versioned data source.

UpdateType

updateType_format :: Lens' UpdateType TypeDefinitionFormat Source #

The new type format: SDL or JSON.

Types

AdditionalAuthenticationProvider

additionalAuthenticationProvider_authenticationType :: Lens' AdditionalAuthenticationProvider (Maybe AuthenticationType) Source #

The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.

ApiAssociation

apiAssociation_associationStatus :: Lens' ApiAssociation (Maybe AssociationStatus) Source #

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.

apiAssociation_deploymentDetail :: Lens' ApiAssociation (Maybe Text) Source #

Details about the last deployment status.

ApiCache

apiCache_apiCachingBehavior :: Lens' ApiCache (Maybe ApiCachingBehavior) Source #

Caching behavior.

  • FULL_REQUEST_CACHING: All requests are fully cached.
  • PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.

apiCache_atRestEncryptionEnabled :: Lens' ApiCache (Maybe Bool) Source #

At-rest encryption flag for cache. You cannot update this setting after creation.

apiCache_status :: Lens' ApiCache (Maybe ApiCacheStatus) Source #

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.

apiCache_transitEncryptionEnabled :: Lens' ApiCache (Maybe Bool) Source #

Transit encryption flag when connecting to cache. You cannot update this setting after creation.

apiCache_ttl :: Lens' ApiCache (Maybe Integer) Source #

TTL in seconds for cache entries.

Valid values are 1–3,600 seconds.

apiCache_type :: Lens' ApiCache (Maybe ApiCacheType) Source #

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

apiKey_deletes :: Lens' ApiKey (Maybe Integer) Source #

The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded down to the nearest hour.

apiKey_description :: Lens' ApiKey (Maybe Text) Source #

A description of the purpose of the API key.

apiKey_expires :: Lens' ApiKey (Maybe Integer) Source #

The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.

apiKey_id :: Lens' ApiKey (Maybe Text) Source #

The API key ID.

AppSyncRuntime

appSyncRuntime_name :: Lens' AppSyncRuntime RuntimeName Source #

The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.

appSyncRuntime_runtimeVersion :: Lens' AppSyncRuntime Text Source #

The version of the runtime to use. Currently, the only allowed version is 1.0.0.

AuthorizationConfig

authorizationConfig_awsIamConfig :: Lens' AuthorizationConfig (Maybe AwsIamConfig) Source #

The Identity and Access Management (IAM) settings.

authorizationConfig_authorizationType :: Lens' AuthorizationConfig AuthorizationType Source #

The authorization type that the HTTP endpoint requires.

  • AWS_IAM: The authorization type is Signature Version 4 (SigV4).

AwsIamConfig

awsIamConfig_signingRegion :: Lens' AwsIamConfig (Maybe Text) Source #

The signing Amazon Web Services Region for IAM authorization.

awsIamConfig_signingServiceName :: Lens' AwsIamConfig (Maybe Text) Source #

The signing service name for IAM authorization.

CachingConfig

cachingConfig_cachingKeys :: Lens' CachingConfig (Maybe [Text]) Source #

The caching keys for a resolver that has caching activated.

Valid values are entries from the $context.arguments, $context.source, and $context.identity maps.

cachingConfig_ttl :: Lens' CachingConfig Integer Source #

The TTL in seconds for a resolver that has caching activated.

Valid values are 1–3,600 seconds.

CodeError

codeError_errorType :: Lens' CodeError (Maybe Text) Source #

The type of code error.

Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.

codeError_location :: Lens' CodeError (Maybe CodeErrorLocation) Source #

The line, column, and span location of the error in the code.

codeError_value :: Lens' CodeError (Maybe Text) Source #

A user presentable error.

Examples include, but aren't limited to: Parsing error: Unterminated string literal.

CodeErrorLocation

codeErrorLocation_column :: Lens' CodeErrorLocation (Maybe Int) Source #

The column number in the code. Defaults to 0 if unknown.

codeErrorLocation_line :: Lens' CodeErrorLocation (Maybe Int) Source #

The line number in the code. Defaults to 0 if unknown.

codeErrorLocation_span :: Lens' CodeErrorLocation (Maybe Int) Source #

The span/length of the error. Defaults to -1 if unknown.

CognitoUserPoolConfig

cognitoUserPoolConfig_appIdClientRegex :: Lens' CognitoUserPoolConfig (Maybe Text) Source #

A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.

cognitoUserPoolConfig_awsRegion :: Lens' CognitoUserPoolConfig Text Source #

The Amazon Web Services Region in which the user pool was created.

DataSource

dataSource_dataSourceArn :: Lens' DataSource (Maybe Text) Source #

The data source Amazon Resource Name (ARN).

dataSource_description :: Lens' DataSource (Maybe Text) Source #

The description of the data source.

dataSource_name :: Lens' DataSource (Maybe Text) Source #

The name of the data source.

dataSource_serviceRoleArn :: Lens' DataSource (Maybe Text) Source #

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.

dataSource_type :: Lens' DataSource (Maybe DataSourceType) Source #

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

deltaSyncConfig_baseTableTTL :: Lens' DeltaSyncConfig (Maybe Integer) Source #

The number of minutes that an Item is stored in the data source.

deltaSyncConfig_deltaSyncTableTTL :: Lens' DeltaSyncConfig (Maybe Integer) Source #

The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.

DomainNameConfig

domainNameConfig_appsyncDomainName :: Lens' DomainNameConfig (Maybe Text) Source #

The domain name that AppSync provides.

domainNameConfig_certificateArn :: Lens' DomainNameConfig (Maybe Text) Source #

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.

domainNameConfig_description :: Lens' DomainNameConfig (Maybe Text) Source #

A description of the DomainName configuration.

domainNameConfig_hostedZoneId :: Lens' DomainNameConfig (Maybe Text) Source #

The ID of your Amazon Route 53 hosted zone.

DynamodbDataSourceConfig

dynamodbDataSourceConfig_useCallerCredentials :: Lens' DynamodbDataSourceConfig (Maybe Bool) Source #

Set to TRUE to use Amazon Cognito credentials with this data source.

dynamodbDataSourceConfig_versioned :: Lens' DynamodbDataSourceConfig (Maybe Bool) Source #

Set to TRUE to use Conflict Detection and Resolution with this data source.

ElasticsearchDataSourceConfig

ErrorDetail

EvaluateCodeErrorDetail

FunctionConfiguration

functionConfiguration_code :: Lens' FunctionConfiguration (Maybe Text) Source #

The function code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

functionConfiguration_functionArn :: Lens' FunctionConfiguration (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Function object.

functionConfiguration_functionId :: Lens' FunctionConfiguration (Maybe Text) Source #

A unique ID representing the Function object.

functionConfiguration_functionVersion :: Lens' FunctionConfiguration (Maybe Text) Source #

The version of the request mapping template. Currently, only the 2018-05-29 version of the template is supported.

functionConfiguration_requestMappingTemplate :: Lens' FunctionConfiguration (Maybe Text) Source #

The Function request mapping template. Functions support only the 2018-05-29 version of the request mapping template.

GraphqlApi

graphqlApi_additionalAuthenticationProviders :: Lens' GraphqlApi (Maybe [AdditionalAuthenticationProvider]) Source #

A list of additional authentication providers for the GraphqlApi API.

graphqlApi_arn :: Lens' GraphqlApi (Maybe Text) Source #

The Amazon Resource Name (ARN).

graphqlApi_lambdaAuthorizerConfig :: Lens' GraphqlApi (Maybe LambdaAuthorizerConfig) Source #

Configuration for Lambda function authorization.

graphqlApi_logConfig :: Lens' GraphqlApi (Maybe LogConfig) Source #

The Amazon CloudWatch Logs configuration.

graphqlApi_userPoolConfig :: Lens' GraphqlApi (Maybe UserPoolConfig) Source #

The Amazon Cognito user pool configuration.

graphqlApi_wafWebAclArn :: Lens' GraphqlApi (Maybe Text) Source #

The ARN of the WAF access control list (ACL) associated with this GraphqlApi, if one exists.

graphqlApi_xrayEnabled :: Lens' GraphqlApi (Maybe Bool) Source #

A flag indicating whether to use X-Ray tracing for this GraphqlApi.

HttpDataSourceConfig

httpDataSourceConfig_authorizationConfig :: Lens' HttpDataSourceConfig (Maybe AuthorizationConfig) Source #

The authorization configuration in case the HTTP endpoint requires authorization.

httpDataSourceConfig_endpoint :: Lens' HttpDataSourceConfig (Maybe Text) Source #

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.

LambdaAuthorizerConfig

lambdaAuthorizerConfig_authorizerResultTtlInSeconds :: Lens' LambdaAuthorizerConfig (Maybe Natural) Source #

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.

lambdaAuthorizerConfig_identityValidationExpression :: Lens' LambdaAuthorizerConfig (Maybe Text) Source #

A regular expression for validation of tokens before the Lambda function is called.

lambdaAuthorizerConfig_authorizerUri :: Lens' LambdaAuthorizerConfig Text Source #

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

LambdaConflictHandlerConfig

lambdaConflictHandlerConfig_lambdaConflictHandlerArn :: Lens' LambdaConflictHandlerConfig (Maybe Text) Source #

The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict Handler.

LambdaDataSourceConfig

lambdaDataSourceConfig_lambdaFunctionArn :: Lens' LambdaDataSourceConfig Text Source #

The Amazon Resource Name (ARN) for the Lambda function.

LogConfig

logConfig_excludeVerboseContent :: Lens' LogConfig (Maybe Bool) Source #

Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.

logConfig_fieldLogLevel :: Lens' LogConfig FieldLogLevel Source #

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.

logConfig_cloudWatchLogsRoleArn :: Lens' LogConfig Text Source #

The service role that AppSync assumes to publish to CloudWatch logs in your account.

OpenIDConnectConfig

openIDConnectConfig_authTTL :: Lens' OpenIDConnectConfig (Maybe Integer) Source #

The number of milliseconds that a token is valid after being authenticated.

openIDConnectConfig_clientId :: Lens' OpenIDConnectConfig (Maybe Text) Source #

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.

openIDConnectConfig_iatTTL :: Lens' OpenIDConnectConfig (Maybe Integer) Source #

The number of milliseconds that a token is valid after it's issued to a user.

openIDConnectConfig_issuer :: Lens' OpenIDConnectConfig Text Source #

The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss in the ID token.

OpenSearchServiceDataSourceConfig

PipelineConfig

pipelineConfig_functions :: Lens' PipelineConfig (Maybe [Text]) Source #

A list of Function objects.

RdsHttpEndpointConfig

rdsHttpEndpointConfig_awsRegion :: Lens' RdsHttpEndpointConfig (Maybe Text) Source #

Amazon Web Services Region for Amazon RDS HTTP endpoint.

rdsHttpEndpointConfig_awsSecretStoreArn :: Lens' RdsHttpEndpointConfig (Maybe Text) Source #

Amazon Web Services secret store Amazon Resource Name (ARN) for database credentials.

rdsHttpEndpointConfig_dbClusterIdentifier :: Lens' RdsHttpEndpointConfig (Maybe Text) Source #

Amazon RDS cluster Amazon Resource Name (ARN).

RelationalDatabaseDataSourceConfig

relationalDatabaseDataSourceConfig_relationalDatabaseSourceType :: Lens' RelationalDatabaseDataSourceConfig (Maybe RelationalDatabaseSourceType) Source #

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

resolver_cachingConfig :: Lens' Resolver (Maybe CachingConfig) Source #

The caching configuration for the resolver.

resolver_code :: Lens' Resolver (Maybe Text) Source #

The resolver code that contains the request and response functions. When code is used, the runtime is required. The runtime value must be APPSYNC_JS.

resolver_dataSourceName :: Lens' Resolver (Maybe Text) Source #

The resolver data source name.

resolver_fieldName :: Lens' Resolver (Maybe Text) Source #

The resolver field name.

resolver_kind :: Lens' Resolver (Maybe ResolverKind) Source #

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.

resolver_maxBatchSize :: Lens' Resolver (Maybe Natural) Source #

The maximum batching size for a resolver.

resolver_requestMappingTemplate :: Lens' Resolver (Maybe Text) Source #

The request mapping template.

resolver_resolverArn :: Lens' Resolver (Maybe Text) Source #

The resolver Amazon Resource Name (ARN).

resolver_responseMappingTemplate :: Lens' Resolver (Maybe Text) Source #

The response mapping template.

resolver_syncConfig :: Lens' Resolver (Maybe SyncConfig) Source #

The SyncConfig for a resolver attached to a versioned data source.

resolver_typeName :: Lens' Resolver (Maybe Text) Source #

The resolver type name.

SyncConfig

syncConfig_conflictDetection :: Lens' SyncConfig (Maybe ConflictDetectionType) Source #

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.

syncConfig_conflictHandler :: Lens' SyncConfig (Maybe ConflictHandlerType) Source #

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.

syncConfig_lambdaConflictHandlerConfig :: Lens' SyncConfig (Maybe LambdaConflictHandlerConfig) Source #

The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.

Type

type_arn :: Lens' Type (Maybe Text) Source #

The type Amazon Resource Name (ARN).

type_definition :: Lens' Type (Maybe Text) Source #

The type definition.

type_description :: Lens' Type (Maybe Text) Source #

The type description.

type_format :: Lens' Type (Maybe TypeDefinitionFormat) Source #

The type format: SDL or JSON.

type_name :: Lens' Type (Maybe Text) Source #

The type name.

UserPoolConfig

userPoolConfig_appIdClientRegex :: Lens' UserPoolConfig (Maybe Text) Source #

A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.

userPoolConfig_awsRegion :: Lens' UserPoolConfig Text Source #

The Amazon Web Services Region in which the user pool was created.

userPoolConfig_defaultAction :: Lens' UserPoolConfig DefaultAction Source #

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.