Associate Resource
appregistry_associate_resource | R Documentation |
Associates a resource with an application¶
Description¶
Associates a resource with an application. The resource can be specified by its ARN or name. The application can be specified by ARN, ID, or name.
Minimum permissions
You must have the following permissions to associate a resource using
the OPTIONS
parameter set to APPLY_APPLICATION_TAG
.
-
tag:GetResources
-
tag:TagResources
You must also have these additional permissions if you don't use the
AWSServiceCatalogAppRegistryFullAccess
policy. For more information,
see
AWSServiceCatalogAppRegistryFullAccess
in the AppRegistry Administrator Guide.
-
resource-groups:AssociateResource
-
cloudformation:UpdateStack
-
cloudformation:DescribeStacks
In addition, you must have the tagging permission defined by the Amazon Web Services service that creates the resource. For more information, see TagResources in the Resource Groups Tagging API Reference.
Usage¶
Arguments¶
application
[required] The name, ID, or ARN of the application.
resourceType
[required] The type of resource of which the application will be associated.
resource
[required] The name or ID of the resource of which the application will be associated.
options
Determines whether an application tag is applied or skipped.
Value¶
A list with the following syntax:
list(
applicationArn = "string",
resourceArn = "string",
options = list(
"APPLY_APPLICATION_TAG"|"SKIP_APPLICATION_TAG"
)
)