Class: AWSCDK::Logs::CfnDeliveryDestination::DestinationPolicyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/cfn_delivery_destination.rb

Overview

An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delivery_destination_name: nil, delivery_destination_policy: nil) ⇒ DestinationPolicyProperty

Returns a new instance of DestinationPolicyProperty.

Parameters:

  • delivery_destination_name (String, nil) (defaults to: nil)

    A name for an existing destination.

  • delivery_destination_policy (Object, nil) (defaults to: nil)

    Creates or updates an access policy associated with an existing destination.



621
622
623
624
625
626
# File 'logs/cfn_delivery_destination.rb', line 621

def initialize(delivery_destination_name: nil, delivery_destination_policy: nil)
  @delivery_destination_name = delivery_destination_name
  Jsii::Type.check_type(@delivery_destination_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deliveryDestinationName") unless @delivery_destination_name.nil?
  @delivery_destination_policy = delivery_destination_policy
  Jsii::Type.check_type(@delivery_destination_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "deliveryDestinationPolicy") unless @delivery_destination_policy.nil?
end

Instance Attribute Details

#delivery_destination_nameString? (readonly)

A name for an existing destination.



632
633
634
# File 'logs/cfn_delivery_destination.rb', line 632

def delivery_destination_name
  @delivery_destination_name
end

#delivery_destination_policyObject? (readonly)

Creates or updates an access policy associated with an existing destination.

An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.



639
640
641
# File 'logs/cfn_delivery_destination.rb', line 639

def delivery_destination_policy
  @delivery_destination_policy
end

Class Method Details

.jsii_propertiesObject



641
642
643
644
645
646
# File 'logs/cfn_delivery_destination.rb', line 641

def self.jsii_properties
  {
    :delivery_destination_name => "deliveryDestinationName",
    :delivery_destination_policy => "deliveryDestinationPolicy",
  }
end

Instance Method Details

#to_jsiiObject



648
649
650
651
652
653
654
655
# File 'logs/cfn_delivery_destination.rb', line 648

def to_jsii
  result = {}
  result.merge!({
    "deliveryDestinationName" => @delivery_destination_name,
    "deliveryDestinationPolicy" => @delivery_destination_policy,
  })
  result.compact
end