Skip to content

/AWS1/CL_SCA=>ASSOCIATERESOURCE()

About AssociateResource

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.

Method Signature

IMPORTING

Required arguments:

IV_APPLICATION TYPE /AWS1/SCAAPPLICATIONSPECIFIER /AWS1/SCAAPPLICATIONSPECIFIER

The name, ID, or ARN of the application.

IV_RESOURCETYPE TYPE /AWS1/SCARESOURCETYPE /AWS1/SCARESOURCETYPE

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

IV_RESOURCE TYPE /AWS1/SCARESOURCESPECIFIER /AWS1/SCARESOURCESPECIFIER

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

Optional arguments:

IT_OPTIONS TYPE /AWS1/CL_SCAOPTIONS_W=>TT_OPTIONS TT_OPTIONS

Determines whether an application tag is applied or skipped.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SCAASSOCRESOURCERSP /AWS1/CL_SCAASSOCRESOURCERSP