Skip to content

Delete Resource Policy

xray_delete_resource_policy R Documentation

Deletes a resource policy from the target Amazon Web Services account

Description

Deletes a resource policy from the target Amazon Web Services account.

Usage

xray_delete_resource_policy(PolicyName, PolicyRevisionId)

Arguments

PolicyName

[required] The name of the resource policy to delete.

PolicyRevisionId

Specifies a specific policy revision to delete. Provide a PolicyRevisionId to ensure an atomic delete operation. If the provided revision id does not match the latest policy revision id, an InvalidPolicyRevisionIdException exception is returned.

Value

An empty list.

Request syntax

svc$delete_resource_policy(
  PolicyName = "string",
  PolicyRevisionId = "string"
)