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)


4331
4332
4333
4334
4335
4336
# File 'lib/aws-sdk-cloudtrail/types.rb', line 4331

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)


4331
4332
4333
4334
4335
4336
# File 'lib/aws-sdk-cloudtrail/types.rb', line 4331

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