Skip to main content

connections

Creates, updates, deletes, gets or lists a connections resource.

Overview

Nameconnections
TypeResource
Idaws.apprunner.connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connection_summary_listarrayA list of summary information records for connections. In a paginated request, the request returns up to MaxResults records for each call.
next_tokenstringThe token that you can pass in a subsequent request to get the next result page. Returned in a paginated request. (pattern: <code>.*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_connectionsselectregionReturns a list of App Runner connections that are associated with your Amazon Web Services account.
create_connectioninsertregion, ConnectionName, ProviderTypeCreate 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.
delete_connectiondeleteregionDelete 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of App Runner connections that are associated with your Amazon Web Services account.

SELECT
connection_summary_list,
next_token
FROM aws.apprunner.connections
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.apprunner.connections (
ConnectionName,
ProviderType,
Tags,
region
)
SELECT
'{{ ConnectionName }}' /* required */,
'{{ ProviderType }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
connection
;

DELETE examples

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.

DELETE FROM aws.apprunner.connections
WHERE region = '{{ region }}' --required
;