Class: AWSCDK::APIGateway::StageAttributes

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

Overview

The attributes of an imported Stage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rest_api:, stage_name:) ⇒ StageAttributes

Returns a new instance of StageAttributes.

Parameters:



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_apiAWSCDK::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_nameString (readonly)

The name of the stage.

Returns:

  • (String)


23
24
25
# File 'api_gateway/stage_attributes.rb', line 23

def stage_name
  @stage_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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