Class: AWSCDK::Interfaces::AWSMediastore::ContainerReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSMediastore::ContainerReference
- Defined in:
- interfaces/aws_mediastore/container_reference.rb
Overview
A reference to a Container resource.
Instance Attribute Summary collapse
-
#container_id ⇒ String
readonly
The Id of the Container resource.
-
#container_name ⇒ String
readonly
The ContainerName of the Container resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_id:, container_name:) ⇒ ContainerReference
constructor
A new instance of ContainerReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_id:, container_name:) ⇒ ContainerReference
Returns a new instance of ContainerReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_mediastore/container_reference.rb', line 9 def initialize(container_id:, container_name:) @container_id = container_id Jsii::Type.check_type(@container_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerId") @container_name = container_name Jsii::Type.check_type(@container_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerName") end |
Instance Attribute Details
#container_id ⇒ String (readonly)
The Id of the Container resource.
19 20 21 |
# File 'interfaces/aws_mediastore/container_reference.rb', line 19 def container_id @container_id end |
#container_name ⇒ String (readonly)
The ContainerName of the Container resource.
23 24 25 |
# File 'interfaces/aws_mediastore/container_reference.rb', line 23 def container_name @container_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_mediastore/container_reference.rb', line 25 def self.jsii_properties { :container_id => "containerId", :container_name => "containerName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_mediastore/container_reference.rb', line 32 def to_jsii result = {} result.merge!({ "containerId" => @container_id, "containerName" => @container_name, }) result.compact end |