SDK for PHP V3

Client: Aws\AmplifyGen3\AmplifyGen3Client
Service ID: amplifygen3
Version: 2025-09-18

This page describes the parameters and results for the operations of the AWS Amplify Gen 3 (2025-09-18), and shows how to use the Aws\AmplifyGen3\AmplifyGen3Client object to call the described operations. This documentation is specific to the 2025-09-18 API version of the service.

Service Description

Provides API operations to create and manage Amplify Gen 3 apps, environments, deployments, custom domains, integrations, and related resources.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

AcceptForkPullRequestDeployment ( array $params = [] )
Accepts a deployment for a specific commit from a forked-repository pull request.
CancelGradualRollout ( array $params = [] )
Cancels an in-progress gradual rollout for an alias of an environment and returns traffic to the previous deployment.
CreateApp ( array $params = [] )
Creates a new Amplify Gen 3 app.
CreateDeployment ( array $params = [] )
Creates a deployment for an environment of a Gen 3 app.
CreateDomainAssociation ( array $params = [] )
Creates a domain association that connects a custom domain to a Gen 3 app.
CreateEnvironment ( array $params = [] )
Creates an environment for a Gen 3 app.
CreateIntegrationConfiguration ( array $params = [] )
Creates an integration configuration that makes an external resource available to app environments.
CreateIntegrationConnection ( array $params = [] )
Creates a connection between an integration configuration and an environment.
CreateNetworkConnector ( array $params = [] )
Creates a network connector that provides a Gen 3 app with access to a virtual private cloud (VPC).
CreateSourceUpload ( array $params = [] )
Creates a source upload and returns a presigned URL for uploading application source artifacts from .
DeleteAlias ( array $params = [] )
Deletes an alias for an environment of a Gen 3 app.
DeleteApp ( array $params = [] )
Deletes a Gen 3 app.
DeleteBackendFromApp ( array $params = [] )
Removes the backend from an app.
DeleteBranch ( array $params = [] )
Deletes a branch of an environment and its data.
DeleteDeployment ( array $params = [] )
Deletes a deployment for an environment of a Gen 3 app.
DeleteDomainAssociation ( array $params = [] )
Deletes a domain association for a Gen 3 app.
DeleteEnvironment ( array $params = [] )
Deletes an environment for a Gen 3 app.
DeleteEnvironmentVariables ( array $params = [] )
Deletes environment variables for an environment of a Gen 3 app.
DeleteGitConnection ( array $params = [] )
Deletes a Git connection, so that the service can no longer access repositories through it.
DeleteIdentityProviderConfig ( array $params = [] )
Deletes the identity provider configuration for a Gen 3 app.
DeleteIntegrationConfiguration ( array $params = [] )
Deletes an integration configuration.
DeleteIntegrationConnection ( array $params = [] )
Deletes an integration connection.
DeleteNetworkConnector ( array $params = [] )
Deletes a network connector.
DeleteSourceUpload ( array $params = [] )
Deletes a source upload.
DisableAccessControl ( array $params = [] )
Disables access control for an environment of a Gen 3 app.
EnableAccessControl ( array $params = [] )
Enables access control for an environment of a Gen 3 app so that only authorized users can access it.
GetAccessControl ( array $params = [] )
Retrieves the access control configuration for an environment of a Gen 3 app.
GetAlias ( array $params = [] )
Retrieves an alias for an environment of a Gen 3 app.
GetApiKey ( array $params = [] )
Returns an API key for a branch, including the key value.
GetApp ( array $params = [] )
Retrieves a Gen 3 app.
GetBranch ( array $params = [] )
Returns information about a branch of an environment.
GetDeployment ( array $params = [] )
Retrieves a deployment for an environment of a Gen 3 app.
GetDomainAssociation ( array $params = [] )
Retrieves a domain association for a Gen 3 app.
GetDomainConnectUrl ( array $params = [] )
Retrieves a signed URL you can use to configure DNS for a custom domain through a supported registrar.
GetEnvironment ( array $params = [] )
Retrieves an environment for a Gen 3 app.
GetEnvironmentsForNetworkConnector ( array $params = [] )
Returns a list of the environments that have a network connector.
GetFile ( array $params = [] )
Gets the contents of a file from a repository branch.
GetFolder ( array $params = [] )
Lists the files and subfolders directly inside a folder of a repository branch.
GetIdentityProviderConfig ( array $params = [] )
Retrieves the identity provider configuration for a Gen 3 app.
GetIntegrationConfiguration ( array $params = [] )
Retrieves an integration configuration.
GetIntegrationConnection ( array $params = [] )
Retrieves an integration connection.
GetNetworkConnector ( array $params = [] )
Retrieves a network connector.
GetRestoreWindow ( array $params = [] )
Returns the point-in-time restore window for the production branch.
GetSourceUpload ( array $params = [] )
Retrieves a source upload.
ListAccessControls ( array $params = [] )
Returns a list of the access control configurations for a Gen 3 app.
ListAliases ( array $params = [] )
Returns a list of the aliases for an environment of a Gen 3 app.
ListApiKeys ( array $params = [] )
Returns a list of the API keys for a branch.
ListApps ( array $params = [] )
Returns a list of the existing Gen 3 apps.
ListBranches ( array $params = [] )
Returns a list of the branches for an environment.
ListDeploymentsForApp ( array $params = [] )
Returns a list of the deployments for a Gen 3 app.
ListDeploymentsForEnvironment ( array $params = [] )
Returns a list of the deployments for an environment of a Gen 3 app.
ListDomainAssociationsForAccount ( array $params = [] )
Returns a list of the domain associations for all Gen 3 apps in the account.
ListDomainAssociationsForApp ( array $params = [] )
Returns a list of the domain associations for a Gen 3 app.
ListEnvironmentVariables ( array $params = [] )
Returns a list of the environment variables for an environment of a Gen 3 app.
ListEnvironments ( array $params = [] )
Returns a list of the environments for a Gen 3 app.
ListGitBranches ( array $params = [] )
Lists the branches of a repository.
ListGitConnections ( array $params = [] )
Lists the GitHub and GitLab accounts that are connected to your AWS account in this Region.
ListIntegrationConfigurations ( array $params = [] )
Returns a list of the integration configurations in the account.
ListIntegrationConnections ( array $params = [] )
Returns a list of the integration connections.
ListIntegrationTypes ( array $params = [] )
Returns a list of the available integrations.
ListNetworkConnectors ( array $params = [] )
Returns a list of the network connectors.
ListPlanViolations ( array $params = [] )
List the violations preventing an account to change flat rate plans.
ListRepositories ( array $params = [] )
Lists the repositories that a Git connection can access.
ListSourceUploads ( array $params = [] )
Returns a list of the source uploads in the account.
ListTagsForResource ( array $params = [] )
Returns the tags for an Amplify resource.
PutEnvironmentVariables ( array $params = [] )
Updates environment variables for an environment of a Gen 3 app.
PutIdentityProviderConfig ( array $params = [] )
Updates the identity provider configuration for a Gen 3 app.
ResetCache ( array $params = [] )
Removes cached content for a deployment of an environment by cache tag.
RestoreBranch ( array $params = [] )
Restores the data of the production branch to a point in time in a new branch of the Production environment.
ResumeBackend ( array $params = [] )
Resumes the paused backend of an app by restoring its database from a snapshot.
RevokeApiKey ( array $params = [] )
Revokes an API key for a branch.
RotateIdentityProviderSecret ( array $params = [] )
Rotates the client secret for the identity provider configuration of a Gen 3 app.
StartAuthorizationFlow ( array $params = [] )
Starts connecting a GitHub or GitLab account to your AWS account.
StartCacheRevalidation ( array $params = [] )
Revalidates cached content for a deployment of an environment by cache tag.
TagResource ( array $params = [] )
Adds tags to an Amplify resource.
UntagResource ( array $params = [] )
Removes tags from an Amplify resource.
UpdateAccessControl ( array $params = [] )
Updates the access control configuration for an environment of a Gen 3 app.
UpdateAliasRouting ( array $params = [] )
Updates the traffic routing for an alias of an environment.
UpdateApp ( array $params = [] )
Updates a Gen 3 app.
UpdateDomainAssociation ( array $params = [] )
Updates a domain association for a Gen 3 app.
UpdateEnvironment ( array $params = [] )
Updates an environment for a Gen 3 app.
UpdateIntegrationConfiguration ( array $params = [] )
Updates an integration configuration.
UpdateNetworkConnector ( array $params = [] )
Updates a network connector.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

GetEnvironmentsForNetworkConnector
ListAccessControls
ListAliases
ListApiKeys
ListApps
ListBranches
ListDeploymentsForApp
ListDeploymentsForEnvironment
ListDomainAssociationsForAccount
ListDomainAssociationsForApp
ListEnvironmentVariables
ListEnvironments
ListGitBranches
ListGitConnections
ListIntegrationConfigurations
ListIntegrationConnections
ListIntegrationTypes
ListNetworkConnectors
ListPlanViolations
ListRepositories
ListSourceUploads

Operations

AcceptForkPullRequestDeployment

$result = $client->acceptForkPullRequestDeployment([/* ... */]);
$promise = $client->acceptForkPullRequestDeploymentAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->acceptForkPullRequestDeployment([
    'AppName' => '<string>', // REQUIRED
    'CommitSha' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'PullRequestNumber' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

CommitSha
Required: Yes
Type: string

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

PullRequestNumber
Type: string

The number of the forked-repository pull request.

Result Syntax

[
    'Outcome' => 'ACCEPTED|ALREADY_ACCEPTED',
]

Result Details

Members
Outcome
Required: Yes
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

CancelGradualRollout

$result = $client->cancelGradualRollout([/* ... */]);
$promise = $client->cancelGradualRolloutAsync([/* ... */]);

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

Parameter Syntax

$result = $client->cancelGradualRollout([
    'AliasName' => '<string>', // REQUIRED
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AliasName
Required: Yes
Type: string

The name of the alias.

AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateApp

$result = $client->createApp([/* ... */]);
$promise = $client->createAppAsync([/* ... */]);

Creates a new Amplify Gen 3 app.

Parameter Syntax

$result = $client->createApp([
    'AppName' => '<string>', // REQUIRED
    'Backend' => [
        'MigrationsDirectory' => '<string>',
    ],
    'DefaultEnvironmentsConfiguration' => [ // REQUIRED
        [
            'Backend' => [
                'Auth' => '<string>',
                'Database' => [
                    'BackupRetentionDays' => <integer>,
                    'MaxBackendCapacityUnits' => <integer>,
                ],
            ],
            'EnvironmentNetworkConfig' => [
                'BuildNetworkConnectorArn' => '<string>',
                'ComputeNetworkConnectorArn' => '<string>',
            ],
            'EnvironmentPermissionsConfig' => [ // REQUIRED
                'ExecutionRoleArn' => '<string>', // REQUIRED
                'PermissionMode' => 'SCOPED|FULL',
            ],
            'EnvironmentType' => 'PRODUCTION|PREVIEW', // REQUIRED
        ],
        // ...
    ],
    'SourceConfig' => [
        'GitHubSource' => [
            'ProductionBranch' => '<string>', // REQUIRED
            'RepositoryUrl' => '<string>', // REQUIRED
        ],
        'GitLabSource' => [
            'Owner' => '<string>', // REQUIRED
            'ProductionBranch' => '<string>', // REQUIRED
            'RepositoryUrl' => '<string>', // REQUIRED
        ],
    ],
    'Tags' => ['<string>', ...],
    'Web' => [
        'BuildConfig' => [
            'BuildCommand' => '<string>',
            'InstallCommand' => '<string>',
            'OutputDirectory' => '<string>',
            'RootDirectory' => '<string>',
        ],
    ],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: AppBackendRequest structure

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

DefaultEnvironmentsConfiguration
Required: Yes
Type: Array of DefaultEnvironmentConfiguration structures

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

SourceConfig
Type: AppSourceConfigRequest structure

The source repository configuration for the app.

Tags
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to apply to the resource.

Web
Type: AppWebConfigRequest structure

The web hosting settings for the app.

Result Syntax

[
    'AppArn' => '<string>',
]

Result Details

Members
AppArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the app.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateDeployment

$result = $client->createDeployment([/* ... */]);
$promise = $client->createDeploymentAsync([/* ... */]);

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

Parameter Syntax

$result = $client->createDeployment([
    'AppName' => '<string>', // REQUIRED
    'BranchArn' => '<string>',
    'Description' => '<string>',
    'EnvironmentName' => '<string>', // REQUIRED
    'PublishableKeyAction' => 'REUSE|CREATE_NEW',
    'SourceConfig' => [
        'GitSource' => [
            'GitRef' => '<string>', // REQUIRED
        ],
        'ManualUploadSource' => [
            'SourceType' => 'SOURCE_CODE|PREBUILT_ARTIFACT', // REQUIRED
            'SourceUploadId' => '<string>', // REQUIRED
        ],
    ],
    'Tags' => ['<string>', ...],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

BranchArn
Type: string

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.

Description
Type: string

The description of the deployment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

PublishableKeyAction
Type: string

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.

SourceConfig

The source to deploy.

Tags
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to apply to the resource.

Result Syntax

[
    'DeploymentArn' => '<string>',
    'DeploymentId' => '<string>',
    'Status' => 'QUEUED|IN_PROGRESS|SUCCEEDED|FAILED|EXPIRED|CANCELLED',
]

Result Details

Members
DeploymentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the deployment.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

Status
Required: Yes
Type: string

The status of the deployment.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

RoleNotAssumableException:

The specified IAM role cannot be assumed. Verify the role and its trust policy, and try again.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

CreateDomainAssociation

$result = $client->createDomainAssociation([/* ... */]);
$promise = $client->createDomainAssociationAsync([/* ... */]);

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

Parameter Syntax

$result = $client->createDomainAssociation([
    'AppName' => '<string>', // REQUIRED
    'DnsManagementType' => 'ROUTE_53|MANUAL|NS_DELEGATION', // REQUIRED
    'DomainName' => '<string>', // REQUIRED
    'Routing' => [ // REQUIRED
        'alias' => [
            'AliasArn' => '<string>', // REQUIRED
        ],
        'redirect' => [
            'StatusCode' => 'HTTP_301|HTTP_302|HTTP_307|HTTP_308', // REQUIRED
            'TargetUrl' => '<string>', // REQUIRED
        ],
    ],
    'Tags' => ['<string>', ...],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

DnsManagementType
Required: Yes
Type: string

How DNS records for the domain are managed.

DomainName
Required: Yes
Type: string

The fully qualified domain name.

Routing
Required: Yes
Type: Routing structure

The routing configuration for the domain.

Tags
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to apply to the resource.

Result Syntax

[
    'DnsRecords' => [
        [
            'Name' => '<string>',
            'Purpose' => 'CERTIFICATE_VALIDATION|OWNERSHIP_VERIFICATION|NAMESERVER_DELEGATION|DNS_VALIDATION',
            'Type' => 'CNAME|TXT|A|AAAA|NS',
            'Value' => '<string>',
        ],
        // ...
    ],
    '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',
]

Result Details

Members
DnsRecords
Required: Yes
Type: Array of DnsRecord structures

The DNS records that must be configured for the domain.

DomainAssociationArn
Required: Yes
Type: string

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

DomainStatus
Required: Yes
Type: string

The status of the domain association.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateEnvironment

$result = $client->createEnvironment([/* ... */]);
$promise = $client->createEnvironmentAsync([/* ... */]);

Creates an environment for a Gen 3 app.

Parameter Syntax

$result = $client->createEnvironment([
    'AppName' => '<string>', // REQUIRED
    'Backend' => [
        'Auth' => '<string>',
        'Database' => [
            'BackupRetentionDays' => <integer>,
            'MaxBackendCapacityUnits' => <integer>,
        ],
    ],
    'EnvironmentName' => '<string>', // REQUIRED
    'EnvironmentRoleArn' => '<string>', // REQUIRED
    'EnvironmentRolePermissionMode' => 'SCOPED|FULL',
    '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', // REQUIRED
        ],
    ],
    'NetworkConfig' => [
        'BuildNetworkConnectorArn' => '<string>',
        'ComputeNetworkConnectorArn' => '<string>',
    ],
    'SourceConfig' => [
        'GitSource' => [
            'BranchMatchPatterns' => ['<string>', ...], // REQUIRED
            'DeploymentTriggerEvents' => ['<string>', ...],
        ],
    ],
    'Tags' => ['<string>', ...],
    'Web' => [
        'EnvironmentAliasConfig' => [
            'RoutingMode' => 'AUTO_ROUTE_TO_LATEST|MANUAL',
        ],
        'SkewProtectionConfig' => [
            'CookieMaxAgeSeconds' => <integer>,
            'Status' => 'ENABLED|DISABLED',
        ],
    ],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

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.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

EnvironmentRoleArn
Required: Yes
Type: string

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

EnvironmentRolePermissionMode
Type: string

The permission mode for the environment's IAM role.

GradualRolloutConfig
Type: GradualRolloutConfig structure

The gradual rollout settings for the environment.

NetworkConfig

The VPC network configuration for the environment.

SourceConfig

The source configuration for the environment.

Tags
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to apply to the resource.

Web
Type: EnvironmentWebConfigRequest structure

The web hosting settings for the environment.

Result Syntax

[
    'EnvironmentArn' => '<string>',
]

Result Details

Members
EnvironmentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the environment.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateIntegrationConfiguration

$result = $client->createIntegrationConfiguration([/* ... */]);
$promise = $client->createIntegrationConfigurationAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->createIntegrationConfiguration([
    'EnvironmentVariables' => [
        [
            'Key' => '<string>', // REQUIRED
            'KeyOverride' => '<string>',
            'Type' => 'PLAINTEXT|SENSITIVE',
            'Value' => '<string>',
        ],
        // ...
    ],
    'IntegrationName' => '<string>', // REQUIRED
    'IntegrationTypeId' => '<string>', // REQUIRED
    'ResourceConfiguration' => [
        'Bedrock' => [
            'ModelId' => '<string>',
            'RegionName' => '<string>', // REQUIRED
        ],
        'Custom' => [
            'ResourceArn' => '<string>',
        ],
        'Dsql' => [
            'ClusterArn' => '<string>', // REQUIRED
            'DatabaseUser' => '<string>', // REQUIRED
        ],
        'S3' => [
            'BucketArn' => '<string>', // REQUIRED
        ],
    ],
    'Tags' => ['<string>', ...],
]);

Parameter Details

Members
EnvironmentVariables
Type: Array of IntegrationEnvironmentVariableInput structures

The environment variables.

IntegrationName
Required: Yes
Type: string

The name of the integration.

IntegrationTypeId
Required: Yes
Type: string

The ID of the integration type.

ResourceConfiguration
Type: ResourceConfiguration structure

The resource configuration for the integration.

Tags
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to apply to the resource.

Result Syntax

[
    'IntegrationArn' => '<string>',
]

Result Details

Members
IntegrationArn
Required: Yes
Type: string

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

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateIntegrationConnection

$result = $client->createIntegrationConnection([/* ... */]);
$promise = $client->createIntegrationConnectionAsync([/* ... */]);

Creates a connection between an integration configuration and an environment.

Parameter Syntax

$result = $client->createIntegrationConnection([
    'EnvironmentArn' => '<string>', // REQUIRED
    'IntegrationArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
EnvironmentArn
Required: Yes
Type: string

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

IntegrationArn
Required: Yes
Type: string

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

Result Syntax

[
    'ConnectionId' => '<string>',
    'IntegrationName' => '<string>',
]

Result Details

Members
ConnectionId
Required: Yes
Type: string

The ID of the integration connection.

IntegrationName
Required: Yes
Type: string

The name of the integration.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateNetworkConnector

$result = $client->createNetworkConnector([/* ... */]);
$promise = $client->createNetworkConnectorAsync([/* ... */]);

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

Parameter Syntax

$result = $client->createNetworkConnector([
    'NetworkConnectorName' => '<string>', // REQUIRED
    'NetworkConnectorRoleArn' => '<string>', // REQUIRED
    'SecurityGroupIds' => ['<string>', ...], // REQUIRED
    'SubnetIds' => ['<string>', ...], // REQUIRED
    'Tags' => ['<string>', ...],
]);

Parameter Details

Members
NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

NetworkConnectorRoleArn
Required: Yes
Type: string

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

SecurityGroupIds
Required: Yes
Type: Array of strings

The IDs of the security groups for the network connector.

SubnetIds
Required: Yes
Type: Array of strings

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

Tags
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to apply to the resource.

Result Syntax

[
    'Status' => 'CREATING|ACTIVE|CREATE_FAILED|UPDATING|UPDATE_FAILED|DELETING|DELETE_FAILED',
]

Result Details

Members
Status
Required: Yes
Type: string

The status of the network connector.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

CreateSourceUpload

$result = $client->createSourceUpload([/* ... */]);
$promise = $client->createSourceUploadAsync([/* ... */]);

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

Parameter Syntax

$result = $client->createSourceUpload([
    'ZipUpload' => [ // REQUIRED
        'Digest' => '<string>', // REQUIRED
    ],
]);

Parameter Details

Members
ZipUpload
Required: Yes
Type: ZipUploadRequest structure

The .zip file to upload as the source.

Result Syntax

[
    'SourceUploadId' => '<string>',
    'UploadExpiresAt' => <DateTime>,
    'ZipUpload' => [
        'Digest' => '<string>',
        'UploadUrl' => '<string>',
        'UrlExpiresAt' => <DateTime>,
    ],
]

Result Details

Members
SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

UploadExpiresAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

ZipUpload
Required: Yes
Type: ZipUpload structure

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

DeleteAlias

$result = $client->deleteAlias([/* ... */]);
$promise = $client->deleteAliasAsync([/* ... */]);

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

Parameter Syntax

$result = $client->deleteAlias([
    'AliasName' => '<string>', // REQUIRED
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AliasName
Required: Yes
Type: string

The name of the alias.

AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteApp

$result = $client->deleteApp([/* ... */]);
$promise = $client->deleteAppAsync([/* ... */]);

Deletes a Gen 3 app.

Parameter Syntax

$result = $client->deleteApp([
    'AppName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteBackendFromApp

$result = $client->deleteBackendFromApp([/* ... */]);
$promise = $client->deleteBackendFromAppAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->deleteBackendFromApp([
    'AppName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteBranch

$result = $client->deleteBranch([/* ... */]);
$promise = $client->deleteBranchAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->deleteBranch([
    'AppName' => '<string>', // REQUIRED
    'BranchName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

BranchName
Required: Yes
Type: string

The name of the branch to delete.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteDeployment

$result = $client->deleteDeployment([/* ... */]);
$promise = $client->deleteDeploymentAsync([/* ... */]);

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

Parameter Syntax

$result = $client->deleteDeployment([
    'AppName' => '<string>', // REQUIRED
    'DeploymentId' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteDomainAssociation

$result = $client->deleteDomainAssociation([/* ... */]);
$promise = $client->deleteDomainAssociationAsync([/* ... */]);

Deletes a domain association for a Gen 3 app.

Parameter Syntax

$result = $client->deleteDomainAssociation([
    'AppName' => '<string>', // REQUIRED
    'DomainName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

DomainName
Required: Yes
Type: string

The fully qualified domain name.

Result 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',
]

Result Details

Members
DomainStatus
Required: Yes
Type: string

The status of the domain association.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteEnvironment

$result = $client->deleteEnvironment([/* ... */]);
$promise = $client->deleteEnvironmentAsync([/* ... */]);

Deletes an environment for a Gen 3 app.

Parameter Syntax

$result = $client->deleteEnvironment([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteEnvironmentVariables

$result = $client->deleteEnvironmentVariables([/* ... */]);
$promise = $client->deleteEnvironmentVariablesAsync([/* ... */]);

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

Parameter Syntax

$result = $client->deleteEnvironmentVariables([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'Keys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Keys
Required: Yes
Type: Array of strings

The keys of the environment variables to delete.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteGitConnection

$result = $client->deleteGitConnection([/* ... */]);
$promise = $client->deleteGitConnectionAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->deleteGitConnection([
    'Owner' => '<string>', // REQUIRED
    'Provider' => 'GITHUB|GITLAB', // REQUIRED
]);

Parameter Details

Members
Owner
Required: Yes
Type: string

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.

Provider
Required: Yes
Type: string

The Git provider.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

DeleteIdentityProviderConfig

$result = $client->deleteIdentityProviderConfig([/* ... */]);
$promise = $client->deleteIdentityProviderConfigAsync([/* ... */]);

Deletes the identity provider configuration for a Gen 3 app.

Parameter Syntax

$result = $client->deleteIdentityProviderConfig([
    'AppName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteIntegrationConfiguration

$result = $client->deleteIntegrationConfiguration([/* ... */]);
$promise = $client->deleteIntegrationConfigurationAsync([/* ... */]);

Deletes an integration configuration.

Parameter Syntax

$result = $client->deleteIntegrationConfiguration([
    'IntegrationName' => '<string>', // REQUIRED
]);

Parameter Details

Members
IntegrationName
Required: Yes
Type: string

The name of the integration.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteIntegrationConnection

$result = $client->deleteIntegrationConnection([/* ... */]);
$promise = $client->deleteIntegrationConnectionAsync([/* ... */]);

Deletes an integration connection.

Parameter Syntax

$result = $client->deleteIntegrationConnection([
    'ConnectionId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ConnectionId
Required: Yes
Type: string

The ID of the integration connection.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

DeleteNetworkConnector

$result = $client->deleteNetworkConnector([/* ... */]);
$promise = $client->deleteNetworkConnectorAsync([/* ... */]);

Deletes a network connector.

Parameter Syntax

$result = $client->deleteNetworkConnector([
    'NetworkConnectorName' => '<string>', // REQUIRED
]);

Parameter Details

Members
NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

Result Syntax

[
    'Status' => 'CREATING|ACTIVE|CREATE_FAILED|UPDATING|UPDATE_FAILED|DELETING|DELETE_FAILED',
]

Result Details

Members
Status
Required: Yes
Type: string

The status of the network connector.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

DeleteSourceUpload

$result = $client->deleteSourceUpload([/* ... */]);
$promise = $client->deleteSourceUploadAsync([/* ... */]);

Deletes a source upload.

Parameter Syntax

$result = $client->deleteSourceUpload([
    'SourceUploadId' => '<string>', // REQUIRED
]);

Parameter Details

Members
SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

DisableAccessControl

$result = $client->disableAccessControl([/* ... */]);
$promise = $client->disableAccessControlAsync([/* ... */]);

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

Parameter Syntax

$result = $client->disableAccessControl([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

EnableAccessControl

$result = $client->enableAccessControl([/* ... */]);
$promise = $client->enableAccessControlAsync([/* ... */]);

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

Parameter Syntax

$result = $client->enableAccessControl([
    'AppName' => '<string>', // REQUIRED
    'ClientToken' => '<string>',
    'EnvironmentName' => '<string>', // REQUIRED
    'Rule' => [
        'AnyAuthenticatedUser' => [
        ],
        'UserClaims' => [
            [
                'Key' => '<string>', // REQUIRED
                'Operator' => 'EQUALS|CONTAINS|BEGINS_WITH|ENDS_WITH',
                'Value' => '<string>', // REQUIRED
            ],
            // ...
        ],
    ],
    'Scope' => 'ALL_DEPLOYMENTS|NON_ACTIVE_DEPLOYMENTS',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

ClientToken
Type: string

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Rule
Type: AccessControlRule structure

The rule that determines which users are granted access.

Scope
Type: string

The scope that the access control configuration applies to.

Result Syntax

[
    'Status' => 'ENABLING|ENABLED|ENABLE_FAILED|UPDATING|UPDATE_FAILED|DISABLING|DISABLED|DISABLE_FAILED',
    'StatusReason' => '<string>',
]

Result Details

Members
Status
Required: Yes
Type: string

The status of the access control configuration.

StatusReason
Type: string

The reason for the status.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

GetAccessControl

$result = $client->getAccessControl([/* ... */]);
$promise = $client->getAccessControlAsync([/* ... */]);

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

Parameter Syntax

$result = $client->getAccessControl([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[
    'AppName' => '<string>',
    'EnabledAt' => <DateTime>,
    'EnvironmentName' => '<string>',
    'ProviderType' => 'OIDC|IAM_IDENTITY_CENTER',
    'Rule' => [
        'AnyAuthenticatedUser' => [
        ],
        'UserClaims' => [
            [
                'Key' => '<string>',
                'Operator' => 'EQUALS|CONTAINS|BEGINS_WITH|ENDS_WITH',
                'Value' => '<string>',
            ],
            // ...
        ],
    ],
    'Scope' => 'ALL_DEPLOYMENTS|NON_ACTIVE_DEPLOYMENTS',
    'Status' => 'ENABLING|ENABLED|ENABLE_FAILED|UPDATING|UPDATE_FAILED|DISABLING|DISABLED|DISABLE_FAILED',
    'StatusReason' => '<string>',
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnabledAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

ProviderType
Type: string

The type of identity provider.

Rule
Type: AccessControlRule structure

The rule that determines which users are granted access.

Scope
Type: string

The scope that the access control configuration applies to.

Status
Required: Yes
Type: string

The status of the access control configuration.

StatusReason
Type: string

The reason for the status.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetAlias

$result = $client->getAlias([/* ... */]);
$promise = $client->getAliasAsync([/* ... */]);

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

Parameter Syntax

$result = $client->getAlias([
    'AliasName' => '<string>', // REQUIRED
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AliasName
Required: Yes
Type: string

The name of the alias.

AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[
    'AliasArn' => '<string>',
    'AliasName' => '<string>',
    'CreatedAt' => <DateTime>,
    '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' => [
        'CurrentStageIndex' => <integer>,
        'EndedAt' => <DateTime>,
        'Schedule' => [
            [
                'EffectiveAt' => <DateTime>,
                'Weight' => <integer>,
            ],
            // ...
        ],
        'SourceRoutingConfig' => [
            [
                'DeploymentId' => '<string>',
                'Weight' => <integer>,
            ],
            // ...
        ],
        'StartedAt' => <DateTime>,
        'Status' => 'IN_PROGRESS|COMPLETED|CANCELLED',
        'TargetRoutingConfig' => [
            [
                'DeploymentId' => '<string>',
                'Weight' => <integer>,
            ],
            // ...
        ],
    ],
    'RoutingConfig' => [
        [
            'DeploymentId' => '<string>',
            'Weight' => <integer>,
        ],
        // ...
    ],
    'Type' => 'ENVIRONMENT|BRANCH|PULL_REQUEST',
    'UpdatedAt' => <DateTime>,
    'Url' => '<string>',
]

Result Details

Members
AliasArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the alias.

AliasName
Required: Yes
Type: string

The name of the alias.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

GradualRolloutConfig
Type: GradualRolloutConfig structure

The gradual rollout settings.

GradualRolloutState
Type: GradualRolloutState structure

The current state of the gradual rollout.

RoutingConfig
Type: Array of RoutingConfigEntry structures

The traffic routing configuration.

Type
Required: Yes
Type: string

The type of the alias.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Url
Type: string

The URL of the alias.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetApiKey

$result = $client->getApiKey([/* ... */]);
$promise = $client->getApiKeyAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->getApiKey([
    'ApiKeyId' => '<string>', // REQUIRED
    'BranchArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
ApiKeyId
Required: Yes
Type: string

The ID of the API key to return.

BranchArn
Required: Yes
Type: string

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

Result Syntax

[
    'ApiKey' => '<string>',
    'ApiKeyId' => '<string>',
    'CreatedAt' => <DateTime>,
    'Status' => 'ACTIVE|INACTIVE',
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
ApiKey
Required: Yes
Type: string

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

ApiKeyId
Required: Yes
Type: string

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

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Status
Required: Yes
Type: string

The status of the API key.

UpdatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetApp

$result = $client->getApp([/* ... */]);
$promise = $client->getAppAsync([/* ... */]);

Retrieves a Gen 3 app.

Parameter Syntax

$result = $client->getApp([
    'AppName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Result Syntax

[
    'AppArn' => '<string>',
    'AppName' => '<string>',
    'Backend' => [
        'DatabaseUsage' => [
            'LastUsedAt' => <DateTime>,
            'MonthlyBackendCapacityUnitHours' => <float>,
        ],
        'MigrationsDirectory' => '<string>',
        'Status' => 'READY|CREATING|DELETING|PAUSING|PAUSED|RESUMING',
    ],
    'CreatedAt' => <DateTime>,
    'SourceConfig' => [
        'GitHubSource' => [
            'RepositoryUrl' => '<string>',
        ],
        'GitLabSource' => [
            'Owner' => '<string>',
            'RepositoryUrl' => '<string>',
        ],
    ],
    'UpdatedAt' => <DateTime>,
    'WafConfigs' => [
        [
            'StatusReason' => '<string>',
            'StatusReasonCode' => 'WEBACL_NOT_FOUND|ASSOCIATION_LIMIT_EXCEEDED|FIREWALL_UPDATE_TIMEOUT|FIREWALL_UPDATE_FAILED|INTERNAL_ERROR',
            'WafStatus' => 'ASSOCIATING|ASSOCIATED|ASSOCIATION_FAILED|DISASSOCIATING|DISASSOCIATION_FAILED',
            'WebAclArn' => '<string>',
        ],
        // ...
    ],
    'Web' => [
        'BuildConfig' => [
            'BuildCommand' => '<string>',
            'InstallCommand' => '<string>',
            'OutputDirectory' => '<string>',
            'RootDirectory' => '<string>',
        ],
    ],
]

Result Details

Members
AppArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the app.

AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: AppBackend structure

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

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

SourceConfig
Type: AppSourceConfig structure

The source configuration for the app.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

WafConfigs
Type: Array of WafConfig structures

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

Web
Type: AppWebConfig structure

The web hosting settings for the app.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

InternalServerException:

An internal error occurred. Retry the request.

GetBranch

$result = $client->getBranch([/* ... */]);
$promise = $client->getBranchAsync([/* ... */]);

Returns information about a branch of an environment.

Parameter Syntax

$result = $client->getBranch([
    'AppName' => '<string>', // REQUIRED
    'BranchName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

BranchName
Required: Yes
Type: string

The name of the branch.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[
    'AppName' => '<string>',
    'Backend' => [
        'Auth' => '<string>',
        'DatabaseConfig' => [
            'BackupRetentionDays' => <integer>,
            'MaxBackendCapacityUnits' => <integer>,
        ],
        'DatabaseConnection' => [
            'DatabaseName' => '<string>',
            'Host' => '<string>',
            'Port' => <integer>,
            'Username' => '<string>',
        ],
        'DatabaseUsage' => [
            'Connections' => <integer>,
            'LastUsedAt' => <DateTime>,
            'MonthlyBackendCapacityUnitHours' => <float>,
            'SampledAt' => <DateTime>,
            'StorageBytes' => <integer>,
        ],
        'Status' => 'READY|CREATING|DELETING|FAILED_TO_CREATE|PAUSING|PAUSED|RESUMING',
        'Url' => '<string>',
    ],
    'BranchArn' => '<string>',
    'BranchName' => '<string>',
    'CreatedAt' => <DateTime>,
    'EnvironmentName' => '<string>',
    'GitBranchName' => '<string>',
    'SourceBranch' => [
        'BranchArn' => '<string>',
        'BranchName' => '<string>',
        'RestoreToTime' => <DateTime>,
    ],
]

Result Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: BranchBackend structure

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

BranchArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the branch.

BranchName
Required: Yes
Type: string

The name of the branch.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

GitBranchName
Type: 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.

SourceBranch
Type: RestoreSourceBranch structure

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.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetDeployment

$result = $client->getDeployment([/* ... */]);
$promise = $client->getDeploymentAsync([/* ... */]);

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

Parameter Syntax

$result = $client->getDeployment([
    'AppName' => '<string>', // REQUIRED
    'DeploymentId' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[
    'Aliases' => [
        [
            'AliasArn' => '<string>',
            'AliasName' => '<string>',
            'CreatedAt' => <DateTime>,
            'RoutingConfig' => [
                [
                    'DeploymentId' => '<string>',
                    'Weight' => <integer>,
                ],
                // ...
            ],
            'Type' => 'ENVIRONMENT|BRANCH|PULL_REQUEST',
            'UpdatedAt' => <DateTime>,
            'Url' => '<string>',
        ],
        // ...
    ],
    'AppName' => '<string>',
    'Backend' => [
        'Auth' => '<string>',
        'Database' => [
            'BackupRetentionDays' => <integer>,
            'MaxBackendCapacityUnits' => <integer>,
        ],
        'MigrationsDirectory' => '<string>',
    ],
    'Branch' => [
        'Backend' => [
            'PublishableKeyId' => '<string>',
            'Url' => '<string>',
        ],
        'BranchArn' => '<string>',
        'BranchName' => '<string>',
    ],
    'CreatedAt' => <DateTime>,
    'DeploymentArn' => '<string>',
    'DeploymentId' => '<string>',
    'Description' => '<string>',
    'DomainName' => '<string>',
    'EndedAt' => <DateTime>,
    'EnvironmentName' => '<string>',
    'EnvironmentVariables' => [
        [
            'Comment' => '<string>',
            'Key' => '<string>',
            'Scope' => 'BUILD|RUNTIME|ALL|BACKEND',
            'SourceIntegrationArn' => '<string>',
            'Type' => 'PLAINTEXT|SENSITIVE',
            'Value' => '<string>',
        ],
        // ...
    ],
    'ExpiredAt' => <DateTime>,
    'SessionPolicy' => '<string>',
    'SourceConfig' => [
        'GitSource' => [
            'Author' => '<string>',
            'CommitId' => '<string>',
            'CommitMessage' => '<string>',
            'GitRef' => '<string>',
            'RepositoryUrl' => '<string>',
        ],
        'ManualUploadSource' => [
            'SourceType' => 'SOURCE_CODE|PREBUILT_ARTIFACT',
            'SourceUploadId' => '<string>',
        ],
    ],
    'StartedAt' => <DateTime>,
    'Status' => 'QUEUED|IN_PROGRESS|SUCCEEDED|FAILED|EXPIRED|CANCELLED',
    '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',
    'Steps' => [
        'Build' => [
            'EndedAt' => <DateTime>,
            'StartedAt' => <DateTime>,
            'Status' => 'NOT_STARTED|IN_PROGRESS|SUCCEEDED|FAILED',
        ],
        'Deploy' => [
            'EndedAt' => <DateTime>,
            'StartedAt' => <DateTime>,
            'Status' => 'NOT_STARTED|IN_PROGRESS|SUCCEEDED|FAILED',
        ],
        'Migration' => [
            'AppliedMigrationNames' => ['<string>', ...],
            'EndedAt' => <DateTime>,
            'SkippedMigrationNames' => ['<string>', ...],
            'StartedAt' => <DateTime>,
            'Status' => 'NOT_STARTED|IN_PROGRESS|SUCCEEDED|FAILED',
        ],
    ],
]

Result Details

Members
Aliases
Type: Array of AliasSummary structures

The aliases.

AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: DeploymentBackend structure

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

Branch
Type: DeploymentBranch structure

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

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

DeploymentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the deployment.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

Description
Type: string

The description of the deployment.

DomainName
Type: string

The fully qualified domain name.

EndedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

EnvironmentVariables
Type: Array of EnvironmentVariableOutput structures

The environment variables.

ExpiredAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

SessionPolicy
Type: string

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

SourceConfig
Type: DeploymentSourceConfig structure

The source configuration for the deployment.

StartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Status
Required: Yes
Type: string

The status of the deployment.

StatusReason
Type: string

The reason for the status.

StatusReasonCode
Type: string

A code that identifies the reason for the status.

Steps
Type: DeploymentSteps structure

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetDomainAssociation

$result = $client->getDomainAssociation([/* ... */]);
$promise = $client->getDomainAssociationAsync([/* ... */]);

Retrieves a domain association for a Gen 3 app.

Parameter Syntax

$result = $client->getDomainAssociation([
    'AppName' => '<string>', // REQUIRED
    'DomainName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

DomainName
Required: Yes
Type: string

The fully qualified domain name.

Result Syntax

[
    'AppName' => '<string>',
    'CertificateStatus' => 'PENDING_VERIFICATION|ISSUED|FAILED',
    'CreatedAt' => <DateTime>,
    'DnsManagementType' => 'ROUTE_53|MANUAL|NS_DELEGATION',
    'DnsRecords' => [
        [
            'Name' => '<string>',
            'Purpose' => 'CERTIFICATE_VALIDATION|OWNERSHIP_VERIFICATION|NAMESERVER_DELEGATION|DNS_VALIDATION',
            'Type' => 'CNAME|TXT|A|AAAA|NS',
            'Value' => '<string>',
        ],
        // ...
    ],
    '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',
    'OwnershipVerificationStatus' => 'PENDING_VERIFICATION|VERIFIED|FAILED',
    'Routing' => [
        'alias' => [
            'AliasArn' => '<string>',
        ],
        'redirect' => [
            'StatusCode' => 'HTTP_301|HTTP_302|HTTP_307|HTTP_308',
            'TargetUrl' => '<string>',
        ],
    ],
    'StatusMessage' => '<string>',
    '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',
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
AppName
Required: Yes
Type: string

The name of the app.

CertificateStatus
Type: string

The status of the domain's TLS certificate.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

DnsManagementType
Required: Yes
Type: string

How DNS records for the domain are managed.

DnsRecords
Required: Yes
Type: Array of DnsRecord structures

The DNS records that must be configured for the domain.

DomainAssociationArn
Required: Yes
Type: string

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

DomainName
Required: Yes
Type: string

The fully qualified domain name.

DomainStatus
Required: Yes
Type: string

The status of the domain association.

OwnershipVerificationStatus
Type: string

The status of domain ownership verification.

Routing
Required: Yes
Type: Routing structure

The routing configuration for the domain.

StatusMessage
Type: string

A message describing the status.

StatusReasonCode
Type: string

A code that identifies the reason for the status.

UpdatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetDomainConnectUrl

$result = $client->getDomainConnectUrl([/* ... */]);
$promise = $client->getDomainConnectUrlAsync([/* ... */]);

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

Parameter Syntax

$result = $client->getDomainConnectUrl([
    'AppName' => '<string>', // REQUIRED
    'CallbackUrl' => '<string>',
    'DomainName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

CallbackUrl
Type: string

The URL to return to after the registrar setup completes.

DomainName
Required: Yes
Type: string

The domain name.

Result Syntax

[
    'ProviderDisplayName' => '<string>',
    'ProviderId' => '<string>',
    'SignedRedirectUrl' => '<string>',
    'Status' => 'SUPPORTED|UNSUPPORTED',
]

Result Details

Members
ProviderDisplayName
Type: string

The display name of the domain's registrar.

ProviderId
Type: string

The identifier of the domain's registrar.

SignedRedirectUrl
Type: string

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

Status
Required: Yes
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetEnvironment

$result = $client->getEnvironment([/* ... */]);
$promise = $client->getEnvironmentAsync([/* ... */]);

Retrieves an environment for a Gen 3 app.

Parameter Syntax

$result = $client->getEnvironment([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[
    'AppName' => '<string>',
    'Backend' => [
        'Auth' => '<string>',
        'Database' => [
            'BackupRetentionDays' => <integer>,
            'MaxBackendCapacityUnits' => <integer>,
        ],
        'DatabaseLogConfig' => [
            'CloudWatchLogsConfig' => [
                'LogGroupArn' => '<string>',
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED',
            ],
            'S3Config' => [
                'BucketArn' => '<string>',
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED',
            ],
        ],
    ],
    'CreatedAt' => <DateTime>,
    'EnvironmentArn' => '<string>',
    'EnvironmentName' => '<string>',
    'EnvironmentRoleArn' => '<string>',
    'EnvironmentRolePermissionMode' => 'SCOPED|FULL',
    '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',
        ],
    ],
    'NetworkConfig' => [
        'BuildNetworkConnectorArn' => '<string>',
        'ComputeNetworkConnectorArn' => '<string>',
    ],
    'SourceConfig' => [
        'GitSource' => [
            'BranchMatchPatterns' => ['<string>', ...],
            'DeploymentTriggerEvents' => ['<string>', ...],
        ],
    ],
    'Type' => 'PRODUCTION|PREVIEW|CUSTOM',
    'UpdatedAt' => <DateTime>,
    'WafLogConfigs' => [
        [
            'CloudWatchLogsConfig' => [
                'LogGroupArn' => '<string>',
                'SamplingRate' => <integer>,
                'Scope' => 'ALL_REQUESTS|BLOCKED_ONLY',
                'Status' => 'ENABLED|DISABLED',
            ],
            'S3Config' => [
                'BucketArn' => '<string>',
                'SamplingRate' => <integer>,
                'Scope' => 'ALL_REQUESTS|BLOCKED_ONLY',
                'Status' => 'ENABLED|DISABLED',
            ],
        ],
        // ...
    ],
    'Web' => [
        'AccessLogConfig' => [
            'CloudWatchLogsConfig' => [
                'LogGroupArn' => '<string>',
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED',
            ],
            'S3Config' => [
                'BucketArn' => '<string>',
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED',
            ],
        ],
        'EnvironmentAliasConfig' => [
            'RoutingMode' => 'AUTO_ROUTE_TO_LATEST|MANUAL',
        ],
        'SkewProtectionConfig' => [
            'CookieMaxAgeSeconds' => <integer>,
            'Status' => 'ENABLED|DISABLED',
        ],
    ],
]

Result Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: EnvironmentBackend structure

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

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the environment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

EnvironmentRoleArn
Required: Yes
Type: string

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

EnvironmentRolePermissionMode
Type: string

The permission mode for the environment's IAM role.

GradualRolloutConfig
Type: GradualRolloutConfig structure

The gradual rollout settings.

NetworkConfig
Type: EnvironmentNetworkConfig structure

The VPC network configuration for the environment.

SourceConfig
Type: EnvironmentSourceConfig structure

The source configuration for the environment.

Type
Required: Yes
Type: string

The type of the environment.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

WafLogConfigs
Type: Array of WafLogConfig structures

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

Web
Type: EnvironmentWebConfig structure

The web hosting settings for the environment.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetEnvironmentsForNetworkConnector

$result = $client->getEnvironmentsForNetworkConnector([/* ... */]);
$promise = $client->getEnvironmentsForNetworkConnectorAsync([/* ... */]);

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

Parameter Syntax

$result = $client->getEnvironmentsForNetworkConnector([
    'MaxResults' => <integer>,
    'NetworkConnectorName' => '<string>', // REQUIRED
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

NextToken
Type: string

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

Result Syntax

[
    'ConnectorReferences' => [
        [
            'AppArn' => '<string>',
            'AppName' => '<string>',
            'ConnectionTypes' => ['<string>', ...],
            'EnvironmentArn' => '<string>',
            'EnvironmentName' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
ConnectorReferences
Required: Yes
Type: Array of ConnectorReferenceSummary structures

The environments that use the network connector.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetFile

$result = $client->getFile([/* ... */]);
$promise = $client->getFileAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->getFile([
    'Branch' => '<string>', // REQUIRED
    'FilePath' => '<string>', // REQUIRED
    'Owner' => '<string>', // REQUIRED
    'Provider' => 'GITHUB|GITLAB', // REQUIRED
    'RepositoryName' => '<string>',
    'RepositoryPath' => '<string>', // REQUIRED
]);

Parameter Details

Members
Branch
Required: Yes
Type: string

The name of the branch to read from.

FilePath
Required: Yes
Type: string

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

Owner
Required: Yes
Type: string

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.

Provider
Required: Yes
Type: string

The Git provider.

RepositoryName
Type: string

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

RepositoryPath
Required: Yes
Type: 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. To get this value, call ListRepositories.

Result Syntax

[
    'Content' => <string || resource || Psr\Http\Message\StreamInterface>,
    'FilePath' => '<string>',
    'Sha' => '<string>',
    'Size' => <integer>,
]

Result Details

Members
Content
Required: Yes
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The contents of the file.

FilePath
Required: Yes
Type: string

The path of the file that was returned.

Sha
Required: Yes
Type: string

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

Size
Required: Yes
Type: long (int|float)

The size of the file, in bytes.

Errors

GitConnectionDisconnectedException:

The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetFolder

$result = $client->getFolder([/* ... */]);
$promise = $client->getFolderAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->getFolder([
    'Branch' => '<string>', // REQUIRED
    'FolderPath' => '<string>', // REQUIRED
    'Owner' => '<string>', // REQUIRED
    'Provider' => 'GITHUB|GITLAB', // REQUIRED
    'RepositoryName' => '<string>',
    'RepositoryPath' => '<string>', // REQUIRED
]);

Parameter Details

Members
Branch
Required: Yes
Type: string

The name of the branch to read from.

FolderPath
Required: Yes
Type: string

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

Owner
Required: Yes
Type: string

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.

Provider
Required: Yes
Type: string

The Git provider.

RepositoryName
Type: string

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

RepositoryPath
Required: Yes
Type: 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. To get this value, call ListRepositories.

Result Syntax

[
    'Files' => [
        [
            'AbsolutePath' => '<string>',
            'RelativePath' => '<string>',
        ],
        // ...
    ],
    'FolderPath' => '<string>',
    'SubFolders' => [
        [
            'AbsolutePath' => '<string>',
            'RelativePath' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Files
Required: Yes
Type: Array of FileReference structures

The files directly inside the folder.

FolderPath
Required: Yes
Type: string

The path of the folder that was listed.

SubFolders
Required: Yes
Type: Array of FolderReference structures

The folders directly inside the folder.

Errors

GitConnectionDisconnectedException:

The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetIdentityProviderConfig

$result = $client->getIdentityProviderConfig([/* ... */]);
$promise = $client->getIdentityProviderConfigAsync([/* ... */]);

Retrieves the identity provider configuration for a Gen 3 app.

Parameter Syntax

$result = $client->getIdentityProviderConfig([
    'AppName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Result Syntax

[
    'AppName' => '<string>',
    'CreatedAt' => <DateTime>,
    'IdentityProviderConfig' => [
        'IamIdentityCenter' => [
            'GroupId' => '<string>',
            'InstanceArn' => '<string>',
        ],
        'Oidc' => [
            'AuthorizationEndpoint' => '<string>',
            'AuthorizeRequestParams' => ['<string>', ...],
            'ClientId' => '<string>',
            'GrantType' => 'CODE|CODE_WITH_PKCE',
            'IssuerUrl' => '<string>',
            'RefreshTokenStrategy' => 'OFFLINE_ACCESS_SCOPE|NO_SCOPE',
            'TokenEndpoint' => '<string>',
            'TokenRequestParams' => ['<string>', ...],
            'TokenType' => 'ID|ACCESS',
            'TokenValidations' => ['<string>', ...],
        ],
    ],
    'IdentityProviderName' => '<string>',
    'Status' => 'ACTIVE|UPDATING|ROLLED_BACK',
    'StatusReason' => '<string>',
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
AppName
Required: Yes
Type: string

The name of the app.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

IdentityProviderConfig
Required: Yes
Type: IdentityProviderConfig structure

The identity provider configuration.

IdentityProviderName
Required: Yes
Type: string

The name of the identity provider.

Status
Required: Yes
Type: string

The status of the identity provider configuration.

StatusReason
Type: string

The reason for the status.

UpdatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetIntegrationConfiguration

$result = $client->getIntegrationConfiguration([/* ... */]);
$promise = $client->getIntegrationConfigurationAsync([/* ... */]);

Retrieves an integration configuration.

Parameter Syntax

$result = $client->getIntegrationConfiguration([
    'IntegrationName' => '<string>', // REQUIRED
]);

Parameter Details

Members
IntegrationName
Required: Yes
Type: string

The name of the integration.

Result Syntax

[
    'CreatedAt' => <DateTime>,
    'EnvironmentVariables' => [
        [
            'Key' => '<string>',
            'KeyOverride' => '<string>',
            'Type' => 'PLAINTEXT|SENSITIVE',
            'Value' => '<string>',
        ],
        // ...
    ],
    'IntegrationArn' => '<string>',
    'IntegrationName' => '<string>',
    'IntegrationTypeId' => '<string>',
    'ResourceConfiguration' => [
        'Bedrock' => [
            'ModelId' => '<string>',
            'RegionName' => '<string>',
        ],
        'Custom' => [
            'ResourceArn' => '<string>',
        ],
        'Dsql' => [
            'ClusterArn' => '<string>',
            'DatabaseUser' => '<string>',
        ],
        'S3' => [
            'BucketArn' => '<string>',
        ],
    ],
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentVariables
Required: Yes
Type: Array of IntegrationEnvironmentVariable structures

The environment variables.

IntegrationArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the integration.

IntegrationName
Required: Yes
Type: string

The name of the integration.

IntegrationTypeId
Required: Yes
Type: string

The ID of the integration type.

ResourceConfiguration
Type: ResourceConfiguration structure

The resource configuration for the integration.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetIntegrationConnection

$result = $client->getIntegrationConnection([/* ... */]);
$promise = $client->getIntegrationConnectionAsync([/* ... */]);

Retrieves an integration connection.

Parameter Syntax

$result = $client->getIntegrationConnection([
    'ConnectionId' => '<string>', // REQUIRED
]);

Parameter Details

Members
ConnectionId
Required: Yes
Type: string

The ID of the integration connection.

Result Syntax

[
    'ConnectionId' => '<string>',
    'CreatedAt' => <DateTime>,
    'EnvironmentArn' => '<string>',
    'IntegrationArn' => '<string>',
    'IntegrationName' => '<string>',
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
ConnectionId
Required: Yes
Type: string

The ID of the integration connection.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the environment.

IntegrationArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the integration.

IntegrationName
Required: Yes
Type: string

The name of the integration.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetNetworkConnector

$result = $client->getNetworkConnector([/* ... */]);
$promise = $client->getNetworkConnectorAsync([/* ... */]);

Retrieves a network connector.

Parameter Syntax

$result = $client->getNetworkConnector([
    'NetworkConnectorName' => '<string>', // REQUIRED
]);

Parameter Details

Members
NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

Result Syntax

[
    'CreatedAt' => <DateTime>,
    'NetworkConnectorArn' => '<string>',
    'NetworkConnectorName' => '<string>',
    'NetworkConnectorRoleArn' => '<string>',
    'SecurityGroupIds' => ['<string>', ...],
    'Status' => 'CREATING|ACTIVE|CREATE_FAILED|UPDATING|UPDATE_FAILED|DELETING|DELETE_FAILED',
    'StatusReason' => '<string>',
    'SubnetIds' => ['<string>', ...],
    'UpdatedAt' => <DateTime>,
]

Result Details

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

NetworkConnectorArn
Required: Yes
Type: string

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

NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

NetworkConnectorRoleArn
Required: Yes
Type: string

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

SecurityGroupIds
Required: Yes
Type: Array of strings

The IDs of the security groups.

Status
Required: Yes
Type: string

The status of the network connector.

StatusReason
Type: string

The reason for the status.

SubnetIds
Required: Yes
Type: Array of strings

The IDs of the subnets.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetRestoreWindow

$result = $client->getRestoreWindow([/* ... */]);
$promise = $client->getRestoreWindowAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->getRestoreWindow([
    'BranchArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
BranchArn
Required: Yes
Type: string

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

Result Syntax

[
    'EarliestRestorableTime' => <DateTime>,
    'LatestRestorableTime' => <DateTime>,
]

Result Details

Members
EarliestRestorableTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

LatestRestorableTime
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

GetSourceUpload

$result = $client->getSourceUpload([/* ... */]);
$promise = $client->getSourceUploadAsync([/* ... */]);

Retrieves a source upload.

Parameter Syntax

$result = $client->getSourceUpload([
    'SourceUploadId' => '<string>', // REQUIRED
]);

Parameter Details

Members
SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

Result Syntax

[
    'CreatedAt' => <DateTime>,
    'SizeInBytes' => <integer>,
    'SourceUploadId' => '<string>',
    'UploadExpiresAt' => <DateTime>,
    'ZipUpload' => [
        'Digest' => '<string>',
        'UploadUrl' => '<string>',
        'UrlExpiresAt' => <DateTime>,
    ],
]

Result Details

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

SizeInBytes
Required: Yes
Type: long (int|float)

The size of the source upload, in bytes.

SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

UploadExpiresAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

ZipUpload
Required: Yes
Type: ZipUpload structure

The .zip file upload information.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListAccessControls

$result = $client->listAccessControls([/* ... */]);
$promise = $client->listAccessControlsAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listAccessControls([
    'AppName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'AccessControls' => [
        [
            'EnabledAt' => <DateTime>,
            'EnvironmentName' => '<string>',
            'ProviderType' => 'OIDC|IAM_IDENTITY_CENTER',
            'Rule' => [
                'AnyAuthenticatedUser' => [
                ],
                'UserClaims' => [
                    [
                        'Key' => '<string>',
                        'Operator' => 'EQUALS|CONTAINS|BEGINS_WITH|ENDS_WITH',
                        'Value' => '<string>',
                    ],
                    // ...
                ],
            ],
            'Scope' => 'ALL_DEPLOYMENTS|NON_ACTIVE_DEPLOYMENTS',
            'Status' => 'ENABLING|ENABLED|ENABLE_FAILED|UPDATING|UPDATE_FAILED|DISABLING|DISABLED|DISABLE_FAILED',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
AccessControls
Required: Yes
Type: Array of AccessControlSummary structures

The access control configurations.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListAliases

$result = $client->listAliases([/* ... */]);
$promise = $client->listAliasesAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listAliases([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'Aliases' => [
        [
            'AliasArn' => '<string>',
            'AliasName' => '<string>',
            'CreatedAt' => <DateTime>,
            'RoutingConfig' => [
                [
                    'DeploymentId' => '<string>',
                    'Weight' => <integer>,
                ],
                // ...
            ],
            'Type' => 'ENVIRONMENT|BRANCH|PULL_REQUEST',
            'UpdatedAt' => <DateTime>,
            'Url' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Aliases
Required: Yes
Type: Array of AliasSummary structures

The aliases.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListApiKeys

$result = $client->listApiKeys([/* ... */]);
$promise = $client->listApiKeysAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->listApiKeys([
    'BranchArn' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'Status' => 'ACTIVE|INACTIVE',
]);

Parameter Details

Members
BranchArn
Required: Yes
Type: string

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

MaxResults
Type: int

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

NextToken
Type: string

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

Status
Type: string

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.

Result Syntax

[
    'ApiKeys' => [
        [
            'ApiKeyId' => '<string>',
            'CreatedAt' => <DateTime>,
            'Status' => 'ACTIVE|INACTIVE',
            'UpdatedAt' => <DateTime>,
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
ApiKeys
Required: Yes
Type: Array of ApiKeySummary structures

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

NextToken
Type: 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.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListApps

$result = $client->listApps([/* ... */]);
$promise = $client->listAppsAsync([/* ... */]);

Returns a list of the existing Gen 3 apps.

Parameter Syntax

$result = $client->listApps([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'Apps' => [
        [
            'AppArn' => '<string>',
            'AppName' => '<string>',
            'CreatedAt' => <DateTime>,
            'SourceConfig' => [
                'GitHubSource' => [
                    'RepositoryUrl' => '<string>',
                ],
                'GitLabSource' => [
                    'Owner' => '<string>',
                    'RepositoryUrl' => '<string>',
                ],
            ],
            'UpdatedAt' => <DateTime>,
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Apps
Required: Yes
Type: Array of AppSummary structures

The Gen 3 apps.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListBranches

$result = $client->listBranches([/* ... */]);
$promise = $client->listBranchesAsync([/* ... */]);

Returns a list of the branches for an environment.

Parameter Syntax

$result = $client->listBranches([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'Branches' => [
        [
            'BranchArn' => '<string>',
            'BranchName' => '<string>',
            'CreatedAt' => <DateTime>,
            'GitBranchName' => '<string>',
            'SourceBranch' => [
                'BranchArn' => '<string>',
                'BranchName' => '<string>',
                'RestoreToTime' => <DateTime>,
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Branches
Required: Yes
Type: Array of BranchSummary structures

The branches for the environment.

NextToken
Type: 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.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListDeploymentsForApp

$result = $client->listDeploymentsForApp([/* ... */]);
$promise = $client->listDeploymentsForAppAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listDeploymentsForApp([
    'AppName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'Deployments' => [
        [
            'AppName' => '<string>',
            'BranchArn' => '<string>',
            'BranchName' => '<string>',
            'CreatedAt' => <DateTime>,
            'DeploymentArn' => '<string>',
            'DeploymentId' => '<string>',
            'Description' => '<string>',
            'DomainName' => '<string>',
            'EndedAt' => <DateTime>,
            'EnvironmentName' => '<string>',
            'ExpiredAt' => <DateTime>,
            'SourceConfig' => [
                'GitSource' => [
                    'Author' => '<string>',
                    'CommitId' => '<string>',
                    'CommitMessage' => '<string>',
                    'GitRef' => '<string>',
                    'RepositoryUrl' => '<string>',
                ],
                'ManualUploadSource' => [
                    'SourceType' => 'SOURCE_CODE|PREBUILT_ARTIFACT',
                    'SourceUploadId' => '<string>',
                ],
            ],
            'StartedAt' => <DateTime>,
            'Status' => 'QUEUED|IN_PROGRESS|SUCCEEDED|FAILED|EXPIRED|CANCELLED',
            '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',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Deployments
Required: Yes
Type: Array of DeploymentSummary structures

The deployments.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListDeploymentsForEnvironment

$result = $client->listDeploymentsForEnvironment([/* ... */]);
$promise = $client->listDeploymentsForEnvironmentAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listDeploymentsForEnvironment([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'Deployments' => [
        [
            'AppName' => '<string>',
            'BranchArn' => '<string>',
            'BranchName' => '<string>',
            'CreatedAt' => <DateTime>,
            'DeploymentArn' => '<string>',
            'DeploymentId' => '<string>',
            'Description' => '<string>',
            'DomainName' => '<string>',
            'EndedAt' => <DateTime>,
            'EnvironmentName' => '<string>',
            'ExpiredAt' => <DateTime>,
            'SourceConfig' => [
                'GitSource' => [
                    'Author' => '<string>',
                    'CommitId' => '<string>',
                    'CommitMessage' => '<string>',
                    'GitRef' => '<string>',
                    'RepositoryUrl' => '<string>',
                ],
                'ManualUploadSource' => [
                    'SourceType' => 'SOURCE_CODE|PREBUILT_ARTIFACT',
                    'SourceUploadId' => '<string>',
                ],
            ],
            'StartedAt' => <DateTime>,
            'Status' => 'QUEUED|IN_PROGRESS|SUCCEEDED|FAILED|EXPIRED|CANCELLED',
            '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',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Deployments
Required: Yes
Type: Array of DeploymentSummary structures

The deployments.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListDomainAssociationsForAccount

$result = $client->listDomainAssociationsForAccount([/* ... */]);
$promise = $client->listDomainAssociationsForAccountAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listDomainAssociationsForAccount([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'DomainAssociations' => [
        [
            'AppName' => '<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' => [
                    'StatusCode' => 'HTTP_301|HTTP_302|HTTP_307|HTTP_308',
                    'TargetUrl' => '<string>',
                ],
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
DomainAssociations
Required: Yes
Type: Array of DomainAssociationAccountSummary structures

The domain associations.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListDomainAssociationsForApp

$result = $client->listDomainAssociationsForApp([/* ... */]);
$promise = $client->listDomainAssociationsForAppAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listDomainAssociationsForApp([
    'AppName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

MaxResults
Type: int

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

NextToken
Type: string

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

Result 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' => [
                    'StatusCode' => 'HTTP_301|HTTP_302|HTTP_307|HTTP_308',
                    'TargetUrl' => '<string>',
                ],
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
DomainAssociations
Required: Yes
Type: Array of DomainAssociationSummary structures

The domain associations.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListEnvironmentVariables

$result = $client->listEnvironmentVariables([/* ... */]);
$promise = $client->listEnvironmentVariablesAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listEnvironmentVariables([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'EnvironmentVariables' => [
        [
            'Comment' => '<string>',
            'Key' => '<string>',
            'Scope' => 'BUILD|RUNTIME|ALL|BACKEND',
            'SourceIntegrationArn' => '<string>',
            'Type' => 'PLAINTEXT|SENSITIVE',
            'Value' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
EnvironmentVariables
Required: Yes
Type: Array of EnvironmentVariableOutput structures

The environment variables.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListEnvironments

$result = $client->listEnvironments([/* ... */]);
$promise = $client->listEnvironmentsAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listEnvironments([
    'AppName' => '<string>', // REQUIRED
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'Environments' => [
        [
            'AppName' => '<string>',
            'Backend' => [
                'DatabaseLogConfig' => [
                    'CloudWatchLogsConfig' => [
                        'LogGroupArn' => '<string>',
                        'SamplingRate' => <integer>,
                        'Status' => 'ENABLED|DISABLED',
                    ],
                    'S3Config' => [
                        'BucketArn' => '<string>',
                        'SamplingRate' => <integer>,
                        'Status' => 'ENABLED|DISABLED',
                    ],
                ],
            ],
            'CreatedAt' => <DateTime>,
            'EnvironmentArn' => '<string>',
            'EnvironmentName' => '<string>',
            'SourceConfig' => [
                'GitSource' => [
                    'BranchMatchPatterns' => ['<string>', ...],
                    'DeploymentTriggerEvents' => ['<string>', ...],
                ],
            ],
            'Type' => 'PRODUCTION|PREVIEW|CUSTOM',
            'UpdatedAt' => <DateTime>,
            'WafLogConfigs' => [
                [
                    'CloudWatchLogsConfig' => [
                        'LogGroupArn' => '<string>',
                        'SamplingRate' => <integer>,
                        'Scope' => 'ALL_REQUESTS|BLOCKED_ONLY',
                        'Status' => 'ENABLED|DISABLED',
                    ],
                    'S3Config' => [
                        'BucketArn' => '<string>',
                        'SamplingRate' => <integer>,
                        'Scope' => 'ALL_REQUESTS|BLOCKED_ONLY',
                        'Status' => 'ENABLED|DISABLED',
                    ],
                ],
                // ...
            ],
            'Web' => [
                'AccessLogConfig' => [
                    'CloudWatchLogsConfig' => [
                        'LogGroupArn' => '<string>',
                        'SamplingRate' => <integer>,
                        'Status' => 'ENABLED|DISABLED',
                    ],
                    'S3Config' => [
                        'BucketArn' => '<string>',
                        'SamplingRate' => <integer>,
                        'Status' => 'ENABLED|DISABLED',
                    ],
                ],
            ],
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Environments
Required: Yes
Type: Array of EnvironmentSummary structures

The environments.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListGitBranches

$result = $client->listGitBranches([/* ... */]);
$promise = $client->listGitBranchesAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->listGitBranches([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'Owner' => '<string>', // REQUIRED
    'Provider' => 'GITHUB|GITLAB', // REQUIRED
    'RepositoryName' => '<string>',
    'RepositoryPath' => '<string>', // REQUIRED
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Owner
Required: Yes
Type: string

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.

Provider
Required: Yes
Type: string

The Git provider.

RepositoryName
Type: string

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

RepositoryPath
Required: Yes
Type: 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. To get this value, call ListRepositories.

Result Syntax

[
    'Branches' => [
        [
            'Name' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
Branches
Required: Yes
Type: Array of GitBranchSummary structures

The branches of the repository.

NextToken
Type: 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.

Errors

GitConnectionDisconnectedException:

The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListGitConnections

$result = $client->listGitConnections([/* ... */]);
$promise = $client->listGitConnectionsAsync([/* ... */]);

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

Parameter Syntax

$result = $client->listGitConnections([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'GitConnections' => [
        [
            'Owner' => '<string>',
            'Provider' => 'GITHUB|GITLAB',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
GitConnections
Required: Yes
Type: Array of GitConnectionSummary structures

The connected Git provider accounts.

NextToken
Type: 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.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListIntegrationConfigurations

$result = $client->listIntegrationConfigurations([/* ... */]);
$promise = $client->listIntegrationConfigurationsAsync([/* ... */]);

Returns a list of the integration configurations in the account.

Parameter Syntax

$result = $client->listIntegrationConfigurations([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'IntegrationConfigurations' => [
        [
            'CreatedAt' => <DateTime>,
            'EnvironmentVariables' => [
                [
                    'Key' => '<string>',
                    'KeyOverride' => '<string>',
                    'Type' => 'PLAINTEXT|SENSITIVE',
                    'Value' => '<string>',
                ],
                // ...
            ],
            'IntegrationArn' => '<string>',
            'IntegrationName' => '<string>',
            'IntegrationTypeId' => '<string>',
            'ResourceConfiguration' => [
                'Bedrock' => [
                    'ModelId' => '<string>',
                    'RegionName' => '<string>',
                ],
                'Custom' => [
                    'ResourceArn' => '<string>',
                ],
                'Dsql' => [
                    'ClusterArn' => '<string>',
                    'DatabaseUser' => '<string>',
                ],
                'S3' => [
                    'BucketArn' => '<string>',
                ],
            ],
            'UpdatedAt' => <DateTime>,
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
IntegrationConfigurations
Required: Yes
Type: Array of IntegrationConfigurationSummary structures

The integration configurations.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListIntegrationConnections

$result = $client->listIntegrationConnections([/* ... */]);
$promise = $client->listIntegrationConnectionsAsync([/* ... */]);

Returns a list of the integration connections.

Parameter Syntax

$result = $client->listIntegrationConnections([
    'EnvironmentArn' => '<string>',
    'IntegrationArn' => '<string>',
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
EnvironmentArn
Type: string

The Amazon Resource Name (ARN) of the environment.

IntegrationArn
Type: string

The Amazon Resource Name (ARN) of the integration.

MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'IntegrationConnections' => [
        [
            'ConnectionId' => '<string>',
            'CreatedAt' => <DateTime>,
            'EnvironmentArn' => '<string>',
            'IntegrationArn' => '<string>',
            'IntegrationName' => '<string>',
            'UpdatedAt' => <DateTime>,
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
IntegrationConnections
Required: Yes
Type: Array of IntegrationConnectionSummary structures

The integration connections.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListIntegrationTypes

$result = $client->listIntegrationTypes([/* ... */]);
$promise = $client->listIntegrationTypesAsync([/* ... */]);

Returns a list of the available integrations.

Parameter Syntax

$result = $client->listIntegrationTypes([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

A pagination token returned from a previous request.

Result Syntax

[
    'IntegrationTypes' => [
        [
            'EnvironmentVariables' => [
                [
                    'Key' => '<string>',
                ],
                // ...
            ],
            'Id' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
IntegrationTypes
Required: Yes
Type: Array of IntegrationType structures

The available integration types.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListNetworkConnectors

$result = $client->listNetworkConnectors([/* ... */]);
$promise = $client->listNetworkConnectorsAsync([/* ... */]);

Returns a list of the network connectors.

Parameter Syntax

$result = $client->listNetworkConnectors([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'StatusFilter' => 'CREATING|ACTIVE|CREATE_FAILED|UPDATING|UPDATE_FAILED|DELETING|DELETE_FAILED',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

StatusFilter
Type: string

Filters the results to network connectors with the specified status.

Result Syntax

[
    'NetworkConnectors' => [
        [
            'NetworkConnectorArn' => '<string>',
            'NetworkConnectorName' => '<string>',
            'Status' => 'CREATING|ACTIVE|CREATE_FAILED|UPDATING|UPDATE_FAILED|DELETING|DELETE_FAILED',
            'StatusReason' => '<string>',
        ],
        // ...
    ],
    'NextToken' => '<string>',
]

Result Details

Members
NetworkConnectors
Required: Yes
Type: Array of NetworkConnectorSummary structures

The network connectors.

NextToken
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListPlanViolations

$result = $client->listPlanViolations([/* ... */]);
$promise = $client->listPlanViolationsAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->listPlanViolations([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'TargetPlan' => 'BASIC|PRO', // REQUIRED
]);

Parameter Details

Members
MaxResults
Type: int

The maximum number of violations to return in one page.

NextToken
Type: string

A pagination token returned from a previous request.

TargetPlan
Required: Yes
Type: string

The plan to check the account's resources against.

Result Syntax

[
    'NextToken' => '<string>',
    'Violations' => [
        [
            'AppLimits' => [
                [
                    'Arn' => '<string>',
                    'Current' => <integer>,
                    'Region' => '<string>',
                    'TargetLimit' => <integer>,
                ],
                // ...
            ],
            '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' => [
                [
                    'Current' => <integer>,
                    'Region' => '<string>',
                    'TargetLimit' => <integer>,
                ],
                // ...
            ],
            'Resources' => [
                [
                    'Arn' => '<string>',
                ],
                // ...
            ],
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

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

Violations
Required: Yes
Type: Array of PlanViolation structures

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListRepositories

$result = $client->listRepositories([/* ... */]);
$promise = $client->listRepositoriesAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->listRepositories([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
    'Owner' => '<string>', // REQUIRED
    'Provider' => 'GITHUB|GITLAB', // REQUIRED
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Owner
Required: Yes
Type: string

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.

Provider
Required: Yes
Type: string

The Git provider.

Result Syntax

[
    'NextToken' => '<string>',
    'Repositories' => [
        [
            'CloneUrl' => '<string>',
            'DefaultBranch' => '<string>',
            'Name' => '<string>',
            'Owner' => '<string>',
            'Provider' => 'GITHUB|GITLAB',
            'RepositoryPath' => '<string>',
            'UpdatedAt' => <DateTime>,
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: 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.

Repositories
Required: Yes
Type: Array of RepositorySummary structures

The repositories that the connection can access.

Errors

GitConnectionDisconnectedException:

The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListSourceUploads

$result = $client->listSourceUploads([/* ... */]);
$promise = $client->listSourceUploadsAsync([/* ... */]);

Returns a list of the source uploads in the account.

Parameter Syntax

$result = $client->listSourceUploads([
    'MaxResults' => <integer>,
    'NextToken' => '<string>',
]);

Parameter Details

Members
MaxResults
Type: int

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

NextToken
Type: string

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

Result Syntax

[
    'NextToken' => '<string>',
    'SourceUploads' => [
        [
            'CreatedAt' => <DateTime>,
            'SizeInBytes' => <integer>,
            'SourceUploadId' => '<string>',
            'UploadExpiresAt' => <DateTime>,
        ],
        // ...
    ],
]

Result Details

Members
NextToken
Type: string

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

SourceUploads
Required: Yes
Type: Array of SourceUploadSummary structures

The source uploads.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

Returns the tags for an Amplify resource.

Parameter Syntax

$result = $client->listTagsForResource([
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

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

Result Syntax

[
    'Tags' => ['<string>', ...],
]

Result Details

Members
Tags
Required: Yes
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags for the resource.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

PutEnvironmentVariables

$result = $client->putEnvironmentVariables([/* ... */]);
$promise = $client->putEnvironmentVariablesAsync([/* ... */]);

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

Parameter Syntax

$result = $client->putEnvironmentVariables([
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'EnvironmentVariables' => [ // REQUIRED
        [
            'Comment' => '<string>',
            'Key' => '<string>', // REQUIRED
            'Scope' => 'BUILD|RUNTIME|ALL|BACKEND',
            'Type' => 'PLAINTEXT|SENSITIVE', // REQUIRED
            'Value' => '<string>', // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

EnvironmentVariables
Required: Yes
Type: Array of EnvironmentVariableInput structures

The environment variables.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

PutIdentityProviderConfig

$result = $client->putIdentityProviderConfig([/* ... */]);
$promise = $client->putIdentityProviderConfigAsync([/* ... */]);

Updates the identity provider configuration for a Gen 3 app.

Parameter Syntax

$result = $client->putIdentityProviderConfig([
    'AppName' => '<string>', // REQUIRED
    'ClientToken' => '<string>',
    'IdentityProviderConfig' => [ // REQUIRED
        'IamIdentityCenter' => [
            'GroupId' => '<string>',
            'InstanceArn' => '<string>',
        ],
        'Oidc' => [
            'AuthorizationEndpoint' => '<string>',
            'AuthorizeRequestParams' => ['<string>', ...],
            'ClientId' => '<string>', // REQUIRED
            'ClientSecret' => '<string>', // REQUIRED
            'GrantType' => 'CODE|CODE_WITH_PKCE',
            'IssuerUrl' => '<string>', // REQUIRED
            'RefreshTokenStrategy' => 'OFFLINE_ACCESS_SCOPE|NO_SCOPE',
            'TokenEndpoint' => '<string>',
            'TokenRequestParams' => ['<string>', ...],
            'TokenType' => 'ID|ACCESS',
            'TokenValidations' => ['<string>', ...],
        ],
    ],
    'IdentityProviderName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

ClientToken
Type: string

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

IdentityProviderConfig
Required: Yes
Type: IdentityProviderConfigRequest structure

The identity provider configuration.

IdentityProviderName
Required: Yes
Type: string

The name of the identity provider.

Result Syntax

[
    'Status' => 'ACTIVE|UPDATING|ROLLED_BACK',
    'StatusReason' => '<string>',
]

Result Details

Members
Status
Required: Yes
Type: string

The status of the identity provider configuration.

StatusReason
Type: string

The reason for the status.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

ResetCache

$result = $client->resetCache([/* ... */]);
$promise = $client->resetCacheAsync([/* ... */]);

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

Parameter Syntax

$result = $client->resetCache([
    'AppName' => '<string>', // REQUIRED
    'CacheTags' => ['<string>', ...], // REQUIRED
    'DeploymentId' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

CacheTags
Required: Yes
Type: Array of strings

The cache tags that identify the content to remove.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

RestoreBranch

$result = $client->restoreBranch([/* ... */]);
$promise = $client->restoreBranchAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->restoreBranch([
    'BranchArn' => '<string>', // REQUIRED
    'RestoreToTime' => <integer || string || DateTime>, // REQUIRED
]);

Parameter Details

Members
BranchArn
Required: Yes
Type: string

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

RestoreToTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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.

Result Syntax

[
    'BranchArn' => '<string>',
]

Result Details

Members
BranchArn
Required: Yes
Type: string

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

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

ResumeBackend

$result = $client->resumeBackend([/* ... */]);
$promise = $client->resumeBackendAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->resumeBackend([
    'AppName' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Result Syntax

[
    'Status' => 'READY|CREATING|DELETING|PAUSING|PAUSED|RESUMING',
]

Result Details

Members
Status
Required: Yes
Type: 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.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

RevokeApiKey

$result = $client->revokeApiKey([/* ... */]);
$promise = $client->revokeApiKeyAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->revokeApiKey([
    'ApiKeyId' => '<string>', // REQUIRED
    'BranchArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
ApiKeyId
Required: Yes
Type: string

The ID of the API key to revoke.

BranchArn
Required: Yes
Type: string

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

Result Syntax

[
    'ApiKeyId' => '<string>',
    'Status' => 'ACTIVE|INACTIVE',
]

Result Details

Members
ApiKeyId
Required: Yes
Type: string

The ID of the API key that was revoked.

Status
Required: Yes
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

RotateIdentityProviderSecret

$result = $client->rotateIdentityProviderSecret([/* ... */]);
$promise = $client->rotateIdentityProviderSecretAsync([/* ... */]);

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

Parameter Syntax

$result = $client->rotateIdentityProviderSecret([
    'AppName' => '<string>', // REQUIRED
    'ClientSecret' => '<string>', // REQUIRED
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

ClientSecret
Required: Yes
Type: string

The new client secret for the identity provider.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

StartAuthorizationFlow

$result = $client->startAuthorizationFlow([/* ... */]);
$promise = $client->startAuthorizationFlowAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->startAuthorizationFlow([
    'Provider' => 'GITHUB|GITLAB', // REQUIRED
    'RedirectUrl' => '<string>', // REQUIRED
]);

Parameter Details

Members
Provider
Required: Yes
Type: string

The Git provider.

RedirectUrl
Required: Yes
Type: string

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

Result Syntax

[
    'GitProviderAuthorizationUrl' => '<string>',
]

Result Details

Members
GitProviderAuthorizationUrl
Required: Yes
Type: string

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

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

StartCacheRevalidation

$result = $client->startCacheRevalidation([/* ... */]);
$promise = $client->startCacheRevalidationAsync([/* ... */]);

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

Parameter Syntax

$result = $client->startCacheRevalidation([
    'AppName' => '<string>', // REQUIRED
    'CacheTags' => ['<string>', ...], // REQUIRED
    'DeploymentId' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    'ExpirationPeriodSeconds' => <integer>,
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

CacheTags
Required: Yes
Type: Array of strings

The cache tags that identify the content to revalidate.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

ExpirationPeriodSeconds
Type: int

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

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds tags to an Amplify resource.

Parameter Syntax

$result = $client->tagResource([
    'Tags' => ['<string>', ...], // REQUIRED
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Tags
Required: Yes
Type: Associative array of custom strings keys (TagMapKeyString) to strings

The tags to add to the resource.

resourceArn
Required: Yes
Type: string

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

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes tags from an Amplify resource.

Parameter Syntax

$result = $client->untagResource([
    'TagKeys' => ['<string>', ...], // REQUIRED
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
TagKeys
Required: Yes
Type: Array of strings

The keys of the tags to remove from the resource.

resourceArn
Required: Yes
Type: string

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

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

UpdateAccessControl

$result = $client->updateAccessControl([/* ... */]);
$promise = $client->updateAccessControlAsync([/* ... */]);

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

Parameter Syntax

$result = $client->updateAccessControl([
    'AppName' => '<string>', // REQUIRED
    'ClientToken' => '<string>',
    'EnvironmentName' => '<string>', // REQUIRED
    'Rule' => [
        'AnyAuthenticatedUser' => [
        ],
        'UserClaims' => [
            [
                'Key' => '<string>', // REQUIRED
                'Operator' => 'EQUALS|CONTAINS|BEGINS_WITH|ENDS_WITH',
                'Value' => '<string>', // REQUIRED
            ],
            // ...
        ],
    ],
    'Scope' => 'ALL_DEPLOYMENTS|NON_ACTIVE_DEPLOYMENTS',
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

ClientToken
Type: string

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

Rule
Type: AccessControlRule structure

The rule that determines which users are granted access.

Scope
Type: string

The scope that the access control configuration applies to.

Result Syntax

[
    'Status' => 'ENABLING|ENABLED|ENABLE_FAILED|UPDATING|UPDATE_FAILED|DISABLING|DISABLED|DISABLE_FAILED',
    'StatusReason' => '<string>',
]

Result Details

Members
Status
Required: Yes
Type: string

The status of the access control configuration.

StatusReason
Type: string

The reason for the status.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

UpdateAliasRouting

$result = $client->updateAliasRouting([/* ... */]);
$promise = $client->updateAliasRoutingAsync([/* ... */]);

Updates the traffic routing for an alias of an environment.

Parameter Syntax

$result = $client->updateAliasRouting([
    'AliasName' => '<string>', // REQUIRED
    'AppName' => '<string>', // REQUIRED
    'EnvironmentName' => '<string>', // REQUIRED
    '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', // REQUIRED
        ],
    ],
    'RoutingConfig' => [ // REQUIRED
        [
            'DeploymentId' => '<string>', // REQUIRED
            'Weight' => <integer>, // REQUIRED
        ],
        // ...
    ],
]);

Parameter Details

Members
AliasName
Required: Yes
Type: string

The name of the alias.

AppName
Required: Yes
Type: string

The name of the app.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

GradualRolloutConfig
Type: GradualRolloutConfig structure

The gradual rollout settings to apply to the alias.

RoutingConfig
Required: Yes
Type: Array of RoutingConfigEntry structures

The traffic routing configuration to apply to the alias.

Result Syntax

[
    'GradualRolloutState' => [
        'CurrentStageIndex' => <integer>,
        'EndedAt' => <DateTime>,
        'Schedule' => [
            [
                'EffectiveAt' => <DateTime>,
                'Weight' => <integer>,
            ],
            // ...
        ],
        'SourceRoutingConfig' => [
            [
                'DeploymentId' => '<string>',
                'Weight' => <integer>,
            ],
            // ...
        ],
        'StartedAt' => <DateTime>,
        'Status' => 'IN_PROGRESS|COMPLETED|CANCELLED',
        'TargetRoutingConfig' => [
            [
                'DeploymentId' => '<string>',
                'Weight' => <integer>,
            ],
            // ...
        ],
    ],
]

Result Details

Members
GradualRolloutState
Type: GradualRolloutState structure

The current state of the gradual rollout.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

UpdateApp

$result = $client->updateApp([/* ... */]);
$promise = $client->updateAppAsync([/* ... */]);

Updates a Gen 3 app.

Parameter Syntax

$result = $client->updateApp([
    'AppName' => '<string>', // REQUIRED
    'Backend' => [
        'MigrationsDirectory' => '<string>',
    ],
    'SourceConfig' => [
        'GitHubSource' => [
            'RepositoryUrl' => '<string>', // REQUIRED
        ],
        'GitLabSource' => [
            'Owner' => '<string>', // REQUIRED
            'RepositoryUrl' => '<string>', // REQUIRED
        ],
        'NoSource' => [
        ],
    ],
    'Web' => [
        'BuildConfig' => [
            'BuildCommand' => '<string>',
            'InstallCommand' => '<string>',
            'OutputDirectory' => '<string>',
            'RootDirectory' => '<string>',
        ],
    ],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: AppBackendRequest structure

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.

SourceConfig

The source configuration for the app.

Web
Type: AppUpdateWebConfigRequest structure

The web hosting settings for the app.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

UpdateDomainAssociation

$result = $client->updateDomainAssociation([/* ... */]);
$promise = $client->updateDomainAssociationAsync([/* ... */]);

Updates a domain association for a Gen 3 app.

Parameter Syntax

$result = $client->updateDomainAssociation([
    'AppName' => '<string>', // REQUIRED
    'DomainName' => '<string>', // REQUIRED
    'Routing' => [
        'alias' => [
            'AliasArn' => '<string>', // REQUIRED
        ],
        'redirect' => [
            'StatusCode' => 'HTTP_301|HTTP_302|HTTP_307|HTTP_308', // REQUIRED
            'TargetUrl' => '<string>', // REQUIRED
        ],
    ],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

DomainName
Required: Yes
Type: string

The fully qualified domain name.

Routing
Type: Routing structure

The routing configuration for the domain.

Result 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',
]

Result Details

Members
DomainStatus
Required: Yes
Type: string

The status of the domain association.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

UpdateEnvironment

$result = $client->updateEnvironment([/* ... */]);
$promise = $client->updateEnvironmentAsync([/* ... */]);

Updates an environment for a Gen 3 app.

Parameter Syntax

$result = $client->updateEnvironment([
    'AppName' => '<string>', // REQUIRED
    'Backend' => [
        'Auth' => '<string>',
        'Database' => [
            'BackupRetentionDays' => <integer>,
            'MaxBackendCapacityUnits' => <integer>,
        ],
        'DatabaseLogConfig' => [
            'CloudWatchLogsConfig' => [
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
            'S3Config' => [
                'BucketArn' => '<string>',
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
        ],
    ],
    'EnvironmentName' => '<string>', // REQUIRED
    'EnvironmentRoleArn' => '<string>',
    'EnvironmentRolePermissionMode' => 'SCOPED|FULL',
    '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', // REQUIRED
        ],
    ],
    'NetworkConfig' => [
        'BuildNetworkConnectorArn' => '<string>',
        'ComputeNetworkConnectorArn' => '<string>',
    ],
    'SourceConfig' => [
        'GitSource' => [
            'BranchMatchPatterns' => ['<string>', ...], // REQUIRED
            'DeploymentTriggerEvents' => ['<string>', ...],
        ],
        'NoSource' => [
        ],
    ],
    'WafLogConfigs' => [
        [
            'CloudWatchLogsConfig' => [
                'SamplingRate' => <integer>,
                'Scope' => 'ALL_REQUESTS|BLOCKED_ONLY',
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
            'S3Config' => [
                'BucketArn' => '<string>',
                'SamplingRate' => <integer>,
                'Scope' => 'ALL_REQUESTS|BLOCKED_ONLY',
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
        ],
        // ...
    ],
    'Web' => [
        'AccessLogConfig' => [
            'CloudWatchLogsConfig' => [
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
            'S3Config' => [
                'BucketArn' => '<string>',
                'SamplingRate' => <integer>,
                'Status' => 'ENABLED|DISABLED', // REQUIRED
            ],
        ],
        'EnvironmentAliasConfig' => [
            'RoutingMode' => 'AUTO_ROUTE_TO_LATEST|MANUAL',
        ],
        'SkewProtectionConfig' => [
            'CookieMaxAgeSeconds' => <integer>,
            'Status' => 'ENABLED|DISABLED',
        ],
    ],
]);

Parameter Details

Members
AppName
Required: Yes
Type: string

The name of the app.

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.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

EnvironmentRoleArn
Type: string

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

EnvironmentRolePermissionMode
Type: string

The permission mode for the environment's IAM role.

GradualRolloutConfig
Type: GradualRolloutConfig structure

The gradual rollout settings.

NetworkConfig

The VPC network configuration for the environment.

SourceConfig

The source configuration for the environment.

WafLogConfigs
Type: Array of WafLogConfigRequest structures

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

Web

The web hosting settings for the environment.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request would exceed a service quota for your account.

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

UpdateIntegrationConfiguration

$result = $client->updateIntegrationConfiguration([/* ... */]);
$promise = $client->updateIntegrationConfigurationAsync([/* ... */]);

Updates an integration configuration.

Parameter Syntax

$result = $client->updateIntegrationConfiguration([
    'EnvironmentVariables' => [
        [
            'Key' => '<string>', // REQUIRED
            'KeyOverride' => '<string>',
            'Type' => 'PLAINTEXT|SENSITIVE',
            'Value' => '<string>',
        ],
        // ...
    ],
    'IntegrationName' => '<string>', // REQUIRED
    'IntegrationTypeId' => '<string>',
    'RemoveEnvironmentVariableKeys' => ['<string>', ...],
    'ResourceConfiguration' => [
        'Bedrock' => [
            'ModelId' => '<string>',
            'RegionName' => '<string>', // REQUIRED
        ],
        'Custom' => [
            'ResourceArn' => '<string>',
        ],
        'Dsql' => [
            'ClusterArn' => '<string>', // REQUIRED
            'DatabaseUser' => '<string>', // REQUIRED
        ],
        'S3' => [
            'BucketArn' => '<string>', // REQUIRED
        ],
    ],
]);

Parameter Details

Members
EnvironmentVariables
Type: Array of IntegrationEnvironmentVariableInput structures

The environment variables.

IntegrationName
Required: Yes
Type: string

The name of the integration.

IntegrationTypeId
Type: string

The ID of the integration type.

RemoveEnvironmentVariableKeys
Type: Array of strings

The keys of the environment variables to remove.

ResourceConfiguration
Type: ResourceConfiguration structure

The resource configuration for the integration.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

InternalServerException:

An internal error occurred. Retry the request.

UpdateNetworkConnector

$result = $client->updateNetworkConnector([/* ... */]);
$promise = $client->updateNetworkConnectorAsync([/* ... */]);

Updates a network connector.

Parameter Syntax

$result = $client->updateNetworkConnector([
    'NetworkConnectorName' => '<string>', // REQUIRED
    'NetworkConnectorRoleArn' => '<string>',
    'SecurityGroupIds' => ['<string>', ...],
    'SubnetIds' => ['<string>', ...],
]);

Parameter Details

Members
NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

NetworkConnectorRoleArn
Type: string

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

SecurityGroupIds
Type: Array of strings

The IDs of the security groups.

SubnetIds
Type: Array of strings

The IDs of the subnets.

Result Syntax

[
    'Status' => 'CREATING|ACTIVE|CREATE_FAILED|UPDATING|UPDATE_FAILED|DELETING|DELETE_FAILED',
]

Result Details

Members
Status
Required: Yes
Type: string

The status of the network connector.

Errors

ThrottlingException:

The request was denied because the request rate exceeds the allowed limit.

AccessDeniedException:

You do not have sufficient permissions to perform this action.

ResourceNotFoundException:

The requested resource was not found.

ValidationException:

The request contains invalid parameters or is otherwise malformed.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An internal error occurred. Retry the request.

Shapes

AccessControlRule

Description

A rule that determines which authenticated users can access deployments that require sign-in.

Members
AnyAuthenticatedUser
Type: Unit structure

Admits any user who signs in successfully.

UserClaims
Type: Array of AccessRuleCondition structures

Admits users whose token claims match the specified conditions.

AccessControlSummary

Description

Summary information for an environment's access control configuration.

Members
EnabledAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

ProviderType
Type: string

The type of identity provider.

Rule
Type: AccessControlRule structure

The rule that determines which users are granted access.

Scope
Type: string

The scope that the access control configuration applies to.

Status
Required: Yes
Type: string

The status of the access control configuration.

AccessDeniedException

Description

You do not have sufficient permissions to perform this action.

Members
message
Required: Yes
Type: string

A message that describes the error.

AccessLogConfig

Description

The access log delivery settings for an environment.

Members
CloudWatchLogsConfig

The Amazon CloudWatch Logs delivery settings.

S3Config
Type: S3DeliveryConfig structure

The Amazon S3 delivery settings.

AccessLogConfigRequest

Description

The access log delivery settings to apply to an environment.

Members
CloudWatchLogsConfig

The Amazon CloudWatch Logs delivery settings.

S3Config
Type: S3DeliveryConfigRequest structure

The Amazon S3 delivery settings.

AccessRuleCondition

Description

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

Members
Key
Required: Yes
Type: string

The name of the user claim to evaluate.

Operator
Type: string

The operator used to compare the claim value.

Value
Required: Yes
Type: string

The value to compare the claim against.

AliasRouting

Description

The routing settings for an alias.

Members
AliasArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the alias.

AliasSummary

Description

Summary information for an alias.

Members
AliasArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the alias.

AliasName
Required: Yes
Type: string

The name of the alias.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

RoutingConfig
Type: Array of RoutingConfigEntry structures

The traffic routing configuration.

Type
Required: Yes
Type: string

The type of the alias.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Url
Type: string

The URL of the alias.

ApiKeySummary

Description

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

Members
ApiKeyId
Required: Yes
Type: string

The ID of the API key.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Status
Required: Yes
Type: string

The status of the API key.

UpdatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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.

AppBackend

Description

The backend settings for an app, with defaults applied.

Members
DatabaseUsage
Type: BackendDatabaseUsage structure

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

MigrationsDirectory
Type: string

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

Status
Type: 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.

AppBackendRequest

Description

The backend settings for an app. To add a backend with the default settings, specify an empty structure.

Members
MigrationsDirectory
Type: 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.

AppBuildConfig

Description

The build settings for a Gen 3 app.

Members
BuildCommand
Required: Yes
Type: string

The command that builds the application.

InstallCommand
Required: Yes
Type: string

The command that installs dependencies during the build.

OutputDirectory
Required: Yes
Type: string

The directory that contains the build output to deploy.

RootDirectory
Type: string

The directory in the repository that contains the application source.

AppBuildConfigRequest

Description

The build settings to apply to a Gen 3 app.

Members
BuildCommand
Type: string

The command that builds the application.

InstallCommand
Type: string

The command that installs dependencies during the build.

OutputDirectory
Type: string

The directory that contains the build output to deploy.

RootDirectory
Type: string

The directory in the repository that contains the application source.

AppGitHubSource

Description

The GitHub source repository settings for a Gen 3 app.

Members
RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

AppGitHubSourceRequest

Description

The GitHub source repository settings to apply to a Gen 3 app.

Members
ProductionBranch
Required: Yes
Type: string

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.

RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

AppGitLabSource

Description

The GitLab source repository settings for a Gen 3 app.

Members
Owner
Required: Yes
Type: string

The owner of the repository in the Git provider.

RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

AppGitLabSourceRequest

Description

The GitLab source repository settings to apply to a Gen 3 app.

Members
Owner
Required: Yes
Type: string

The owner of the repository in the Git provider.

ProductionBranch
Required: Yes
Type: string

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.

RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

AppLimit

Description

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

Members
Arn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the app.

Current
Required: Yes
Type: int

The app's current usage.

Region
Required: Yes
Type: string

The AWS Region of the app.

TargetLimit
Required: Yes
Type: int

The target plan's limit for each app.

AppSourceConfig

Description

The source repository configuration for a Gen 3 app.

Members
GitHubSource
Type: AppGitHubSource structure

The GitHub source repository settings.

GitLabSource
Type: AppGitLabSource structure

The GitLab source repository settings.

AppSourceConfigRequest

Description

The source repository configuration to apply to a Gen 3 app.

Members
GitHubSource
Type: AppGitHubSourceRequest structure

The GitHub source repository settings.

GitLabSource
Type: AppGitLabSourceRequest structure

The GitLab source repository settings.

AppSummary

Description

Summary information for a Gen 3 app.

Members
AppArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the app.

AppName
Required: Yes
Type: string

The name of the app.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

SourceConfig
Type: AppSourceConfig structure

The source configuration for the app.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

AppUpdateBuildConfigRequest

Description

The build settings to update for a Gen 3 app.

Members
BuildCommand
Type: string

The command that builds the application.

InstallCommand
Type: string

The command that installs dependencies during the build.

OutputDirectory
Type: string

The directory that contains the build output to deploy.

RootDirectory
Type: string

The directory in the repository that contains the application source.

AppUpdateGitHubSourceRequest

Description

The GitHub source repository settings to update for a Gen 3 app.

Members
RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

AppUpdateGitLabSourceRequest

Description

The GitLab source repository settings to update for a Gen 3 app.

Members
Owner
Required: Yes
Type: string

The owner of the repository in the Git provider.

RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

AppUpdateSourceConfigRequest

Description

The source repository configuration to update for a Gen 3 app.

Members
GitHubSource

The GitHub source repository settings.

GitLabSource

The GitLab source repository settings.

NoSource
Type: NoSource structure

Removes the configured source repository.

AppUpdateWebConfigRequest

Description

The web hosting settings to update for a Gen 3 app.

Members
BuildConfig
Type: AppUpdateBuildConfigRequest structure

The build settings.

AppWebConfig

Description

The web hosting settings for a Gen 3 app.

Members
BuildConfig
Required: Yes
Type: AppBuildConfig structure

The build settings.

AppWebConfigRequest

Description

The web hosting settings to apply to a Gen 3 app.

Members
BuildConfig
Type: AppBuildConfigRequest structure

The build settings.

BackendDatabaseUsage

Description

The usage across all of a backend's branch databases, including branches that were deleted.

Members
LastUsedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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
Type: double

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.

BedrockConfiguration

Description

The configuration for an Amazon Bedrock integration resource.

Members
ModelId
Type: string

The ID of the Amazon Bedrock model.

RegionName
Required: Yes
Type: string

The AWS Region of the resource.

BranchBackend

Description

The backend of a branch. Every member except Url is read from the backend each time you call GetBranch. If the backend can't be read, GetBranch fails with a ThrottlingException when the request is throttled, or with a server error otherwise.

Members
Auth
Type: 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.

DatabaseConfig
Type: BranchDatabaseConfiguration structure

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.

DatabaseConnection
Type: BranchDatabaseConnection structure

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

DatabaseUsage
Type: BranchDatabaseUsage structure

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

Status
Type: string

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

Url
Type: string

The URL of the branch's backend.

BranchDatabaseConfiguration

Description

The database settings that are in effect on a branch. A member is absent when its value isn't available.

Members
BackupRetentionDays
Type: int

The number of days that automated backups are kept.

MaxBackendCapacityUnits
Type: int

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

BranchDatabaseConnection

Description

The connection details for a branch's database. To get the password, generate an authentication token with your own credentials. None of these values is a credential.

Members
DatabaseName
Required: Yes
Type: string

The name of the database to connect to.

Host
Required: Yes
Type: 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
Required: Yes
Type: int

The port to connect to.

Username
Required: Yes
Type: string

The user name to connect as.

BranchDatabaseUsage

Description

The usage of a branch's database, sampled once per sampling window of a few minutes. Sampling stops while the backend is paused. A member is absent when its value isn't reported.

Members
Connections
Type: int

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

LastUsedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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.

MonthlyBackendCapacityUnitHours
Type: double

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.

SampledAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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.

StorageBytes
Type: long (int|float)

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

BranchSummary

Description

Summary information about a branch.

Members
BranchArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the branch.

BranchName
Required: Yes
Type: string

The name of the branch.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

GitBranchName
Type: 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.

SourceBranch
Type: RestoreSourceBranch structure

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

BuildStep

Description

The build step of a deployment.

Members
EndedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the step ended.

StartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the step started.

Status
Required: Yes
Type: string

The status of the step.

CloudWatchLogsDeliveryConfig

Description

The Amazon CloudWatch Logs delivery settings for access logs.

Members
LogGroupArn
Type: string

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

SamplingRate
Type: int

The percentage of requests to log.

Status
Required: Yes
Type: string

The status of the resource.

CloudWatchLogsDeliveryConfigRequest

Description

The Amazon CloudWatch Logs delivery settings to apply for access logs.

Members
SamplingRate
Type: int

The percentage of requests to log.

Status
Required: Yes
Type: string

The status of the resource.

ConflictException

Description

The request conflicts with the current state of the resource.

Members
message
Required: Yes
Type: string

A message that describes the error.

ConnectorReferenceSummary

Description

Summary information for an environment that uses a network connector.

Members
AppArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the app.

AppName
Required: Yes
Type: string

The name of the app.

ConnectionTypes
Required: Yes
Type: Array of strings

The connection types used by the environment.

EnvironmentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the environment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

CustomConfiguration

Description

The configuration for a custom integration resource that you bring to the integration.

Members
ResourceArn
Type: string

The Amazon Resource Name (ARN) of the resource.

DatabaseCloudWatchLogsDeliveryConfig

Description

The Amazon CloudWatch Logs delivery settings for database logs. Amplify delivers the logs to a log group that it creates in your account, named /aws/amplifygen3/app-name/environment-name/database-logs.

Members
LogGroupArn
Type: string

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

SamplingRate
Type: int

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.

Status
Required: Yes
Type: string

Specifies whether database logs are delivered to CloudWatch Logs.

DatabaseCloudWatchLogsDeliveryConfigRequest

Description

The Amazon CloudWatch Logs delivery settings to apply to database logs. Amplify delivers the logs to a log group that it creates in your account, named /aws/amplifygen3/app-name/environment-name/database-logs.

Members
SamplingRate
Type: int

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.

Status
Required: Yes
Type: string

Specifies whether to deliver database logs to CloudWatch Logs.

DatabaseConfig

Description

The database settings for an environment. An absent member uses the plan's default.

Members
BackupRetentionDays
Type: int

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

MaxBackendCapacityUnits
Type: int

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

DatabaseConfigRequest

Description

The database settings to apply to an environment. A member that you omit uses the plan's default. A value above your plan's limit causes the next deployment to fail.

Members
BackupRetentionDays
Type: int

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

MaxBackendCapacityUnits
Type: int

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

DatabaseLogConfig

Description

The delivery settings for an environment's database logs. Database logs contain the error, warning, and migration messages from the databases of every branch of the environment. Each destination has its own status and sampling rate.

Members
CloudWatchLogsConfig

The Amazon CloudWatch Logs delivery settings.

S3Config
Type: DatabaseS3DeliveryConfig structure

The Amazon S3 delivery settings.

DatabaseLogConfigRequest

Description

The delivery settings to apply to an environment's database logs. If you omit a destination, its stored settings are unchanged. For an environment of an app with a backend, delivery to CloudWatch Logs is enabled at 100% by default, and delivery to Amazon S3 isn't set.

Members
CloudWatchLogsConfig

The Amazon CloudWatch Logs delivery settings.

S3Config

The Amazon S3 delivery settings.

DatabaseS3DeliveryConfig

Description

The Amazon S3 delivery settings for database logs. Amplify delivers the logs to an S3 bucket in your account.

Members
BucketArn
Type: string

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

SamplingRate
Type: int

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.

Status
Required: Yes
Type: string

Specifies whether database logs are delivered to Amazon S3.

DatabaseS3DeliveryConfigRequest

Description

The Amazon S3 delivery settings to apply to database logs. Amplify delivers the logs to an S3 bucket in your account.

Members
BucketArn
Type: 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.

SamplingRate
Type: int

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.

Status
Required: Yes
Type: string

Specifies whether to deliver database logs to Amazon S3.

DefaultEnvironmentConfiguration

Description

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

Members
Backend

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

EnvironmentNetworkConfig

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

EnvironmentPermissionsConfig
Required: Yes
Type: EnvironmentPermissionsConfigRequest structure

The IAM role settings for the environment.

EnvironmentType
Required: Yes
Type: string

The type of the environment that these settings apply to.

DeployStep

Description

The deploy step of a deployment.

Members
EndedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the step ended.

StartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the step started.

Status
Required: Yes
Type: string

The status of the step.

DeploymentBackend

Description

The backend settings that a deployment captured when it was created.

Members
Auth
Type: string

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

Database
Type: DatabaseConfig structure

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

MigrationsDirectory
Type: string

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

DeploymentBranch

Description

The branch that a deployment ran against.

Members
Backend
Type: DeploymentBranchBackend structure

The backend settings of the branch when the deployment ran.

BranchArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the branch.

BranchName
Required: Yes
Type: string

The name of the branch.

DeploymentBranchBackend

Description

The backend settings of a branch when a deployment ran.

Members
PublishableKeyId
Type: string

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

Url
Type: string

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

DeploymentGitSource

Description

The Git source information for a deployment.

Members
Author
Type: string

The author of the commit.

CommitId
Type: string

The commit ID of the source.

CommitMessage
Type: string

The commit message of the source.

GitRef
Required: Yes
Type: string

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

RepositoryUrl
Required: Yes
Type: string

The URL of the source repository.

DeploymentGitSourceRequest

Description

The Git source information to use for a deployment.

Members
GitRef
Required: Yes
Type: string

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

DeploymentManualUploadSource

Description

The manually uploaded source information for a deployment.

Members
SourceType
Required: Yes
Type: 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.

SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

DeploymentManualUploadSourceRequest

Description

The manually uploaded source information to use for a deployment.

Members
SourceType
Required: Yes
Type: string

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

SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

DeploymentSourceConfig

Description

The source configuration for a deployment.

Members
GitSource
Type: DeploymentGitSource structure

The Git source information.

ManualUploadSource

The manually uploaded source information.

DeploymentSteps

Description

The steps of a deployment. A step that doesn't apply to the deployment is absent. For example, a frontend-only app has no migration step. A step that hasn't run has a status of NOT_STARTED.

Members
Build
Type: BuildStep structure

The build step.

Deploy
Type: DeployStep structure

The deploy step.

Migration
Type: MigrationStep structure

The database migration step.

DeploymentSummary

Description

Summary information for a deployment.

Members
AppName
Type: string

The name of the app.

BranchArn
Type: string

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

BranchName
Type: string

The name of the branch that the deployment ran against.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

DeploymentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the deployment.

DeploymentId
Required: Yes
Type: string

The ID of the deployment.

Description
Type: string

The description of the deployment.

DomainName
Type: string

The fully qualified domain name.

EndedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentName
Required: Yes
Type: string

The name of the environment.

ExpiredAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

SourceConfig
Type: DeploymentSourceConfig structure

The source configuration for the deployment.

StartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Status
Required: Yes
Type: string

The status of the deployment.

StatusReason
Type: string

The reason for the status.

StatusReasonCode
Type: string

A code that identifies the reason for the status.

DnsRecord

Description

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

Members
Name
Required: Yes
Type: string

The name of the DNS record.

Purpose
Required: Yes
Type: string

The purpose of the DNS record.

Type
Required: Yes
Type: string

The type of the DNS record.

Value
Required: Yes
Type: string

The value of the DNS record.

DomainAssociationAccountSummary

Description

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

Members
AppName
Required: Yes
Type: string

The name of the app.

DomainName
Required: Yes
Type: string

The fully qualified domain name.

DomainStatus
Required: Yes
Type: string

The status of the domain association.

Routing
Required: Yes
Type: Routing structure

The routing configuration for the domain.

DomainAssociationSummary

Description

Summary information for a domain association.

Members
DomainAssociationArn
Required: Yes
Type: string

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

DomainName
Required: Yes
Type: string

The fully qualified domain name.

DomainStatus
Required: Yes
Type: string

The status of the domain association.

Routing
Required: Yes
Type: Routing structure

The routing configuration for the domain.

DsqlConfiguration

Description

The configuration for an Amazon Aurora DSQL integration resource.

Members
ClusterArn
Required: Yes
Type: string

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

DatabaseUser
Required: Yes
Type: string

The database user to connect as.

EnvironmentAliasConfig

Description

The alias routing settings for an environment.

Members
RoutingMode
Type: string

How the environment alias routes traffic to deployments.

EnvironmentBackend

Description

The backend settings for an environment.

Members
Auth
Type: 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
Type: DatabaseConfig structure

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

DatabaseLogConfig
Type: DatabaseLogConfig structure

The delivery settings for the environment's database logs.

EnvironmentBackendConfigRequest

Description

The backend settings to apply to an environment when you create it. You can specify these only when the app has a backend.

Members
Auth
Type: 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
Type: DatabaseConfigRequest structure

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.

EnvironmentBackendSummary

Description

Summary information about the backend settings for an environment.

Members
DatabaseLogConfig
Type: DatabaseLogConfig structure

The delivery settings for the environment's database logs.

EnvironmentGitSource

Description

The Git source settings for an environment.

Members
BranchMatchPatterns
Required: Yes
Type: Array of strings

The branch name patterns that trigger a deployment.

DeploymentTriggerEvents
Type: Array of strings

The Git events that trigger a deployment.

EnvironmentGitSourceRequest

Description

The Git source settings to apply to an environment.

Members
BranchMatchPatterns
Required: Yes
Type: Array of strings

The branch name patterns that trigger a deployment.

DeploymentTriggerEvents
Type: Array of strings

The Git events that trigger a deployment.

EnvironmentNetworkConfig

Description

The VPC network configuration for an environment.

Members
BuildNetworkConnectorArn
Type: string

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

ComputeNetworkConnectorArn
Type: string

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

EnvironmentNetworkConfigRequest

Description

The VPC network configuration to set for an environment.

Members
BuildNetworkConnectorArn
Type: string

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

ComputeNetworkConnectorArn
Type: string

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

EnvironmentPermissionsConfigRequest

Description

The IAM role settings for an environment.

Members
ExecutionRoleArn
Required: Yes
Type: string

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

PermissionMode
Type: string

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

EnvironmentSourceConfig

Description

The source configuration for an environment.

Members
GitSource
Type: EnvironmentGitSource structure

The Git source information.

EnvironmentSourceConfigRequest

Description

The source configuration to apply to an environment.

Members
GitSource
Type: EnvironmentGitSourceRequest structure

The Git source information.

EnvironmentSummary

Description

Summary information for an environment.

Members
AppName
Required: Yes
Type: string

The name of the app.

Backend
Type: EnvironmentBackendSummary structure

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

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the environment.

EnvironmentName
Required: Yes
Type: string

The name of the environment.

SourceConfig
Type: EnvironmentSourceConfig structure

The source configuration for the environment.

Type
Required: Yes
Type: string

The type of the environment.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

WafLogConfigs
Type: Array of WafLogConfig structures

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

Web
Type: EnvironmentWebConfigSummary structure

The web hosting settings for the environment.

EnvironmentUpdateBackendRequest

Description

The backend settings to update for an environment. If you omit a member, that setting is unchanged.

Members
Auth
Type: 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
Type: DatabaseConfigRequest structure

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.

DatabaseLogConfig
Type: DatabaseLogConfigRequest structure

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.

EnvironmentUpdateNetworkConfigRequest

Description

The VPC network configuration to update for an environment.

Members
BuildNetworkConnectorArn
Type: string

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

ComputeNetworkConnectorArn
Type: string

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

EnvironmentUpdateSourceConfigRequest

Description

The source configuration to update for an environment.

Members
GitSource
Type: EnvironmentGitSourceRequest structure

The Git source information.

NoSource
Type: NoSource structure

Removes the configured source repository.

EnvironmentUpdateWebConfigRequest

Description

The web hosting settings to update for an environment.

Members
AccessLogConfig
Type: AccessLogConfigRequest structure

The access log delivery settings.

EnvironmentAliasConfig
Type: EnvironmentAliasConfig structure

The alias routing settings for the environment.

SkewProtectionConfig
Type: SkewProtectionConfig structure

The version skew protection settings.

EnvironmentVariableInput

Description

An environment variable to set.

Members
Comment
Type: string

An optional comment describing the environment variable.

Key
Required: Yes
Type: string

The key of the environment variable.

Scope
Type: string

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

Type
Required: Yes
Type: string

The type of the environment.

Value
Required: Yes
Type: string

The value of the environment variable.

EnvironmentVariableOutput

Description

An environment variable for an environment.

Members
Comment
Type: string

An optional comment describing the environment variable.

Key
Required: Yes
Type: string

The key of the environment variable.

Scope
Type: string

The scope where the environment variable is available.

SourceIntegrationArn
Type: string

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

Type
Required: Yes
Type: string

The type of the environment variable.

Value
Type: string

The value of the environment variable. Omitted for secrets.

EnvironmentWebConfig

Description

The web hosting settings for an environment.

Members
AccessLogConfig
Type: AccessLogConfig structure

The access log delivery settings.

EnvironmentAliasConfig
Type: EnvironmentAliasConfig structure

The alias routing settings for the environment.

SkewProtectionConfig
Type: SkewProtectionConfig structure

The version skew protection settings.

EnvironmentWebConfigRequest

Description

The web hosting settings to apply to an environment.

Members
EnvironmentAliasConfig
Type: EnvironmentAliasConfig structure

The alias routing settings for the environment.

SkewProtectionConfig
Type: SkewProtectionConfig structure

The version skew protection settings.

EnvironmentWebConfigSummary

Description

Summary of the web hosting settings for an environment.

Members
AccessLogConfig
Type: AccessLogConfig structure

The access log delivery settings.

FileReference

Description

A file in a repository.

Members
AbsolutePath
Required: Yes
Type: string

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

RelativePath
Required: Yes
Type: string

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

FolderReference

Description

A folder in a repository.

Members
AbsolutePath
Required: Yes
Type: string

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

RelativePath
Required: Yes
Type: string

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

GitBranchSummary

Description

A branch of a repository.

Members
Name
Required: Yes
Type: string

The name of the branch.

GitConnectionDisconnectedException

Description

The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.

Members
message
Required: Yes
Type: string

A message that describes the error.

GitConnectionSummary

Description

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

Members
Owner
Required: Yes
Type: 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.

Provider
Required: Yes
Type: string

The Git provider.

GradualRolloutConfig

Description

The settings for a gradual rollout.

Members
PresetConfig
Type: PresetConfig structure

The predefined gradual rollout schedule.

GradualRolloutState

Description

The current state of a gradual rollout.

Members
CurrentStageIndex
Required: Yes
Type: int

The index of the current gradual rollout stage.

EndedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Schedule
Required: Yes
Type: Array of RolloutStage structures

The stages of the gradual rollout.

SourceRoutingConfig
Required: Yes
Type: Array of RoutingConfigEntry structures

The traffic routing at the start of the gradual rollout.

StartedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Status
Required: Yes
Type: string

The status of the resource.

TargetRoutingConfig
Required: Yes
Type: Array of RoutingConfigEntry structures

The traffic routing at the end of the gradual rollout.

IamIdentityCenterConfig

Description

The IAM Identity Center settings for an identity provider.

Members
GroupId
Type: string

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

InstanceArn
Type: string

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

IdentityProviderConfig

Description

The identity provider configuration for a Gen 3 app.

Members
IamIdentityCenter
Type: IamIdentityCenterConfig structure

The IAM Identity Center settings.

Oidc
Type: OidcConfigOutput structure

The OpenID Connect (OIDC) settings.

IdentityProviderConfigRequest

Description

The identity provider configuration to apply to a Gen 3 app.

Members
IamIdentityCenter
Type: IamIdentityCenterConfig structure

The IAM Identity Center settings.

Oidc
Type: OidcConfig structure

The OpenID Connect (OIDC) settings.

IntegrationConfigurationSummary

Description

Summary information for an integration configuration.

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentVariables
Required: Yes
Type: Array of IntegrationEnvironmentVariable structures

The environment variables.

IntegrationArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the integration.

IntegrationName
Required: Yes
Type: string

The name of the integration.

IntegrationTypeId
Required: Yes
Type: string

The ID of the integration type.

ResourceConfiguration
Type: ResourceConfiguration structure

The resource configuration for the integration.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

IntegrationConnectionSummary

Description

Summary information for an integration connection.

Members
ConnectionId
Required: Yes
Type: string

The ID of the integration connection.

CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

EnvironmentArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the environment.

IntegrationArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the integration.

IntegrationName
Required: Yes
Type: string

The name of the integration.

UpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

IntegrationEnvironmentVariable

Description

An environment variable provided by an integration.

Members
Key
Required: Yes
Type: string

The key of the environment variable.

KeyOverride
Type: string

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

Type
Type: string

The type of the environment variable.

Value
Type: string

The value of the environment variable. Omitted for secrets.

IntegrationEnvironmentVariableDescriptor

Description

An environment variable declared by an integration type.

Members
Key
Required: Yes
Type: string

The key of the environment variable.

IntegrationEnvironmentVariableInput

Description

An environment variable to set for an integration.

Members
Key
Required: Yes
Type: string

The key of the environment variable.

KeyOverride
Type: string

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

Type
Type: string

The type of the environment variable.

Value
Type: string

The value of the environment variable.

IntegrationType

Description

An available integration type.

Members
EnvironmentVariables
Required: Yes
Type: Array of IntegrationEnvironmentVariableDescriptor structures

The environment variables.

Id
Required: Yes
Type: string

The ID of the integration.

Name
Required: Yes
Type: string

The name of the resource.

InternalServerException

Description

An internal error occurred. Retry the request.

Members
message
Required: Yes
Type: string

A message that describes the error.

retryAfterSeconds
Type: int

The number of seconds to wait before you retry the request.

MigrationStep

Description

The database migration step of a deployment. A step with no migrations to apply succeeds with an empty list of applied migrations.

Members
AppliedMigrationNames
Type: Array of strings

The names of the migrations that the step applied.

EndedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the step ended.

SkippedMigrationNames
Type: Array of strings

The names of the migrations that the step skipped.

StartedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The time at which the step started.

Status
Required: Yes
Type: string

The status of the step.

NetworkConnectorSummary

Description

Summary information for a network connector.

Members
NetworkConnectorArn
Required: Yes
Type: string

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

NetworkConnectorName
Required: Yes
Type: string

The name of the network connector.

Status
Required: Yes
Type: string

The status of the network connector.

StatusReason
Type: string

The reason for the status.

NoSource

Description

Indicates that no source repository is configured.

Members

OidcConfig

Description

The OpenID Connect (OIDC) settings for an identity provider.

Members
AuthorizationEndpoint
Type: string

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

AuthorizeRequestParams
Type: Associative array of custom strings keys (String) to strings

Additional parameters to include in the authorization request.

ClientId
Required: Yes
Type: string

The client ID for the identity provider.

ClientSecret
Required: Yes
Type: string

The client secret for the identity provider.

GrantType
Type: string

The OAuth grant type used to obtain tokens.

IssuerUrl
Required: Yes
Type: string

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

RefreshTokenStrategy
Type: string

The strategy used to obtain refresh tokens.

TokenEndpoint
Type: string

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

TokenRequestParams
Type: Associative array of custom strings keys (String) to strings

Additional parameters to include in the token request.

TokenType
Type: string

The type of token used to authorize requests.

TokenValidations
Type: Array of strings

The validations applied to tokens.

OidcConfigOutput

Description

The OpenID Connect (OIDC) settings for an identity provider.

Members
AuthorizationEndpoint
Type: string

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

AuthorizeRequestParams
Type: Associative array of custom strings keys (String) to strings

Additional parameters to include in the authorization request.

ClientId
Type: string

The client ID for the identity provider.

GrantType
Type: string

The OAuth grant type used to obtain tokens.

IssuerUrl
Type: string

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

RefreshTokenStrategy
Type: string

The strategy used to obtain refresh tokens.

TokenEndpoint
Type: string

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

TokenRequestParams
Type: Associative array of custom strings keys (String) to strings

Additional parameters to include in the token request.

TokenType
Type: string

The type of token used to authorize requests.

TokenValidations
Type: Array of strings

The validations applied to tokens.

PlanViolation

Description

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

Members
AppLimits
Type: Array of AppLimit structures

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

Code
Required: Yes
Type: string

The code that identifies the type of violation.

Message
Type: string

A human-readable description of the violation.

RegionLimits
Type: Array of RegionLimit structures

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

Resources
Type: Array of ViolationResource structures

The resources the target plan does not support.

PresetConfig

Description

A predefined gradual rollout schedule.

Members
Preset
Required: Yes
Type: string

The predefined gradual rollout schedule to use.

RedirectRouting

Description

The redirect settings for a domain.

Members
StatusCode
Required: Yes
Type: string

The HTTP status code to return for the redirect.

TargetUrl
Required: Yes
Type: string

The URL to redirect requests to.

RegionLimit

Description

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

Members
Current
Required: Yes
Type: int

The account's current usage in the Region.

Region
Required: Yes
Type: string

The AWS Region.

TargetLimit
Required: Yes
Type: int

The target plan's limit for the Region.

RepositorySummary

Description

A repository that a Git connection can access.

Members
CloneUrl
Type: string

The HTTPS URL for cloning the repository with Git.

DefaultBranch
Required: Yes
Type: string

The repository's default branch, such as main.

Name
Required: Yes
Type: string

The name of the repository.

Owner
Required: Yes
Type: 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.

Provider
Required: Yes
Type: string

The Git provider.

RepositoryPath
Required: Yes
Type: 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
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

ResourceConfiguration

Description

The resource configuration for an integration.

Members
Bedrock
Type: BedrockConfiguration structure

The Amazon Bedrock integration resource configuration.

Custom
Type: CustomConfiguration structure

The custom integration resource configuration.

Dsql
Type: DsqlConfiguration structure

The Amazon Aurora DSQL integration resource configuration.

S3
Type: S3Configuration structure

The Amazon S3 integration resource configuration.

ResourceNotFoundException

Description

The requested resource was not found.

Members
message
Required: Yes
Type: string

A message that describes the error.

RestoreSourceBranch

Description

The branch that a restored branch was restored from, and the point in time it was restored to.

Members
BranchArn
Required: Yes
Type: string

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

BranchName
Required: Yes
Type: string

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

RestoreToTime
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The point in time that the data was restored to.

RoleNotAssumableException

Description

The specified IAM role cannot be assumed. Verify the role and its trust policy, and try again.

Members
message
Required: Yes
Type: string

A message that describes the error.

RolloutStage

Description

A stage in a gradual rollout schedule.

Members
EffectiveAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

Weight
Required: Yes
Type: int

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

Routing

Description

The routing configuration for a domain.

Members
alias
Type: AliasRouting structure

Routes traffic for the domain to an alias.

redirect
Type: RedirectRouting structure

Redirects traffic for the domain to another URL.

RoutingConfigEntry

Description

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

Members
DeploymentId
Required: Yes
Type: string

The ID of the deployment that receives the traffic.

Weight
Required: Yes
Type: int

The percentage of traffic to route to the deployment.

S3Configuration

Description

The configuration for an Amazon S3 integration resource.

Members
BucketArn
Required: Yes
Type: string

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

S3DeliveryConfig

Description

The Amazon S3 delivery settings for access logs.

Members
BucketArn
Type: string

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

SamplingRate
Type: int

The percentage of requests to log.

Status
Required: Yes
Type: string

The status of the resource.

S3DeliveryConfigRequest

Description

The Amazon S3 delivery settings to apply for access logs.

Members
BucketArn
Type: 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.

SamplingRate
Type: int

The percentage of requests to log.

Status
Required: Yes
Type: string

The status of the resource.

ServiceQuotaExceededException

Description

The request would exceed a service quota for your account.

Members
message
Required: Yes
Type: string

A message that describes the error.

quotaCode
Type: string

The code of the service quota that was exceeded.

serviceCode
Type: string

The code of the service that the quota belongs to.

SkewProtectionConfig

Description

The version skew protection settings for an environment.

Members
CookieMaxAgeSeconds
Type: int

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

Status
Type: string

The status of the resource.

SourceUploadSummary

Description

Summary information for a source upload.

Members
CreatedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

SizeInBytes
Required: Yes
Type: long (int|float)

The size of the source upload, in bytes.

SourceUploadId
Required: Yes
Type: string

The ID of the source upload.

UploadExpiresAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

ThrottlingException

Description

The request was denied because the request rate exceeds the allowed limit.

Members
message
Required: Yes
Type: string

A message that describes the error.

quotaCode
Type: string

The code of the service quota that caused the throttling.

retryAfterSeconds
Type: int

The number of seconds to wait before you retry the request.

serviceCode
Type: string

The code of the service that the quota belongs to.

Unit

Members

ValidationException

Description

The request contains invalid parameters or is otherwise malformed.

Members
message
Required: Yes
Type: string

A message that describes the error.

ViolationResource

Description

A resource the target plan does not support.

Members
Arn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

WafCloudWatchLogsDeliveryConfig

Description

The Amazon CloudWatch Logs delivery settings for AWS WAF logs.

Members
LogGroupArn
Type: string

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

SamplingRate
Type: int

The percentage of requests to log.

Scope
Type: string

The scope that the setting applies to.

Status
Required: Yes
Type: string

The status of the resource.

WafCloudWatchLogsDeliveryConfigRequest

Description

The Amazon CloudWatch Logs delivery settings to apply for AWS WAF logs.

Members
SamplingRate
Type: int

The percentage of requests to log.

Scope
Type: string

The scope that the setting applies to.

Status
Required: Yes
Type: string

The status of the resource.

WafConfig

Description

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

Members
StatusReason
Type: string

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

StatusReasonCode
Type: string

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

WafStatus
Type: string

The status of the AWS WAF web ACL association.

WebAclArn
Type: string

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

WafLogConfig

Description

The AWS WAF log delivery settings for an environment.

Members
CloudWatchLogsConfig

The Amazon CloudWatch Logs delivery settings.

S3Config
Type: WafS3DeliveryConfig structure

The Amazon S3 delivery settings.

WafS3DeliveryConfig

Description

The Amazon S3 delivery settings for AWS WAF logs.

Members
BucketArn
Type: string

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

SamplingRate
Type: int

The percentage of requests to log.

Scope
Type: string

The scope that the setting applies to.

Status
Required: Yes
Type: string

The status of the resource.

WafS3DeliveryConfigRequest

Description

The Amazon S3 delivery settings to apply for AWS WAF logs.

Members
BucketArn
Type: 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.

SamplingRate
Type: int

The percentage of requests to log.

Scope
Type: string

The scope that the setting applies to.

Status
Required: Yes
Type: string

The status of the resource.

ZipUpload

Description

The .zip file upload information for a source upload.

Members
Digest
Required: Yes
Type: string

The digest of the uploaded .zip file.

UploadUrl
Required: Yes
Type: string

The presigned URL to upload the .zip file to.

UrlExpiresAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

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

ZipUploadRequest

Description

The .zip file upload information to use for a source upload.

Members
Digest
Required: Yes
Type: string

The digest of the uploaded .zip file.