2023/08/30 - AWS App Runner - 3 updated api methods
Changes App Runner adds support for Bitbucket. You can now create App Runner connection that connects to your Bitbucket repositories and deploy App Runner service with the source code stored in a Bitbucket repository.
{'ProviderType': {'BITBUCKET'}}Response
{'Connection': {'ProviderType': {'BITBUCKET'}}}
Create an App Runner connection resource. App Runner requires a connection resource when you create App Runner services that access private repositories from certain third-party providers. You can share a connection across multiple services.
A connection resource is needed to access GitHub and Bitbucket repositories. Both require a user interface approval process through the App Runner console before you can use the connection.
See also: AWS API Documentation
Request Syntax
client.create_connection( ConnectionName='string', ProviderType='GITHUB'|'BITBUCKET', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] )
string
[REQUIRED]
A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services account in the Amazon Web Services Region.
string
[REQUIRED]
The source repository provider.
list
A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.
(dict) --
Describes a tag that is applied to an App Runner resource. A tag is a metadata item consisting of a key-value pair.
Key (string) --
The key of the tag.
Value (string) --
The value of the tag.
dict
Response Syntax
{ 'Connection': { 'ConnectionName': 'string', 'ConnectionArn': 'string', 'ProviderType': 'GITHUB'|'BITBUCKET', 'Status': 'PENDING_HANDSHAKE'|'AVAILABLE'|'ERROR'|'DELETED', 'CreatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) --
Connection (dict) --
A description of the App Runner connection that's created by this request.
ConnectionName (string) --
The customer-provided connection name.
ConnectionArn (string) --
The Amazon Resource Name (ARN) of this connection.
ProviderType (string) --
The source repository provider.
Status (string) --
The current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an App Runner service.
CreatedAt (datetime) --
The App Runner connection creation time, expressed as a Unix time stamp.
{'Connection': {'ProviderType': {'BITBUCKET'}}}
Delete an App Runner connection. You must first ensure that there are no running App Runner services that use this connection. If there are any, the DeleteConnection action fails.
See also: AWS API Documentation
Request Syntax
client.delete_connection( ConnectionArn='string' )
string
[REQUIRED]
The Amazon Resource Name (ARN) of the App Runner connection that you want to delete.
dict
Response Syntax
{ 'Connection': { 'ConnectionName': 'string', 'ConnectionArn': 'string', 'ProviderType': 'GITHUB'|'BITBUCKET', 'Status': 'PENDING_HANDSHAKE'|'AVAILABLE'|'ERROR'|'DELETED', 'CreatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) --
Connection (dict) --
A description of the App Runner connection that this request just deleted.
ConnectionName (string) --
The customer-provided connection name.
ConnectionArn (string) --
The Amazon Resource Name (ARN) of this connection.
ProviderType (string) --
The source repository provider.
Status (string) --
The current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an App Runner service.
CreatedAt (datetime) --
The App Runner connection creation time, expressed as a Unix time stamp.
{'ConnectionSummaryList': {'ProviderType': {'BITBUCKET'}}}
Returns a list of App Runner connections that are associated with your Amazon Web Services account.
See also: AWS API Documentation
Request Syntax
client.list_connections( ConnectionName='string', MaxResults=123, NextToken='string' )
string
If specified, only this connection is returned. If not specified, the result isn't filtered by name.
integer
The maximum number of results to include in each response (result page). Used for a paginated request.
If you don't specify MaxResults, the request retrieves all available results in a single response.
string
A token from a previous result page. Used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.
If you don't specify NextToken, the request retrieves the first result page.
dict
Response Syntax
{ 'ConnectionSummaryList': [ { 'ConnectionName': 'string', 'ConnectionArn': 'string', 'ProviderType': 'GITHUB'|'BITBUCKET', 'Status': 'PENDING_HANDSHAKE'|'AVAILABLE'|'ERROR'|'DELETED', 'CreatedAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) --
ConnectionSummaryList (list) --
A list of summary information records for connections. In a paginated request, the request returns up to MaxResults records for each call.
(dict) --
Provides summary information about an App Runner connection resource.
ConnectionName (string) --
The customer-provided connection name.
ConnectionArn (string) --
The Amazon Resource Name (ARN) of this connection.
ProviderType (string) --
The source repository provider.
Status (string) --
The current state of the App Runner connection. When the state is AVAILABLE, you can use the connection to create an App Runner service.
CreatedAt (datetime) --
The App Runner connection creation time, expressed as a Unix time stamp.
NextToken (string) --
The token that you can pass in a subsequent request to get the next result page. Returned in a paginated request.