Class: AWSCDK::APIGatewayv2::StageAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/stage_attributes.rb

Overview

The attributes used to import existing Stage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stage_name:) ⇒ StageAttributes

Returns a new instance of StageAttributes.

Parameters:

  • stage_name (String)

    The name of the stage.



8
9
10
11
# File 'api_gatewayv2/stage_attributes.rb', line 8

def initialize(stage_name:)
  @stage_name = stage_name
  Jsii::Type.check_type(@stage_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stageName")
end

Instance Attribute Details

#stage_nameString (readonly)

The name of the stage.

Returns:

  • (String)


16
17
18
# File 'api_gatewayv2/stage_attributes.rb', line 16

def stage_name
  @stage_name
end

Class Method Details

.jsii_propertiesObject



18
19
20
21
22
# File 'api_gatewayv2/stage_attributes.rb', line 18

def self.jsii_properties
  {
    :stage_name => "stageName",
  }
end

Instance Method Details

#to_jsiiObject



24
25
26
27
28
29
30
# File 'api_gatewayv2/stage_attributes.rb', line 24

def to_jsii
  result = {}
  result.merge!({
    "stageName" => @stage_name,
  })
  result.compact
end