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::NetworkConnector
The AWS::AmplifyGen3::NetworkConnector resource specifies a network connector that gives Amazon Amplify Gen 3 environments access to a virtual private cloud (VPC) in your account.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::AmplifyGen3::NetworkConnector", "Properties" : { "NetworkConnectorName" :String, "NetworkConnectorRoleArn" :String, "SecurityGroupIds" :[ String, ... ], "SubnetIds" :[ String, ... ], "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::AmplifyGen3::NetworkConnector Properties: NetworkConnectorName:StringNetworkConnectorRoleArn:StringSecurityGroupIds:- StringSubnetIds:- StringTags:- Tag
Properties
NetworkConnectorName-
The name of the network connector.
Required: Yes
Type: String
Pattern:
^[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$Minimum:
1Maximum:
64Update requires: Replacement
NetworkConnectorRoleArn-
The Amazon Resource Name (ARN) of the IAM role for the network connector.
Required: Yes
Type: String
Pattern:
^arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$Minimum:
20Maximum:
2048Update requires: No interruption
SecurityGroupIds-
The IDs of the security groups.
Required: Yes
Type: Array of String
Minimum:
11 | 1Maximum:
20 | 5Update requires: No interruption
SubnetIds-
The IDs of the subnets.
Required: Yes
Type: Array of String
Minimum:
15 | 1Maximum:
24 | 16Update requires: No interruption
-
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 network connector.
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 network connector was created. The value is in ISO-8601 format.
NetworkConnectorArn-
The Amazon Resource Name (ARN) of the network connector.
Examples
Create a network connector
The following example creates a network connector for two subnets and one security group.
JSON
{ "Resources": { "MyNetworkConnector": { "Type": "AWS::AmplifyGen3::NetworkConnector", "Properties": { "NetworkConnectorName": "my-network-connector", "SubnetIds": [ "subnet-0123456789abcdef0", "subnet-0fedcba9876543210" ], "SecurityGroupIds": [ "sg-0123456789abcdef0" ], "NetworkConnectorRoleArn": "arn:aws:iam::123456789012:role/AmplifyGen3NetworkConnectorRole" } } } }
YAML
Resources: MyNetworkConnector: Type: AWS::AmplifyGen3::NetworkConnector Properties: NetworkConnectorName: my-network-connector SubnetIds: - subnet-0123456789abcdef0 - subnet-0fedcba9876543210 SecurityGroupIds: - sg-0123456789abcdef0 NetworkConnectorRoleArn: arn:aws:iam::123456789012:role/AmplifyGen3NetworkConnectorRole