Class: AWSCDK::APIGatewayv2::CfnAPIMappingProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnAPIMappingProps
- Defined in:
- api_gatewayv2/cfn_api_mapping_props.rb
Overview
Properties for defining a CfnApiMapping.
Instance Attribute Summary collapse
-
#api_id ⇒ String, ...
readonly
The API identifier.
-
#api_mapping_key ⇒ String?
readonly
The API mapping key.
-
#domain_name ⇒ String, ...
readonly
The domain name.
-
#stage ⇒ String
readonly
The API stage.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_id:, domain_name:, stage:, api_mapping_key: nil) ⇒ CfnAPIMappingProps
constructor
A new instance of CfnAPIMappingProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_id:, domain_name:, stage:, api_mapping_key: nil) ⇒ CfnAPIMappingProps
Returns a new instance of CfnAPIMappingProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 13 def initialize(api_id:, domain_name:, stage:, api_mapping_key: nil) @api_id = api_id Jsii::Type.check_type(@api_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5LklSZXN0QXBpUmVmIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5djIuSUFwaVJlZiJ9XX19")), "apiId") @domain_name = domain_name Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5LklEb21haW5OYW1lUmVmIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5djIuSURvbWFpbk5hbWVSZWYifV19fQ==")), "domainName") @stage = stage Jsii::Type.check_type(@stage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stage") @api_mapping_key = api_mapping_key Jsii::Type.check_type(@api_mapping_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiMappingKey") unless @api_mapping_key.nil? end |
Instance Attribute Details
#api_id ⇒ String, ... (readonly)
The API identifier.
28 29 30 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 28 def api_id @api_id end |
#api_mapping_key ⇒ String? (readonly)
The API mapping key.
43 44 45 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 43 def api_mapping_key @api_mapping_key end |
#domain_name ⇒ String, ... (readonly)
The domain name.
33 34 35 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 33 def domain_name @domain_name end |
#stage ⇒ String (readonly)
The API stage.
38 39 40 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 38 def stage @stage end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 45 def self.jsii_properties { :api_id => "apiId", :domain_name => "domainName", :stage => "stage", :api_mapping_key => "apiMappingKey", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 54 def to_jsii result = {} result.merge!({ "apiId" => @api_id, "domainName" => @domain_name, "stage" => @stage, "apiMappingKey" => @api_mapping_key, }) result.compact end |