Class: AWSCDK::CloudTrail::CfnChannel::DestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudTrail::CfnChannel::DestinationProperty
- Defined in:
- cloud_trail/cfn_channel.rb
Overview
Contains information about the destination receiving events.
Instance Attribute Summary collapse
-
#location ⇒ String
readonly
For channels used for a CloudTrail Lake integration, the location is the ARN of an event data store that receives events from a channel.
-
#type ⇒ String
readonly
The type of destination for events arriving from a channel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location:, type:) ⇒ DestinationProperty
constructor
A new instance of DestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(location:, type:) ⇒ DestinationProperty
Returns a new instance of DestinationProperty.
557 558 559 560 561 562 |
# File 'cloud_trail/cfn_channel.rb', line 557 def initialize(location:, type:) @location = location Jsii::Type.check_type(@location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "location") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#location ⇒ String (readonly)
For channels used for a CloudTrail Lake integration, the location is the ARN of an event data store that receives events from a channel.
For service-linked channels, the location is the name of the AWS service.
570 571 572 |
# File 'cloud_trail/cfn_channel.rb', line 570 def location @location end |
#type ⇒ String (readonly)
The type of destination for events arriving from a channel.
For channels used for a CloudTrail Lake integration, the value is EVENT_DATA_STORE . For service-linked channels, the value is AWS_SERVICE .
577 578 579 |
# File 'cloud_trail/cfn_channel.rb', line 577 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
579 580 581 582 583 584 |
# File 'cloud_trail/cfn_channel.rb', line 579 def self.jsii_properties { :location => "location", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
586 587 588 589 590 591 592 593 |
# File 'cloud_trail/cfn_channel.rb', line 586 def to_jsii result = {} result.merge!({ "location" => @location, "type" => @type, }) result.compact end |