Class: AWSCDK::CloudTrail::CfnChannel::DestinationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_trail/cfn_channel.rb

Overview

Contains information about the destination receiving events.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, type:) ⇒ DestinationProperty

Returns a new instance of DestinationProperty.

Parameters:

  • location (String)

    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)

    The type of destination for events arriving from a channel.



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

#locationString (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

#typeString (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_propertiesObject



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_jsiiObject



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