Class: AWSCDK::IVSChat::CfnLoggingConfigurationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ivs_chat/cfn_logging_configuration_props.rb

Overview

Properties for defining a CfnLoggingConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination_configuration:, name: nil, tags: nil) ⇒ CfnLoggingConfigurationProps

Returns a new instance of CfnLoggingConfigurationProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#destination_configurationAWSCDK::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

#nameString? (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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