Class: AWSCDK::APIGatewayv2::CfnAPIGatewayManagedOverridesProps

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

Overview

Properties for defining a CfnApiGatewayManagedOverrides.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_id:, integration: nil, route: nil, stage: nil) ⇒ CfnAPIGatewayManagedOverridesProps

Returns a new instance of CfnAPIGatewayManagedOverridesProps.

Parameters:



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_idString (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

#integrationAWSCDK::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

#routeAWSCDK::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

#stageAWSCDK::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_propertiesObject



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_jsiiObject



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