libZSservicesZSamazonka-appsyncZSamazonka-appsync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppSync.Lens

Description

 
Synopsis

Operations

UpdateDataSource

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

The new service role ARN for the data source.

updateDataSource_lambdaConfig :: Lens' UpdateDataSource (Maybe LambdaDataSourceConfig) Source #

The new Amazon Web Services Lambda configuration.

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_name :: Lens' UpdateDataSource Text Source #

The new name for the data source.

DeleteDataSource

deleteDataSource_name :: Lens' DeleteDataSource Text Source #

The name of the data source.

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.

GetGraphqlApi

getGraphqlApi_apiId :: Lens' GetGraphqlApi Text Source #

The API ID for the GraphQL API.

ListTagsForResource

CreateGraphqlApi

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

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

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

A list of additional authentication providers for the GraphqlApi API.

createGraphqlApi_lambdaAuthorizerConfig :: Lens' CreateGraphqlApi (Maybe LambdaAuthorizerConfig) Source #

Configuration for Amazon Web Services Lambda function authorization.

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

The Amazon Cognito user pool configuration.

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

The Amazon CloudWatch Logs configuration.

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, OIDC, Amazon Cognito user pools, or Amazon Web Services Lambda.

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.

FlushApiCache

DeleteGraphqlApi

UpdateGraphqlApi

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

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

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

The OpenID Connect configuration for the GraphqlApi object.

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

A list of additional authentication providers for the GraphqlApi API.

updateGraphqlApi_lambdaAuthorizerConfig :: Lens' UpdateGraphqlApi (Maybe LambdaAuthorizerConfig) Source #

Configuration for Amazon Web Services Lambda function authorization.

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

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

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_name :: Lens' UpdateGraphqlApi Text Source #

The new name for the GraphqlApi object.

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.

GetDataSource

getDataSource_name :: Lens' GetDataSource Text Source #

The name of the data source.

ListResolversByFunction

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.

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

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

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

An identifier that can be used to return the next set of items in the list.

CreateFunction

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.

createFunction_functionVersion :: Lens' CreateFunction Text Source #

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

DeleteApiKey

deleteApiKey_id :: Lens' DeleteApiKey Text Source #

The ID for the API key.

UpdateApiKey

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

The time from update time after which the API key expires. The date is represented as seconds since the epoch. For more information, see .

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

A description of the purpose of the API key.

updateApiKey_apiId :: Lens' UpdateApiKey Text Source #

The ID for the GraphQL API.

UpdateType

updateType_format :: Lens' UpdateType TypeDefinitionFormat Source #

The new type format: SDL or JSON.

DeleteType

CreateDataSource

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

The Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.

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_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.

ListTypes

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

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

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

An identifier to be passed 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.

GetFunction

ListDataSources

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

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

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

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

UpdateResolver

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 a Lambda data source. For all other data sources, VTL request and response mapping templates are required.

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

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

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

The caching configuration for the resolver.

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

The SyncConfig for a resolver attached to a versioned datasource.

DeleteResolver

deleteResolver_typeName :: Lens' DeleteResolver Text Source #

The name of the resolver type.

ListResolvers

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

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

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

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

CreateResolver

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

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

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

The mapping template to be used 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 a Lambda data source. For all other data sources, VTL request and response mapping templates are required.

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

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

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

The caching configuration for the resolver.

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

The mapping template to be used for responses from the data source.

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

The SyncConfig for a resolver attached to a versioned datasource.

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.

GetSchemaCreationStatus

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.

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

Detailed information about the status of the schema creation operation.

GetApiCache

UpdateApiCache

updateApiCache_ttl :: Lens' UpdateApiCache Integer Source #

TTL in seconds for cache entries.

Valid values are between 1 and 3600 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.

DeleteApiCache

ListGraphqlApis

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

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

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

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

CreateApiCache

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

At rest encryption flag for cache. This setting cannot be updated after creation.

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

Transit encryption flag when connecting to cache. This setting cannot be updated after creation.

createApiCache_ttl :: Lens' CreateApiCache Integer Source #

TTL in seconds for cache entries.

Valid values are between 1 and 3600 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.

TagResource

GetResolver

getResolver_fieldName :: Lens' GetResolver Text Source #

The resolver field name.

UpdateFunction

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.

updateFunction_functionVersion :: Lens' UpdateFunction Text Source #

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

DeleteFunction

UntagResource

CreateApiKey

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

The time from creation 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_description :: Lens' CreateApiKey (Maybe Text) Source #

A description of the purpose of the API key.

createApiKey_apiId :: Lens' CreateApiKey Text Source #

The ID for your GraphQL API.

ListFunctions

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

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

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

ListApiKeys

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

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

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

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

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

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.

Types

AdditionalAuthenticationProvider

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

The authentication type: API key, Identity and Access Management, OIDC, Amazon Cognito user pools, or Amazon Web Services Lambda.

ApiCache

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

TTL in seconds for cache entries.

Valid values are between 1 and 3600 seconds.

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_atRestEncryptionEnabled :: Lens' ApiCache (Maybe Bool) Source #

At rest encryption flag for cache. This setting cannot be updated after creation.

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

Transit encryption flag when connecting to cache. This setting cannot be updated after creation.

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_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_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_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_id :: Lens' ApiKey (Maybe Text) Source #

The API key ID.

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

A description of the purpose of the API key.

AuthorizationConfig

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

The Identity and Access Management settings.

authorizationConfig_authorizationType :: Lens' AuthorizationConfig AuthorizationType Source #

The authorization type required by the HTTP endpoint.

  • AWS_IAM: The authorization type is Sigv4.

AwsIamConfig

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

The signing service name for Identity and Access Management authorization.

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

The signing region for Identity and Access Management authorization.

CachingConfig

cachingConfig_ttl :: Lens' CachingConfig (Maybe Integer) Source #

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

Valid values are between 1 and 3600 seconds.

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

The caching keys for a resolver that has caching enabled.

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

CognitoUserPoolConfig

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

A regular expression for validating the incoming Amazon Cognito user pool app client ID.

cognitoUserPoolConfig_awsRegion :: Lens' CognitoUserPoolConfig Text Source #

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

DataSource

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

The Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.

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

The name of the data source.

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

The type of the data source.

  • AWS_LAMBDA: The data source is an Amazon Web Services 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. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.
  • HTTP: The data source is an HTTP endpoint.
  • RELATIONAL_DATABASE: The data source is a relational database.

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

The description of the data source.

DeltaSyncConfig

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

The number of minutes an Item is stored in the datasource.

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

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

DynamodbDataSourceConfig

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

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

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

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

ElasticsearchDataSourceConfig

FunctionConfiguration

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.

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.

GraphqlApi

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

A flag representing whether X-Ray tracing is enabled for this GraphqlApi.

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

The ARN of the WAF ACL associated with this GraphqlApi, if one exists.

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

A list of additional authentication providers for the GraphqlApi API.

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

Configuration for Amazon Web Services Lambda function authorization.

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

The Amazon Cognito user pool configuration.

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

The Amazon CloudWatch Logs configuration.

HttpDataSourceConfig

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

The authorization config in case the HTTP endpoint requires authorization.

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

The HTTP URL endpoint. You can either specify the domain name or IP, and port combination, and the URL scheme must be HTTP or HTTPS. If the port is not specified, AppSync uses the default port 80 for the HTTP endpoint and port 443 for HTTPS endpoints.

LambdaAuthorizerConfig

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

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

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_authorizerUri :: Lens' LambdaAuthorizerConfig Text Source #

The ARN of the Lambda function to be called for authorization. This may be a standard Lambda ARN, a version ARN (.../v3) or 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 do so with the Amazon Web Services 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 Arn for the Lambda function to use as the Conflict Handler.

LambdaDataSourceConfig

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 will assume to publish to Amazon CloudWatch logs in your account.

OpenIDConnectConfig

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

The number of milliseconds 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 the AppSync can validate against multiple client identifiers at a time.

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

The number of milliseconds a token is valid after being issued to a user.

openIDConnectConfig_issuer :: Lens' OpenIDConnectConfig Text Source #

The issuer for the OpenID Connect 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 RDS HTTP endpoint.

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

Amazon Web Services secret store ARN for database credentials.

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 RDS HTTP endpoint.

Resolver

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

The resolver type name.

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

The resolver data source name.

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

The request mapping template.

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

The resolver type.

  • UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
  • PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of Function in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.

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

The caching configuration for the resolver.

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

The response mapping template.

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

The resolver field name.

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

The SyncConfig for a resolver attached to a versioned datasource.

SyncConfig

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 do not match the latest version at the server.
  • AUTOMERGE: Resolve conflicts with the Automerge conflict resolution strategy.
  • LAMBDA: Resolve conflicts with a Lambda function supplied in the LambdaConflictHandlerConfig.

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 executing this resolver.

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 ARN.

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

The type definition.

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

The type format: SDL or JSON.

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

The type name.

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

The type description.

UserPoolConfig

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

A regular expression for validating the incoming Amazon Cognito user pool app client ID.

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.