AppRegistry / Client / disassociate_resource
disassociate_resource#
- AppRegistry.Client.disassociate_resource(**kwargs)#
Disassociates a resource from application. Both the resource and the application can be specified either by ID or name.
Minimum permissions
You must have the following permissions to remove a resource that’s been associated with an application using the
APPLY_APPLICATION_TAG
option for AssociateResource.tag:GetResources
tag:UntagResources
You must also have the following permissions if you don’t use the
AWSServiceCatalogAppRegistryFullAccess
policy. For more information, see AWSServiceCatalogAppRegistryFullAccess in the AppRegistry Administrator Guide.resource-groups:DisassociateResource
cloudformation:UpdateStack
cloudformation:DescribeStacks
Note
In addition, you must have the tagging permission defined by the Amazon Web Services service that creates the resource. For more information, see UntagResources in the Resource Groups Tagging API Reference.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_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 the resource that is being disassociated.
resource (string) –
[REQUIRED]
The name or ID of the resource.
- Return type:
dict
- Returns:
Response Syntax
{ 'applicationArn': 'string', 'resourceArn': 'string' }
Response Structure
(dict) –
applicationArn (string) –
The Amazon resource name (ARN) that specifies the application.
resourceArn (string) –
The Amazon resource name (ARN) that specifies the resource.
Exceptions
AppRegistry.Client.exceptions.ResourceNotFoundException
AppRegistry.Client.exceptions.InternalServerException
AppRegistry.Client.exceptions.ValidationException
AppRegistry.Client.exceptions.ThrottlingException