AppRegistry / Client / associate_resource

associate_resource#

AppRegistry.Client.associate_resource(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.associate_resource(
    application='string',
    resourceType='CFN_STACK'|'RESOURCE_TAG_VALUE',
    resource='string'
)
Parameters:
  • application (string) –

    [REQUIRED]

    The name or ID of the application.

  • resourceType (string) –

    [REQUIRED]

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

  • resource (string) –

    [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

{
    'applicationArn': 'string',
    'resourceArn': 'string'
}

Response Structure

  • (dict) –

    • applicationArn (string) –

      The Amazon resource name (ARN) of the application that was augmented with attributes.

    • resourceArn (string) –

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

Exceptions

  • AppRegistry.Client.exceptions.ResourceNotFoundException

  • AppRegistry.Client.exceptions.InternalServerException

  • AppRegistry.Client.exceptions.ServiceQuotaExceededException

  • AppRegistry.Client.exceptions.ConflictException

  • AppRegistry.Client.exceptions.ValidationException