Class: Aws::CloudTrail::Types::PutResourcePolicyRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudtrail/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

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

Returns:

  • (String)


4043
4044
4045
4046
4047
4048
# File 'lib/aws-sdk-cloudtrail/types.rb', line 4043

class PutResourcePolicyRequest < Struct.new(
  :resource_arn,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end

#resource_policyString

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.

Returns:

  • (String)


4043
4044
4045
4046
4047
4048
# File 'lib/aws-sdk-cloudtrail/types.rb', line 4043

class PutResourcePolicyRequest < Struct.new(
  :resource_arn,
  :resource_policy)
  SENSITIVE = []
  include Aws::Structure
end