AWS Amplify Gen 3

2026/12/01 - AWS Amplify Gen 3 - 83 new api methods

Changes  Release of AWS Amplify - reimagined service provides webapp hosting, database, and user sign-in.

ListDeploymentsForEnvironment (new) Link ¶

Returns a list of the deployments for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_deployments_for_environment(
    AppName='string',
    EnvironmentName='string',
    MaxResults=123,
    NextToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'Deployments': [
        {
            'AppName': 'string',
            'DeploymentId': 'string',
            'DeploymentArn': 'string',
            'EnvironmentName': 'string',
            'Status': 'QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'EXPIRED'|'CANCELLED',
            'SourceConfig': {
                'GitSource': {
                    'GitRef': 'string',
                    'RepositoryUrl': 'string',
                    'CommitId': 'string',
                    'CommitMessage': 'string',
                    'Author': 'string'
                },
                'ManualUploadSource': {
                    'SourceUploadId': 'string',
                    'SourceType': 'SOURCE_CODE'|'PREBUILT_ARTIFACT'
                }
            },
            'Description': 'string',
            'DomainName': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'StartedAt': datetime(2015, 1, 1),
            'EndedAt': datetime(2015, 1, 1),
            'ExpiredAt': datetime(2015, 1, 1),
            'StatusReason': 'string',
            'StatusReasonCode': 'INTERNAL_SERVICE_ERROR'|'BUILD_FAILED'|'BUILD_TIMEOUT'|'OUTPUT_DIRECTORY_NOT_FOUND'|'GIT_CLONE_FAILED'|'SOURCE_DOWNLOAD_FAILED'|'CONFIG_RETRIEVAL_FAILED'|'BINDING_RESOLUTION_FAILED'|'RESOURCE_DELETED'|'COLLAPSED'|'AT_ACCOUNT_CONCURRENCY_LIMIT'|'OTHER_DEPLOYMENT_IN_PROGRESS'|'MIGRATION_FAILED'|'BRANCH_LIMIT_EXCEEDED'|'PUBLISHABLE_KEY_LIMIT_EXCEEDED'|'ROLE_NOT_ASSUMABLE',
            'BranchName': 'string',
            'BranchArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Deployments (list) --

      The deployments.

      • (dict) --

        Summary information for a deployment.

        • AppName (string) --

          The name of the app.

        • DeploymentId (string) --

          The ID of the deployment.

        • DeploymentArn (string) --

          The Amazon Resource Name (ARN) of the deployment.

        • EnvironmentName (string) --

          The name of the environment.

        • Status (string) --

          The status of the deployment.

        • SourceConfig (dict) --

          The source configuration for the deployment.

          • GitSource (dict) --

            The Git source information.

            • GitRef (string) --

              The Git reference to deploy, such as a branch or tag.

            • RepositoryUrl (string) --

              The URL of the source repository.

            • CommitId (string) --

              The commit ID of the source.

            • CommitMessage (string) --

              The commit message of the source.

            • Author (string) --

              The author of the commit.

          • ManualUploadSource (dict) --

            The manually uploaded source information.

            • SourceUploadId (string) --

              The ID of the source upload.

            • SourceType (string) --

              The type of source, such as source code or a prebuilt artifact. If you use PREBUILT_ARTIFACT, Amplify Gen 3 uploads your source as-is; however, when you deploy your app, Amplify Gen 3 still optimizes artifacts for performance.

        • Description (string) --

          The description of the deployment.

        • DomainName (string) --

          The fully qualified domain name.

        • CreatedAt (datetime) --

          The time at which the deployment was created. The value is in ISO-8601 format.

        • StartedAt (datetime) --

          The time at which processing started. The value is in ISO-8601 format.

        • EndedAt (datetime) --

          The time at which processing ended. The value is in ISO-8601 format.

        • ExpiredAt (datetime) --

          The time at which the deployment expired. The value is in ISO-8601 format.

        • StatusReason (string) --

          The reason for the status.

        • StatusReasonCode (string) --

          A code that identifies the reason for the status.

        • BranchName (string) --

          The name of the branch that the deployment ran against.

        • BranchArn (string) --

          The Amazon Resource Name (ARN) of the branch that the deployment ran against.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

CreateNetworkConnector (new) Link ¶

Creates a network connector that provides a Gen 3 app with access to a virtual private cloud (VPC).

See also: AWS API Documentation

Request Syntax

client.create_network_connector(
    NetworkConnectorName='string',
    SubnetIds=[
        'string',
    ],
    SecurityGroupIds=[
        'string',
    ],
    NetworkConnectorRoleArn='string',
    Tags={
        'string': 'string'
    }
)
type NetworkConnectorName:

string

param NetworkConnectorName:

[REQUIRED]

The name of the network connector.

type SubnetIds:

list

param SubnetIds:

[REQUIRED]

The IDs of the subnets for the network connector. The network connector uses the virtual private cloud (VPC) that the subnets belong to.

  • (string) --

type SecurityGroupIds:

list

param SecurityGroupIds:

[REQUIRED]

The IDs of the security groups for the network connector.

  • (string) --

type NetworkConnectorRoleArn:

string

param NetworkConnectorRoleArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the IAM role for the network connector.

type Tags:

dict

param Tags:

The tags to apply to the resource.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'Status': 'CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the network connector.

TagResource (new) Link ¶

Adds tags to an Amplify resource.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    resourceArn='string',
    Tags={
        'string': 'string'
    }
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to tag.

type Tags:

dict

param Tags:

[REQUIRED]

The tags to add to the resource.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetAccessControl (new) Link ¶

Retrieves the access control configuration for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_access_control(
    AppName='string',
    EnvironmentName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

rtype:

dict

returns:

Response Syntax

{
    'AppName': 'string',
    'EnvironmentName': 'string',
    'ProviderType': 'OIDC'|'IAM_IDENTITY_CENTER',
    'Scope': 'ALL_DEPLOYMENTS'|'NON_ACTIVE_DEPLOYMENTS',
    'Rule': {
        'AnyAuthenticatedUser': {},
        'UserClaims': [
            {
                'Key': 'string',
                'Operator': 'EQUALS'|'CONTAINS'|'BEGINS_WITH'|'ENDS_WITH',
                'Value': 'string'
            },
        ]
    },
    'Status': 'ENABLING'|'ENABLED'|'ENABLE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DISABLING'|'DISABLED'|'DISABLE_FAILED',
    'StatusReason': 'string',
    'EnabledAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • AppName (string) --

      The name of the app.

    • EnvironmentName (string) --

      The name of the environment.

    • ProviderType (string) --

      The type of identity provider.

    • Scope (string) --

      The scope that the access control configuration applies to.

    • Rule (dict) --

      The rule that determines which users are granted access.

      • AnyAuthenticatedUser (dict) --

        Admits any user who signs in successfully.

      • UserClaims (list) --

        Admits users whose token claims match the specified conditions.

        • (dict) --

          A condition that a user's claims must satisfy to be granted access.

          • Key (string) --

            The name of the user claim to evaluate.

          • Operator (string) --

            The operator used to compare the claim value.

          • Value (string) --

            The value to compare the claim against.

    • Status (string) --

      The status of the access control configuration.

    • StatusReason (string) --

      The reason for the status.

    • EnabledAt (datetime) --

      The time at which access control was enabled for the environment.

    • UpdatedAt (datetime) --

      The time at which the access control configuration was last updated. The value is in ISO-8601 format.

ListApps (new) Link ¶

Returns a list of the existing Gen 3 apps.

See also: AWS API Documentation

Request Syntax

client.list_apps(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'Apps': [
        {
            'AppName': 'string',
            'AppArn': 'string',
            'SourceConfig': {
                'GitHubSource': {
                    'RepositoryUrl': 'string'
                },
                'GitLabSource': {
                    'RepositoryUrl': 'string',
                    'Owner': 'string'
                }
            },
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Apps (list) --

      The Gen 3 apps.

      • (dict) --

        Summary information for a Gen 3 app.

        • AppName (string) --

          The name of the app.

        • AppArn (string) --

          The Amazon Resource Name (ARN) of the app.

        • SourceConfig (dict) --

          The source configuration for the app.

          • GitHubSource (dict) --

            The GitHub source repository settings.

            • RepositoryUrl (string) --

              The URL of the source repository.

          • GitLabSource (dict) --

            The GitLab source repository settings.

            • RepositoryUrl (string) --

              The URL of the source repository.

            • Owner (string) --

              The owner of the repository in the Git provider.

        • CreatedAt (datetime) --

          The time at which the app was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the app was last updated. The value is in ISO-8601 format.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

PutEnvironmentVariables (new) Link ¶

Updates environment variables for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.put_environment_variables(
    AppName='string',
    EnvironmentName='string',
    EnvironmentVariables=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE',
            'Comment': 'string',
            'Scope': 'BUILD'|'RUNTIME'|'ALL'|'BACKEND'
        },
    ]
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type EnvironmentVariables:

list

param EnvironmentVariables:

[REQUIRED]

The environment variables.

  • (dict) --

    An environment variable to set.

    • Key (string) -- [REQUIRED]

      The key of the environment variable.

    • Value (string) -- [REQUIRED]

      The value of the environment variable.

    • Type (string) -- [REQUIRED]

      The type of the environment.

    • Comment (string) --

      An optional comment describing the environment variable.

    • Scope (string) --

      The scope where the environment variable is available. Valid values are BUILD, RUNTIME, BACKEND, and ALL. The default is ALL.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetDomainConnectUrl (new) Link ¶

Retrieves a signed URL you can use to configure DNS for a custom domain through a supported registrar.

See also: AWS API Documentation

Request Syntax

client.get_domain_connect_url(
    AppName='string',
    DomainName='string',
    CallbackUrl='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type DomainName:

string

param DomainName:

[REQUIRED]

The domain name.

type CallbackUrl:

string

param CallbackUrl:

The URL to return to after the registrar setup completes.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'SUPPORTED'|'UNSUPPORTED',
    'SignedRedirectUrl': 'string',
    'ProviderId': 'string',
    'ProviderDisplayName': 'string'
}

Response Structure

  • (dict) --

    • Status (string) --

      Whether one-click setup is available for the domain's registrar.

    • SignedRedirectUrl (string) --

      The signed URL that starts the registrar setup. Present only when one-click setup is available.

    • ProviderId (string) --

      The identifier of the domain's registrar.

    • ProviderDisplayName (string) --

      The display name of the domain's registrar.

GetDeployment (new) Link ¶

Retrieves a deployment for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_deployment(
    AppName='string',
    EnvironmentName='string',
    DeploymentId='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type DeploymentId:

string

param DeploymentId:

[REQUIRED]

The ID of the deployment.

rtype:

dict

returns:

Response Syntax

{
    'AppName': 'string',
    'DeploymentId': 'string',
    'DeploymentArn': 'string',
    'EnvironmentName': 'string',
    'SourceConfig': {
        'GitSource': {
            'GitRef': 'string',
            'RepositoryUrl': 'string',
            'CommitId': 'string',
            'CommitMessage': 'string',
            'Author': 'string'
        },
        'ManualUploadSource': {
            'SourceUploadId': 'string',
            'SourceType': 'SOURCE_CODE'|'PREBUILT_ARTIFACT'
        }
    },
    'Description': 'string',
    'Status': 'QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'EXPIRED'|'CANCELLED',
    'DomainName': 'string',
    'Aliases': [
        {
            'AliasName': 'string',
            'AliasArn': 'string',
            'Type': 'ENVIRONMENT'|'BRANCH'|'PULL_REQUEST',
            'Url': 'string',
            'RoutingConfig': [
                {
                    'DeploymentId': 'string',
                    'Weight': 123
                },
            ],
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'EnvironmentVariables': [
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE',
            'Comment': 'string',
            'SourceIntegrationArn': 'string',
            'Scope': 'BUILD'|'RUNTIME'|'ALL'|'BACKEND'
        },
    ],
    'CreatedAt': datetime(2015, 1, 1),
    'StartedAt': datetime(2015, 1, 1),
    'EndedAt': datetime(2015, 1, 1),
    'ExpiredAt': datetime(2015, 1, 1),
    'StatusReason': 'string',
    'StatusReasonCode': 'INTERNAL_SERVICE_ERROR'|'BUILD_FAILED'|'BUILD_TIMEOUT'|'OUTPUT_DIRECTORY_NOT_FOUND'|'GIT_CLONE_FAILED'|'SOURCE_DOWNLOAD_FAILED'|'CONFIG_RETRIEVAL_FAILED'|'BINDING_RESOLUTION_FAILED'|'RESOURCE_DELETED'|'COLLAPSED'|'AT_ACCOUNT_CONCURRENCY_LIMIT'|'OTHER_DEPLOYMENT_IN_PROGRESS'|'MIGRATION_FAILED'|'BRANCH_LIMIT_EXCEEDED'|'PUBLISHABLE_KEY_LIMIT_EXCEEDED'|'ROLE_NOT_ASSUMABLE',
    'SessionPolicy': 'string',
    'Branch': {
        'BranchName': 'string',
        'BranchArn': 'string',
        'Backend': {
            'Url': 'string',
            'PublishableKeyId': 'string'
        }
    },
    'Backend': {
        'MigrationsDirectory': 'string',
        'Auth': 'string',
        'Database': {
            'MaxBackendCapacityUnits': 123,
            'BackupRetentionDays': 123
        }
    },
    'Steps': {
        'Build': {
            'Status': 'NOT_STARTED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED',
            'StartedAt': datetime(2015, 1, 1),
            'EndedAt': datetime(2015, 1, 1)
        },
        'Migration': {
            'Status': 'NOT_STARTED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED',
            'StartedAt': datetime(2015, 1, 1),
            'EndedAt': datetime(2015, 1, 1),
            'AppliedMigrationNames': [
                'string',
            ],
            'SkippedMigrationNames': [
                'string',
            ]
        },
        'Deploy': {
            'Status': 'NOT_STARTED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED',
            'StartedAt': datetime(2015, 1, 1),
            'EndedAt': datetime(2015, 1, 1)
        }
    }
}

Response Structure

  • (dict) --

    • AppName (string) --

      The name of the app.

    • DeploymentId (string) --

      The ID of the deployment.

    • DeploymentArn (string) --

      The Amazon Resource Name (ARN) of the deployment.

    • EnvironmentName (string) --

      The name of the environment.

    • SourceConfig (dict) --

      The source configuration for the deployment.

      • GitSource (dict) --

        The Git source information.

        • GitRef (string) --

          The Git reference to deploy, such as a branch or tag.

        • RepositoryUrl (string) --

          The URL of the source repository.

        • CommitId (string) --

          The commit ID of the source.

        • CommitMessage (string) --

          The commit message of the source.

        • Author (string) --

          The author of the commit.

      • ManualUploadSource (dict) --

        The manually uploaded source information.

        • SourceUploadId (string) --

          The ID of the source upload.

        • SourceType (string) --

          The type of source, such as source code or a prebuilt artifact. If you use PREBUILT_ARTIFACT, Amplify Gen 3 uploads your source as-is; however, when you deploy your app, Amplify Gen 3 still optimizes artifacts for performance.

    • Description (string) --

      The description of the deployment.

    • Status (string) --

      The status of the deployment.

    • DomainName (string) --

      The fully qualified domain name.

    • Aliases (list) --

      The aliases.

      • (dict) --

        Summary information for an alias.

        • AliasName (string) --

          The name of the alias.

        • AliasArn (string) --

          The Amazon Resource Name (ARN) of the alias.

        • Type (string) --

          The type of the alias.

        • Url (string) --

          The URL of the alias.

        • RoutingConfig (list) --

          The traffic routing configuration.

          • (dict) --

            An entry that maps a portion of traffic to a deployment.

            • DeploymentId (string) --

              The ID of the deployment that receives the traffic.

            • Weight (integer) --

              The percentage of traffic to route to the deployment.

        • CreatedAt (datetime) --

          The time at which the alias was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the alias was last updated. The value is in ISO-8601 format.

    • EnvironmentVariables (list) --

      The environment variables.

      • (dict) --

        An environment variable for an environment.

        • Key (string) --

          The key of the environment variable.

        • Value (string) --

          The value of the environment variable. Omitted for secrets.

        • Type (string) --

          The type of the environment variable.

        • Comment (string) --

          An optional comment describing the environment variable.

        • SourceIntegrationArn (string) --

          The Amazon Resource Name (ARN) of the integration that provides this environment variable, if any.

        • Scope (string) --

          The scope where the environment variable is available.

    • CreatedAt (datetime) --

      The time at which the deployment was created. The value is in ISO-8601 format.

    • StartedAt (datetime) --

      The time at which processing started. The value is in ISO-8601 format.

    • EndedAt (datetime) --

      The time at which processing ended. The value is in ISO-8601 format.

    • ExpiredAt (datetime) --

      The time at which the deployment expired. The value is in ISO-8601 format.

    • StatusReason (string) --

      The reason for the status.

    • StatusReasonCode (string) --

      A code that identifies the reason for the status.

    • SessionPolicy (string) --

      The IAM session policy, as a JSON document, that the app's runtime was scoped to for this deployment.

    • Branch (dict) --

      The branch that the deployment ran against. Present after the deployment's branch exists.

      • BranchName (string) --

        The name of the branch.

      • BranchArn (string) --

        The Amazon Resource Name (ARN) of the branch.

      • Backend (dict) --

        The backend settings of the branch when the deployment ran.

        • Url (string) --

          The URL of the branch's backend when the deployment ran.

        • PublishableKeyId (string) --

          The ID of the publishable key that the deployment was built with. Use this ID with GetApiKey or RevokeApiKey.

    • Backend (dict) --

      The backend settings that the deployment captured when it was created. Present only when the app has a backend.

      • MigrationsDirectory (string) --

        The directory that contains the migration files, relative to the root of the source.

      • Auth (string) --

        The authentication settings that the deployment sent to its branch, as a JSON document, whether or not the deployment succeeded.

      • Database (dict) --

        The database settings that the deployment sent to its branch, whether or not the deployment succeeded.

        • MaxBackendCapacityUnits (integer) --

          The maximum number of backend capacity units that the environment's database can scale to.

        • BackupRetentionDays (integer) --

          The number of days that automated backups are kept. This is also how far back the environment's database can be restored.

    • Steps (dict) --

      The steps of the deployment. Each step that applies to the deployment is present from the time that the deployment is created.

      • Build (dict) --

        The build step.

        • Status (string) --

          The status of the step.

        • StartedAt (datetime) --

          The time at which the step started.

        • EndedAt (datetime) --

          The time at which the step ended.

      • Migration (dict) --

        The database migration step.

        • Status (string) --

          The status of the step.

        • StartedAt (datetime) --

          The time at which the step started.

        • EndedAt (datetime) --

          The time at which the step ended.

        • AppliedMigrationNames (list) --

          The names of the migrations that the step applied.

          • (string) --

        • SkippedMigrationNames (list) --

          The names of the migrations that the step skipped.

          • (string) --

      • Deploy (dict) --

        The deploy step.

        • Status (string) --

          The status of the step.

        • StartedAt (datetime) --

          The time at which the step started.

        • EndedAt (datetime) --

          The time at which the step ended.

ResetCache (new) Link ¶

Removes cached content for a deployment of an environment by cache tag.

See also: AWS API Documentation

Request Syntax

client.reset_cache(
    AppName='string',
    EnvironmentName='string',
    DeploymentId='string',
    CacheTags=[
        'string',
    ]
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type DeploymentId:

string

param DeploymentId:

[REQUIRED]

The ID of the deployment.

type CacheTags:

list

param CacheTags:

[REQUIRED]

The cache tags that identify the content to remove.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteBranch (new) Link ¶

Deletes a branch of an environment and its data. The deletion happens asynchronously. You can't delete the production branch. You can delete other branches even while deployments use them.

See also: AWS API Documentation

Request Syntax

client.delete_branch(
    AppName='string',
    EnvironmentName='string',
    BranchName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type BranchName:

string

param BranchName:

[REQUIRED]

The name of the branch to delete.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteAlias (new) Link ¶

Deletes an alias for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_alias(
    AppName='string',
    EnvironmentName='string',
    AliasName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type AliasName:

string

param AliasName:

[REQUIRED]

The name of the alias.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

ListGitConnections (new) Link ¶

Lists the GitHub and GitLab accounts that are connected to your AWS account in this Region.

See also: AWS API Documentation

Request Syntax

client.list_git_connections(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'GitConnections': [
        {
            'Provider': 'GITHUB'|'GITLAB',
            'Owner': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • GitConnections (list) --

      The connected Git provider accounts.

      • (dict) --

        A Git provider account that is connected to your AWS account.

        • Provider (string) --

          The Git provider.

        • Owner (string) --

          The account that the Git connection is for. The value depends on the provider:

          • For GitHub, this is the user or organization name.

          • For GitLab, this is the user name.

    • NextToken (string) --

      The token to use in the next request to get the next page of results. This value is absent when there are no more results.

CreateEnvironment (new) Link ¶

Creates an environment for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.create_environment(
    AppName='string',
    EnvironmentName='string',
    EnvironmentRoleArn='string',
    EnvironmentRolePermissionMode='SCOPED'|'FULL',
    SourceConfig={
        'GitSource': {
            'BranchMatchPatterns': [
                'string',
            ],
            'DeploymentTriggerEvents': [
                'PUSH'|'PULL_REQUEST'|'FORK_PULL_REQUEST',
            ]
        }
    },
    GradualRolloutConfig={
        'PresetConfig': {
            'Preset': 'ALL_AT_ONCE'|'CANARY_10_PERCENT_5_MINUTES'|'CANARY_10_PERCENT_15_MINUTES'|'CANARY_10_PERCENT_30_MINUTES'|'LINEAR_10_PERCENT_EVERY_1_MINUTE'|'LINEAR_10_PERCENT_EVERY_3_MINUTES'|'LINEAR_10_PERCENT_EVERY_10_MINUTES'
        }
    },
    Tags={
        'string': 'string'
    },
    Web={
        'EnvironmentAliasConfig': {
            'RoutingMode': 'AUTO_ROUTE_TO_LATEST'|'MANUAL'
        },
        'SkewProtectionConfig': {
            'Status': 'ENABLED'|'DISABLED',
            'CookieMaxAgeSeconds': 123
        }
    },
    NetworkConfig={
        'BuildNetworkConnectorArn': 'string',
        'ComputeNetworkConnectorArn': 'string'
    },
    Backend={
        'Auth': 'string',
        'Database': {
            'MaxBackendCapacityUnits': 123,
            'BackupRetentionDays': 123
        }
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type EnvironmentRoleArn:

string

param EnvironmentRoleArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the IAM role for the environment.

type EnvironmentRolePermissionMode:

string

param EnvironmentRolePermissionMode:

The permission mode for the environment's IAM role.

type SourceConfig:

dict

param SourceConfig:

The source configuration for the environment.

  • GitSource (dict) --

    The Git source information.

    • BranchMatchPatterns (list) -- [REQUIRED]

      The branch name patterns that trigger a deployment.

      • (string) --

    • DeploymentTriggerEvents (list) --

      The Git events that trigger a deployment.

      • (string) --

type GradualRolloutConfig:

dict

param GradualRolloutConfig:

The gradual rollout settings for the environment.

  • PresetConfig (dict) --

    The predefined gradual rollout schedule.

    • Preset (string) -- [REQUIRED]

      The predefined gradual rollout schedule to use.

type Tags:

dict

param Tags:

The tags to apply to the resource.

  • (string) --

    • (string) --

type Web:

dict

param Web:

The web hosting settings for the environment.

  • EnvironmentAliasConfig (dict) --

    The alias routing settings for the environment.

    • RoutingMode (string) --

      How the environment alias routes traffic to deployments.

  • SkewProtectionConfig (dict) --

    The version skew protection settings.

    • Status (string) --

      The status of the resource.

    • CookieMaxAgeSeconds (integer) --

      The maximum age, in seconds, of the version skew protection cookie.

type NetworkConfig:

dict

param NetworkConfig:

The VPC network configuration for the environment.

  • BuildNetworkConnectorArn (string) --

    The Amazon Resource Name (ARN) of the network connector used for VPC access during builds.

  • ComputeNetworkConnectorArn (string) --

    The Amazon Resource Name (ARN) of the network connector used for VPC access at runtime.

type Backend:

dict

param Backend:

The backend settings for the environment. You can specify this only when the app has a backend. If you omit this, the default authentication settings and the plan's default database settings are used.

  • Auth (string) --

    The authentication settings for the environment's backend, as a JSON document. A secret value must be a reference to a BACKEND-scoped environment variable, in the form ${env:NAME}. If you omit this, the default settings are used.

  • Database (dict) --

    The database settings for the environment. If you omit this, the plan's defaults are used. A value above the limit of the account's plan causes the next deployment to fail, not this request, because the plan can change between the two.

    • MaxBackendCapacityUnits (integer) --

      The maximum number of backend capacity units that the environment's database can scale to.

    • BackupRetentionDays (integer) --

      The number of days to keep automated backups. This is also how far back the environment's database can be restored.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentArn': 'string'
}

Response Structure

  • (dict) --

    • EnvironmentArn (string) --

      The Amazon Resource Name (ARN) of the environment.

RestoreBranch (new) Link ¶

Restores the data of the production branch to a point in time in a new branch of the Production environment. The production branch isn't changed, and no deployment uses the new branch. The name of the new branch is production- followed by the restore time in seconds since the epoch. The restore runs asynchronously. To connect to the new branch, call GetBranch with the returned branch ARN until it returns a DatabaseConnection. When you no longer need the branch, delete it with DeleteBranch. A request to restore to the same time as an earlier request returns the branch that the earlier request created.

See also: AWS API Documentation

Request Syntax

client.restore_branch(
    BranchArn='string',
    RestoreToTime=datetime(2015, 1, 1)
)
type BranchArn:

string

param BranchArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the production branch of the Production environment. Other branches can't be restored.

type RestoreToTime:

datetime

param RestoreToTime:

[REQUIRED]

The point in time to restore the production branch to. The time must be within the window that GetRestoreWindow returns and can't be in the future. Fractions of a second are ignored.

rtype:

dict

returns:

Response Syntax

{
    'BranchArn': 'string'
}

Response Structure

  • (dict) --

    • BranchArn (string) --

      The Amazon Resource Name (ARN) of the new branch that contains the restored data.

ListSourceUploads (new) Link ¶

Returns a list of the source uploads in the account.

See also: AWS API Documentation

Request Syntax

client.list_source_uploads(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'SourceUploads': [
        {
            'SourceUploadId': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'UploadExpiresAt': datetime(2015, 1, 1),
            'SizeInBytes': 123
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • SourceUploads (list) --

      The source uploads.

      • (dict) --

        Summary information for a source upload.

        • SourceUploadId (string) --

          The ID of the source upload.

        • CreatedAt (datetime) --

          The time at which the source upload was created. The value is in ISO-8601 format.

        • UploadExpiresAt (datetime) --

          The time at which the upload expires. The value is in ISO-8601 format.

        • SizeInBytes (integer) --

          The size of the source upload, in bytes.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

DeleteEnvironmentVariables (new) Link ¶

Deletes environment variables for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_environment_variables(
    AppName='string',
    EnvironmentName='string',
    Keys=[
        'string',
    ]
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type Keys:

list

param Keys:

[REQUIRED]

The keys of the environment variables to delete.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetNetworkConnector (new) Link ¶

Retrieves a network connector.

See also: AWS API Documentation

Request Syntax

client.get_network_connector(
    NetworkConnectorName='string'
)
type NetworkConnectorName:

string

param NetworkConnectorName:

[REQUIRED]

The name of the network connector.

rtype:

dict

returns:

Response Syntax

{
    'NetworkConnectorName': 'string',
    'NetworkConnectorArn': 'string',
    'SubnetIds': [
        'string',
    ],
    'SecurityGroupIds': [
        'string',
    ],
    'NetworkConnectorRoleArn': 'string',
    'Status': 'CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED',
    'StatusReason': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • NetworkConnectorName (string) --

      The name of the network connector.

    • NetworkConnectorArn (string) --

      The Amazon Resource Name (ARN) of the network connector.

    • SubnetIds (list) --

      The IDs of the subnets.

      • (string) --

    • SecurityGroupIds (list) --

      The IDs of the security groups.

      • (string) --

    • NetworkConnectorRoleArn (string) --

      The Amazon Resource Name (ARN) of the IAM role for the network connector.

    • Status (string) --

      The status of the network connector.

    • StatusReason (string) --

      The reason for the status.

    • CreatedAt (datetime) --

      The time at which the network connector was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the network connector was last updated. The value is in ISO-8601 format.

DeleteIdentityProviderConfig (new) Link ¶

Deletes the identity provider configuration for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_identity_provider_config(
    AppName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteEnvironment (new) Link ¶

Deletes an environment for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_environment(
    AppName='string',
    EnvironmentName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

StartCacheRevalidation (new) Link ¶

Revalidates cached content for a deployment of an environment by cache tag.

See also: AWS API Documentation

Request Syntax

client.start_cache_revalidation(
    AppName='string',
    EnvironmentName='string',
    DeploymentId='string',
    CacheTags=[
        'string',
    ],
    ExpirationPeriodSeconds=123
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type DeploymentId:

string

param DeploymentId:

[REQUIRED]

The ID of the deployment.

type CacheTags:

list

param CacheTags:

[REQUIRED]

The cache tags that identify the content to revalidate.

  • (string) --

type ExpirationPeriodSeconds:

integer

param ExpirationPeriodSeconds:

The period, in seconds, after which the revalidated content expires.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

ListEnvironments (new) Link ¶

Returns a list of the environments for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_environments(
    AppName='string',
    NextToken='string',
    MaxResults=123
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

rtype:

dict

returns:

Response Syntax

{
    'Environments': [
        {
            'AppName': 'string',
            'EnvironmentName': 'string',
            'EnvironmentArn': 'string',
            'Type': 'PRODUCTION'|'PREVIEW'|'CUSTOM',
            'SourceConfig': {
                'GitSource': {
                    'BranchMatchPatterns': [
                        'string',
                    ],
                    'DeploymentTriggerEvents': [
                        'PUSH'|'PULL_REQUEST'|'FORK_PULL_REQUEST',
                    ]
                }
            },
            'WafLogConfigs': [
                {
                    'CloudWatchLogsConfig': {
                        'Status': 'ENABLED'|'DISABLED',
                        'SamplingRate': 123,
                        'Scope': 'ALL_REQUESTS'|'BLOCKED_ONLY',
                        'LogGroupArn': 'string'
                    },
                    'S3Config': {
                        'Status': 'ENABLED'|'DISABLED',
                        'SamplingRate': 123,
                        'Scope': 'ALL_REQUESTS'|'BLOCKED_ONLY',
                        'BucketArn': 'string'
                    }
                },
            ],
            'Web': {
                'AccessLogConfig': {
                    'CloudWatchLogsConfig': {
                        'Status': 'ENABLED'|'DISABLED',
                        'SamplingRate': 123,
                        'LogGroupArn': 'string'
                    },
                    'S3Config': {
                        'Status': 'ENABLED'|'DISABLED',
                        'SamplingRate': 123,
                        'BucketArn': 'string'
                    }
                }
            },
            'Backend': {
                'DatabaseLogConfig': {
                    'CloudWatchLogsConfig': {
                        'Status': 'ENABLED'|'DISABLED',
                        'SamplingRate': 123,
                        'LogGroupArn': 'string'
                    },
                    'S3Config': {
                        'Status': 'ENABLED'|'DISABLED',
                        'SamplingRate': 123,
                        'BucketArn': 'string'
                    }
                }
            },
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Environments (list) --

      The environments.

      • (dict) --

        Summary information for an environment.

        • AppName (string) --

          The name of the app.

        • EnvironmentName (string) --

          The name of the environment.

        • EnvironmentArn (string) --

          The Amazon Resource Name (ARN) of the environment.

        • Type (string) --

          The type of the environment.

        • SourceConfig (dict) --

          The source configuration for the environment.

          • GitSource (dict) --

            The Git source information.

            • BranchMatchPatterns (list) --

              The branch name patterns that trigger a deployment.

              • (string) --

            • DeploymentTriggerEvents (list) --

              The Git events that trigger a deployment.

              • (string) --

        • WafLogConfigs (list) --

          A list of the environment's AWS WAF log configurations. Omitted when the environment has no WAF log configuration.

          • (dict) --

            The AWS WAF log delivery settings for an environment.

            • CloudWatchLogsConfig (dict) --

              The Amazon CloudWatch Logs delivery settings.

              • Status (string) --

                The status of the resource.

              • SamplingRate (integer) --

                The percentage of requests to log.

              • Scope (string) --

                The scope that the setting applies to.

              • LogGroupArn (string) --

                The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group.

            • S3Config (dict) --

              The Amazon S3 delivery settings.

              • Status (string) --

                The status of the resource.

              • SamplingRate (integer) --

                The percentage of requests to log.

              • Scope (string) --

                The scope that the setting applies to.

              • BucketArn (string) --

                The Amazon Resource Name (ARN) of the Amazon S3 bucket.

        • Web (dict) --

          The web hosting settings for the environment.

          • AccessLogConfig (dict) --

            The access log delivery settings.

            • CloudWatchLogsConfig (dict) --

              The Amazon CloudWatch Logs delivery settings.

              • Status (string) --

                The status of the resource.

              • SamplingRate (integer) --

                The percentage of requests to log.

              • LogGroupArn (string) --

                The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group.

            • S3Config (dict) --

              The Amazon S3 delivery settings.

              • Status (string) --

                The status of the resource.

              • SamplingRate (integer) --

                The percentage of requests to log.

              • BucketArn (string) --

                The Amazon Resource Name (ARN) of the Amazon S3 bucket.

        • Backend (dict) --

          The backend log settings for the environment. Present only when the app has a backend.

          • DatabaseLogConfig (dict) --

            The delivery settings for the environment's database logs.

            • CloudWatchLogsConfig (dict) --

              The Amazon CloudWatch Logs delivery settings.

              • Status (string) --

                Specifies whether database logs are delivered to CloudWatch Logs.

              • SamplingRate (integer) --

                The percentage of database log lines that are delivered to CloudWatch Logs, from 0 to 100. Absent when no rate is stored, in which case 100% of the lines are delivered.

              • LogGroupArn (string) --

                The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group that receives the database logs. Present while delivery is ENABLED.

            • S3Config (dict) --

              The Amazon S3 delivery settings.

              • Status (string) --

                Specifies whether database logs are delivered to Amazon S3.

              • SamplingRate (integer) --

                The percentage of database log lines that are delivered to Amazon S3, from 0 to 100. Absent when no rate is stored, in which case 100% of the lines are delivered.

              • BucketArn (string) --

                The Amazon Resource Name (ARN) of the S3 bucket that receives the database logs. The bucket is kept while delivery is DISABLED.

        • CreatedAt (datetime) --

          The time at which the environment was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the environment was last updated. The value is in ISO-8601 format.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

DeleteApp (new) Link ¶

Deletes a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_app(
    AppName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateEnvironment (new) Link ¶

Updates an environment for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.update_environment(
    AppName='string',
    EnvironmentName='string',
    EnvironmentRoleArn='string',
    EnvironmentRolePermissionMode='SCOPED'|'FULL',
    SourceConfig={
        'GitSource': {
            'BranchMatchPatterns': [
                'string',
            ],
            'DeploymentTriggerEvents': [
                'PUSH'|'PULL_REQUEST'|'FORK_PULL_REQUEST',
            ]
        },
        'NoSource': {}

    },
    WafLogConfigs=[
        {
            'CloudWatchLogsConfig': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'Scope': 'ALL_REQUESTS'|'BLOCKED_ONLY'
            },
            'S3Config': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'Scope': 'ALL_REQUESTS'|'BLOCKED_ONLY',
                'BucketArn': 'string'
            }
        },
    ],
    GradualRolloutConfig={
        'PresetConfig': {
            'Preset': 'ALL_AT_ONCE'|'CANARY_10_PERCENT_5_MINUTES'|'CANARY_10_PERCENT_15_MINUTES'|'CANARY_10_PERCENT_30_MINUTES'|'LINEAR_10_PERCENT_EVERY_1_MINUTE'|'LINEAR_10_PERCENT_EVERY_3_MINUTES'|'LINEAR_10_PERCENT_EVERY_10_MINUTES'
        }
    },
    Web={
        'AccessLogConfig': {
            'CloudWatchLogsConfig': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123
            },
            'S3Config': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'BucketArn': 'string'
            }
        },
        'EnvironmentAliasConfig': {
            'RoutingMode': 'AUTO_ROUTE_TO_LATEST'|'MANUAL'
        },
        'SkewProtectionConfig': {
            'Status': 'ENABLED'|'DISABLED',
            'CookieMaxAgeSeconds': 123
        }
    },
    Backend={
        'Auth': 'string',
        'Database': {
            'MaxBackendCapacityUnits': 123,
            'BackupRetentionDays': 123
        },
        'DatabaseLogConfig': {
            'CloudWatchLogsConfig': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123
            },
            'S3Config': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'BucketArn': 'string'
            }
        }
    },
    NetworkConfig={
        'BuildNetworkConnectorArn': 'string',
        'ComputeNetworkConnectorArn': 'string'
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type EnvironmentRoleArn:

string

param EnvironmentRoleArn:

The Amazon Resource Name (ARN) of the IAM role for the environment.

type EnvironmentRolePermissionMode:

string

param EnvironmentRolePermissionMode:

The permission mode for the environment's IAM role.

type SourceConfig:

dict

param SourceConfig:

The source configuration for the environment.

  • GitSource (dict) --

    The Git source information.

    • BranchMatchPatterns (list) -- [REQUIRED]

      The branch name patterns that trigger a deployment.

      • (string) --

    • DeploymentTriggerEvents (list) --

      The Git events that trigger a deployment.

      • (string) --

  • NoSource (dict) --

    Removes the configured source repository.

type WafLogConfigs:

list

param WafLogConfigs:

A list of the environment's AWS WAF log configurations.

  • (dict) --

    The AWS WAF log delivery settings to apply to an environment.

    • CloudWatchLogsConfig (dict) --

      The Amazon CloudWatch Logs delivery settings.

      • Status (string) -- [REQUIRED]

        The status of the resource.

      • SamplingRate (integer) --

        The percentage of requests to log.

      • Scope (string) --

        The scope that the setting applies to.

    • S3Config (dict) --

      The Amazon S3 delivery settings.

      • Status (string) -- [REQUIRED]

        The status of the resource.

      • SamplingRate (integer) --

        The percentage of requests to log.

      • Scope (string) --

        The scope that the setting applies to.

      • BucketArn (string) --

        The Amazon Resource Name (ARN) of the Amazon S3 bucket. If you specify a different bucket while S3 delivery is enabled, delivery moves to that bucket. Logs written during the move may be lost.

type GradualRolloutConfig:

dict

param GradualRolloutConfig:

The gradual rollout settings.

  • PresetConfig (dict) --

    The predefined gradual rollout schedule.

    • Preset (string) -- [REQUIRED]

      The predefined gradual rollout schedule to use.

type Web:

dict

param Web:

The web hosting settings for the environment.

  • AccessLogConfig (dict) --

    The access log delivery settings.

    • CloudWatchLogsConfig (dict) --

      The Amazon CloudWatch Logs delivery settings.

      • Status (string) -- [REQUIRED]

        The status of the resource.

      • SamplingRate (integer) --

        The percentage of requests to log.

    • S3Config (dict) --

      The Amazon S3 delivery settings.

      • Status (string) -- [REQUIRED]

        The status of the resource.

      • SamplingRate (integer) --

        The percentage of requests to log.

      • BucketArn (string) --

        The Amazon Resource Name (ARN) of the Amazon S3 bucket. If you specify a different bucket while S3 delivery is enabled, delivery moves to that bucket. Logs written during the move may be lost.

  • EnvironmentAliasConfig (dict) --

    The alias routing settings for the environment.

    • RoutingMode (string) --

      How the environment alias routes traffic to deployments.

  • SkewProtectionConfig (dict) --

    The version skew protection settings.

    • Status (string) --

      The status of the resource.

    • CookieMaxAgeSeconds (integer) --

      The maximum age, in seconds, of the version skew protection cookie.

type Backend:

dict

param Backend:

The backend settings for the environment. You can specify Auth and Database only when the app has a backend. An app without a backend can specify this only to turn off backend log delivery. If you omit a member, that setting is unchanged.

  • Auth (string) --

    The authentication settings for the environment's backend, as a JSON document. If you omit this, the stored settings are unchanged. Specify an empty JSON object ({}) to reset the settings to the defaults.

  • Database (dict) --

    The database settings for the environment. If you omit this, the stored settings are unchanged. If you specify this, it replaces the stored settings, so a member that you omit uses the plan's default. A value above the limit of the account's plan causes the next deployment to fail, not this request, because the plan can change between the two.

    • MaxBackendCapacityUnits (integer) --

      The maximum number of backend capacity units that the environment's database can scale to.

    • BackupRetentionDays (integer) --

      The number of days to keep automated backups. This is also how far back the environment's database can be restored.

  • DatabaseLogConfig (dict) --

    The delivery settings for the environment's database logs. If you omit this, the stored settings are unchanged. You can specify this only when the app has a backend, unless the request only turns off delivery destinations.

    • CloudWatchLogsConfig (dict) --

      The Amazon CloudWatch Logs delivery settings.

      • Status (string) -- [REQUIRED]

        Specifies whether to deliver database logs to CloudWatch Logs.

      • SamplingRate (integer) --

        The percentage of database log lines to deliver to CloudWatch Logs. When Status is ENABLED, specify a value from 1 to 100. When Status is DISABLED, omit this or specify 0. If you omit this, the stored rate is used, or 100 if no rate is stored.

    • S3Config (dict) --

      The Amazon S3 delivery settings.

      • Status (string) -- [REQUIRED]

        Specifies whether to deliver database logs to Amazon S3.

      • SamplingRate (integer) --

        The percentage of database log lines to deliver to Amazon S3. When Status is ENABLED, specify a value from 1 to 100. When Status is DISABLED, omit this or specify 0. If you omit this, the stored rate is used, or 100 if no rate is stored.

      • BucketArn (string) --

        The Amazon Resource Name (ARN) of the S3 bucket to deliver the database logs to. Required when Status is ENABLED, unless a bucket is already stored. If you omit this, the stored bucket is used. If you specify a different bucket, delivery moves to that bucket.

type NetworkConfig:

dict

param NetworkConfig:

The VPC network configuration for the environment.

  • BuildNetworkConnectorArn (string) --

    The Amazon Resource Name (ARN) of the network connector used for VPC access during builds. Set an empty value to remove it.

  • ComputeNetworkConnectorArn (string) --

    The Amazon Resource Name (ARN) of the network connector used for VPC access at runtime. Set an empty value to remove it.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

RevokeApiKey (new) Link ¶

Revokes an API key for a branch. A revoked key has a status of INACTIVE and is rejected. You can't reactivate a revoked key, and Amplify doesn't create a replacement key. Revoking a key that is already revoked succeeds and leaves the key INACTIVE.

See also: AWS API Documentation

Request Syntax

client.revoke_api_key(
    BranchArn='string',
    ApiKeyId='string'
)
type BranchArn:

string

param BranchArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the branch that the API key belongs to.

type ApiKeyId:

string

param ApiKeyId:

[REQUIRED]

The ID of the API key to revoke.

rtype:

dict

returns:

Response Syntax

{
    'ApiKeyId': 'string',
    'Status': 'ACTIVE'|'INACTIVE'
}

Response Structure

  • (dict) --

    • ApiKeyId (string) --

      The ID of the API key that was revoked.

    • Status (string) --

      The status of the API key after the request. The status is always INACTIVE.

DeleteSourceUpload (new) Link ¶

Deletes a source upload.

See also: AWS API Documentation

Request Syntax

client.delete_source_upload(
    SourceUploadId='string'
)
type SourceUploadId:

string

param SourceUploadId:

[REQUIRED]

The ID of the source upload.

returns:

None

EnableAccessControl (new) Link ¶

Enables access control for an environment of a Gen 3 app so that only authorized users can access it.

See also: AWS API Documentation

Request Syntax

client.enable_access_control(
    AppName='string',
    EnvironmentName='string',
    Scope='ALL_DEPLOYMENTS'|'NON_ACTIVE_DEPLOYMENTS',
    Rule={
        'AnyAuthenticatedUser': {}
        ,
        'UserClaims': [
            {
                'Key': 'string',
                'Operator': 'EQUALS'|'CONTAINS'|'BEGINS_WITH'|'ENDS_WITH',
                'Value': 'string'
            },
        ]
    },
    ClientToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type Scope:

string

param Scope:

The scope that the access control configuration applies to.

type Rule:

dict

param Rule:

The rule that determines which users are granted access.

  • AnyAuthenticatedUser (dict) --

    Admits any user who signs in successfully.

  • UserClaims (list) --

    Admits users whose token claims match the specified conditions.

    • (dict) --

      A condition that a user's claims must satisfy to be granted access.

      • Key (string) -- [REQUIRED]

        The name of the user claim to evaluate.

      • Operator (string) --

        The operator used to compare the claim value.

      • Value (string) -- [REQUIRED]

        The value to compare the claim against.

type ClientToken:

string

param ClientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'ENABLING'|'ENABLED'|'ENABLE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DISABLING'|'DISABLED'|'DISABLE_FAILED',
    'StatusReason': 'string'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the access control configuration.

    • StatusReason (string) --

      The reason for the status.

ListApiKeys (new) Link ¶

Returns a list of the API keys for a branch. The response includes only the metadata for each key, not the key value. To get the value of a key, use GetApiKey.

See also: AWS API Documentation

Request Syntax

client.list_api_keys(
    BranchArn='string',
    Status='ACTIVE'|'INACTIVE',
    MaxResults=123,
    NextToken='string'
)
type BranchArn:

string

param BranchArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the branch to list the API keys for.

type Status:

string

param Status:

The status to filter by. If you specify a status, the response includes only the keys that have that status. If you omit this, the response includes keys in every status.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'ApiKeys': [
        {
            'ApiKeyId': 'string',
            'Status': 'ACTIVE'|'INACTIVE',
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ApiKeys (list) --

      The API keys for the branch. Each item includes the key's metadata, not its value.

      • (dict) --

        Summary information about an API key. The summary doesn't include the key value.

        • ApiKeyId (string) --

          The ID of the API key.

        • Status (string) --

          The status of the API key.

        • CreatedAt (datetime) --

          The time at which the API key was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the API key was last updated. The value is in ISO-8601 format. For a key that was never updated, this is the same as the creation time.

    • NextToken (string) --

      The pagination token to use to retrieve the next page of results. This value is null when there are no more results to return.

GetRestoreWindow (new) Link ¶

Returns the point-in-time restore window for the production branch. The window is the range of times that you can specify in a RestoreBranch request. The latest restorable time advances continuously. If no restore window is available yet, for example because the production branch has no completed deployment, the response omits both times.

See also: AWS API Documentation

Request Syntax

client.get_restore_window(
    BranchArn='string'
)
type BranchArn:

string

param BranchArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the production branch of the Production environment. Other branches can't be restored.

rtype:

dict

returns:

Response Syntax

{
    'EarliestRestorableTime': datetime(2015, 1, 1),
    'LatestRestorableTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • EarliestRestorableTime (datetime) --

      The earliest time that you can restore the production branch to. Absent when no restore window is available yet.

    • LatestRestorableTime (datetime) --

      The latest time that you can restore the production branch to. Absent when no restore window is available yet.

ListEnvironmentVariables (new) Link ¶

Returns a list of the environment variables for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_environment_variables(
    AppName='string',
    EnvironmentName='string',
    MaxResults=123,
    NextToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentVariables': [
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE',
            'Comment': 'string',
            'SourceIntegrationArn': 'string',
            'Scope': 'BUILD'|'RUNTIME'|'ALL'|'BACKEND'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • EnvironmentVariables (list) --

      The environment variables.

      • (dict) --

        An environment variable for an environment.

        • Key (string) --

          The key of the environment variable.

        • Value (string) --

          The value of the environment variable. Omitted for secrets.

        • Type (string) --

          The type of the environment variable.

        • Comment (string) --

          An optional comment describing the environment variable.

        • SourceIntegrationArn (string) --

          The Amazon Resource Name (ARN) of the integration that provides this environment variable, if any.

        • Scope (string) --

          The scope where the environment variable is available.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

GetApiKey (new) Link ¶

Returns an API key for a branch, including the key value. The key value is a credential. Store it securely and don't log it.

See also: AWS API Documentation

Request Syntax

client.get_api_key(
    BranchArn='string',
    ApiKeyId='string'
)
type BranchArn:

string

param BranchArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the branch that the API key belongs to.

type ApiKeyId:

string

param ApiKeyId:

[REQUIRED]

The ID of the API key to return.

rtype:

dict

returns:

Response Syntax

{
    'ApiKey': 'string',
    'ApiKeyId': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'Status': 'ACTIVE'|'INACTIVE',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • ApiKey (string) --

      The value of the API key. The key value is a credential. Store it securely and don't log it.

    • ApiKeyId (string) --

      The ID of the API key. Use the ID to identify the key when you list or revoke keys.

    • CreatedAt (datetime) --

      The time at which the API key was created. The value is in ISO-8601 format.

    • Status (string) --

      The status of the API key.

    • UpdatedAt (datetime) --

      The time at which the API key was last updated. The value is in ISO-8601 format. For a key that was never updated, this is the same as the creation time.

GetSourceUpload (new) Link ¶

Retrieves a source upload.

See also: AWS API Documentation

Request Syntax

client.get_source_upload(
    SourceUploadId='string'
)
type SourceUploadId:

string

param SourceUploadId:

[REQUIRED]

The ID of the source upload.

rtype:

dict

returns:

Response Syntax

{
    'SourceUploadId': 'string',
    'ZipUpload': {
        'Digest': 'string',
        'UploadUrl': 'string',
        'UrlExpiresAt': datetime(2015, 1, 1)
    },
    'CreatedAt': datetime(2015, 1, 1),
    'UploadExpiresAt': datetime(2015, 1, 1),
    'SizeInBytes': 123
}

Response Structure

  • (dict) --

    • SourceUploadId (string) --

      The ID of the source upload.

    • ZipUpload (dict) --

      The .zip file upload information.

      • Digest (string) --

        The digest of the uploaded .zip file.

      • UploadUrl (string) --

        The presigned URL to upload the .zip file to.

      • UrlExpiresAt (datetime) --

        The time at which the URL expires. The value is in ISO-8601 format.

    • CreatedAt (datetime) --

      The time at which the source upload was created. The value is in ISO-8601 format.

    • UploadExpiresAt (datetime) --

      The time at which the upload expires. The value is in ISO-8601 format.

    • SizeInBytes (integer) --

      The size of the source upload, in bytes.

ListDomainAssociationsForAccount (new) Link ¶

Returns a list of the domain associations for all Gen 3 apps in the account.

See also: AWS API Documentation

Request Syntax

client.list_domain_associations_for_account(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'DomainAssociations': [
        {
            'DomainName': 'string',
            'AppName': 'string',
            'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
            'Routing': {
                'alias': {
                    'AliasArn': 'string'
                },
                'redirect': {
                    'TargetUrl': 'string',
                    'StatusCode': 'HTTP_301'|'HTTP_302'|'HTTP_307'|'HTTP_308'
                }
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DomainAssociations (list) --

      The domain associations.

      • (dict) --

        Summary information for a domain association, including the app it belongs to.

        • DomainName (string) --

          The fully qualified domain name.

        • AppName (string) --

          The name of the app.

        • DomainStatus (string) --

          The status of the domain association.

        • Routing (dict) --

          The routing configuration for the domain.

          • alias (dict) --

            Routes traffic for the domain to an alias.

            • AliasArn (string) --

              The Amazon Resource Name (ARN) of the alias.

          • redirect (dict) --

            Redirects traffic for the domain to another URL.

            • TargetUrl (string) --

              The URL to redirect requests to.

            • StatusCode (string) --

              The HTTP status code to return for the redirect.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

ListRepositories (new) Link ¶

Lists the repositories that a Git connection can access. For GitHub, these are the repositories that you granted to the app installation. For GitLab, these are the projects that you're a member of, with the most recently active first. The AWS Management Console uses this operation to show the repositories that you can choose from when you create an app.

See also: AWS API Documentation

Request Syntax

client.list_repositories(
    Provider='GITHUB'|'GITLAB',
    Owner='string',
    MaxResults=123,
    NextToken='string'
)
type Provider:

string

param Provider:

[REQUIRED]

The Git provider.

type Owner:

string

param Owner:

[REQUIRED]

The account that the Git connection is for. The value depends on the provider:

  • For GitHub, specify the user or organization name.

  • For GitLab, specify the user name.

To get this value, call ListGitConnections.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'Repositories': [
        {
            'Provider': 'GITHUB'|'GITLAB',
            'Owner': 'string',
            'Name': 'string',
            'DefaultBranch': 'string',
            'RepositoryPath': 'string',
            'UpdatedAt': datetime(2015, 1, 1),
            'CloneUrl': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Repositories (list) --

      The repositories that the connection can access.

      • (dict) --

        A repository that a Git connection can access.

        • Provider (string) --

          The Git provider.

        • Owner (string) --

          The account that the Git connection is for. The value depends on the provider:

          • For GitHub, this is the user or organization name.

          • For GitLab, this is the user name.

        • Name (string) --

          The name of the repository.

        • DefaultBranch (string) --

          The repository's default branch, such as main.

        • RepositoryPath (string) --

          The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app.

        • UpdatedAt (datetime) --

          The time when the repository last changed in the Git provider.

        • CloneUrl (string) --

          The HTTPS URL for cloning the repository with Git.

    • NextToken (string) --

      The token to use in the next request to get the next page of results. This value is absent when there are no more results.

ListBranches (new) Link ¶

Returns a list of the branches for an environment.

See also: AWS API Documentation

Request Syntax

client.list_branches(
    AppName='string',
    EnvironmentName='string',
    NextToken='string',
    MaxResults=123
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

rtype:

dict

returns:

Response Syntax

{
    'Branches': [
        {
            'BranchName': 'string',
            'BranchArn': 'string',
            'GitBranchName': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'SourceBranch': {
                'BranchName': 'string',
                'BranchArn': 'string',
                'RestoreToTime': datetime(2015, 1, 1)
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Branches (list) --

      The branches for the environment.

      • (dict) --

        Summary information about a branch.

        • BranchName (string) --

          The name of the branch.

        • BranchArn (string) --

          The Amazon Resource Name (ARN) of the branch.

        • GitBranchName (string) --

          The name of the Git branch that the branch was created for. Present only for a branch that was created for a Git branch.

        • CreatedAt (datetime) --

          The time at which the branch was created. The value is in ISO-8601 format.

        • SourceBranch (dict) --

          The branch that this branch was restored from. Present only for a branch that was created by RestoreBranch.

          • BranchName (string) --

            The name of the branch that the data was restored from.

          • BranchArn (string) --

            The Amazon Resource Name (ARN) of the branch that the data was restored from.

          • RestoreToTime (datetime) --

            The point in time that the data was restored to.

    • NextToken (string) --

      The pagination token to use to retrieve the next page of results. This value is null when there are no more results to return.

ListDeploymentsForApp (new) Link ¶

Returns a list of the deployments for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_deployments_for_app(
    AppName='string',
    MaxResults=123,
    NextToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'Deployments': [
        {
            'AppName': 'string',
            'DeploymentId': 'string',
            'DeploymentArn': 'string',
            'EnvironmentName': 'string',
            'Status': 'QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'EXPIRED'|'CANCELLED',
            'SourceConfig': {
                'GitSource': {
                    'GitRef': 'string',
                    'RepositoryUrl': 'string',
                    'CommitId': 'string',
                    'CommitMessage': 'string',
                    'Author': 'string'
                },
                'ManualUploadSource': {
                    'SourceUploadId': 'string',
                    'SourceType': 'SOURCE_CODE'|'PREBUILT_ARTIFACT'
                }
            },
            'Description': 'string',
            'DomainName': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'StartedAt': datetime(2015, 1, 1),
            'EndedAt': datetime(2015, 1, 1),
            'ExpiredAt': datetime(2015, 1, 1),
            'StatusReason': 'string',
            'StatusReasonCode': 'INTERNAL_SERVICE_ERROR'|'BUILD_FAILED'|'BUILD_TIMEOUT'|'OUTPUT_DIRECTORY_NOT_FOUND'|'GIT_CLONE_FAILED'|'SOURCE_DOWNLOAD_FAILED'|'CONFIG_RETRIEVAL_FAILED'|'BINDING_RESOLUTION_FAILED'|'RESOURCE_DELETED'|'COLLAPSED'|'AT_ACCOUNT_CONCURRENCY_LIMIT'|'OTHER_DEPLOYMENT_IN_PROGRESS'|'MIGRATION_FAILED'|'BRANCH_LIMIT_EXCEEDED'|'PUBLISHABLE_KEY_LIMIT_EXCEEDED'|'ROLE_NOT_ASSUMABLE',
            'BranchName': 'string',
            'BranchArn': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Deployments (list) --

      The deployments.

      • (dict) --

        Summary information for a deployment.

        • AppName (string) --

          The name of the app.

        • DeploymentId (string) --

          The ID of the deployment.

        • DeploymentArn (string) --

          The Amazon Resource Name (ARN) of the deployment.

        • EnvironmentName (string) --

          The name of the environment.

        • Status (string) --

          The status of the deployment.

        • SourceConfig (dict) --

          The source configuration for the deployment.

          • GitSource (dict) --

            The Git source information.

            • GitRef (string) --

              The Git reference to deploy, such as a branch or tag.

            • RepositoryUrl (string) --

              The URL of the source repository.

            • CommitId (string) --

              The commit ID of the source.

            • CommitMessage (string) --

              The commit message of the source.

            • Author (string) --

              The author of the commit.

          • ManualUploadSource (dict) --

            The manually uploaded source information.

            • SourceUploadId (string) --

              The ID of the source upload.

            • SourceType (string) --

              The type of source, such as source code or a prebuilt artifact. If you use PREBUILT_ARTIFACT, Amplify Gen 3 uploads your source as-is; however, when you deploy your app, Amplify Gen 3 still optimizes artifacts for performance.

        • Description (string) --

          The description of the deployment.

        • DomainName (string) --

          The fully qualified domain name.

        • CreatedAt (datetime) --

          The time at which the deployment was created. The value is in ISO-8601 format.

        • StartedAt (datetime) --

          The time at which processing started. The value is in ISO-8601 format.

        • EndedAt (datetime) --

          The time at which processing ended. The value is in ISO-8601 format.

        • ExpiredAt (datetime) --

          The time at which the deployment expired. The value is in ISO-8601 format.

        • StatusReason (string) --

          The reason for the status.

        • StatusReasonCode (string) --

          A code that identifies the reason for the status.

        • BranchName (string) --

          The name of the branch that the deployment ran against.

        • BranchArn (string) --

          The Amazon Resource Name (ARN) of the branch that the deployment ran against.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

UpdateAccessControl (new) Link ¶

Updates the access control configuration for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.update_access_control(
    AppName='string',
    EnvironmentName='string',
    Scope='ALL_DEPLOYMENTS'|'NON_ACTIVE_DEPLOYMENTS',
    Rule={
        'AnyAuthenticatedUser': {}
        ,
        'UserClaims': [
            {
                'Key': 'string',
                'Operator': 'EQUALS'|'CONTAINS'|'BEGINS_WITH'|'ENDS_WITH',
                'Value': 'string'
            },
        ]
    },
    ClientToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type Scope:

string

param Scope:

The scope that the access control configuration applies to.

type Rule:

dict

param Rule:

The rule that determines which users are granted access.

  • AnyAuthenticatedUser (dict) --

    Admits any user who signs in successfully.

  • UserClaims (list) --

    Admits users whose token claims match the specified conditions.

    • (dict) --

      A condition that a user's claims must satisfy to be granted access.

      • Key (string) -- [REQUIRED]

        The name of the user claim to evaluate.

      • Operator (string) --

        The operator used to compare the claim value.

      • Value (string) -- [REQUIRED]

        The value to compare the claim against.

type ClientToken:

string

param ClientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'ENABLING'|'ENABLED'|'ENABLE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DISABLING'|'DISABLED'|'DISABLE_FAILED',
    'StatusReason': 'string'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the access control configuration.

    • StatusReason (string) --

      The reason for the status.

DeleteIntegrationConfiguration (new) Link ¶

Deletes an integration configuration.

See also: AWS API Documentation

Request Syntax

client.delete_integration_configuration(
    IntegrationName='string'
)
type IntegrationName:

string

param IntegrationName:

[REQUIRED]

The name of the integration.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

RotateIdentityProviderSecret (new) Link ¶

Rotates the client secret for the identity provider configuration of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.rotate_identity_provider_secret(
    AppName='string',
    ClientSecret='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type ClientSecret:

string

param ClientSecret:

[REQUIRED]

The new client secret for the identity provider.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetEnvironment (new) Link ¶

Retrieves an environment for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_environment(
    AppName='string',
    EnvironmentName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

rtype:

dict

returns:

Response Syntax

{
    'AppName': 'string',
    'EnvironmentName': 'string',
    'EnvironmentArn': 'string',
    'Type': 'PRODUCTION'|'PREVIEW'|'CUSTOM',
    'EnvironmentRoleArn': 'string',
    'EnvironmentRolePermissionMode': 'SCOPED'|'FULL',
    'SourceConfig': {
        'GitSource': {
            'BranchMatchPatterns': [
                'string',
            ],
            'DeploymentTriggerEvents': [
                'PUSH'|'PULL_REQUEST'|'FORK_PULL_REQUEST',
            ]
        }
    },
    'WafLogConfigs': [
        {
            'CloudWatchLogsConfig': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'Scope': 'ALL_REQUESTS'|'BLOCKED_ONLY',
                'LogGroupArn': 'string'
            },
            'S3Config': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'Scope': 'ALL_REQUESTS'|'BLOCKED_ONLY',
                'BucketArn': 'string'
            }
        },
    ],
    'GradualRolloutConfig': {
        'PresetConfig': {
            'Preset': 'ALL_AT_ONCE'|'CANARY_10_PERCENT_5_MINUTES'|'CANARY_10_PERCENT_15_MINUTES'|'CANARY_10_PERCENT_30_MINUTES'|'LINEAR_10_PERCENT_EVERY_1_MINUTE'|'LINEAR_10_PERCENT_EVERY_3_MINUTES'|'LINEAR_10_PERCENT_EVERY_10_MINUTES'
        }
    },
    'Web': {
        'AccessLogConfig': {
            'CloudWatchLogsConfig': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'LogGroupArn': 'string'
            },
            'S3Config': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'BucketArn': 'string'
            }
        },
        'EnvironmentAliasConfig': {
            'RoutingMode': 'AUTO_ROUTE_TO_LATEST'|'MANUAL'
        },
        'SkewProtectionConfig': {
            'Status': 'ENABLED'|'DISABLED',
            'CookieMaxAgeSeconds': 123
        }
    },
    'Backend': {
        'Auth': 'string',
        'Database': {
            'MaxBackendCapacityUnits': 123,
            'BackupRetentionDays': 123
        },
        'DatabaseLogConfig': {
            'CloudWatchLogsConfig': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'LogGroupArn': 'string'
            },
            'S3Config': {
                'Status': 'ENABLED'|'DISABLED',
                'SamplingRate': 123,
                'BucketArn': 'string'
            }
        }
    },
    'NetworkConfig': {
        'BuildNetworkConnectorArn': 'string',
        'ComputeNetworkConnectorArn': 'string'
    },
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • AppName (string) --

      The name of the app.

    • EnvironmentName (string) --

      The name of the environment.

    • EnvironmentArn (string) --

      The Amazon Resource Name (ARN) of the environment.

    • Type (string) --

      The type of the environment.

    • EnvironmentRoleArn (string) --

      The Amazon Resource Name (ARN) of the IAM role for the environment.

    • EnvironmentRolePermissionMode (string) --

      The permission mode for the environment's IAM role.

    • SourceConfig (dict) --

      The source configuration for the environment.

      • GitSource (dict) --

        The Git source information.

        • BranchMatchPatterns (list) --

          The branch name patterns that trigger a deployment.

          • (string) --

        • DeploymentTriggerEvents (list) --

          The Git events that trigger a deployment.

          • (string) --

    • WafLogConfigs (list) --

      A list of the environment's AWS WAF log configurations. Omitted when the environment has no WAF log configuration.

      • (dict) --

        The AWS WAF log delivery settings for an environment.

        • CloudWatchLogsConfig (dict) --

          The Amazon CloudWatch Logs delivery settings.

          • Status (string) --

            The status of the resource.

          • SamplingRate (integer) --

            The percentage of requests to log.

          • Scope (string) --

            The scope that the setting applies to.

          • LogGroupArn (string) --

            The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group.

        • S3Config (dict) --

          The Amazon S3 delivery settings.

          • Status (string) --

            The status of the resource.

          • SamplingRate (integer) --

            The percentage of requests to log.

          • Scope (string) --

            The scope that the setting applies to.

          • BucketArn (string) --

            The Amazon Resource Name (ARN) of the Amazon S3 bucket.

    • GradualRolloutConfig (dict) --

      The gradual rollout settings.

      • PresetConfig (dict) --

        The predefined gradual rollout schedule.

        • Preset (string) --

          The predefined gradual rollout schedule to use.

    • Web (dict) --

      The web hosting settings for the environment.

      • AccessLogConfig (dict) --

        The access log delivery settings.

        • CloudWatchLogsConfig (dict) --

          The Amazon CloudWatch Logs delivery settings.

          • Status (string) --

            The status of the resource.

          • SamplingRate (integer) --

            The percentage of requests to log.

          • LogGroupArn (string) --

            The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group.

        • S3Config (dict) --

          The Amazon S3 delivery settings.

          • Status (string) --

            The status of the resource.

          • SamplingRate (integer) --

            The percentage of requests to log.

          • BucketArn (string) --

            The Amazon Resource Name (ARN) of the Amazon S3 bucket.

      • EnvironmentAliasConfig (dict) --

        The alias routing settings for the environment.

        • RoutingMode (string) --

          How the environment alias routes traffic to deployments.

      • SkewProtectionConfig (dict) --

        The version skew protection settings.

        • Status (string) --

          The status of the resource.

        • CookieMaxAgeSeconds (integer) --

          The maximum age, in seconds, of the version skew protection cookie.

    • Backend (dict) --

      The backend settings for the environment. Database is present only when the app has a backend. Auth is present whenever it is stored.

      • Auth (string) --

        The authentication settings for the environment's backend, as a JSON document, from the most recent successful CreateEnvironment or UpdateEnvironment request. The settings take effect at the next deployment.

      • Database (dict) --

        The database settings for the environment, from the most recent successful CreateEnvironment or UpdateEnvironment request. The settings take effect at the next deployment.

        • MaxBackendCapacityUnits (integer) --

          The maximum number of backend capacity units that the environment's database can scale to.

        • BackupRetentionDays (integer) --

          The number of days that automated backups are kept. This is also how far back the environment's database can be restored.

      • DatabaseLogConfig (dict) --

        The delivery settings for the environment's database logs.

        • CloudWatchLogsConfig (dict) --

          The Amazon CloudWatch Logs delivery settings.

          • Status (string) --

            Specifies whether database logs are delivered to CloudWatch Logs.

          • SamplingRate (integer) --

            The percentage of database log lines that are delivered to CloudWatch Logs, from 0 to 100. Absent when no rate is stored, in which case 100% of the lines are delivered.

          • LogGroupArn (string) --

            The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log group that receives the database logs. Present while delivery is ENABLED.

        • S3Config (dict) --

          The Amazon S3 delivery settings.

          • Status (string) --

            Specifies whether database logs are delivered to Amazon S3.

          • SamplingRate (integer) --

            The percentage of database log lines that are delivered to Amazon S3, from 0 to 100. Absent when no rate is stored, in which case 100% of the lines are delivered.

          • BucketArn (string) --

            The Amazon Resource Name (ARN) of the S3 bucket that receives the database logs. The bucket is kept while delivery is DISABLED.

    • NetworkConfig (dict) --

      The VPC network configuration for the environment.

      • BuildNetworkConnectorArn (string) --

        The Amazon Resource Name (ARN) of the network connector used for VPC access during builds.

      • ComputeNetworkConnectorArn (string) --

        The Amazon Resource Name (ARN) of the network connector used for VPC access at runtime.

    • CreatedAt (datetime) --

      The time at which the environment was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the environment was last updated. The value is in ISO-8601 format.

CreateIntegrationConfiguration (new) Link ¶

Creates an integration configuration that makes an external resource available to app environments. Amplify Gen 3 handles IAM permissions and credential management automatically, so there are no role assumptions in your application code.

See also: AWS API Documentation

Request Syntax

client.create_integration_configuration(
    IntegrationName='string',
    IntegrationTypeId='string',
    ResourceConfiguration={
        'S3': {
            'BucketArn': 'string'
        },
        'Dsql': {
            'ClusterArn': 'string',
            'DatabaseUser': 'string'
        },
        'Bedrock': {
            'RegionName': 'string',
            'ModelId': 'string'
        },
        'Custom': {
            'ResourceArn': 'string'
        }
    },
    Tags={
        'string': 'string'
    },
    EnvironmentVariables=[
        {
            'Key': 'string',
            'KeyOverride': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE'
        },
    ]
)
type IntegrationName:

string

param IntegrationName:

[REQUIRED]

The name of the integration.

type IntegrationTypeId:

string

param IntegrationTypeId:

[REQUIRED]

The ID of the integration type.

type ResourceConfiguration:

dict

param ResourceConfiguration:

The resource configuration for the integration.

  • S3 (dict) --

    The Amazon S3 integration resource configuration.

    • BucketArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the Amazon S3 bucket.

  • Dsql (dict) --

    The Amazon Aurora DSQL integration resource configuration.

    • ClusterArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the Amazon Aurora DSQL cluster.

    • DatabaseUser (string) -- [REQUIRED]

      The database user to connect as.

  • Bedrock (dict) --

    The Amazon Bedrock integration resource configuration.

    • RegionName (string) -- [REQUIRED]

      The AWS Region of the resource.

    • ModelId (string) --

      The ID of the Amazon Bedrock model.

  • Custom (dict) --

    The custom integration resource configuration.

    • ResourceArn (string) --

      The Amazon Resource Name (ARN) of the resource.

type Tags:

dict

param Tags:

The tags to apply to the resource.

  • (string) --

    • (string) --

type EnvironmentVariables:

list

param EnvironmentVariables:

The environment variables.

  • (dict) --

    An environment variable to set for an integration.

    • Key (string) -- [REQUIRED]

      The key of the environment variable.

    • KeyOverride (string) --

      An alternate key to expose the environment variable under in your environment.

    • Value (string) --

      The value of the environment variable.

    • Type (string) --

      The type of the environment variable.

rtype:

dict

returns:

Response Syntax

{
    'IntegrationArn': 'string'
}

Response Structure

  • (dict) --

    • IntegrationArn (string) --

      The Amazon Resource Name (ARN) of the integration configuration.

ListGitBranches (new) Link ¶

Lists the branches of a repository. The AWS Management Console uses this operation to show the branches that you can choose from when you create an app.

See also: AWS API Documentation

Request Syntax

client.list_git_branches(
    Provider='GITHUB'|'GITLAB',
    Owner='string',
    RepositoryName='string',
    RepositoryPath='string',
    MaxResults=123,
    NextToken='string'
)
type Provider:

string

param Provider:

[REQUIRED]

The Git provider.

type Owner:

string

param Owner:

[REQUIRED]

The account that the Git connection is for. The value depends on the provider:

  • For GitHub, specify the user or organization name.

  • For GitLab, specify the user name.

To get this value, call ListGitConnections.

type RepositoryName:

string

param RepositoryName:

The name of the repository, which is the last segment of RepositoryPath.

type RepositoryPath:

string

param RepositoryPath:

[REQUIRED]

The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'Branches': [
        {
            'Name': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Branches (list) --

      The branches of the repository.

      • (dict) --

        A branch of a repository.

        • Name (string) --

          The name of the branch.

    • NextToken (string) --

      The token to use in the next request to get the next page of results. This value is absent when there are no more results.

PutIdentityProviderConfig (new) Link ¶

Updates the identity provider configuration for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.put_identity_provider_config(
    AppName='string',
    IdentityProviderName='string',
    IdentityProviderConfig={
        'Oidc': {
            'IssuerUrl': 'string',
            'ClientId': 'string',
            'ClientSecret': 'string',
            'TokenType': 'ID'|'ACCESS',
            'TokenValidations': [
                'string',
            ],
            'AuthorizationEndpoint': 'string',
            'TokenEndpoint': 'string',
            'GrantType': 'CODE'|'CODE_WITH_PKCE',
            'RefreshTokenStrategy': 'OFFLINE_ACCESS_SCOPE'|'NO_SCOPE',
            'AuthorizeRequestParams': {
                'string': 'string'
            },
            'TokenRequestParams': {
                'string': 'string'
            }
        },
        'IamIdentityCenter': {
            'InstanceArn': 'string',
            'GroupId': 'string'
        }
    },
    ClientToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type IdentityProviderName:

string

param IdentityProviderName:

[REQUIRED]

The name of the identity provider.

type IdentityProviderConfig:

dict

param IdentityProviderConfig:

[REQUIRED]

The identity provider configuration.

  • Oidc (dict) --

    The OpenID Connect (OIDC) settings.

    • IssuerUrl (string) -- [REQUIRED]

      The issuer URL for the OpenID Connect (OIDC) provider.

    • ClientId (string) -- [REQUIRED]

      The client ID for the identity provider.

    • ClientSecret (string) -- [REQUIRED]

      The client secret for the identity provider.

    • TokenType (string) --

      The type of token used to authorize requests.

    • TokenValidations (list) --

      The validations applied to tokens.

      • (string) --

    • AuthorizationEndpoint (string) --

      The authorization endpoint of the OpenID Connect (OIDC) provider.

    • TokenEndpoint (string) --

      The token endpoint of the OpenID Connect (OIDC) provider.

    • GrantType (string) --

      The OAuth grant type used to obtain tokens.

    • RefreshTokenStrategy (string) --

      The strategy used to obtain refresh tokens.

    • AuthorizeRequestParams (dict) --

      Additional parameters to include in the authorization request.

      • (string) --

        • (string) --

    • TokenRequestParams (dict) --

      Additional parameters to include in the token request.

      • (string) --

        • (string) --

  • IamIdentityCenter (dict) --

    The IAM Identity Center settings.

    • InstanceArn (string) --

      The Amazon Resource Name (ARN) of the IAM Identity Center instance.

    • GroupId (string) --

      The ID of the IAM Identity Center group that is granted access.

type ClientToken:

string

param ClientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'ACTIVE'|'UPDATING'|'ROLLED_BACK',
    'StatusReason': 'string'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the identity provider configuration.

    • StatusReason (string) --

      The reason for the status.

CancelGradualRollout (new) Link ¶

Cancels an in-progress gradual rollout for an alias of an environment and returns traffic to the previous deployment.

See also: AWS API Documentation

Request Syntax

client.cancel_gradual_rollout(
    AppName='string',
    EnvironmentName='string',
    AliasName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type AliasName:

string

param AliasName:

[REQUIRED]

The name of the alias.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetFolder (new) Link ¶

Lists the files and subfolders directly inside a folder of a repository branch. The AWS Management Console uses this operation when you create an app from a repository. To browse a repository in detail, use your Git provider.

See also: AWS API Documentation

Request Syntax

client.get_folder(
    Provider='GITHUB'|'GITLAB',
    Owner='string',
    RepositoryName='string',
    RepositoryPath='string',
    FolderPath='string',
    Branch='string'
)
type Provider:

string

param Provider:

[REQUIRED]

The Git provider.

type Owner:

string

param Owner:

[REQUIRED]

The account that the Git connection is for. The value depends on the provider:

  • For GitHub, specify the user or organization name.

  • For GitLab, specify the user name.

To get this value, call ListGitConnections.

type RepositoryName:

string

param RepositoryName:

The name of the repository, which is the last segment of RepositoryPath.

type RepositoryPath:

string

param RepositoryPath:

[REQUIRED]

The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

type FolderPath:

string

param FolderPath:

[REQUIRED]

The path of the folder, relative to the root of the repository, for example src/app. To list the root of the repository, use /.

type Branch:

string

param Branch:

[REQUIRED]

The name of the branch to read from.

rtype:

dict

returns:

Response Syntax

{
    'FolderPath': 'string',
    'SubFolders': [
        {
            'AbsolutePath': 'string',
            'RelativePath': 'string'
        },
    ],
    'Files': [
        {
            'AbsolutePath': 'string',
            'RelativePath': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • FolderPath (string) --

      The path of the folder that was listed.

    • SubFolders (list) --

      The folders directly inside the folder.

      • (dict) --

        A folder in a repository.

        • AbsolutePath (string) --

          The path from the root of the repository, for example src/app.

        • RelativePath (string) --

          The name relative to the folder that was listed, for example app.

    • Files (list) --

      The files directly inside the folder.

      • (dict) --

        A file in a repository.

        • AbsolutePath (string) --

          The path from the root of the repository, for example src/app/index.ts.

        • RelativePath (string) --

          The name relative to the folder that was listed, for example index.ts.

UpdateNetworkConnector (new) Link ¶

Updates a network connector.

See also: AWS API Documentation

Request Syntax

client.update_network_connector(
    NetworkConnectorName='string',
    SubnetIds=[
        'string',
    ],
    SecurityGroupIds=[
        'string',
    ],
    NetworkConnectorRoleArn='string'
)
type NetworkConnectorName:

string

param NetworkConnectorName:

[REQUIRED]

The name of the network connector.

type SubnetIds:

list

param SubnetIds:

The IDs of the subnets.

  • (string) --

type SecurityGroupIds:

list

param SecurityGroupIds:

The IDs of the security groups.

  • (string) --

type NetworkConnectorRoleArn:

string

param NetworkConnectorRoleArn:

The Amazon Resource Name (ARN) of the IAM role for the network connector.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the network connector.

GetDomainAssociation (new) Link ¶

Retrieves a domain association for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_domain_association(
    AppName='string',
    DomainName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type DomainName:

string

param DomainName:

[REQUIRED]

The fully qualified domain name.

rtype:

dict

returns:

Response Syntax

{
    'DomainAssociationArn': 'string',
    'DomainName': 'string',
    'AppName': 'string',
    'Routing': {
        'alias': {
            'AliasArn': 'string'
        },
        'redirect': {
            'TargetUrl': 'string',
            'StatusCode': 'HTTP_301'|'HTTP_302'|'HTTP_307'|'HTTP_308'
        }
    },
    'DnsManagementType': 'ROUTE_53'|'MANUAL'|'NS_DELEGATION',
    'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
    'StatusReasonCode': 'CERTIFICATE_VALIDATION_TIMEOUT'|'DNS_VALIDATION_TIMEOUT'|'OWNERSHIP_VALIDATION_TIMEOUT'|'NS_DELEGATION_TIMEOUT'|'CAA_RECORD_BLOCKED'|'ALIAS_NOT_FOUND'|'CLOUDFRONT_LIMIT_EXCEEDED'|'CERTIFICATE_ISSUANCE_FAILED'|'CLOUDFRONT_CONFIGURATION_FAILED'|'CLOUDFRONT_UPDATE_FAILED'|'CLOUDFRONT_CLEANUP_FAILED'|'INTERNAL_ERROR',
    'StatusMessage': 'string',
    'OwnershipVerificationStatus': 'PENDING_VERIFICATION'|'VERIFIED'|'FAILED',
    'CertificateStatus': 'PENDING_VERIFICATION'|'ISSUED'|'FAILED',
    'DnsRecords': [
        {
            'Type': 'CNAME'|'TXT'|'A'|'AAAA'|'NS',
            'Name': 'string',
            'Value': 'string',
            'Purpose': 'CERTIFICATE_VALIDATION'|'OWNERSHIP_VERIFICATION'|'NAMESERVER_DELEGATION'|'DNS_VALIDATION'
        },
    ],
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • DomainAssociationArn (string) --

      The Amazon Resource Name (ARN) of the domain association.

    • DomainName (string) --

      The fully qualified domain name.

    • AppName (string) --

      The name of the app.

    • Routing (dict) --

      The routing configuration for the domain.

      • alias (dict) --

        Routes traffic for the domain to an alias.

        • AliasArn (string) --

          The Amazon Resource Name (ARN) of the alias.

      • redirect (dict) --

        Redirects traffic for the domain to another URL.

        • TargetUrl (string) --

          The URL to redirect requests to.

        • StatusCode (string) --

          The HTTP status code to return for the redirect.

    • DnsManagementType (string) --

      How DNS records for the domain are managed.

    • DomainStatus (string) --

      The status of the domain association.

    • StatusReasonCode (string) --

      A code that identifies the reason for the status.

    • StatusMessage (string) --

      A message describing the status.

    • OwnershipVerificationStatus (string) --

      The status of domain ownership verification.

    • CertificateStatus (string) --

      The status of the domain's TLS certificate.

    • DnsRecords (list) --

      The DNS records that must be configured for the domain.

      • (dict) --

        A DNS record that must be configured for a domain association.

        • Type (string) --

          The type of the DNS record.

        • Name (string) --

          The name of the DNS record.

        • Value (string) --

          The value of the DNS record.

        • Purpose (string) --

          The purpose of the DNS record.

    • CreatedAt (datetime) --

      The time at which the domain association was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the domain association was last updated. The value is in ISO-8601 format.

DeleteIntegrationConnection (new) Link ¶

Deletes an integration connection.

See also: AWS API Documentation

Request Syntax

client.delete_integration_connection(
    ConnectionId='string'
)
type ConnectionId:

string

param ConnectionId:

[REQUIRED]

The ID of the integration connection.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteBackendFromApp (new) Link ¶

Removes the backend from an app. The app remains as a frontend-only app. The request returns after the backend is detached from the app, and the backend and its branches are deleted asynchronously. This permanently deletes the backend's data. If the app has no backend, the request succeeds.

See also: AWS API Documentation

Request Syntax

client.delete_backend_from_app(
    AppName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateAliasRouting (new) Link ¶

Updates the traffic routing for an alias of an environment.

See also: AWS API Documentation

Request Syntax

client.update_alias_routing(
    AppName='string',
    EnvironmentName='string',
    AliasName='string',
    RoutingConfig=[
        {
            'DeploymentId': 'string',
            'Weight': 123
        },
    ],
    GradualRolloutConfig={
        'PresetConfig': {
            'Preset': 'ALL_AT_ONCE'|'CANARY_10_PERCENT_5_MINUTES'|'CANARY_10_PERCENT_15_MINUTES'|'CANARY_10_PERCENT_30_MINUTES'|'LINEAR_10_PERCENT_EVERY_1_MINUTE'|'LINEAR_10_PERCENT_EVERY_3_MINUTES'|'LINEAR_10_PERCENT_EVERY_10_MINUTES'
        }
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type AliasName:

string

param AliasName:

[REQUIRED]

The name of the alias.

type RoutingConfig:

list

param RoutingConfig:

[REQUIRED]

The traffic routing configuration to apply to the alias.

  • (dict) --

    An entry that maps a portion of traffic to a deployment.

    • DeploymentId (string) -- [REQUIRED]

      The ID of the deployment that receives the traffic.

    • Weight (integer) -- [REQUIRED]

      The percentage of traffic to route to the deployment.

type GradualRolloutConfig:

dict

param GradualRolloutConfig:

The gradual rollout settings to apply to the alias.

  • PresetConfig (dict) --

    The predefined gradual rollout schedule.

    • Preset (string) -- [REQUIRED]

      The predefined gradual rollout schedule to use.

rtype:

dict

returns:

Response Syntax

{
    'GradualRolloutState': {
        'Status': 'IN_PROGRESS'|'COMPLETED'|'CANCELLED',
        'SourceRoutingConfig': [
            {
                'DeploymentId': 'string',
                'Weight': 123
            },
        ],
        'TargetRoutingConfig': [
            {
                'DeploymentId': 'string',
                'Weight': 123
            },
        ],
        'Schedule': [
            {
                'Weight': 123,
                'EffectiveAt': datetime(2015, 1, 1)
            },
        ],
        'CurrentStageIndex': 123,
        'StartedAt': datetime(2015, 1, 1),
        'EndedAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • GradualRolloutState (dict) --

      The current state of the gradual rollout.

      • Status (string) --

        The status of the resource.

      • SourceRoutingConfig (list) --

        The traffic routing at the start of the gradual rollout.

        • (dict) --

          An entry that maps a portion of traffic to a deployment.

          • DeploymentId (string) --

            The ID of the deployment that receives the traffic.

          • Weight (integer) --

            The percentage of traffic to route to the deployment.

      • TargetRoutingConfig (list) --

        The traffic routing at the end of the gradual rollout.

        • (dict) --

          An entry that maps a portion of traffic to a deployment.

          • DeploymentId (string) --

            The ID of the deployment that receives the traffic.

          • Weight (integer) --

            The percentage of traffic to route to the deployment.

      • Schedule (list) --

        The stages of the gradual rollout.

        • (dict) --

          A stage in a gradual rollout schedule.

          • Weight (integer) --

            The percentage of traffic shifted to the new deployment at this stage.

          • EffectiveAt (datetime) --

            The time at which this rollout stage takes effect. The value is in ISO-8601 format.

      • CurrentStageIndex (integer) --

        The index of the current gradual rollout stage.

      • StartedAt (datetime) --

        The time at which processing started. The value is in ISO-8601 format.

      • EndedAt (datetime) --

        The time at which processing ended. The value is in ISO-8601 format.

ListTagsForResource (new) Link ¶

Returns the tags for an Amplify resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    resourceArn='string'
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to list the tags for.

rtype:

dict

returns:

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • Tags (dict) --

      The tags for the resource.

      • (string) --

        • (string) --

AcceptForkPullRequestDeployment (new) Link ¶

Accepts a deployment for a specific commit from a forked-repository pull request. Each commit must be accepted before it can be deployed to a preview environment.

See also: AWS API Documentation

Request Syntax

client.accept_fork_pull_request_deployment(
    AppName='string',
    EnvironmentName='string',
    CommitSha='string',
    PullRequestNumber='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type CommitSha:

string

param CommitSha:

[REQUIRED]

The full commit SHA in the forked-repository pull request to accept.

type PullRequestNumber:

string

param PullRequestNumber:

The number of the forked-repository pull request.

rtype:

dict

returns:

Response Syntax

{
    'Outcome': 'ACCEPTED'|'ALREADY_ACCEPTED'
}

Response Structure

  • (dict) --

    • Outcome (string) --

      The outcome of the request. Indicates whether the commit was newly accepted or had already been accepted.

StartAuthorizationFlow (new) Link ¶

Starts connecting a GitHub or GitLab account to your AWS account. The returned URL opens the Git provider page where you sign in and grant access. The AWS Management Console uses this operation when you connect a Git provider account.

See also: AWS API Documentation

Request Syntax

client.start_authorization_flow(
    Provider='GITHUB'|'GITLAB',
    RedirectUrl='string'
)
type Provider:

string

param Provider:

[REQUIRED]

The Git provider.

type RedirectUrl:

string

param RedirectUrl:

[REQUIRED]

The AWS Management Console page to return to after authorization completes.

rtype:

dict

returns:

Response Syntax

{
    'GitProviderAuthorizationUrl': 'string'
}

Response Structure

  • (dict) --

    • GitProviderAuthorizationUrl (string) --

      The Git provider page where you sign in and grant access.

ListDomainAssociationsForApp (new) Link ¶

Returns a list of the domain associations for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_domain_associations_for_app(
    AppName='string',
    MaxResults=123,
    NextToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'DomainAssociations': [
        {
            'DomainAssociationArn': 'string',
            'DomainName': 'string',
            'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
            'Routing': {
                'alias': {
                    'AliasArn': 'string'
                },
                'redirect': {
                    'TargetUrl': 'string',
                    'StatusCode': 'HTTP_301'|'HTTP_302'|'HTTP_307'|'HTTP_308'
                }
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DomainAssociations (list) --

      The domain associations.

      • (dict) --

        Summary information for a domain association.

        • DomainAssociationArn (string) --

          The Amazon Resource Name (ARN) of the domain association.

        • DomainName (string) --

          The fully qualified domain name.

        • DomainStatus (string) --

          The status of the domain association.

        • Routing (dict) --

          The routing configuration for the domain.

          • alias (dict) --

            Routes traffic for the domain to an alias.

            • AliasArn (string) --

              The Amazon Resource Name (ARN) of the alias.

          • redirect (dict) --

            Redirects traffic for the domain to another URL.

            • TargetUrl (string) --

              The URL to redirect requests to.

            • StatusCode (string) --

              The HTTP status code to return for the redirect.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

ListIntegrationConfigurations (new) Link ¶

Returns a list of the integration configurations in the account.

See also: AWS API Documentation

Request Syntax

client.list_integration_configurations(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'IntegrationConfigurations': [
        {
            'IntegrationName': 'string',
            'IntegrationArn': 'string',
            'IntegrationTypeId': 'string',
            'ResourceConfiguration': {
                'S3': {
                    'BucketArn': 'string'
                },
                'Dsql': {
                    'ClusterArn': 'string',
                    'DatabaseUser': 'string'
                },
                'Bedrock': {
                    'RegionName': 'string',
                    'ModelId': 'string'
                },
                'Custom': {
                    'ResourceArn': 'string'
                }
            },
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1),
            'EnvironmentVariables': [
                {
                    'Key': 'string',
                    'KeyOverride': 'string',
                    'Value': 'string',
                    'Type': 'PLAINTEXT'|'SENSITIVE'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • IntegrationConfigurations (list) --

      The integration configurations.

      • (dict) --

        Summary information for an integration configuration.

        • IntegrationName (string) --

          The name of the integration.

        • IntegrationArn (string) --

          The Amazon Resource Name (ARN) of the integration.

        • IntegrationTypeId (string) --

          The ID of the integration type.

        • ResourceConfiguration (dict) --

          The resource configuration for the integration.

          • S3 (dict) --

            The Amazon S3 integration resource configuration.

            • BucketArn (string) --

              The Amazon Resource Name (ARN) of the Amazon S3 bucket.

          • Dsql (dict) --

            The Amazon Aurora DSQL integration resource configuration.

            • ClusterArn (string) --

              The Amazon Resource Name (ARN) of the Amazon Aurora DSQL cluster.

            • DatabaseUser (string) --

              The database user to connect as.

          • Bedrock (dict) --

            The Amazon Bedrock integration resource configuration.

            • RegionName (string) --

              The AWS Region of the resource.

            • ModelId (string) --

              The ID of the Amazon Bedrock model.

          • Custom (dict) --

            The custom integration resource configuration.

            • ResourceArn (string) --

              The Amazon Resource Name (ARN) of the resource.

        • CreatedAt (datetime) --

          The time at which the integration configuration was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the integration configuration was last updated. The value is in ISO-8601 format.

        • EnvironmentVariables (list) --

          The environment variables.

          • (dict) --

            An environment variable provided by an integration.

            • Key (string) --

              The key of the environment variable.

            • KeyOverride (string) --

              An alternate key to expose the environment variable under in your environment.

            • Value (string) --

              The value of the environment variable. Omitted for secrets.

            • Type (string) --

              The type of the environment variable.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

DeleteDeployment (new) Link ¶

Deletes a deployment for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_deployment(
    AppName='string',
    EnvironmentName='string',
    DeploymentId='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type DeploymentId:

string

param DeploymentId:

[REQUIRED]

The ID of the deployment.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateIntegrationConfiguration (new) Link ¶

Updates an integration configuration.

See also: AWS API Documentation

Request Syntax

client.update_integration_configuration(
    IntegrationName='string',
    IntegrationTypeId='string',
    ResourceConfiguration={
        'S3': {
            'BucketArn': 'string'
        },
        'Dsql': {
            'ClusterArn': 'string',
            'DatabaseUser': 'string'
        },
        'Bedrock': {
            'RegionName': 'string',
            'ModelId': 'string'
        },
        'Custom': {
            'ResourceArn': 'string'
        }
    },
    EnvironmentVariables=[
        {
            'Key': 'string',
            'KeyOverride': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE'
        },
    ],
    RemoveEnvironmentVariableKeys=[
        'string',
    ]
)
type IntegrationName:

string

param IntegrationName:

[REQUIRED]

The name of the integration.

type IntegrationTypeId:

string

param IntegrationTypeId:

The ID of the integration type.

type ResourceConfiguration:

dict

param ResourceConfiguration:

The resource configuration for the integration.

  • S3 (dict) --

    The Amazon S3 integration resource configuration.

    • BucketArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the Amazon S3 bucket.

  • Dsql (dict) --

    The Amazon Aurora DSQL integration resource configuration.

    • ClusterArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the Amazon Aurora DSQL cluster.

    • DatabaseUser (string) -- [REQUIRED]

      The database user to connect as.

  • Bedrock (dict) --

    The Amazon Bedrock integration resource configuration.

    • RegionName (string) -- [REQUIRED]

      The AWS Region of the resource.

    • ModelId (string) --

      The ID of the Amazon Bedrock model.

  • Custom (dict) --

    The custom integration resource configuration.

    • ResourceArn (string) --

      The Amazon Resource Name (ARN) of the resource.

type EnvironmentVariables:

list

param EnvironmentVariables:

The environment variables.

  • (dict) --

    An environment variable to set for an integration.

    • Key (string) -- [REQUIRED]

      The key of the environment variable.

    • KeyOverride (string) --

      An alternate key to expose the environment variable under in your environment.

    • Value (string) --

      The value of the environment variable.

    • Type (string) --

      The type of the environment variable.

type RemoveEnvironmentVariableKeys:

list

param RemoveEnvironmentVariableKeys:

The keys of the environment variables to remove.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

ListAccessControls (new) Link ¶

Returns a list of the access control configurations for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_access_controls(
    AppName='string',
    MaxResults=123,
    NextToken='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'AccessControls': [
        {
            'EnvironmentName': 'string',
            'ProviderType': 'OIDC'|'IAM_IDENTITY_CENTER',
            'Scope': 'ALL_DEPLOYMENTS'|'NON_ACTIVE_DEPLOYMENTS',
            'Rule': {
                'AnyAuthenticatedUser': {},
                'UserClaims': [
                    {
                        'Key': 'string',
                        'Operator': 'EQUALS'|'CONTAINS'|'BEGINS_WITH'|'ENDS_WITH',
                        'Value': 'string'
                    },
                ]
            },
            'Status': 'ENABLING'|'ENABLED'|'ENABLE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DISABLING'|'DISABLED'|'DISABLE_FAILED',
            'EnabledAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • AccessControls (list) --

      The access control configurations.

      • (dict) --

        Summary information for an environment's access control configuration.

        • EnvironmentName (string) --

          The name of the environment.

        • ProviderType (string) --

          The type of identity provider.

        • Scope (string) --

          The scope that the access control configuration applies to.

        • Rule (dict) --

          The rule that determines which users are granted access.

          • AnyAuthenticatedUser (dict) --

            Admits any user who signs in successfully.

          • UserClaims (list) --

            Admits users whose token claims match the specified conditions.

            • (dict) --

              A condition that a user's claims must satisfy to be granted access.

              • Key (string) --

                The name of the user claim to evaluate.

              • Operator (string) --

                The operator used to compare the claim value.

              • Value (string) --

                The value to compare the claim against.

        • Status (string) --

          The status of the access control configuration.

        • EnabledAt (datetime) --

          The time at which access control was enabled for the environment.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

DeleteDomainAssociation (new) Link ¶

Deletes a domain association for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.delete_domain_association(
    AppName='string',
    DomainName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type DomainName:

string

param DomainName:

[REQUIRED]

The fully qualified domain name.

rtype:

dict

returns:

Response Syntax

{
    'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED'
}

Response Structure

  • (dict) --

    • DomainStatus (string) --

      The status of the domain association.

CreateIntegrationConnection (new) Link ¶

Creates a connection between an integration configuration and an environment.

See also: AWS API Documentation

Request Syntax

client.create_integration_connection(
    IntegrationArn='string',
    EnvironmentArn='string'
)
type IntegrationArn:

string

param IntegrationArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the integration configuration to connect.

type EnvironmentArn:

string

param EnvironmentArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the environment to connect the integration to.

rtype:

dict

returns:

Response Syntax

{
    'ConnectionId': 'string',
    'IntegrationName': 'string'
}

Response Structure

  • (dict) --

    • ConnectionId (string) --

      The ID of the integration connection.

    • IntegrationName (string) --

      The name of the integration.

GetAlias (new) Link ¶

Retrieves an alias for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_alias(
    AppName='string',
    EnvironmentName='string',
    AliasName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type AliasName:

string

param AliasName:

[REQUIRED]

The name of the alias.

rtype:

dict

returns:

Response Syntax

{
    'AliasName': 'string',
    'AliasArn': 'string',
    'Type': 'ENVIRONMENT'|'BRANCH'|'PULL_REQUEST',
    'Url': 'string',
    'RoutingConfig': [
        {
            'DeploymentId': 'string',
            'Weight': 123
        },
    ],
    'GradualRolloutConfig': {
        'PresetConfig': {
            'Preset': 'ALL_AT_ONCE'|'CANARY_10_PERCENT_5_MINUTES'|'CANARY_10_PERCENT_15_MINUTES'|'CANARY_10_PERCENT_30_MINUTES'|'LINEAR_10_PERCENT_EVERY_1_MINUTE'|'LINEAR_10_PERCENT_EVERY_3_MINUTES'|'LINEAR_10_PERCENT_EVERY_10_MINUTES'
        }
    },
    'GradualRolloutState': {
        'Status': 'IN_PROGRESS'|'COMPLETED'|'CANCELLED',
        'SourceRoutingConfig': [
            {
                'DeploymentId': 'string',
                'Weight': 123
            },
        ],
        'TargetRoutingConfig': [
            {
                'DeploymentId': 'string',
                'Weight': 123
            },
        ],
        'Schedule': [
            {
                'Weight': 123,
                'EffectiveAt': datetime(2015, 1, 1)
            },
        ],
        'CurrentStageIndex': 123,
        'StartedAt': datetime(2015, 1, 1),
        'EndedAt': datetime(2015, 1, 1)
    },
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • AliasName (string) --

      The name of the alias.

    • AliasArn (string) --

      The Amazon Resource Name (ARN) of the alias.

    • Type (string) --

      The type of the alias.

    • Url (string) --

      The URL of the alias.

    • RoutingConfig (list) --

      The traffic routing configuration.

      • (dict) --

        An entry that maps a portion of traffic to a deployment.

        • DeploymentId (string) --

          The ID of the deployment that receives the traffic.

        • Weight (integer) --

          The percentage of traffic to route to the deployment.

    • GradualRolloutConfig (dict) --

      The gradual rollout settings.

      • PresetConfig (dict) --

        The predefined gradual rollout schedule.

        • Preset (string) --

          The predefined gradual rollout schedule to use.

    • GradualRolloutState (dict) --

      The current state of the gradual rollout.

      • Status (string) --

        The status of the resource.

      • SourceRoutingConfig (list) --

        The traffic routing at the start of the gradual rollout.

        • (dict) --

          An entry that maps a portion of traffic to a deployment.

          • DeploymentId (string) --

            The ID of the deployment that receives the traffic.

          • Weight (integer) --

            The percentage of traffic to route to the deployment.

      • TargetRoutingConfig (list) --

        The traffic routing at the end of the gradual rollout.

        • (dict) --

          An entry that maps a portion of traffic to a deployment.

          • DeploymentId (string) --

            The ID of the deployment that receives the traffic.

          • Weight (integer) --

            The percentage of traffic to route to the deployment.

      • Schedule (list) --

        The stages of the gradual rollout.

        • (dict) --

          A stage in a gradual rollout schedule.

          • Weight (integer) --

            The percentage of traffic shifted to the new deployment at this stage.

          • EffectiveAt (datetime) --

            The time at which this rollout stage takes effect. The value is in ISO-8601 format.

      • CurrentStageIndex (integer) --

        The index of the current gradual rollout stage.

      • StartedAt (datetime) --

        The time at which processing started. The value is in ISO-8601 format.

      • EndedAt (datetime) --

        The time at which processing ended. The value is in ISO-8601 format.

    • CreatedAt (datetime) --

      The time at which the alias was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the alias was last updated. The value is in ISO-8601 format.

ListAliases (new) Link ¶

Returns a list of the aliases for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.list_aliases(
    AppName='string',
    EnvironmentName='string',
    NextToken='string',
    MaxResults=123
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

rtype:

dict

returns:

Response Syntax

{
    'Aliases': [
        {
            'AliasName': 'string',
            'AliasArn': 'string',
            'Type': 'ENVIRONMENT'|'BRANCH'|'PULL_REQUEST',
            'Url': 'string',
            'RoutingConfig': [
                {
                    'DeploymentId': 'string',
                    'Weight': 123
                },
            ],
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Aliases (list) --

      The aliases.

      • (dict) --

        Summary information for an alias.

        • AliasName (string) --

          The name of the alias.

        • AliasArn (string) --

          The Amazon Resource Name (ARN) of the alias.

        • Type (string) --

          The type of the alias.

        • Url (string) --

          The URL of the alias.

        • RoutingConfig (list) --

          The traffic routing configuration.

          • (dict) --

            An entry that maps a portion of traffic to a deployment.

            • DeploymentId (string) --

              The ID of the deployment that receives the traffic.

            • Weight (integer) --

              The percentage of traffic to route to the deployment.

        • CreatedAt (datetime) --

          The time at which the alias was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the alias was last updated. The value is in ISO-8601 format.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

GetIntegrationConfiguration (new) Link ¶

Retrieves an integration configuration.

See also: AWS API Documentation

Request Syntax

client.get_integration_configuration(
    IntegrationName='string'
)
type IntegrationName:

string

param IntegrationName:

[REQUIRED]

The name of the integration.

rtype:

dict

returns:

Response Syntax

{
    'IntegrationName': 'string',
    'IntegrationArn': 'string',
    'IntegrationTypeId': 'string',
    'ResourceConfiguration': {
        'S3': {
            'BucketArn': 'string'
        },
        'Dsql': {
            'ClusterArn': 'string',
            'DatabaseUser': 'string'
        },
        'Bedrock': {
            'RegionName': 'string',
            'ModelId': 'string'
        },
        'Custom': {
            'ResourceArn': 'string'
        }
    },
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1),
    'EnvironmentVariables': [
        {
            'Key': 'string',
            'KeyOverride': 'string',
            'Value': 'string',
            'Type': 'PLAINTEXT'|'SENSITIVE'
        },
    ]
}

Response Structure

  • (dict) --

    • IntegrationName (string) --

      The name of the integration.

    • IntegrationArn (string) --

      The Amazon Resource Name (ARN) of the integration.

    • IntegrationTypeId (string) --

      The ID of the integration type.

    • ResourceConfiguration (dict) --

      The resource configuration for the integration.

      • S3 (dict) --

        The Amazon S3 integration resource configuration.

        • BucketArn (string) --

          The Amazon Resource Name (ARN) of the Amazon S3 bucket.

      • Dsql (dict) --

        The Amazon Aurora DSQL integration resource configuration.

        • ClusterArn (string) --

          The Amazon Resource Name (ARN) of the Amazon Aurora DSQL cluster.

        • DatabaseUser (string) --

          The database user to connect as.

      • Bedrock (dict) --

        The Amazon Bedrock integration resource configuration.

        • RegionName (string) --

          The AWS Region of the resource.

        • ModelId (string) --

          The ID of the Amazon Bedrock model.

      • Custom (dict) --

        The custom integration resource configuration.

        • ResourceArn (string) --

          The Amazon Resource Name (ARN) of the resource.

    • CreatedAt (datetime) --

      The time at which the integration configuration was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the integration configuration was last updated. The value is in ISO-8601 format.

    • EnvironmentVariables (list) --

      The environment variables.

      • (dict) --

        An environment variable provided by an integration.

        • Key (string) --

          The key of the environment variable.

        • KeyOverride (string) --

          An alternate key to expose the environment variable under in your environment.

        • Value (string) --

          The value of the environment variable. Omitted for secrets.

        • Type (string) --

          The type of the environment variable.

ListIntegrationConnections (new) Link ¶

Returns a list of the integration connections.

See also: AWS API Documentation

Request Syntax

client.list_integration_connections(
    IntegrationArn='string',
    EnvironmentArn='string',
    MaxResults=123,
    NextToken='string'
)
type IntegrationArn:

string

param IntegrationArn:

The Amazon Resource Name (ARN) of the integration.

type EnvironmentArn:

string

param EnvironmentArn:

The Amazon Resource Name (ARN) of the environment.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'IntegrationConnections': [
        {
            'ConnectionId': 'string',
            'IntegrationName': 'string',
            'IntegrationArn': 'string',
            'EnvironmentArn': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • IntegrationConnections (list) --

      The integration connections.

      • (dict) --

        Summary information for an integration connection.

        • ConnectionId (string) --

          The ID of the integration connection.

        • IntegrationName (string) --

          The name of the integration.

        • IntegrationArn (string) --

          The Amazon Resource Name (ARN) of the integration.

        • EnvironmentArn (string) --

          The Amazon Resource Name (ARN) of the environment.

        • CreatedAt (datetime) --

          The time at which the integration connection was created. The value is in ISO-8601 format.

        • UpdatedAt (datetime) --

          The time at which the integration connection was last updated. The value is in ISO-8601 format.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

CreateDomainAssociation (new) Link ¶

Creates a domain association that connects a custom domain to a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.create_domain_association(
    AppName='string',
    DomainName='string',
    Routing={
        'alias': {
            'AliasArn': 'string'
        },
        'redirect': {
            'TargetUrl': 'string',
            'StatusCode': 'HTTP_301'|'HTTP_302'|'HTTP_307'|'HTTP_308'
        }
    },
    DnsManagementType='ROUTE_53'|'MANUAL'|'NS_DELEGATION',
    Tags={
        'string': 'string'
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type DomainName:

string

param DomainName:

[REQUIRED]

The fully qualified domain name.

type Routing:

dict

param Routing:

[REQUIRED]

The routing configuration for the domain.

  • alias (dict) --

    Routes traffic for the domain to an alias.

    • AliasArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the alias.

  • redirect (dict) --

    Redirects traffic for the domain to another URL.

    • TargetUrl (string) -- [REQUIRED]

      The URL to redirect requests to.

    • StatusCode (string) -- [REQUIRED]

      The HTTP status code to return for the redirect.

type DnsManagementType:

string

param DnsManagementType:

[REQUIRED]

How DNS records for the domain are managed.

type Tags:

dict

param Tags:

The tags to apply to the resource.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'DomainAssociationArn': 'string',
    'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
    'DnsRecords': [
        {
            'Type': 'CNAME'|'TXT'|'A'|'AAAA'|'NS',
            'Name': 'string',
            'Value': 'string',
            'Purpose': 'CERTIFICATE_VALIDATION'|'OWNERSHIP_VERIFICATION'|'NAMESERVER_DELEGATION'|'DNS_VALIDATION'
        },
    ]
}

Response Structure

  • (dict) --

    • DomainAssociationArn (string) --

      The Amazon Resource Name (ARN) of the domain association.

    • DomainStatus (string) --

      The status of the domain association.

    • DnsRecords (list) --

      The DNS records that must be configured for the domain.

      • (dict) --

        A DNS record that must be configured for a domain association.

        • Type (string) --

          The type of the DNS record.

        • Name (string) --

          The name of the DNS record.

        • Value (string) --

          The value of the DNS record.

        • Purpose (string) --

          The purpose of the DNS record.

CreateSourceUpload (new) Link ¶

Creates a source upload and returns a presigned URL for uploading application source artifacts from .zip files.

See also: AWS API Documentation

Request Syntax

client.create_source_upload(
    ZipUpload={
        'Digest': 'string'
    }
)
type ZipUpload:

dict

param ZipUpload:

[REQUIRED]

The .zip file to upload as the source.

  • Digest (string) -- [REQUIRED]

    The digest of the uploaded .zip file.

rtype:

dict

returns:

Response Syntax

{
    'SourceUploadId': 'string',
    'ZipUpload': {
        'Digest': 'string',
        'UploadUrl': 'string',
        'UrlExpiresAt': datetime(2015, 1, 1)
    },
    'UploadExpiresAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • SourceUploadId (string) --

      The ID of the source upload.

    • ZipUpload (dict) --

      The upload details, including the presigned URL for uploading the .zip file.

      • Digest (string) --

        The digest of the uploaded .zip file.

      • UploadUrl (string) --

        The presigned URL to upload the .zip file to.

      • UrlExpiresAt (datetime) --

        The time at which the URL expires. The value is in ISO-8601 format.

    • UploadExpiresAt (datetime) --

      The time at which the upload expires. The value is in ISO-8601 format.

ListPlanViolations (new) Link ¶

List the violations preventing an account to change flat rate plans. An empty list means the account already fits the target plan. If you allow the ListPlanViolations permission for your account, any requestor can see all project names that violate a downgrade from all Regions.

See also: AWS API Documentation

Request Syntax

client.list_plan_violations(
    TargetPlan='BASIC'|'PRO',
    MaxResults=123,
    NextToken='string'
)
type TargetPlan:

string

param TargetPlan:

[REQUIRED]

The plan to check the account's resources against.

type MaxResults:

integer

param MaxResults:

The maximum number of violations to return in one page.

type NextToken:

string

param NextToken:

A pagination token returned from a previous request.

rtype:

dict

returns:

Response Syntax

{
    'Violations': [
        {
            'Code': 'APP_LIMIT'|'ENVIRONMENT_LIMIT'|'BACKEND_LIMIT'|'BRANCH_LIMIT'|'BRANCH_STORAGE_LIMIT'|'DATABASE_MAX_CAPACITY_LIMIT'|'DATABASE_BACKUP_RETENTION_LIMIT'|'GRADUAL_DEPLOY'|'VPC_BINDING'|'OIDC',
            'Message': 'string',
            'RegionLimits': [
                {
                    'Region': 'string',
                    'Current': 123,
                    'TargetLimit': 123
                },
            ],
            'AppLimits': [
                {
                    'Arn': 'string',
                    'Region': 'string',
                    'Current': 123,
                    'TargetLimit': 123
                },
            ],
            'Resources': [
                {
                    'Arn': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Violations (list) --

      The reasons the account's resources do not fit the target plan. Empty when the account fits the target plan

      • (dict) --

        One reason an account's resources do not fit a target plan.

        • Code (string) --

          The code that identifies the type of violation.

        • Message (string) --

          A human-readable description of the violation.

        • RegionLimits (list) --

          The per-Region breakdown for a limit that the account exceeds under the target plan.

          • (dict) --

            A Region where the account's usage of a limit exceeds the target plan's limit.

            • Region (string) --

              The AWS Region.

            • Current (integer) --

              The account's current usage in the Region.

            • TargetLimit (integer) --

              The target plan's limit for the Region.

        • AppLimits (list) --

          The per-app breakdown for a per-app limit that apps exceed under the target plan.

          • (dict) --

            An app whose usage of a per-app limit exceeds the target plan's limit.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the app.

            • Region (string) --

              The AWS Region of the app.

            • Current (integer) --

              The app's current usage.

            • TargetLimit (integer) --

              The target plan's limit for each app.

        • Resources (list) --

          The resources the target plan does not support.

          • (dict) --

            A resource the target plan does not support.

            • Arn (string) --

              The Amazon Resource Name (ARN) of the resource.

    • NextToken (string) --

      A pagination token to retrieve the next page of results. Absent on the last page.

GetApp (new) Link ¶

Retrieves a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_app(
    AppName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

rtype:

dict

returns:

Response Syntax

{
    'AppName': 'string',
    'AppArn': 'string',
    'SourceConfig': {
        'GitHubSource': {
            'RepositoryUrl': 'string'
        },
        'GitLabSource': {
            'RepositoryUrl': 'string',
            'Owner': 'string'
        }
    },
    'Web': {
        'BuildConfig': {
            'InstallCommand': 'string',
            'BuildCommand': 'string',
            'RootDirectory': 'string',
            'OutputDirectory': 'string'
        }
    },
    'Backend': {
        'MigrationsDirectory': 'string',
        'Status': 'READY'|'CREATING'|'DELETING'|'PAUSING'|'PAUSED'|'RESUMING',
        'DatabaseUsage': {
            'LastUsedAt': datetime(2015, 1, 1),
            'MonthlyBackendCapacityUnitHours': 123.0
        }
    },
    'WafConfigs': [
        {
            'WebAclArn': 'string',
            'WafStatus': 'ASSOCIATING'|'ASSOCIATED'|'ASSOCIATION_FAILED'|'DISASSOCIATING'|'DISASSOCIATION_FAILED',
            'StatusReason': 'string',
            'StatusReasonCode': 'WEBACL_NOT_FOUND'|'ASSOCIATION_LIMIT_EXCEEDED'|'FIREWALL_UPDATE_TIMEOUT'|'FIREWALL_UPDATE_FAILED'|'INTERNAL_ERROR'
        },
    ],
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • AppName (string) --

      The name of the app.

    • AppArn (string) --

      The Amazon Resource Name (ARN) of the app.

    • SourceConfig (dict) --

      The source configuration for the app.

      • GitHubSource (dict) --

        The GitHub source repository settings.

        • RepositoryUrl (string) --

          The URL of the source repository.

      • GitLabSource (dict) --

        The GitLab source repository settings.

        • RepositoryUrl (string) --

          The URL of the source repository.

        • Owner (string) --

          The owner of the repository in the Git provider.

    • Web (dict) --

      The web hosting settings for the app.

      • BuildConfig (dict) --

        The build settings.

        • InstallCommand (string) --

          The command that installs dependencies during the build.

        • BuildCommand (string) --

          The command that builds the application.

        • RootDirectory (string) --

          The directory in the repository that contains the application source.

        • OutputDirectory (string) --

          The directory that contains the build output to deploy.

    • Backend (dict) --

      The backend settings for the app. Present only when the app has a backend.

      • MigrationsDirectory (string) --

        The directory that contains the migration files, relative to the root of the source.

      • Status (string) --

        The status of the app's backend. The backend is created asynchronously, so wait until the status is READY before you deploy. Absent when the status can't be read. An absent status doesn't indicate a failure.

      • DatabaseUsage (dict) --

        The usage of the backend's databases. Absent when the usage can't be read.

        • LastUsedAt (datetime) --

          The time at which any of the backend's databases was last used, either by a new connection or by load on an existing connection. An open idle connection doesn't count as use. The value lags by a few minutes and is in ISO-8601 format. Absent when it isn't reported.

        • MonthlyBackendCapacityUnitHours (float) --

          The backend capacity unit hours (BCU-hours) that the backend's databases used in the current calendar month (UTC), across all branches. The value is 0 when the databases used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. Only the Basic plan has a per-backend allowance that this value is compared with.

    • WafConfigs (list) --

      A list of the app's AWS WAF configurations. Omitted when the app has no web ACL association.

      • (dict) --

        The AWS WAF web ACL association settings for a Gen 3 app.

        • WebAclArn (string) --

          The Amazon Resource Name (ARN) of the AWS WAF web ACL.

        • WafStatus (string) --

          The status of the AWS WAF web ACL association.

        • StatusReason (string) --

          A human-readable explanation of the status. Present when WafStatus is ASSOCIATION_FAILED or DISASSOCIATION_FAILED.

        • StatusReasonCode (string) --

          A code that identifies the reason for the status. Present when WafStatus is ASSOCIATION_FAILED or DISASSOCIATION_FAILED.

    • CreatedAt (datetime) --

      The time at which the app was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the app was last updated. The value is in ISO-8601 format.

GetFile (new) Link ¶

Gets the contents of a file from a repository branch. Files can be up to 1 MiB. The AWS Management Console uses this operation when you create an app from a repository. To view files in detail, use your Git provider.

See also: AWS API Documentation

Request Syntax

client.get_file(
    Provider='GITHUB'|'GITLAB',
    Owner='string',
    RepositoryName='string',
    RepositoryPath='string',
    FilePath='string',
    Branch='string'
)
type Provider:

string

param Provider:

[REQUIRED]

The Git provider.

type Owner:

string

param Owner:

[REQUIRED]

The account that the Git connection is for. The value depends on the provider:

  • For GitHub, specify the user or organization name.

  • For GitLab, specify the user name.

To get this value, call ListGitConnections.

type RepositoryName:

string

param RepositoryName:

The name of the repository, which is the last segment of RepositoryPath.

type RepositoryPath:

string

param RepositoryPath:

[REQUIRED]

The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.

type FilePath:

string

param FilePath:

[REQUIRED]

The path of the file, relative to the root of the repository, for example package.json.

type Branch:

string

param Branch:

[REQUIRED]

The name of the branch to read from.

rtype:

dict

returns:

Response Syntax

{
    'FilePath': 'string',
    'Content': b'bytes',
    'Sha': 'string',
    'Size': 123
}

Response Structure

  • (dict) --

    • FilePath (string) --

      The path of the file that was returned.

    • Content (bytes) --

      The contents of the file.

    • Sha (string) --

      The Git object ID (blob SHA) of the file's contents. It changes whenever the file's contents change.

    • Size (integer) --

      The size of the file, in bytes.

GetBranch (new) Link ¶

Returns information about a branch of an environment.

See also: AWS API Documentation

Request Syntax

client.get_branch(
    AppName='string',
    EnvironmentName='string',
    BranchName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type BranchName:

string

param BranchName:

[REQUIRED]

The name of the branch.

rtype:

dict

returns:

Response Syntax

{
    'AppName': 'string',
    'EnvironmentName': 'string',
    'BranchName': 'string',
    'BranchArn': 'string',
    'GitBranchName': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'Backend': {
        'Url': 'string',
        'Status': 'READY'|'CREATING'|'DELETING'|'FAILED_TO_CREATE'|'PAUSING'|'PAUSED'|'RESUMING',
        'DatabaseConfig': {
            'MaxBackendCapacityUnits': 123,
            'BackupRetentionDays': 123
        },
        'Auth': 'string',
        'DatabaseUsage': {
            'StorageBytes': 123,
            'Connections': 123,
            'LastUsedAt': datetime(2015, 1, 1),
            'SampledAt': datetime(2015, 1, 1),
            'MonthlyBackendCapacityUnitHours': 123.0
        },
        'DatabaseConnection': {
            'Host': 'string',
            'Port': 123,
            'Username': 'string',
            'DatabaseName': 'string'
        }
    },
    'SourceBranch': {
        'BranchName': 'string',
        'BranchArn': 'string',
        'RestoreToTime': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • AppName (string) --

      The name of the app.

    • EnvironmentName (string) --

      The name of the environment.

    • BranchName (string) --

      The name of the branch.

    • BranchArn (string) --

      The Amazon Resource Name (ARN) of the branch.

    • GitBranchName (string) --

      The name of the Git branch that the branch was created for. Present only for a branch that was created for a Git branch.

    • CreatedAt (datetime) --

      The time at which the branch was created. The value is in ISO-8601 format.

    • Backend (dict) --

      The backend of the branch. If Amplify can't read the state of the backend, the request fails.

      • Url (string) --

        The URL of the branch's backend.

      • Status (string) --

        The lifecycle status of the branch. Absent only when the status isn't one that this API recognizes.

      • DatabaseConfig (dict) --

        The database settings that are in effect on the branch's database cluster. These are the settings that the most recent deployment applied, or the cluster's defaults if no deployment has set any. A deployment that changes them completes only after they are applied. They can differ from the environment's Backend.Database settings, which take effect at the next deployment. Absent before the branch has its own database cluster.

        • MaxBackendCapacityUnits (integer) --

          The maximum number of backend capacity units that the branch's database can scale to.

        • BackupRetentionDays (integer) --

          The number of days that automated backups are kept.

      • Auth (string) --

        The authentication settings of the branch's live deployment, as a JSON document. These can differ from the environment's Backend.Auth settings, which take effect at the next deployment. Absent when the live deployment's configuration has no authentication settings, or when no deployment with backend settings has gone live.

      • DatabaseUsage (dict) --

        The latest usage sample of the branch's database. Absent before the first sample, or for a branch that was created by RestoreBranch.

        • StorageBytes (integer) --

          The size of the database, in bytes. The database's storage limit applies to this size.

        • Connections (integer) --

          The number of sessions, including idle sessions, that were connected to the database at the time of SampledAt.

        • LastUsedAt (datetime) --

          The end of the most recent sampling window in which the database was used, either by a new connection or by load on an existing connection. The value is in ISO-8601 format.

        • SampledAt (datetime) --

          The end of the most recent sampling window in which one of these values changed. For a branch with steady usage, this time can be old even though the values are current. The value is in ISO-8601 format.

        • MonthlyBackendCapacityUnitHours (float) --

          The backend capacity unit hours (BCU-hours) that the branch's database used in the current calendar month (UTC). This value is the branch's share of the backend's MonthlyBackendCapacityUnitHours and is counted the same way. The value is 0 when the database used none this month, resets to 0 at 00:00 UTC on the first day of each month, and lags actual use by about one hour. It is absent when the value can't be read.

      • DatabaseConnection (dict) --

        The connection details for the branch's database. Absent when connections aren't available for the branch, or before the branch has a database.

        • Host (string) --

          The host name to connect to. Connect to this name, not to an IP address, because the TLS server name routes the session.

        • Port (integer) --

          The port to connect to.

        • Username (string) --

          The user name to connect as.

        • DatabaseName (string) --

          The name of the database to connect to.

    • SourceBranch (dict) --

      The branch that this branch was restored from, and the point in time it was restored to. Present only for a branch that was created by RestoreBranch.

      • BranchName (string) --

        The name of the branch that the data was restored from.

      • BranchArn (string) --

        The Amazon Resource Name (ARN) of the branch that the data was restored from.

      • RestoreToTime (datetime) --

        The point in time that the data was restored to.

DeleteNetworkConnector (new) Link ¶

Deletes a network connector.

See also: AWS API Documentation

Request Syntax

client.delete_network_connector(
    NetworkConnectorName='string'
)
type NetworkConnectorName:

string

param NetworkConnectorName:

[REQUIRED]

The name of the network connector.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the network connector.

GetIntegrationConnection (new) Link ¶

Retrieves an integration connection.

See also: AWS API Documentation

Request Syntax

client.get_integration_connection(
    ConnectionId='string'
)
type ConnectionId:

string

param ConnectionId:

[REQUIRED]

The ID of the integration connection.

rtype:

dict

returns:

Response Syntax

{
    'ConnectionId': 'string',
    'IntegrationName': 'string',
    'IntegrationArn': 'string',
    'EnvironmentArn': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • ConnectionId (string) --

      The ID of the integration connection.

    • IntegrationName (string) --

      The name of the integration.

    • IntegrationArn (string) --

      The Amazon Resource Name (ARN) of the integration.

    • EnvironmentArn (string) --

      The Amazon Resource Name (ARN) of the environment.

    • CreatedAt (datetime) --

      The time at which the integration connection was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the integration connection was last updated. The value is in ISO-8601 format.

UpdateDomainAssociation (new) Link ¶

Updates a domain association for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.update_domain_association(
    AppName='string',
    DomainName='string',
    Routing={
        'alias': {
            'AliasArn': 'string'
        },
        'redirect': {
            'TargetUrl': 'string',
            'StatusCode': 'HTTP_301'|'HTTP_302'|'HTTP_307'|'HTTP_308'
        }
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type DomainName:

string

param DomainName:

[REQUIRED]

The fully qualified domain name.

type Routing:

dict

param Routing:

The routing configuration for the domain.

  • alias (dict) --

    Routes traffic for the domain to an alias.

    • AliasArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the alias.

  • redirect (dict) --

    Redirects traffic for the domain to another URL.

    • TargetUrl (string) -- [REQUIRED]

      The URL to redirect requests to.

    • StatusCode (string) -- [REQUIRED]

      The HTTP status code to return for the redirect.

rtype:

dict

returns:

Response Syntax

{
    'DomainStatus': 'CREATING'|'PENDING_CERTIFICATE_VALIDATION'|'PENDING_OWNERSHIP_VALIDATION'|'PENDING_DNS_VALIDATION'|'PENDING_NS_DELEGATION'|'PROVISIONING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED'
}

Response Structure

  • (dict) --

    • DomainStatus (string) --

      The status of the domain association.

ResumeBackend (new) Link ¶

Resumes the paused backend of an app by restoring its database from a snapshot. The resume runs asynchronously. Call GetApp until the backend status is READY. You can resume only a backend that is PAUSED or PAUSING. For any other status, the request fails with a ConflictException. The operation isn't idempotent: repeating the request after the backend is RESUMING or READY fails with a ConflictException. A backend that was paused because a database reached its storage limit can't be resumed until the plan covers the size of the database or the database is deleted. A backend that used its plan's monthly allowance can't be resumed until the plan is upgraded or the allowance resets at the start of the next month (UTC). In both cases, the request fails with a ConflictException. If the account already has the maximum number of backends and the resume needs a new backend, the request fails with a ServiceQuotaExceededException.

See also: AWS API Documentation

Request Syntax

client.resume_backend(
    AppName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

rtype:

dict

returns:

Response Syntax

{
    'Status': 'READY'|'CREATING'|'DELETING'|'PAUSING'|'PAUSED'|'RESUMING'
}

Response Structure

  • (dict) --

    • Status (string) --

      The status of the backend after the request. The status is RESUMING, or PAUSING if a pause is still in progress. In that case, the resume starts after the pause finishes.

UntagResource (new) Link ¶

Removes tags from an Amplify resource.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    resourceArn='string',
    TagKeys=[
        'string',
    ]
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to remove tags from.

type TagKeys:

list

param TagKeys:

[REQUIRED]

The keys of the tags to remove from the resource.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteGitConnection (new) Link ¶

Deletes a Git connection, so that the service can no longer access repositories through it. This operation doesn't remove the app installation or authorization from your Git provider account. To remove them, use your Git provider's settings. If the connection doesn't exist, the operation succeeds and does nothing.

See also: AWS API Documentation

Request Syntax

client.delete_git_connection(
    Provider='GITHUB'|'GITLAB',
    Owner='string'
)
type Provider:

string

param Provider:

[REQUIRED]

The Git provider.

type Owner:

string

param Owner:

[REQUIRED]

The account that the Git connection is for. The value depends on the provider:

  • For GitHub, specify the user or organization name.

  • For GitLab, specify the user name.

To get this value, call ListGitConnections.

returns:

None

ListIntegrationTypes (new) Link ¶

Returns a list of the available integrations.

See also: AWS API Documentation

Request Syntax

client.list_integration_types(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of integration types to return in one page.

type NextToken:

string

param NextToken:

A pagination token returned from a previous request.

rtype:

dict

returns:

Response Syntax

{
    'IntegrationTypes': [
        {
            'Id': 'string',
            'Name': 'string',
            'EnvironmentVariables': [
                {
                    'Key': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • IntegrationTypes (list) --

      The available integration types.

      • (dict) --

        An available integration type.

        • Id (string) --

          The ID of the integration.

        • Name (string) --

          The name of the resource.

        • EnvironmentVariables (list) --

          The environment variables.

          • (dict) --

            An environment variable declared by an integration type.

            • Key (string) --

              The key of the environment variable.

    • NextToken (string) --

      A pagination token to retrieve the next page of results. Absent on the last page.

DisableAccessControl (new) Link ¶

Disables access control for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.disable_access_control(
    AppName='string',
    EnvironmentName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

CreateApp (new) Link ¶

Creates a new Amplify Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.create_app(
    AppName='string',
    SourceConfig={
        'GitHubSource': {
            'RepositoryUrl': 'string',
            'ProductionBranch': 'string'
        },
        'GitLabSource': {
            'RepositoryUrl': 'string',
            'Owner': 'string',
            'ProductionBranch': 'string'
        }
    },
    Web={
        'BuildConfig': {
            'InstallCommand': 'string',
            'BuildCommand': 'string',
            'RootDirectory': 'string',
            'OutputDirectory': 'string'
        }
    },
    Backend={
        'MigrationsDirectory': 'string'
    },
    DefaultEnvironmentsConfiguration=[
        {
            'EnvironmentType': 'PRODUCTION'|'PREVIEW',
            'EnvironmentPermissionsConfig': {
                'ExecutionRoleArn': 'string',
                'PermissionMode': 'SCOPED'|'FULL'
            },
            'EnvironmentNetworkConfig': {
                'BuildNetworkConnectorArn': 'string',
                'ComputeNetworkConnectorArn': 'string'
            },
            'Backend': {
                'Auth': 'string',
                'Database': {
                    'MaxBackendCapacityUnits': 123,
                    'BackupRetentionDays': 123
                }
            }
        },
    ],
    Tags={
        'string': 'string'
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type SourceConfig:

dict

param SourceConfig:

The source repository configuration for the app.

  • GitHubSource (dict) --

    The GitHub source repository settings.

    • RepositoryUrl (string) -- [REQUIRED]

      The URL of the source repository.

    • ProductionBranch (string) -- [REQUIRED]

      The name of the production branch. CreateApp uses this only to set the branch patterns of the Production and Preview environments that it creates. The app doesn't store it. To change the branches that an environment tracks, use UpdateEnvironment.

  • GitLabSource (dict) --

    The GitLab source repository settings.

    • RepositoryUrl (string) -- [REQUIRED]

      The URL of the source repository.

    • Owner (string) -- [REQUIRED]

      The owner of the repository in the Git provider.

    • ProductionBranch (string) -- [REQUIRED]

      The name of the production branch. CreateApp uses this only to set the branch patterns of the Production and Preview environments that it creates. The app doesn't store it. To change the branches that an environment tracks, use UpdateEnvironment.

type Web:

dict

param Web:

The web hosting settings for the app.

  • BuildConfig (dict) --

    The build settings.

    • InstallCommand (string) --

      The command that installs dependencies during the build.

    • BuildCommand (string) --

      The command that builds the application.

    • RootDirectory (string) --

      The directory in the repository that contains the application source.

    • OutputDirectory (string) --

      The directory that contains the build output to deploy.

type Backend:

dict

param Backend:

The backend settings for the app. Omit this for a frontend-only app.

  • MigrationsDirectory (string) --

    The directory that contains the migration files, relative to the root of the source. The default is migrations. Specify an empty string to reset to the default.

type DefaultEnvironmentsConfiguration:

list

param DefaultEnvironmentsConfiguration:

[REQUIRED]

The settings for the Production and Preview environments that Amplify creates for the app. Specify one entry for each environment.

  • (dict) --

    The settings for one of the environments that Amplify creates with an app.

    • EnvironmentType (string) -- [REQUIRED]

      The type of the environment that these settings apply to.

    • EnvironmentPermissionsConfig (dict) -- [REQUIRED]

      The IAM role settings for the environment.

      • ExecutionRoleArn (string) -- [REQUIRED]

        The Amazon Resource Name (ARN) of the IAM role for the environment.

      • PermissionMode (string) --

        The permission mode for the environment's IAM role. The default is SCOPED.

    • EnvironmentNetworkConfig (dict) --

      The VPC network configuration for the environment's build and server-side rendering compute.

      • BuildNetworkConnectorArn (string) --

        The Amazon Resource Name (ARN) of the network connector used for VPC access during builds.

      • ComputeNetworkConnectorArn (string) --

        The Amazon Resource Name (ARN) of the network connector used for VPC access at runtime.

    • Backend (dict) --

      The backend settings for the environment. You can specify this only when the app has a backend.

      • Auth (string) --

        The authentication settings for the environment's backend, as a JSON document. A secret value must be a reference to a BACKEND-scoped environment variable, in the form ${env:NAME}. If you omit this, the default settings are used.

      • Database (dict) --

        The database settings for the environment. If you omit this, the plan's defaults are used. A value above the limit of the account's plan causes the next deployment to fail, not this request, because the plan can change between the two.

        • MaxBackendCapacityUnits (integer) --

          The maximum number of backend capacity units that the environment's database can scale to.

        • BackupRetentionDays (integer) --

          The number of days to keep automated backups. This is also how far back the environment's database can be restored.

type Tags:

dict

param Tags:

The tags to apply to the resource.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'AppArn': 'string'
}

Response Structure

  • (dict) --

    • AppArn (string) --

      The Amazon Resource Name (ARN) of the app.

GetIdentityProviderConfig (new) Link ¶

Retrieves the identity provider configuration for a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.get_identity_provider_config(
    AppName='string'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

rtype:

dict

returns:

Response Syntax

{
    'AppName': 'string',
    'IdentityProviderName': 'string',
    'IdentityProviderConfig': {
        'Oidc': {
            'IssuerUrl': 'string',
            'ClientId': 'string',
            'TokenType': 'ID'|'ACCESS',
            'TokenValidations': [
                'string',
            ],
            'AuthorizationEndpoint': 'string',
            'TokenEndpoint': 'string',
            'GrantType': 'CODE'|'CODE_WITH_PKCE',
            'RefreshTokenStrategy': 'OFFLINE_ACCESS_SCOPE'|'NO_SCOPE',
            'AuthorizeRequestParams': {
                'string': 'string'
            },
            'TokenRequestParams': {
                'string': 'string'
            }
        },
        'IamIdentityCenter': {
            'InstanceArn': 'string',
            'GroupId': 'string'
        }
    },
    'Status': 'ACTIVE'|'UPDATING'|'ROLLED_BACK',
    'StatusReason': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • AppName (string) --

      The name of the app.

    • IdentityProviderName (string) --

      The name of the identity provider.

    • IdentityProviderConfig (dict) --

      The identity provider configuration.

      • Oidc (dict) --

        The OpenID Connect (OIDC) settings.

        • IssuerUrl (string) --

          The issuer URL for the OpenID Connect (OIDC) provider.

        • ClientId (string) --

          The client ID for the identity provider.

        • TokenType (string) --

          The type of token used to authorize requests.

        • TokenValidations (list) --

          The validations applied to tokens.

          • (string) --

        • AuthorizationEndpoint (string) --

          The authorization endpoint of the OpenID Connect (OIDC) provider.

        • TokenEndpoint (string) --

          The token endpoint of the OpenID Connect (OIDC) provider.

        • GrantType (string) --

          The OAuth grant type used to obtain tokens.

        • RefreshTokenStrategy (string) --

          The strategy used to obtain refresh tokens.

        • AuthorizeRequestParams (dict) --

          Additional parameters to include in the authorization request.

          • (string) --

            • (string) --

        • TokenRequestParams (dict) --

          Additional parameters to include in the token request.

          • (string) --

            • (string) --

      • IamIdentityCenter (dict) --

        The IAM Identity Center settings.

        • InstanceArn (string) --

          The Amazon Resource Name (ARN) of the IAM Identity Center instance.

        • GroupId (string) --

          The ID of the IAM Identity Center group that is granted access.

    • Status (string) --

      The status of the identity provider configuration.

    • StatusReason (string) --

      The reason for the status.

    • CreatedAt (datetime) --

      The time at which the identity provider configuration was created. The value is in ISO-8601 format.

    • UpdatedAt (datetime) --

      The time at which the identity provider configuration was last updated. The value is in ISO-8601 format.

ListNetworkConnectors (new) Link ¶

Returns a list of the network connectors.

See also: AWS API Documentation

Request Syntax

client.list_network_connectors(
    StatusFilter='CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED',
    MaxResults=123,
    NextToken='string'
)
type StatusFilter:

string

param StatusFilter:

Filters the results to network connectors with the specified status.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'NetworkConnectors': [
        {
            'NetworkConnectorName': 'string',
            'NetworkConnectorArn': 'string',
            'Status': 'CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED',
            'StatusReason': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • NetworkConnectors (list) --

      The network connectors.

      • (dict) --

        Summary information for a network connector.

        • NetworkConnectorName (string) --

          The name of the network connector.

        • NetworkConnectorArn (string) --

          The Amazon Resource Name (ARN) of the network connector.

        • Status (string) --

          The status of the network connector.

        • StatusReason (string) --

          The reason for the status.

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

GetEnvironmentsForNetworkConnector (new) Link ¶

Returns a list of the environments that have a network connector.

See also: AWS API Documentation

Request Syntax

client.get_environments_for_network_connector(
    NetworkConnectorName='string',
    MaxResults=123,
    NextToken='string'
)
type NetworkConnectorName:

string

param NetworkConnectorName:

[REQUIRED]

The name of the network connector.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in a single response.

type NextToken:

string

param NextToken:

The pagination token returned in a previous response, used to retrieve the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'ConnectorReferences': [
        {
            'EnvironmentName': 'string',
            'EnvironmentArn': 'string',
            'AppName': 'string',
            'AppArn': 'string',
            'ConnectionTypes': [
                'BUILD'|'COMPUTE',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ConnectorReferences (list) --

      The environments that use the network connector.

      • (dict) --

        Summary information for an environment that uses a network connector.

        • EnvironmentName (string) --

          The name of the environment.

        • EnvironmentArn (string) --

          The Amazon Resource Name (ARN) of the environment.

        • AppName (string) --

          The name of the app.

        • AppArn (string) --

          The Amazon Resource Name (ARN) of the app.

        • ConnectionTypes (list) --

          The connection types used by the environment.

          • (string) --

    • NextToken (string) --

      The pagination token returned in a previous response, used to retrieve the next page of results.

CreateDeployment (new) Link ¶

Creates a deployment for an environment of a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.create_deployment(
    AppName='string',
    EnvironmentName='string',
    SourceConfig={
        'GitSource': {
            'GitRef': 'string'
        },
        'ManualUploadSource': {
            'SourceUploadId': 'string',
            'SourceType': 'SOURCE_CODE'|'PREBUILT_ARTIFACT'
        }
    },
    Description='string',
    Tags={
        'string': 'string'
    },
    BranchArn='string',
    PublishableKeyAction='REUSE'|'CREATE_NEW'
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment.

type SourceConfig:

dict

param SourceConfig:

The source to deploy.

  • GitSource (dict) --

    The Git source information.

    • GitRef (string) -- [REQUIRED]

      The Git reference to deploy, such as a branch or tag.

  • ManualUploadSource (dict) --

    The manually uploaded source information.

    • SourceUploadId (string) -- [REQUIRED]

      The ID of the source upload.

    • SourceType (string) -- [REQUIRED]

      The type of source, such as source code or a prebuilt artifact.

type Description:

string

param Description:

The description of the deployment.

type Tags:

dict

param Tags:

The tags to apply to the resource.

  • (string) --

    • (string) --

type BranchArn:

string

param BranchArn:

The Amazon Resource Name (ARN) of the branch to deploy to. This applies only to an app with a backend. The branch must belong to the same app and environment. In the Production environment, it must be the production branch. If you omit this, Amplify chooses the branch and creates it if it doesn't exist.

type PublishableKeyAction:

string

param PublishableKeyAction:

Specifies what the deployment does with the branch's publishable key, for an app with a backend. CREATE_NEW creates a new key that this deployment and later deployments use. The previous key stays active until you revoke it with RevokeApiKey. REUSE, the default, uses the branch's current key.

rtype:

dict

returns:

Response Syntax

{
    'DeploymentId': 'string',
    'DeploymentArn': 'string',
    'Status': 'QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'EXPIRED'|'CANCELLED'
}

Response Structure

  • (dict) --

    • DeploymentId (string) --

      The ID of the deployment.

    • DeploymentArn (string) --

      The Amazon Resource Name (ARN) of the deployment.

    • Status (string) --

      The status of the deployment.

UpdateApp (new) Link ¶

Updates a Gen 3 app.

See also: AWS API Documentation

Request Syntax

client.update_app(
    AppName='string',
    SourceConfig={
        'GitHubSource': {
            'RepositoryUrl': 'string'
        },
        'GitLabSource': {
            'RepositoryUrl': 'string',
            'Owner': 'string'
        },
        'NoSource': {}

    },
    Web={
        'BuildConfig': {
            'InstallCommand': 'string',
            'BuildCommand': 'string',
            'RootDirectory': 'string',
            'OutputDirectory': 'string'
        }
    },
    Backend={
        'MigrationsDirectory': 'string'
    }
)
type AppName:

string

param AppName:

[REQUIRED]

The name of the app.

type SourceConfig:

dict

param SourceConfig:

The source configuration for the app.

  • GitHubSource (dict) --

    The GitHub source repository settings.

    • RepositoryUrl (string) -- [REQUIRED]

      The URL of the source repository.

  • GitLabSource (dict) --

    The GitLab source repository settings.

    • RepositoryUrl (string) -- [REQUIRED]

      The URL of the source repository.

    • Owner (string) -- [REQUIRED]

      The owner of the repository in the Git provider.

  • NoSource (dict) --

    Removes the configured source repository.

type Web:

dict

param Web:

The web hosting settings for the app.

  • BuildConfig (dict) --

    The build settings.

    • InstallCommand (string) --

      The command that installs dependencies during the build.

    • BuildCommand (string) --

      The command that builds the application.

    • RootDirectory (string) --

      The directory in the repository that contains the application source.

    • OutputDirectory (string) --

      The directory that contains the build output to deploy.

type Backend:

dict

param Backend:

The backend settings for the app. Specify this to add a backend to an app that doesn't have one. For an app that already has a backend, you can change only the migrations directory. Omit this to leave the backend unchanged.

  • MigrationsDirectory (string) --

    The directory that contains the migration files, relative to the root of the source. The default is migrations. Specify an empty string to reset to the default.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --