Class: AWSCDK::APIGatewayv2::HttpAPIAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::HttpAPIAttributes
- Defined in:
- api_gatewayv2/http_api_attributes.rb
Overview
Attributes for importing an HttpApi into the CDK.
Instance Attribute Summary collapse
-
#api_endpoint ⇒ String?
readonly
The endpoint URL of the HttpApi.
-
#http_api_id ⇒ String
readonly
The identifier of the HttpApi.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(http_api_id:, api_endpoint: nil) ⇒ HttpAPIAttributes
constructor
A new instance of HttpAPIAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(http_api_id:, api_endpoint: nil) ⇒ HttpAPIAttributes
Returns a new instance of HttpAPIAttributes.
9 10 11 12 13 14 |
# File 'api_gatewayv2/http_api_attributes.rb', line 9 def initialize(http_api_id:, api_endpoint: nil) @http_api_id = http_api_id Jsii::Type.check_type(@http_api_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "httpApiId") @api_endpoint = api_endpoint Jsii::Type.check_type(@api_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiEndpoint") unless @api_endpoint.nil? end |
Instance Attribute Details
#api_endpoint ⇒ String? (readonly)
Note:
Default: - throws an error if apiEndpoint is accessed.
The endpoint URL of the HttpApi.
25 26 27 |
# File 'api_gatewayv2/http_api_attributes.rb', line 25 def api_endpoint @api_endpoint end |
#http_api_id ⇒ String (readonly)
The identifier of the HttpApi.
20 21 22 |
# File 'api_gatewayv2/http_api_attributes.rb', line 20 def http_api_id @http_api_id end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'api_gatewayv2/http_api_attributes.rb', line 27 def self.jsii_properties { :http_api_id => "httpApiId", :api_endpoint => "apiEndpoint", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'api_gatewayv2/http_api_attributes.rb', line 34 def to_jsii result = {} result.merge!({ "httpApiId" => @http_api_id, "apiEndpoint" => @api_endpoint, }) result.compact end |