Class: AWSCDK::APIGateway::StageAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGateway::StageAttributes
- Defined in:
- api_gateway/stage_attributes.rb
Overview
The attributes of an imported Stage.
Instance Attribute Summary collapse
-
#rest_api ⇒ AWSCDK::APIGateway::IRestAPI
readonly
The RestApi that the stage belongs to.
-
#stage_name ⇒ String
readonly
The name of the stage.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rest_api:, stage_name:) ⇒ StageAttributes
constructor
A new instance of StageAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(rest_api:, stage_name:) ⇒ StageAttributes
Returns a new instance of StageAttributes.
9 10 11 12 13 14 |
# File 'api_gateway/stage_attributes.rb', line 9 def initialize(rest_api:, stage_name:) @rest_api = rest_api Jsii::Type.check_type(@rest_api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBpZ2F0ZXdheS5JUmVzdEFwaSJ9")), "restApi") @stage_name = stage_name Jsii::Type.check_type(@stage_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stageName") end |
Instance Attribute Details
#rest_api ⇒ AWSCDK::APIGateway::IRestAPI (readonly)
The RestApi that the stage belongs to.
19 20 21 |
# File 'api_gateway/stage_attributes.rb', line 19 def rest_api @rest_api end |
#stage_name ⇒ String (readonly)
The name of the stage.
23 24 25 |
# File 'api_gateway/stage_attributes.rb', line 23 def stage_name @stage_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'api_gateway/stage_attributes.rb', line 25 def self.jsii_properties { :rest_api => "restApi", :stage_name => "stageName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'api_gateway/stage_attributes.rb', line 32 def to_jsii result = {} result.merge!({ "restApi" => @rest_api, "stageName" => @stage_name, }) result.compact end |