Class: AWSCDK::APIGatewayv2::CfnAPIMappingProps

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

Overview

Properties for defining a CfnApiMapping.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_id:, domain_name:, stage:, api_mapping_key: nil) ⇒ CfnAPIMappingProps

Returns a new instance of CfnAPIMappingProps.

Parameters:



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_idString, ... (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_keyString? (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_nameString, ... (readonly)

The domain name.



33
34
35
# File 'api_gatewayv2/cfn_api_mapping_props.rb', line 33

def domain_name
  @domain_name
end

#stageString (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_propertiesObject



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_jsiiObject



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