cloudtrail_put_resource_policy: Attaches a resource-based permission policy to a CloudTrail...

View source: R/cloudtrail_operations.R

cloudtrail_put_resource_policyR Documentation

Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of Amazon Web Services

Description

Attaches a resource-based permission policy to a CloudTrail channel that is used for an integration with an event source outside of Amazon Web Services. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.

See https://www.paws-r-sdk.com/docs/cloudtrail_put_resource_policy/ for full documentation.

Usage

cloudtrail_put_resource_policy(ResourceArn, ResourcePolicy)

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.

ResourcePolicy

[required] A JSON-formatted string for an Amazon Web Services resource-based policy.

The following are requirements for the resource policy:

  • Contains only one action: cloudtrail-data:PutAuditEvents

  • Contains at least one statement. The policy can have a maximum of 20 statements.

  • Each statement contains at least one principal. A statement can have a maximum of 50 principals.


paws.management documentation built on Sept. 12, 2023, 1:06 a.m.