AWS::ServiceCatalogAppRegistry::ResourceAssociation - AWS CloudFormation

AWS::ServiceCatalogAppRegistry::ResourceAssociation

Associates a resource with an application. Both the resource and the application can be specified either by ID or name.

Syntax

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

JSON

{ "Type" : "AWS::ServiceCatalogAppRegistry::ResourceAssociation", "Properties" : { "Application" : String, "Resource" : String, "ResourceType" : String } }

YAML

Type: AWS::ServiceCatalogAppRegistry::ResourceAssociation Properties: Application: String Resource: String ResourceType: String

Properties

Application

The name or ID of the application.

Required: Yes

Type: String

Pattern: \w+|[a-z0-9]{12}

Minimum: 1

Maximum: 256

Update requires: Replacement

Resource

The name or ID of the resource of which the application will be associated.

Required: Yes

Type: String

Pattern: \w+|arn:aws[-a-z]*:cloudformation:[a-z]{2}(-gov)?-[a-z]+-\d:\d{12}:stack/[a-zA-Z][-A-Za-z0-9]{0,127}/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}

Update requires: Replacement

ResourceType

The type of resource of which the application will be associated.

Required: Yes

Type: String

Allowed values: CFN_STACK

Update requires: Replacement

Return values

Ref

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

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.

ApplicationArn

The Amazon resource name (ARN) that specifies the application.

ResourceArn

The Amazon resource name (ARN) that specifies the resource.