View a markdown version of this page

AWS::AmplifyGen3::IntegrationConnection - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::AmplifyGen3::IntegrationConnection

The AWS::AmplifyGen3::IntegrationConnection resource connects an Amazon Amplify Gen 3 integration configuration to an environment. The connection gives the environment the environment variables that the integration provides.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::AmplifyGen3::IntegrationConnection", "Properties" : { "EnvironmentArn" : String, "IntegrationArn" : String } }

YAML

Type: AWS::AmplifyGen3::IntegrationConnection Properties: EnvironmentArn: String IntegrationArn: String

Properties

EnvironmentArn

The Amazon Resource Name (ARN) of the environment.

Required: Yes

Type: String

Minimum: 1

Maximum: 512

Update requires: Replacement

IntegrationArn

The Amazon Resource Name (ARN) of the integration.

Required: Yes

Type: String

Minimum: 1

Maximum: 2048

Update requires: Replacement

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the ID of the integration connection.

For more information about using the Ref function, see Ref.

Fn::GetAtt

The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.

ConnectionId

The ID of the integration connection.

CreatedAt

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

IntegrationName

The name of the integration.

Examples

Connect an integration configuration to an environment

The following example connects an existing integration configuration to an existing environment.

JSON

{ "Resources": { "MyIntegrationConnection": { "Type": "AWS::AmplifyGen3::IntegrationConnection", "Properties": { "IntegrationArn": "arn:aws:amplifygen3:us-east-1:123456789012:integration-configuration/my-bucket", "EnvironmentArn": "arn:aws:amplifygen3:us-east-1:123456789012:app/my-app/environment/staging" } } } }

YAML

Resources: MyIntegrationConnection: Type: AWS::AmplifyGen3::IntegrationConnection Properties: IntegrationArn: arn:aws:amplifygen3:us-east-1:123456789012:integration-configuration/my-bucket EnvironmentArn: arn:aws:amplifygen3:us-east-1:123456789012:app/my-app/environment/staging