Class: Aws::CloudTrail::Types::PutResourcePolicyRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudTrail::Types::PutResourcePolicyRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-cloudtrail/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#resource_arn ⇒ String
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.
-
#resource_policy ⇒ String
A JSON-formatted string for an Amazon Web Services resource-based policy.
Instance Attribute Details
#resource_arn ⇒ String
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`.
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_policy ⇒ String
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.
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 |