Class: AWSCDK::Interfaces::AWSMediastore::ContainerReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_mediastore/container_reference.rb

Overview

A reference to a Container resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_id:, container_name:) ⇒ ContainerReference

Returns a new instance of ContainerReference.

Parameters:

  • container_id (String)

    The Id of the Container resource.

  • container_name (String)

    The ContainerName of the Container resource.



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_idString (readonly)

The Id of the Container resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_mediastore/container_reference.rb', line 19

def container_id
  @container_id
end

#container_nameString (readonly)

The ContainerName of the Container resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_mediastore/container_reference.rb', line 23

def container_name
  @container_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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