Skip to content

Get Resource Policy

cloudtrail_get_resource_policy R Documentation

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail channel

Description

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail channel.

Usage

cloudtrail_get_resource_policy(ResourceArn)

Arguments

ResourceArn

[required] The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy. The following is the format of a resource ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel.

Value

A list with the following syntax:

list(
  ResourceArn = "string",
  ResourcePolicy = "string"
)

Request syntax

svc$get_resource_policy(
  ResourceArn = "string"
)