Class: AWSCDK::CloudTrail::CfnChannelProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudTrail::CfnChannelProps
- Defined in:
- cloud_trail/cfn_channel_props.rb
Overview
Properties for defining a CfnChannel.
Instance Attribute Summary collapse
-
#destinations ⇒ AWSCDK::IResolvable, ...
readonly
One or more event data stores to which events arriving through a channel will be logged.
-
#name ⇒ String?
readonly
The name of the channel.
-
#source ⇒ String?
readonly
The name of the partner or external event source.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of tags.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destinations: nil, name: nil, source: nil, tags: nil) ⇒ CfnChannelProps
constructor
A new instance of CfnChannelProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destinations: nil, name: nil, source: nil, tags: nil) ⇒ CfnChannelProps
Returns a new instance of CfnChannelProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'cloud_trail/cfn_channel_props.rb', line 13 def initialize(destinations: nil, name: nil, source: nil, tags: nil) @destinations = destinations Jsii::Type.check_type(@destinations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR0cmFpbC5DZm5DaGFubmVsLkRlc3RpbmF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "destinations") unless @destinations.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#destinations ⇒ AWSCDK::IResolvable, ... (readonly)
One or more event data stores to which events arriving through a channel will be logged.
28 29 30 |
# File 'cloud_trail/cfn_channel_props.rb', line 28 def destinations @destinations end |
#name ⇒ String? (readonly)
The name of the channel.
33 34 35 |
# File 'cloud_trail/cfn_channel_props.rb', line 33 def name @name end |
#source ⇒ String? (readonly)
The name of the partner or external event source.
You cannot change this name after you create the channel. A maximum of one channel is allowed per source.
A source can be either Custom for all valid non- AWS events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide.
42 43 44 |
# File 'cloud_trail/cfn_channel_props.rb', line 42 def source @source end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of tags.
47 48 49 |
# File 'cloud_trail/cfn_channel_props.rb', line 47 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'cloud_trail/cfn_channel_props.rb', line 49 def self.jsii_properties { :destinations => "destinations", :name => "name", :source => "source", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
58 59 60 61 62 63 64 65 66 67 |
# File 'cloud_trail/cfn_channel_props.rb', line 58 def to_jsii result = {} result.merge!({ "destinations" => @destinations, "name" => @name, "source" => @source, "tags" => @tags, }) result.compact end |