Class: AWSCDK::IVS::CfnStorageConfigurationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVS::CfnStorageConfigurationProps
- Defined in:
- ivs/cfn_storage_configuration_props.rb
Overview
Properties for defining a CfnStorageConfiguration.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
Storage cnfiguration name.
-
#s3 ⇒ AWSCDK::IResolvable, AWSCDK::IVS::CfnStorageConfiguration::S3StorageConfigurationProperty
readonly
An S3 storage configuration contains information about where recorded video will be stored.
-
#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(s3:, name: nil, tags: nil) ⇒ CfnStorageConfigurationProps
constructor
A new instance of CfnStorageConfigurationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3:, name: nil, tags: nil) ⇒ CfnStorageConfigurationProps
Returns a new instance of CfnStorageConfigurationProps.
12 13 14 15 16 17 18 19 |
# File 'ivs/cfn_storage_configuration_props.rb', line 12 def initialize(s3:, name: nil, tags: nil) @s3 = s3.is_a?(Hash) ? ::AWSCDK::IVS::CfnStorageConfiguration::S3StorageConfigurationProperty.new(**s3.transform_keys(&:to_sym)) : s3 Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pdnMuQ2ZuU3RvcmFnZUNvbmZpZ3VyYXRpb24uUzNTdG9yYWdlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "s3") @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
#name ⇒ String? (readonly)
Storage cnfiguration name.
32 33 34 |
# File 'ivs/cfn_storage_configuration_props.rb', line 32 def name @name end |
#s3 ⇒ AWSCDK::IResolvable, AWSCDK::IVS::CfnStorageConfiguration::S3StorageConfigurationProperty (readonly)
An S3 storage configuration contains information about where recorded video will be stored.
See the S3StorageConfiguration property type for more information.
27 28 29 |
# File 'ivs/cfn_storage_configuration_props.rb', line 27 def s3 @s3 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/cfn_storage_configuration_props.rb', line 39 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 |
# File 'ivs/cfn_storage_configuration_props.rb', line 41 def self.jsii_properties { :s3 => "s3", :name => "name", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'ivs/cfn_storage_configuration_props.rb', line 49 def to_jsii result = {} result.merge!({ "s3" => @s3, "name" => @name, "tags" => @tags, }) result.compact end |