AmplifyGen3 / Paginator / ListDeploymentsForApp
ListDeploymentsForApp¶
- class AmplifyGen3.Paginator.ListDeploymentsForApp¶
paginator = client.get_paginator('list_deployments_for_app')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
AmplifyGen3.Client.list_deployments_for_app().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( AppName='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
AppName (string) –
[REQUIRED]
The name of the app.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'Deployments': [ { 'AppName': 'string', 'DeploymentId': 'string', 'DeploymentArn': 'string', 'EnvironmentName': 'string', 'Status': 'QUEUED'|'IN_PROGRESS'|'SUCCEEDED'|'FAILED'|'EXPIRED'|'CANCELLED', 'SourceConfig': { 'GitSource': { 'GitRef': 'string', 'RepositoryUrl': 'string', 'CommitId': 'string', 'CommitMessage': 'string', 'Author': 'string' }, 'ManualUploadSource': { 'SourceUploadId': 'string', 'SourceType': 'SOURCE_CODE'|'PREBUILT_ARTIFACT' } }, 'Description': 'string', 'DomainName': 'string', 'CreatedAt': datetime(2015, 1, 1), 'StartedAt': datetime(2015, 1, 1), 'EndedAt': datetime(2015, 1, 1), 'ExpiredAt': datetime(2015, 1, 1), 'StatusReason': 'string', 'StatusReasonCode': 'INTERNAL_SERVICE_ERROR'|'BUILD_FAILED'|'BUILD_TIMEOUT'|'OUTPUT_DIRECTORY_NOT_FOUND'|'GIT_CLONE_FAILED'|'SOURCE_DOWNLOAD_FAILED'|'CONFIG_RETRIEVAL_FAILED'|'BINDING_RESOLUTION_FAILED'|'RESOURCE_DELETED'|'COLLAPSED'|'AT_ACCOUNT_CONCURRENCY_LIMIT'|'OTHER_DEPLOYMENT_IN_PROGRESS'|'MIGRATION_FAILED'|'BRANCH_LIMIT_EXCEEDED'|'PUBLISHABLE_KEY_LIMIT_EXCEEDED'|'ROLE_NOT_ASSUMABLE', 'BranchName': 'string', 'BranchArn': 'string' }, ], }
Response Structure
(dict) –
Deployments (list) –
The deployments.
(dict) –
Summary information for a deployment.
AppName (string) –
The name of the app.
DeploymentId (string) –
The ID of the deployment.
DeploymentArn (string) –
The Amazon Resource Name (ARN) of the deployment.
EnvironmentName (string) –
The name of the environment.
Status (string) –
The status of the deployment.
SourceConfig (dict) –
The source configuration for the deployment.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
GitSource,ManualUploadSource. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
GitSource (dict) –
The Git source information.
GitRef (string) –
The Git reference to deploy, such as a branch or tag.
RepositoryUrl (string) –
The URL of the source repository.
CommitId (string) –
The commit ID of the source.
CommitMessage (string) –
The commit message of the source.
Author (string) –
The author of the commit.
ManualUploadSource (dict) –
The manually uploaded source information.
SourceUploadId (string) –
The ID of the source upload.
SourceType (string) –
The type of source, such as source code or a prebuilt artifact. If you use PREBUILT_ARTIFACT, Amplify Gen 3 uploads your source as-is; however, when you deploy your app, Amplify Gen 3 still optimizes artifacts for performance.
Description (string) –
The description of the deployment.
DomainName (string) –
The fully qualified domain name.
CreatedAt (datetime) –
The time at which the deployment was created. The value is in ISO-8601 format.
StartedAt (datetime) –
The time at which processing started. The value is in ISO-8601 format.
EndedAt (datetime) –
The time at which processing ended. The value is in ISO-8601 format.
ExpiredAt (datetime) –
The time at which the deployment expired. The value is in ISO-8601 format.
StatusReason (string) –
The reason for the status.
StatusReasonCode (string) –
A code that identifies the reason for the status.
BranchName (string) –
The name of the branch that the deployment ran against.
BranchArn (string) –
The Amazon Resource Name (ARN) of the branch that the deployment ran against.