Class: AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverridesProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverridesProps
- Defined in:
- api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb
Overview
Properties for defining a CfnApiGatewayManagedOverrides.
Instance Attribute Summary collapse
-
#api_id ⇒ String
readonly
The ID of the API for which to override the configuration of API Gateway-managed resources.
-
#integration ⇒ AWSCDK::IResolvable, ...
readonly
Overrides the integration configuration for an API Gateway-managed integration.
-
#route ⇒ AWSCDK::IResolvable, ...
readonly
Overrides the route configuration for an API Gateway-managed route.
-
#stage ⇒ AWSCDK::IResolvable, ...
readonly
Overrides the stage configuration for an API Gateway-managed stage.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_id:, integration: nil, route: nil, stage: nil) ⇒ CfnAPIGatewayManagedOverridesProps
constructor
A new instance of CfnAPIGatewayManagedOverridesProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_id:, integration: nil, route: nil, stage: nil) ⇒ CfnAPIGatewayManagedOverridesProps
Returns a new instance of CfnAPIGatewayManagedOverridesProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 13 def initialize(api_id:, integration: nil, route: nil, stage: nil) @api_id = api_id Jsii::Type.check_type(@api_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiId") @integration = integration.is_a?(Hash) ? ::AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::IntegrationOverridesProperty.new(**integration.transform_keys(&:to_sym)) : integration Jsii::Type.check_type(@integration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcGlnYXRld2F5djIuQ2ZuQXBpR2F0ZXdheU1hbmFnZWRPdmVycmlkZXMuSW50ZWdyYXRpb25PdmVycmlkZXNQcm9wZXJ0eSJ9XX19")), "integration") unless @integration.nil? @route = route.is_a?(Hash) ? ::AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::RouteOverridesProperty.new(**route.transform_keys(&:to_sym)) : route Jsii::Type.check_type(@route, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcGlnYXRld2F5djIuQ2ZuQXBpR2F0ZXdheU1hbmFnZWRPdmVycmlkZXMuUm91dGVPdmVycmlkZXNQcm9wZXJ0eSJ9XX19")), "route") unless @route.nil? @stage = stage.is_a?(Hash) ? ::AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverrides::StageOverridesProperty.new(**stage.transform_keys(&:to_sym)) : stage Jsii::Type.check_type(@stage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcGlnYXRld2F5djIuQ2ZuQXBpR2F0ZXdheU1hbmFnZWRPdmVycmlkZXMuU3RhZ2VPdmVycmlkZXNQcm9wZXJ0eSJ9XX19")), "stage") unless @stage.nil? end |
Instance Attribute Details
#api_id ⇒ String (readonly)
The ID of the API for which to override the configuration of API Gateway-managed resources.
28 29 30 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 28 def api_id @api_id end |
#integration ⇒ AWSCDK::IResolvable, ... (readonly)
Overrides the integration configuration for an API Gateway-managed integration.
33 34 35 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 33 def integration @integration end |
#route ⇒ AWSCDK::IResolvable, ... (readonly)
Overrides the route configuration for an API Gateway-managed route.
38 39 40 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 38 def route @route end |
#stage ⇒ AWSCDK::IResolvable, ... (readonly)
Overrides the stage configuration for an API Gateway-managed stage.
43 44 45 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 43 def stage @stage end |
Class Method Details
.jsii_properties ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 45 def self.jsii_properties { :api_id => "apiId", :integration => "integration", :route => "route", :stage => "stage", } end |
Instance Method Details
#to_jsii ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'api_gatewayv2/cfn_api_gateway_managed_overrides_props.rb', line 54 def to_jsii result = {} result.merge!({ "apiId" => @api_id, "integration" => @integration, "route" => @route, "stage" => @stage, }) result.compact end |