get_associated_resource

get_associated_resource(**kwargs)

Gets the resource associated with the application.

See also: AWS API Documentation

Request Syntax

response = client.get_associated_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 associated with the application.

  • resource (string) --

    [REQUIRED]

    The name or ID of the resource associated with the application.

Return type

dict

Returns

Response Syntax

{
    'resource': {
        'name': 'string',
        'arn': 'string',
        'associationTime': datetime(2015, 1, 1),
        'integrations': {
            'resourceGroup': {
                'state': 'CREATING'|'CREATE_COMPLETE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_COMPLETE'|'UPDATE_FAILED',
                'arn': 'string',
                'errorMessage': 'string'
            }
        }
    }
}

Response Structure

  • (dict) --

    • resource (dict) --

      The resource associated with the application.

      • name (string) --

        The name of the resource.

      • arn (string) --

        The Amazon resource name (ARN) of the resource.

      • associationTime (datetime) --

        The time the resource was associated with the application.

      • integrations (dict) --

        The service integration information about the resource.

        • resourceGroup (dict) --

          The information about the integration of Resource Groups.

          • state (string) --

            The state of the propagation process for the resource group. The states includes:

            CREATING if the resource group is in the process of being created.

            CREATE_COMPLETE if the resource group was created successfully.

            CREATE_FAILED if the resource group failed to be created.

            UPDATING if the resource group is in the process of being updated.

            UPDATE_COMPLETE if the resource group updated successfully.

            UPDATE_FAILED if the resource group could not update successfully.

          • arn (string) --

            The Amazon resource name (ARN) of the resource group.

          • errorMessage (string) --

            The error message that generates when the propagation process for the resource group fails.

Exceptions

  • AppRegistry.Client.exceptions.ResourceNotFoundException
  • AppRegistry.Client.exceptions.ValidationException
  • AppRegistry.Client.exceptions.InternalServerException