Skip to content

Disassociate Resource

appregistry_disassociate_resource R Documentation

Disassociates a resource from application

Description

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 associate_resource.

  • 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

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.

Usage

appregistry_disassociate_resource(application, resourceType, resource)

Arguments

application

[required] The name or ID of the application.

resourceType

[required] The type of the resource that is being disassociated.

resource

[required] The name or ID of the resource.

Value

A list with the following syntax:

list(
  applicationArn = "string",
  resourceArn = "string"
)

Request syntax

svc$disassociate_resource(
  application = "string",
  resourceType = "CFN_STACK"|"RESOURCE_TAG_VALUE",
  resource = "string"
)