Class: AWSCDK::APIGatewayv2::StageAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::StageAttributes
- Defined in:
- api_gatewayv2/stage_attributes.rb
Overview
The attributes used to import existing Stage.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#stage_name ⇒ String
readonly
The name of the stage.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(stage_name:) ⇒ StageAttributes
constructor
A new instance of StageAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(stage_name:) ⇒ StageAttributes
Returns a new instance of StageAttributes.
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_name ⇒ String (readonly)
The name of the stage.
16 17 18 |
# File 'api_gatewayv2/stage_attributes.rb', line 16 def stage_name @stage_name end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |