View a markdown version of this page

AWS::AmplifyGen3::IntegrationConfiguration - 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::IntegrationConfiguration

The AWS::AmplifyGen3::IntegrationConfiguration resource specifies an integration configuration. An integration configuration describes a resource, such as an Amazon S3 bucket, an Amazon Aurora DSQL cluster, or an Amazon Bedrock model, that Amazon Amplify Gen 3 environments can connect to. Amazon Amplify Gen 3 manages the IAM permissions and credentials for the connection, so your application code doesn't assume a role.

Syntax

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

JSON

{ "Type" : "AWS::AmplifyGen3::IntegrationConfiguration", "Properties" : { "EnvironmentVariables" : [ EnvironmentVariable, ... ], "IntegrationName" : String, "IntegrationTypeId" : String, "ResourceConfiguration" : ResourceConfiguration, "Tags" : [ Tag, ... ] } }

YAML

Type: AWS::AmplifyGen3::IntegrationConfiguration Properties: EnvironmentVariables: - EnvironmentVariable IntegrationName: String IntegrationTypeId: String ResourceConfiguration: ResourceConfiguration Tags: - Tag

Properties

EnvironmentVariables

The environment variables that the integration provides to the environments that it is connected to.

Required: No

Type: Array of EnvironmentVariable

Maximum: 50

Update requires: No interruption

IntegrationName

The name of the integration.

Required: Yes

Type: String

Pattern: ^[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$

Minimum: 1

Maximum: 140

Update requires: Replacement

IntegrationTypeId

The ID of the integration type.

Required: Yes

Type: String

Minimum: 1

Maximum: 256

Update requires: Replacement

ResourceConfiguration

The resource configuration for the integration.

Required: No

Type: ResourceConfiguration

Update requires: No interruption

Tags

An array of key-value pairs to apply to this resource.

For more information, see Tag.

Required: No

Type: Array of Tag

Update requires: No interruption

Return values

Ref

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

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.

CreatedAt

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

IntegrationArn

The Amazon Resource Name (ARN) of the integration.

Examples

Create an Amazon S3 integration configuration

The following example creates an integration configuration for an Amazon S3 bucket, and exposes the bucket name to connected environments as STORAGE_BUCKET.

JSON

{ "Resources": { "MyBucketIntegration": { "Type": "AWS::AmplifyGen3::IntegrationConfiguration", "Properties": { "IntegrationName": "my-bucket", "IntegrationTypeId": "aws:s3:bucket", "ResourceConfiguration": { "S3": { "BucketArn": "arn:aws:s3:::amzn-s3-demo-bucket" } }, "EnvironmentVariables": [ { "Key": "BUCKET_NAME", "KeyOverride": "STORAGE_BUCKET" } ] } } } }

YAML

Resources: MyBucketIntegration: Type: AWS::AmplifyGen3::IntegrationConfiguration Properties: IntegrationName: my-bucket IntegrationTypeId: aws:s3:bucket ResourceConfiguration: S3: BucketArn: arn:aws:s3:::amzn-s3-demo-bucket EnvironmentVariables: - Key: BUCKET_NAME KeyOverride: STORAGE_BUCKET