You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudWatchLogs::Types::PutDestinationPolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb

Overview

Note:

When making an API call, you may pass PutDestinationPolicyRequest data as a hash:

{
  destination_name: "DestinationName", # required
  access_policy: "AccessPolicy", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#access_policyString

An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination.

Returns:

  • (String)


1424
1425
1426
1427
1428
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1424

class PutDestinationPolicyRequest < Struct.new(
  :destination_name,
  :access_policy)
  include Aws::Structure
end

#destination_nameString

A name for an existing destination.

Returns:

  • (String)


1424
1425
1426
1427
1428
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1424

class PutDestinationPolicyRequest < Struct.new(
  :destination_name,
  :access_policy)
  include Aws::Structure
end