Class: AWSCDK::IVSChat::CfnLoggingConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVSChat::CfnLoggingConfigurationProps
- Defined in:
- ivs_chat/cfn_logging_configuration_props.rb
Overview
Properties for defining a CfnLoggingConfiguration.
Instance Attribute Summary collapse
-
#destination_configuration ⇒ AWSCDK::IResolvable, AWSCDK::IVSChat::CfnLoggingConfiguration::DestinationConfigurationProperty
readonly
The DestinationConfiguration is a complex type that contains information about where chat content will be logged.
-
#name ⇒ String?
readonly
Logging-configuration name.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination_configuration:, name: nil, tags: nil) ⇒ CfnLoggingConfigurationProps
constructor
A new instance of CfnLoggingConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination_configuration:, name: nil, tags: nil) ⇒ CfnLoggingConfigurationProps
Returns a new instance of CfnLoggingConfigurationProps.
12 13 14 15 16 17 18 19 |
# File 'ivs_chat/cfn_logging_configuration_props.rb', line 12 def initialize(destination_configuration:, name: nil, tags: nil) @destination_configuration = destination_configuration.is_a?(Hash) ? ::AWSCDK::IVSChat::CfnLoggingConfiguration::DestinationConfigurationProperty.new(**destination_configuration.transform_keys(&:to_sym)) : destination_configuration Jsii::Type.check_type(@destination_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pdnNjaGF0LkNmbkxvZ2dpbmdDb25maWd1cmF0aW9uLkRlc3RpbmF0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "destinationConfiguration") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.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
#destination_configuration ⇒ AWSCDK::IResolvable, AWSCDK::IVSChat::CfnLoggingConfiguration::DestinationConfigurationProperty (readonly)
The DestinationConfiguration is a complex type that contains information about where chat content will be logged.
25 26 27 |
# File 'ivs_chat/cfn_logging_configuration_props.rb', line 25 def destination_configuration @destination_configuration end |
#name ⇒ String? (readonly)
Logging-configuration name.
The value does not need to be unique.
32 33 34 |
# File 'ivs_chat/cfn_logging_configuration_props.rb', line 32 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
39 40 41 |
# File 'ivs_chat/cfn_logging_configuration_props.rb', line 39 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 |
# File 'ivs_chat/cfn_logging_configuration_props.rb', line 41 def self.jsii_properties { :destination_configuration => "destinationConfiguration", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'ivs_chat/cfn_logging_configuration_props.rb', line 49 def to_jsii result = {} result.merge!({ "destinationConfiguration" => @destination_configuration, "name" => @name, "tags" => @tags, }) result.compact end |