Class: AWSCDK::Logs::CfnDeliveryDestination::DestinationPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnDeliveryDestination::DestinationPolicyProperty
- 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
-
#delivery_destination_name ⇒ String?
readonly
A name for an existing destination.
-
#delivery_destination_policy ⇒ Object?
readonly
Creates or updates an access policy associated with an existing destination.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(delivery_destination_name: nil, delivery_destination_policy: nil) ⇒ DestinationPolicyProperty
constructor
A new instance of DestinationPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(delivery_destination_name: nil, delivery_destination_policy: nil) ⇒ DestinationPolicyProperty
Returns a new instance of DestinationPolicyProperty.
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_name ⇒ String? (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_policy ⇒ Object? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |