Class: AWSCDK::APIGatewayv2::CfnDeploymentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnDeploymentProps
- Defined in:
- api_gatewayv2/cfn_deployment_props.rb
Overview
Properties for defining a CfnDeployment.
Instance Attribute Summary collapse
-
#api_id ⇒ String, AWSCDK::Interfaces::AWSApigatewayv2::IAPIRef
readonly
The API identifier.
-
#description ⇒ String?
readonly
The description for the deployment resource.
-
#stage_name ⇒ String?
readonly
The name of an existing stage to associate with the deployment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_id:, description: nil, stage_name: nil) ⇒ CfnDeploymentProps
constructor
A new instance of CfnDeploymentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_id:, description: nil, stage_name: nil) ⇒ CfnDeploymentProps
Returns a new instance of CfnDeploymentProps.
12 13 14 15 16 17 18 19 |
# File 'api_gatewayv2/cfn_deployment_props.rb', line 12 def initialize(api_id:, description: nil, stage_name: nil) @api_id = api_id Jsii::Type.check_type(@api_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19hcGlnYXRld2F5djIuSUFwaVJlZiJ9XX19")), "apiId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @stage_name = stage_name Jsii::Type.check_type(@stage_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stageName") unless @stage_name.nil? end |
Instance Attribute Details
#api_id ⇒ String, AWSCDK::Interfaces::AWSApigatewayv2::IAPIRef (readonly)
The API identifier.
25 26 27 |
# File 'api_gatewayv2/cfn_deployment_props.rb', line 25 def api_id @api_id end |
#description ⇒ String? (readonly)
The description for the deployment resource.
30 31 32 |
# File 'api_gatewayv2/cfn_deployment_props.rb', line 30 def description @description end |
#stage_name ⇒ String? (readonly)
The name of an existing stage to associate with the deployment.
35 36 37 |
# File 'api_gatewayv2/cfn_deployment_props.rb', line 35 def stage_name @stage_name end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'api_gatewayv2/cfn_deployment_props.rb', line 37 def self.jsii_properties { :api_id => "apiId", :description => "description", :stage_name => "stageName", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'api_gatewayv2/cfn_deployment_props.rb', line 45 def to_jsii result = {} result.merge!({ "apiId" => @api_id, "description" => @description, "stageName" => @stage_name, }) result.compact end |