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'
)
[REQUIRED]
The name or ID of the application.
[REQUIRED]
The type of resource associated with the application.
[REQUIRED]
The name or ID of the resource associated with the application.
dict
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:
CREATINGif the resource group is in the process of being created.
CREATE_COMPLETEif the resource group was created successfully.
CREATE_FAILEDif the resource group failed to be created.
UPDATINGif the resource group is in the process of being updated.
UPDATE_COMPLETEif the resource group updated successfully.
UPDATE_FAILEDif 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.ResourceNotFoundExceptionAppRegistry.Client.exceptions.ValidationExceptionAppRegistry.Client.exceptions.InternalServerException