AWS AppSync

2023/05/24 - AWS AppSync - 9 new4 updated api methods

Changes  This release introduces AppSync Merged APIs, which provide the ability to compose multiple source APIs into a single federated/merged API.

AssociateMergedGraphqlApi (new) Link ¶

Creates an association between a Merged API and source API using the source API's identifier.

See also: AWS API Documentation

Request Syntax

client.associate_merged_graphql_api(
    sourceApiIdentifier='string',
    mergedApiIdentifier='string',
    description='string',
    sourceApiAssociationConfig={
        'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
    }
)
type sourceApiIdentifier:

string

param sourceApiIdentifier:

[REQUIRED]

The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.

type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

type description:

string

param description:

The description field.

type sourceApiAssociationConfig:

dict

param sourceApiAssociationConfig:

The SourceApiAssociationConfig object data.

  • mergeType (string) --

    The property that indicates which merging option is enabled in the source API association.

    Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociation': {
        'associationId': 'string',
        'associationArn': 'string',
        'sourceApiId': 'string',
        'sourceApiArn': 'string',
        'mergedApiArn': 'string',
        'mergedApiId': 'string',
        'description': 'string',
        'sourceApiAssociationConfig': {
            'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
        },
        'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED',
        'sourceApiAssociationStatusDetail': 'string',
        'lastSuccessfulMergeDate': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • sourceApiAssociation (dict) --

      The SourceApiAssociation object data.

      • associationId (string) --

        The ID generated by the AppSync service for the source API association.

      • associationArn (string) --

        The Amazon Resource Name (ARN) of the source API association.

      • sourceApiId (string) --

        The ID of the AppSync source API.

      • sourceApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync source API.

      • mergedApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync Merged API.

      • mergedApiId (string) --

        The ID of the AppSync Merged API.

      • description (string) --

        The description field.

      • sourceApiAssociationConfig (dict) --

        The SourceApiAssociationConfig object data.

        • mergeType (string) --

          The property that indicates which merging option is enabled in the source API association.

          Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

      • sourceApiAssociationStatus (string) --

        The state of the source API association.

      • sourceApiAssociationStatusDetail (string) --

        The detailed message related to the current state of the source API association.

      • lastSuccessfulMergeDate (datetime) --

        The datetime value of the last successful merge of the source API association. The result will be in UTC format and your local time zone.

GetSourceApiAssociation (new) Link ¶

Retrieves a SourceApiAssociation object.

See also: AWS API Documentation

Request Syntax

client.get_source_api_association(
    mergedApiIdentifier='string',
    associationId='string'
)
type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

type associationId:

string

param associationId:

[REQUIRED]

The ID generated by the AppSync service for the source API association.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociation': {
        'associationId': 'string',
        'associationArn': 'string',
        'sourceApiId': 'string',
        'sourceApiArn': 'string',
        'mergedApiArn': 'string',
        'mergedApiId': 'string',
        'description': 'string',
        'sourceApiAssociationConfig': {
            'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
        },
        'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED',
        'sourceApiAssociationStatusDetail': 'string',
        'lastSuccessfulMergeDate': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • sourceApiAssociation (dict) --

      The SourceApiAssociation object data.

      • associationId (string) --

        The ID generated by the AppSync service for the source API association.

      • associationArn (string) --

        The Amazon Resource Name (ARN) of the source API association.

      • sourceApiId (string) --

        The ID of the AppSync source API.

      • sourceApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync source API.

      • mergedApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync Merged API.

      • mergedApiId (string) --

        The ID of the AppSync Merged API.

      • description (string) --

        The description field.

      • sourceApiAssociationConfig (dict) --

        The SourceApiAssociationConfig object data.

        • mergeType (string) --

          The property that indicates which merging option is enabled in the source API association.

          Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

      • sourceApiAssociationStatus (string) --

        The state of the source API association.

      • sourceApiAssociationStatusDetail (string) --

        The detailed message related to the current state of the source API association.

      • lastSuccessfulMergeDate (datetime) --

        The datetime value of the last successful merge of the source API association. The result will be in UTC format and your local time zone.

ListSourceApiAssociations (new) Link ¶

Lists the SourceApiAssociationSummary data.

See also: AWS API Documentation

Request Syntax

client.list_source_api_associations(
    apiId='string',
    nextToken='string',
    maxResults=123
)
type apiId:

string

param apiId:

[REQUIRED]

The API ID.

type nextToken:

string

param nextToken:

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.

type maxResults:

integer

param maxResults:

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

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociationSummaries': [
        {
            'associationId': 'string',
            'associationArn': 'string',
            'sourceApiId': 'string',
            'sourceApiArn': 'string',
            'mergedApiId': 'string',
            'mergedApiArn': 'string',
            'description': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • sourceApiAssociationSummaries (list) --

      The SourceApiAssociationSummary object data.

      • (dict) --

        Describes the ARNs and IDs of associations, Merged APIs, and source APIs.

        • associationId (string) --

          The ID generated by the AppSync service for the source API association.

        • associationArn (string) --

          The Amazon Resource Name (ARN) of the source API association.

        • sourceApiId (string) --

          The ID of the AppSync source API.

        • sourceApiArn (string) --

          The Amazon Resource Name (ARN) of the AppSync Source API.

        • mergedApiId (string) --

          The ID of the AppSync Merged API.

        • mergedApiArn (string) --

          The Amazon Resource Name (ARN) of the AppSync Merged API.

        • description (string) --

          The description field.

    • nextToken (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.

DisassociateSourceGraphqlApi (new) Link ¶

Deletes an association between a Merged API and source API using the Merged API's identifier and the association ID.

See also: AWS API Documentation

Request Syntax

client.disassociate_source_graphql_api(
    mergedApiIdentifier='string',
    associationId='string'
)
type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

type associationId:

string

param associationId:

[REQUIRED]

The ID generated by the AppSync service for the source API association.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED'
}

Response Structure

  • (dict) --

    • sourceApiAssociationStatus (string) --

      The state of the source API association.

UpdateSourceApiAssociation (new) Link ¶

Updates some of the configuration choices of a particular source API association.

See also: AWS API Documentation

Request Syntax

client.update_source_api_association(
    associationId='string',
    mergedApiIdentifier='string',
    description='string',
    sourceApiAssociationConfig={
        'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
    }
)
type associationId:

string

param associationId:

[REQUIRED]

The ID generated by the AppSync service for the source API association.

type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

type description:

string

param description:

The description field.

type sourceApiAssociationConfig:

dict

param sourceApiAssociationConfig:

The SourceApiAssociationConfig object data.

  • mergeType (string) --

    The property that indicates which merging option is enabled in the source API association.

    Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociation': {
        'associationId': 'string',
        'associationArn': 'string',
        'sourceApiId': 'string',
        'sourceApiArn': 'string',
        'mergedApiArn': 'string',
        'mergedApiId': 'string',
        'description': 'string',
        'sourceApiAssociationConfig': {
            'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
        },
        'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED',
        'sourceApiAssociationStatusDetail': 'string',
        'lastSuccessfulMergeDate': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • sourceApiAssociation (dict) --

      The SourceApiAssociation object data.

      • associationId (string) --

        The ID generated by the AppSync service for the source API association.

      • associationArn (string) --

        The Amazon Resource Name (ARN) of the source API association.

      • sourceApiId (string) --

        The ID of the AppSync source API.

      • sourceApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync source API.

      • mergedApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync Merged API.

      • mergedApiId (string) --

        The ID of the AppSync Merged API.

      • description (string) --

        The description field.

      • sourceApiAssociationConfig (dict) --

        The SourceApiAssociationConfig object data.

        • mergeType (string) --

          The property that indicates which merging option is enabled in the source API association.

          Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

      • sourceApiAssociationStatus (string) --

        The state of the source API association.

      • sourceApiAssociationStatusDetail (string) --

        The detailed message related to the current state of the source API association.

      • lastSuccessfulMergeDate (datetime) --

        The datetime value of the last successful merge of the source API association. The result will be in UTC format and your local time zone.

AssociateSourceGraphqlApi (new) Link ¶

Creates an association between a Merged API and source API using the Merged API's identifier.

See also: AWS API Documentation

Request Syntax

client.associate_source_graphql_api(
    mergedApiIdentifier='string',
    sourceApiIdentifier='string',
    description='string',
    sourceApiAssociationConfig={
        'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
    }
)
type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

type sourceApiIdentifier:

string

param sourceApiIdentifier:

[REQUIRED]

The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.

type description:

string

param description:

The description field.

type sourceApiAssociationConfig:

dict

param sourceApiAssociationConfig:

The SourceApiAssociationConfig object data.

  • mergeType (string) --

    The property that indicates which merging option is enabled in the source API association.

    Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociation': {
        'associationId': 'string',
        'associationArn': 'string',
        'sourceApiId': 'string',
        'sourceApiArn': 'string',
        'mergedApiArn': 'string',
        'mergedApiId': 'string',
        'description': 'string',
        'sourceApiAssociationConfig': {
            'mergeType': 'MANUAL_MERGE'|'AUTO_MERGE'
        },
        'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED',
        'sourceApiAssociationStatusDetail': 'string',
        'lastSuccessfulMergeDate': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • sourceApiAssociation (dict) --

      The SourceApiAssociation object data.

      • associationId (string) --

        The ID generated by the AppSync service for the source API association.

      • associationArn (string) --

        The Amazon Resource Name (ARN) of the source API association.

      • sourceApiId (string) --

        The ID of the AppSync source API.

      • sourceApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync source API.

      • mergedApiArn (string) --

        The Amazon Resource Name (ARN) of the AppSync Merged API.

      • mergedApiId (string) --

        The ID of the AppSync Merged API.

      • description (string) --

        The description field.

      • sourceApiAssociationConfig (dict) --

        The SourceApiAssociationConfig object data.

        • mergeType (string) --

          The property that indicates which merging option is enabled in the source API association.

          Valid merge types are MANUAL_MERGE (default) and AUTO_MERGE. Manual merges are the default behavior and require the user to trigger any changes from the source APIs to the merged API manually. Auto merges subscribe the merged API to the changes performed on the source APIs so that any change in the source APIs are also made to the merged API. Auto merges use MergedApiExecutionRoleArn to perform merge operations.

      • sourceApiAssociationStatus (string) --

        The state of the source API association.

      • sourceApiAssociationStatusDetail (string) --

        The detailed message related to the current state of the source API association.

      • lastSuccessfulMergeDate (datetime) --

        The datetime value of the last successful merge of the source API association. The result will be in UTC format and your local time zone.

ListTypesByAssociation (new) Link ¶

Lists Type objects by the source API association ID.

See also: AWS API Documentation

Request Syntax

client.list_types_by_association(
    mergedApiIdentifier='string',
    associationId='string',
    format='SDL'|'JSON',
    nextToken='string',
    maxResults=123
)
type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

type associationId:

string

param associationId:

[REQUIRED]

The ID generated by the AppSync service for the source API association.

type format:

string

param format:

[REQUIRED]

The format type.

type nextToken:

string

param nextToken:

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.

type maxResults:

integer

param maxResults:

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

rtype:

dict

returns:

Response Syntax

{
    'types': [
        {
            'name': 'string',
            'description': 'string',
            'arn': 'string',
            'definition': 'string',
            'format': 'SDL'|'JSON'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • types (list) --

      The Type objects.

      • (dict) --

        Describes a type.

        • name (string) --

          The type name.

        • description (string) --

          The type description.

        • arn (string) --

          The type Amazon Resource Name (ARN).

        • definition (string) --

          The type definition.

        • format (string) --

          The type format: SDL or JSON.

    • nextToken (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.

DisassociateMergedGraphqlApi (new) Link ¶

Deletes an association between a Merged API and source API using the source API's identifier and the association ID.

See also: AWS API Documentation

Request Syntax

client.disassociate_merged_graphql_api(
    sourceApiIdentifier='string',
    associationId='string'
)
type sourceApiIdentifier:

string

param sourceApiIdentifier:

[REQUIRED]

The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.

type associationId:

string

param associationId:

[REQUIRED]

The ID generated by the AppSync service for the source API association.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED'
}

Response Structure

  • (dict) --

    • sourceApiAssociationStatus (string) --

      The state of the source API association.

StartSchemaMerge (new) Link ¶

Initiates a merge operation. Returns a status that shows the result of the merge operation.

See also: AWS API Documentation

Request Syntax

client.start_schema_merge(
    associationId='string',
    mergedApiIdentifier='string'
)
type associationId:

string

param associationId:

[REQUIRED]

The ID generated by the AppSync service for the source API association.

type mergedApiIdentifier:

string

param mergedApiIdentifier:

[REQUIRED]

The identifier of the AppSync Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.

rtype:

dict

returns:

Response Syntax

{
    'sourceApiAssociationStatus': 'MERGE_SCHEDULED'|'MERGE_FAILED'|'MERGE_SUCCESS'|'MERGE_IN_PROGRESS'|'AUTO_MERGE_SCHEDULE_FAILED'|'DELETION_SCHEDULED'|'DELETION_IN_PROGRESS'|'DELETION_FAILED'
}

Response Structure

  • (dict) --

    • sourceApiAssociationStatus (string) --

      The state of the source API association.

CreateGraphqlApi (updated) Link ¶
Changes (request, response)
Request
{'apiType': 'GRAPHQL | MERGED',
 'mergedApiExecutionRoleArn': 'string',
 'ownerContact': 'string'}
Response
{'graphqlApi': {'apiType': 'GRAPHQL | MERGED',
                'mergedApiExecutionRoleArn': 'string',
                'owner': 'string',
                'ownerContact': 'string'}}

Creates a GraphqlApi object.

See also: AWS API Documentation

Request Syntax

client.create_graphql_api(
    name='string',
    logConfig={
        'fieldLogLevel': 'NONE'|'ERROR'|'ALL',
        'cloudWatchLogsRoleArn': 'string',
        'excludeVerboseContent': True|False
    },
    authenticationType='API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
    userPoolConfig={
        'userPoolId': 'string',
        'awsRegion': 'string',
        'defaultAction': 'ALLOW'|'DENY',
        'appIdClientRegex': 'string'
    },
    openIDConnectConfig={
        'issuer': 'string',
        'clientId': 'string',
        'iatTTL': 123,
        'authTTL': 123
    },
    tags={
        'string': 'string'
    },
    additionalAuthenticationProviders=[
        {
            'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
            'openIDConnectConfig': {
                'issuer': 'string',
                'clientId': 'string',
                'iatTTL': 123,
                'authTTL': 123
            },
            'userPoolConfig': {
                'userPoolId': 'string',
                'awsRegion': 'string',
                'appIdClientRegex': 'string'
            },
            'lambdaAuthorizerConfig': {
                'authorizerResultTtlInSeconds': 123,
                'authorizerUri': 'string',
                'identityValidationExpression': 'string'
            }
        },
    ],
    xrayEnabled=True|False,
    lambdaAuthorizerConfig={
        'authorizerResultTtlInSeconds': 123,
        'authorizerUri': 'string',
        'identityValidationExpression': 'string'
    },
    visibility='GLOBAL'|'PRIVATE',
    apiType='GRAPHQL'|'MERGED',
    mergedApiExecutionRoleArn='string',
    ownerContact='string'
)
type name:

string

param name:

[REQUIRED]

A user-supplied name for the GraphqlApi.

type logConfig:

dict

param logConfig:

The Amazon CloudWatch Logs configuration.

  • fieldLogLevel (string) -- [REQUIRED]

    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.

  • cloudWatchLogsRoleArn (string) -- [REQUIRED]

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

  • excludeVerboseContent (boolean) --

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

type authenticationType:

string

param authenticationType:

[REQUIRED]

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

type userPoolConfig:

dict

param userPoolConfig:

The Amazon Cognito user pool configuration.

  • userPoolId (string) -- [REQUIRED]

    The user pool ID.

  • awsRegion (string) -- [REQUIRED]

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

  • defaultAction (string) -- [REQUIRED]

    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.

  • appIdClientRegex (string) --

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

type openIDConnectConfig:

dict

param openIDConnectConfig:

The OIDC configuration.

  • issuer (string) -- [REQUIRED]

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

  • clientId (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 (integer) --

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

  • authTTL (integer) --

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

type tags:

dict

param tags:

A TagMap object.

  • (string) --

    The key for the tag.

    • (string) --

      The value for the tag.

type additionalAuthenticationProviders:

list

param additionalAuthenticationProviders:

A list of additional authentication providers for the GraphqlApi API.

  • (dict) --

    Describes an additional authentication provider.

    • authenticationType (string) --

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

    • openIDConnectConfig (dict) --

      The OIDC configuration.

      • issuer (string) -- [REQUIRED]

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

      • clientId (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 (integer) --

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

      • authTTL (integer) --

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

    • userPoolConfig (dict) --

      The Amazon Cognito user pool configuration.

      • userPoolId (string) -- [REQUIRED]

        The user pool ID.

      • awsRegion (string) -- [REQUIRED]

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

      • appIdClientRegex (string) --

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

    • lambdaAuthorizerConfig (dict) --

      Configuration for Lambda function authorization.

      • authorizerResultTtlInSeconds (integer) --

        The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

      • authorizerUri (string) -- [REQUIRED]

        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 (string) --

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

type xrayEnabled:

boolean

param xrayEnabled:

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

type lambdaAuthorizerConfig:

dict

param lambdaAuthorizerConfig:

Configuration for Lambda function authorization.

  • authorizerResultTtlInSeconds (integer) --

    The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

  • authorizerUri (string) -- [REQUIRED]

    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 (string) --

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

type visibility:

string

param visibility:

Sets the value of the GraphQL API to public ( GLOBAL) or private ( PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

type apiType:

string

param apiType:

The value that indicates whether the GraphQL API is a standard API ( GRAPHQL) or merged API ( MERGED).

type mergedApiExecutionRoleArn:

string

param mergedApiExecutionRoleArn:

The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.

type ownerContact:

string

param ownerContact:

The owner contact information for an API resource.

This field accepts any string input with a length of 0 - 256 characters.

rtype:

dict

returns:

Response Syntax

{
    'graphqlApi': {
        'name': 'string',
        'apiId': 'string',
        'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
        'logConfig': {
            'fieldLogLevel': 'NONE'|'ERROR'|'ALL',
            'cloudWatchLogsRoleArn': 'string',
            'excludeVerboseContent': True|False
        },
        'userPoolConfig': {
            'userPoolId': 'string',
            'awsRegion': 'string',
            'defaultAction': 'ALLOW'|'DENY',
            'appIdClientRegex': 'string'
        },
        'openIDConnectConfig': {
            'issuer': 'string',
            'clientId': 'string',
            'iatTTL': 123,
            'authTTL': 123
        },
        'arn': 'string',
        'uris': {
            'string': 'string'
        },
        'tags': {
            'string': 'string'
        },
        'additionalAuthenticationProviders': [
            {
                'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
                'openIDConnectConfig': {
                    'issuer': 'string',
                    'clientId': 'string',
                    'iatTTL': 123,
                    'authTTL': 123
                },
                'userPoolConfig': {
                    'userPoolId': 'string',
                    'awsRegion': 'string',
                    'appIdClientRegex': 'string'
                },
                'lambdaAuthorizerConfig': {
                    'authorizerResultTtlInSeconds': 123,
                    'authorizerUri': 'string',
                    'identityValidationExpression': 'string'
                }
            },
        ],
        'xrayEnabled': True|False,
        'wafWebAclArn': 'string',
        'lambdaAuthorizerConfig': {
            'authorizerResultTtlInSeconds': 123,
            'authorizerUri': 'string',
            'identityValidationExpression': 'string'
        },
        'dns': {
            'string': 'string'
        },
        'visibility': 'GLOBAL'|'PRIVATE',
        'apiType': 'GRAPHQL'|'MERGED',
        'mergedApiExecutionRoleArn': 'string',
        'owner': 'string',
        'ownerContact': 'string'
    }
}

Response Structure

  • (dict) --

    • graphqlApi (dict) --

      The GraphqlApi.

      • name (string) --

        The API name.

      • apiId (string) --

        The API ID.

      • authenticationType (string) --

        The authentication type.

      • logConfig (dict) --

        The Amazon CloudWatch Logs configuration.

        • fieldLogLevel (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.

        • cloudWatchLogsRoleArn (string) --

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

        • excludeVerboseContent (boolean) --

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

      • userPoolConfig (dict) --

        The Amazon Cognito user pool configuration.

        • userPoolId (string) --

          The user pool ID.

        • awsRegion (string) --

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

        • defaultAction (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.

        • appIdClientRegex (string) --

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

      • openIDConnectConfig (dict) --

        The OpenID Connect configuration.

        • issuer (string) --

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

        • clientId (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 (integer) --

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

        • authTTL (integer) --

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

      • arn (string) --

        The Amazon Resource Name (ARN).

      • uris (dict) --

        The URIs.

        • (string) --

          • (string) --

      • tags (dict) --

        The tags.

        • (string) --

          The key for the tag.

          • (string) --

            The value for the tag.

      • additionalAuthenticationProviders (list) --

        A list of additional authentication providers for the GraphqlApi API.

        • (dict) --

          Describes an additional authentication provider.

          • authenticationType (string) --

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

          • openIDConnectConfig (dict) --

            The OIDC configuration.

            • issuer (string) --

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

            • clientId (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 (integer) --

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

            • authTTL (integer) --

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

          • userPoolConfig (dict) --

            The Amazon Cognito user pool configuration.

            • userPoolId (string) --

              The user pool ID.

            • awsRegion (string) --

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

            • appIdClientRegex (string) --

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

          • lambdaAuthorizerConfig (dict) --

            Configuration for Lambda function authorization.

            • authorizerResultTtlInSeconds (integer) --

              The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

            • authorizerUri (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 (string) --

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

      • xrayEnabled (boolean) --

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

      • wafWebAclArn (string) --

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

      • lambdaAuthorizerConfig (dict) --

        Configuration for Lambda function authorization.

        • authorizerResultTtlInSeconds (integer) --

          The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

        • authorizerUri (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 (string) --

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

      • dns (dict) --

        The DNS records for the API.

        • (string) --

          • (string) --

      • visibility (string) --

        Sets the value of the GraphQL API to public ( GLOBAL) or private ( PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

      • apiType (string) --

        The value that indicates whether the GraphQL API is a standard API ( GRAPHQL) or merged API ( MERGED).

      • mergedApiExecutionRoleArn (string) --

        The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.

      • owner (string) --

        The account owner of the GraphQL API.

      • ownerContact (string) --

        The owner contact information for an API resource.

        This field accepts any string input with a length of 0 - 256 characters.

GetGraphqlApi (updated) Link ¶
Changes (response)
{'graphqlApi': {'apiType': 'GRAPHQL | MERGED',
                'mergedApiExecutionRoleArn': 'string',
                'owner': 'string',
                'ownerContact': 'string'}}

Retrieves a GraphqlApi object.

See also: AWS API Documentation

Request Syntax

client.get_graphql_api(
    apiId='string'
)
type apiId:

string

param apiId:

[REQUIRED]

The API ID for the GraphQL API.

rtype:

dict

returns:

Response Syntax

{
    'graphqlApi': {
        'name': 'string',
        'apiId': 'string',
        'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
        'logConfig': {
            'fieldLogLevel': 'NONE'|'ERROR'|'ALL',
            'cloudWatchLogsRoleArn': 'string',
            'excludeVerboseContent': True|False
        },
        'userPoolConfig': {
            'userPoolId': 'string',
            'awsRegion': 'string',
            'defaultAction': 'ALLOW'|'DENY',
            'appIdClientRegex': 'string'
        },
        'openIDConnectConfig': {
            'issuer': 'string',
            'clientId': 'string',
            'iatTTL': 123,
            'authTTL': 123
        },
        'arn': 'string',
        'uris': {
            'string': 'string'
        },
        'tags': {
            'string': 'string'
        },
        'additionalAuthenticationProviders': [
            {
                'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
                'openIDConnectConfig': {
                    'issuer': 'string',
                    'clientId': 'string',
                    'iatTTL': 123,
                    'authTTL': 123
                },
                'userPoolConfig': {
                    'userPoolId': 'string',
                    'awsRegion': 'string',
                    'appIdClientRegex': 'string'
                },
                'lambdaAuthorizerConfig': {
                    'authorizerResultTtlInSeconds': 123,
                    'authorizerUri': 'string',
                    'identityValidationExpression': 'string'
                }
            },
        ],
        'xrayEnabled': True|False,
        'wafWebAclArn': 'string',
        'lambdaAuthorizerConfig': {
            'authorizerResultTtlInSeconds': 123,
            'authorizerUri': 'string',
            'identityValidationExpression': 'string'
        },
        'dns': {
            'string': 'string'
        },
        'visibility': 'GLOBAL'|'PRIVATE',
        'apiType': 'GRAPHQL'|'MERGED',
        'mergedApiExecutionRoleArn': 'string',
        'owner': 'string',
        'ownerContact': 'string'
    }
}

Response Structure

  • (dict) --

    • graphqlApi (dict) --

      The GraphqlApi object.

      • name (string) --

        The API name.

      • apiId (string) --

        The API ID.

      • authenticationType (string) --

        The authentication type.

      • logConfig (dict) --

        The Amazon CloudWatch Logs configuration.

        • fieldLogLevel (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.

        • cloudWatchLogsRoleArn (string) --

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

        • excludeVerboseContent (boolean) --

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

      • userPoolConfig (dict) --

        The Amazon Cognito user pool configuration.

        • userPoolId (string) --

          The user pool ID.

        • awsRegion (string) --

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

        • defaultAction (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.

        • appIdClientRegex (string) --

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

      • openIDConnectConfig (dict) --

        The OpenID Connect configuration.

        • issuer (string) --

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

        • clientId (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 (integer) --

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

        • authTTL (integer) --

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

      • arn (string) --

        The Amazon Resource Name (ARN).

      • uris (dict) --

        The URIs.

        • (string) --

          • (string) --

      • tags (dict) --

        The tags.

        • (string) --

          The key for the tag.

          • (string) --

            The value for the tag.

      • additionalAuthenticationProviders (list) --

        A list of additional authentication providers for the GraphqlApi API.

        • (dict) --

          Describes an additional authentication provider.

          • authenticationType (string) --

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

          • openIDConnectConfig (dict) --

            The OIDC configuration.

            • issuer (string) --

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

            • clientId (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 (integer) --

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

            • authTTL (integer) --

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

          • userPoolConfig (dict) --

            The Amazon Cognito user pool configuration.

            • userPoolId (string) --

              The user pool ID.

            • awsRegion (string) --

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

            • appIdClientRegex (string) --

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

          • lambdaAuthorizerConfig (dict) --

            Configuration for Lambda function authorization.

            • authorizerResultTtlInSeconds (integer) --

              The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

            • authorizerUri (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 (string) --

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

      • xrayEnabled (boolean) --

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

      • wafWebAclArn (string) --

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

      • lambdaAuthorizerConfig (dict) --

        Configuration for Lambda function authorization.

        • authorizerResultTtlInSeconds (integer) --

          The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

        • authorizerUri (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 (string) --

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

      • dns (dict) --

        The DNS records for the API.

        • (string) --

          • (string) --

      • visibility (string) --

        Sets the value of the GraphQL API to public ( GLOBAL) or private ( PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

      • apiType (string) --

        The value that indicates whether the GraphQL API is a standard API ( GRAPHQL) or merged API ( MERGED).

      • mergedApiExecutionRoleArn (string) --

        The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.

      • owner (string) --

        The account owner of the GraphQL API.

      • ownerContact (string) --

        The owner contact information for an API resource.

        This field accepts any string input with a length of 0 - 256 characters.

ListGraphqlApis (updated) Link ¶
Changes (request, response)
Request
{'apiType': 'GRAPHQL | MERGED', 'owner': 'CURRENT_ACCOUNT | OTHER_ACCOUNTS'}
Response
{'graphqlApis': {'apiType': 'GRAPHQL | MERGED',
                 'mergedApiExecutionRoleArn': 'string',
                 'owner': 'string',
                 'ownerContact': 'string'}}

Lists your GraphQL APIs.

See also: AWS API Documentation

Request Syntax

client.list_graphql_apis(
    nextToken='string',
    maxResults=123,
    apiType='GRAPHQL'|'MERGED',
    owner='CURRENT_ACCOUNT'|'OTHER_ACCOUNTS'
)
type nextToken:

string

param nextToken:

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.

type maxResults:

integer

param maxResults:

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

type apiType:

string

param apiType:

The value that indicates whether the GraphQL API is a standard API ( GRAPHQL) or merged API ( MERGED).

type owner:

string

param owner:

The account owner of the GraphQL API.

rtype:

dict

returns:

Response Syntax

{
    'graphqlApis': [
        {
            'name': 'string',
            'apiId': 'string',
            'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
            'logConfig': {
                'fieldLogLevel': 'NONE'|'ERROR'|'ALL',
                'cloudWatchLogsRoleArn': 'string',
                'excludeVerboseContent': True|False
            },
            'userPoolConfig': {
                'userPoolId': 'string',
                'awsRegion': 'string',
                'defaultAction': 'ALLOW'|'DENY',
                'appIdClientRegex': 'string'
            },
            'openIDConnectConfig': {
                'issuer': 'string',
                'clientId': 'string',
                'iatTTL': 123,
                'authTTL': 123
            },
            'arn': 'string',
            'uris': {
                'string': 'string'
            },
            'tags': {
                'string': 'string'
            },
            'additionalAuthenticationProviders': [
                {
                    'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
                    'openIDConnectConfig': {
                        'issuer': 'string',
                        'clientId': 'string',
                        'iatTTL': 123,
                        'authTTL': 123
                    },
                    'userPoolConfig': {
                        'userPoolId': 'string',
                        'awsRegion': 'string',
                        'appIdClientRegex': 'string'
                    },
                    'lambdaAuthorizerConfig': {
                        'authorizerResultTtlInSeconds': 123,
                        'authorizerUri': 'string',
                        'identityValidationExpression': 'string'
                    }
                },
            ],
            'xrayEnabled': True|False,
            'wafWebAclArn': 'string',
            'lambdaAuthorizerConfig': {
                'authorizerResultTtlInSeconds': 123,
                'authorizerUri': 'string',
                'identityValidationExpression': 'string'
            },
            'dns': {
                'string': 'string'
            },
            'visibility': 'GLOBAL'|'PRIVATE',
            'apiType': 'GRAPHQL'|'MERGED',
            'mergedApiExecutionRoleArn': 'string',
            'owner': 'string',
            'ownerContact': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • graphqlApis (list) --

      The GraphqlApi objects.

      • (dict) --

        Describes a GraphQL API.

        • name (string) --

          The API name.

        • apiId (string) --

          The API ID.

        • authenticationType (string) --

          The authentication type.

        • logConfig (dict) --

          The Amazon CloudWatch Logs configuration.

          • fieldLogLevel (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.

          • cloudWatchLogsRoleArn (string) --

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

          • excludeVerboseContent (boolean) --

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

        • userPoolConfig (dict) --

          The Amazon Cognito user pool configuration.

          • userPoolId (string) --

            The user pool ID.

          • awsRegion (string) --

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

          • defaultAction (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.

          • appIdClientRegex (string) --

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

        • openIDConnectConfig (dict) --

          The OpenID Connect configuration.

          • issuer (string) --

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

          • clientId (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 (integer) --

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

          • authTTL (integer) --

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

        • arn (string) --

          The Amazon Resource Name (ARN).

        • uris (dict) --

          The URIs.

          • (string) --

            • (string) --

        • tags (dict) --

          The tags.

          • (string) --

            The key for the tag.

            • (string) --

              The value for the tag.

        • additionalAuthenticationProviders (list) --

          A list of additional authentication providers for the GraphqlApi API.

          • (dict) --

            Describes an additional authentication provider.

            • authenticationType (string) --

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

            • openIDConnectConfig (dict) --

              The OIDC configuration.

              • issuer (string) --

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

              • clientId (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 (integer) --

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

              • authTTL (integer) --

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

            • userPoolConfig (dict) --

              The Amazon Cognito user pool configuration.

              • userPoolId (string) --

                The user pool ID.

              • awsRegion (string) --

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

              • appIdClientRegex (string) --

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

            • lambdaAuthorizerConfig (dict) --

              Configuration for Lambda function authorization.

              • authorizerResultTtlInSeconds (integer) --

                The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

              • authorizerUri (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 (string) --

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

        • xrayEnabled (boolean) --

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

        • wafWebAclArn (string) --

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

        • lambdaAuthorizerConfig (dict) --

          Configuration for Lambda function authorization.

          • authorizerResultTtlInSeconds (integer) --

            The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

          • authorizerUri (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 (string) --

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

        • dns (dict) --

          The DNS records for the API.

          • (string) --

            • (string) --

        • visibility (string) --

          Sets the value of the GraphQL API to public ( GLOBAL) or private ( PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

        • apiType (string) --

          The value that indicates whether the GraphQL API is a standard API ( GRAPHQL) or merged API ( MERGED).

        • mergedApiExecutionRoleArn (string) --

          The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.

        • owner (string) --

          The account owner of the GraphQL API.

        • ownerContact (string) --

          The owner contact information for an API resource.

          This field accepts any string input with a length of 0 - 256 characters.

    • nextToken (string) --

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

UpdateGraphqlApi (updated) Link ¶
Changes (request, response)
Request
{'mergedApiExecutionRoleArn': 'string', 'ownerContact': 'string'}
Response
{'graphqlApi': {'apiType': 'GRAPHQL | MERGED',
                'mergedApiExecutionRoleArn': 'string',
                'owner': 'string',
                'ownerContact': 'string'}}

Updates a GraphqlApi object.

See also: AWS API Documentation

Request Syntax

client.update_graphql_api(
    apiId='string',
    name='string',
    logConfig={
        'fieldLogLevel': 'NONE'|'ERROR'|'ALL',
        'cloudWatchLogsRoleArn': 'string',
        'excludeVerboseContent': True|False
    },
    authenticationType='API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
    userPoolConfig={
        'userPoolId': 'string',
        'awsRegion': 'string',
        'defaultAction': 'ALLOW'|'DENY',
        'appIdClientRegex': 'string'
    },
    openIDConnectConfig={
        'issuer': 'string',
        'clientId': 'string',
        'iatTTL': 123,
        'authTTL': 123
    },
    additionalAuthenticationProviders=[
        {
            'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
            'openIDConnectConfig': {
                'issuer': 'string',
                'clientId': 'string',
                'iatTTL': 123,
                'authTTL': 123
            },
            'userPoolConfig': {
                'userPoolId': 'string',
                'awsRegion': 'string',
                'appIdClientRegex': 'string'
            },
            'lambdaAuthorizerConfig': {
                'authorizerResultTtlInSeconds': 123,
                'authorizerUri': 'string',
                'identityValidationExpression': 'string'
            }
        },
    ],
    xrayEnabled=True|False,
    lambdaAuthorizerConfig={
        'authorizerResultTtlInSeconds': 123,
        'authorizerUri': 'string',
        'identityValidationExpression': 'string'
    },
    mergedApiExecutionRoleArn='string',
    ownerContact='string'
)
type apiId:

string

param apiId:

[REQUIRED]

The API ID.

type name:

string

param name:

[REQUIRED]

The new name for the GraphqlApi object.

type logConfig:

dict

param logConfig:

The Amazon CloudWatch Logs configuration for the GraphqlApi object.

  • fieldLogLevel (string) -- [REQUIRED]

    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.

  • cloudWatchLogsRoleArn (string) -- [REQUIRED]

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

  • excludeVerboseContent (boolean) --

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

type authenticationType:

string

param authenticationType:

The new authentication type for the GraphqlApi object.

type userPoolConfig:

dict

param userPoolConfig:

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

  • userPoolId (string) -- [REQUIRED]

    The user pool ID.

  • awsRegion (string) -- [REQUIRED]

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

  • defaultAction (string) -- [REQUIRED]

    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.

  • appIdClientRegex (string) --

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

type openIDConnectConfig:

dict

param openIDConnectConfig:

The OpenID Connect configuration for the GraphqlApi object.

  • issuer (string) -- [REQUIRED]

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

  • clientId (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 (integer) --

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

  • authTTL (integer) --

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

type additionalAuthenticationProviders:

list

param additionalAuthenticationProviders:

A list of additional authentication providers for the GraphqlApi API.

  • (dict) --

    Describes an additional authentication provider.

    • authenticationType (string) --

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

    • openIDConnectConfig (dict) --

      The OIDC configuration.

      • issuer (string) -- [REQUIRED]

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

      • clientId (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 (integer) --

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

      • authTTL (integer) --

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

    • userPoolConfig (dict) --

      The Amazon Cognito user pool configuration.

      • userPoolId (string) -- [REQUIRED]

        The user pool ID.

      • awsRegion (string) -- [REQUIRED]

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

      • appIdClientRegex (string) --

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

    • lambdaAuthorizerConfig (dict) --

      Configuration for Lambda function authorization.

      • authorizerResultTtlInSeconds (integer) --

        The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

      • authorizerUri (string) -- [REQUIRED]

        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 (string) --

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

type xrayEnabled:

boolean

param xrayEnabled:

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

type lambdaAuthorizerConfig:

dict

param lambdaAuthorizerConfig:

Configuration for Lambda function authorization.

  • authorizerResultTtlInSeconds (integer) --

    The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

  • authorizerUri (string) -- [REQUIRED]

    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 (string) --

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

type mergedApiExecutionRoleArn:

string

param mergedApiExecutionRoleArn:

The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.

type ownerContact:

string

param ownerContact:

The owner contact information for an API resource.

This field accepts any string input with a length of 0 - 256 characters.

rtype:

dict

returns:

Response Syntax

{
    'graphqlApi': {
        'name': 'string',
        'apiId': 'string',
        'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
        'logConfig': {
            'fieldLogLevel': 'NONE'|'ERROR'|'ALL',
            'cloudWatchLogsRoleArn': 'string',
            'excludeVerboseContent': True|False
        },
        'userPoolConfig': {
            'userPoolId': 'string',
            'awsRegion': 'string',
            'defaultAction': 'ALLOW'|'DENY',
            'appIdClientRegex': 'string'
        },
        'openIDConnectConfig': {
            'issuer': 'string',
            'clientId': 'string',
            'iatTTL': 123,
            'authTTL': 123
        },
        'arn': 'string',
        'uris': {
            'string': 'string'
        },
        'tags': {
            'string': 'string'
        },
        'additionalAuthenticationProviders': [
            {
                'authenticationType': 'API_KEY'|'AWS_IAM'|'AMAZON_COGNITO_USER_POOLS'|'OPENID_CONNECT'|'AWS_LAMBDA',
                'openIDConnectConfig': {
                    'issuer': 'string',
                    'clientId': 'string',
                    'iatTTL': 123,
                    'authTTL': 123
                },
                'userPoolConfig': {
                    'userPoolId': 'string',
                    'awsRegion': 'string',
                    'appIdClientRegex': 'string'
                },
                'lambdaAuthorizerConfig': {
                    'authorizerResultTtlInSeconds': 123,
                    'authorizerUri': 'string',
                    'identityValidationExpression': 'string'
                }
            },
        ],
        'xrayEnabled': True|False,
        'wafWebAclArn': 'string',
        'lambdaAuthorizerConfig': {
            'authorizerResultTtlInSeconds': 123,
            'authorizerUri': 'string',
            'identityValidationExpression': 'string'
        },
        'dns': {
            'string': 'string'
        },
        'visibility': 'GLOBAL'|'PRIVATE',
        'apiType': 'GRAPHQL'|'MERGED',
        'mergedApiExecutionRoleArn': 'string',
        'owner': 'string',
        'ownerContact': 'string'
    }
}

Response Structure

  • (dict) --

    • graphqlApi (dict) --

      The updated GraphqlApi object.

      • name (string) --

        The API name.

      • apiId (string) --

        The API ID.

      • authenticationType (string) --

        The authentication type.

      • logConfig (dict) --

        The Amazon CloudWatch Logs configuration.

        • fieldLogLevel (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.

        • cloudWatchLogsRoleArn (string) --

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

        • excludeVerboseContent (boolean) --

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

      • userPoolConfig (dict) --

        The Amazon Cognito user pool configuration.

        • userPoolId (string) --

          The user pool ID.

        • awsRegion (string) --

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

        • defaultAction (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.

        • appIdClientRegex (string) --

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

      • openIDConnectConfig (dict) --

        The OpenID Connect configuration.

        • issuer (string) --

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

        • clientId (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 (integer) --

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

        • authTTL (integer) --

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

      • arn (string) --

        The Amazon Resource Name (ARN).

      • uris (dict) --

        The URIs.

        • (string) --

          • (string) --

      • tags (dict) --

        The tags.

        • (string) --

          The key for the tag.

          • (string) --

            The value for the tag.

      • additionalAuthenticationProviders (list) --

        A list of additional authentication providers for the GraphqlApi API.

        • (dict) --

          Describes an additional authentication provider.

          • authenticationType (string) --

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

          • openIDConnectConfig (dict) --

            The OIDC configuration.

            • issuer (string) --

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

            • clientId (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 (integer) --

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

            • authTTL (integer) --

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

          • userPoolConfig (dict) --

            The Amazon Cognito user pool configuration.

            • userPoolId (string) --

              The user pool ID.

            • awsRegion (string) --

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

            • appIdClientRegex (string) --

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

          • lambdaAuthorizerConfig (dict) --

            Configuration for Lambda function authorization.

            • authorizerResultTtlInSeconds (integer) --

              The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

            • authorizerUri (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 (string) --

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

      • xrayEnabled (boolean) --

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

      • wafWebAclArn (string) --

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

      • lambdaAuthorizerConfig (dict) --

        Configuration for Lambda function authorization.

        • authorizerResultTtlInSeconds (integer) --

          The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.

        • authorizerUri (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 (string) --

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

      • dns (dict) --

        The DNS records for the API.

        • (string) --

          • (string) --

      • visibility (string) --

        Sets the value of the GraphQL API to public ( GLOBAL) or private ( PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.

      • apiType (string) --

        The value that indicates whether the GraphQL API is a standard API ( GRAPHQL) or merged API ( MERGED).

      • mergedApiExecutionRoleArn (string) --

        The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the AUTO_MERGE to update the merged API endpoint with the source API changes automatically.

      • owner (string) --

        The account owner of the GraphQL API.

      • ownerContact (string) --

        The owner contact information for an API resource.

        This field accepts any string input with a length of 0 - 256 characters.