Class: AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteSpecProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_gateway_route.rb

Overview

An object that represents a gateway route specification.

Specify one gateway route type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grpc_route: nil, http2_route: nil, http_route: nil, priority: nil) ⇒ GatewayRouteSpecProperty

Returns a new instance of GatewayRouteSpecProperty.

Parameters:



844
845
846
847
848
849
850
851
852
853
# File 'app_mesh/cfn_gateway_route.rb', line 844

def initialize(grpc_route: nil, http2_route: nil, http_route: nil, priority: nil)
  @grpc_route = grpc_route.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteProperty.new(**grpc_route.transform_keys(&:to_sym)) : grpc_route
  Jsii::Type.check_type(@grpc_route, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HcnBjR2F0ZXdheVJvdXRlUHJvcGVydHkifV19fQ==")), "grpcRoute") unless @grpc_route.nil?
  @http2_route = http2_route.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteProperty.new(**http2_route.transform_keys(&:to_sym)) : http2_route
  Jsii::Type.check_type(@http2_route, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5IdHRwR2F0ZXdheVJvdXRlUHJvcGVydHkifV19fQ==")), "http2Route") unless @http2_route.nil?
  @http_route = http_route.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::HttpGatewayRouteProperty.new(**http_route.transform_keys(&:to_sym)) : http_route
  Jsii::Type.check_type(@http_route, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5IdHRwR2F0ZXdheVJvdXRlUHJvcGVydHkifV19fQ==")), "httpRoute") unless @http_route.nil?
  @priority = priority
  Jsii::Type.check_type(@priority, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "priority") unless @priority.nil?
end

Instance Attribute Details

#grpc_routeAWSCDK::IResolvable, ... (readonly)

An object that represents the specification of a gRPC gateway route.



859
860
861
# File 'app_mesh/cfn_gateway_route.rb', line 859

def grpc_route
  @grpc_route
end

#http2_routeAWSCDK::IResolvable, ... (readonly)

An object that represents the specification of an HTTP/2 gateway route.



864
865
866
# File 'app_mesh/cfn_gateway_route.rb', line 864

def http2_route
  @http2_route
end

#http_routeAWSCDK::IResolvable, ... (readonly)

An object that represents the specification of an HTTP gateway route.



869
870
871
# File 'app_mesh/cfn_gateway_route.rb', line 869

def http_route
  @http_route
end

#priorityNumeric? (readonly)

The ordering of the gateway routes spec.



874
875
876
# File 'app_mesh/cfn_gateway_route.rb', line 874

def priority
  @priority
end

Class Method Details

.jsii_propertiesObject



876
877
878
879
880
881
882
883
# File 'app_mesh/cfn_gateway_route.rb', line 876

def self.jsii_properties
  {
    :grpc_route => "grpcRoute",
    :http2_route => "http2Route",
    :http_route => "httpRoute",
    :priority => "priority",
  }
end

Instance Method Details

#to_jsiiObject



885
886
887
888
889
890
891
892
893
894
# File 'app_mesh/cfn_gateway_route.rb', line 885

def to_jsii
  result = {}
  result.merge!({
    "grpcRoute" => @grpc_route,
    "http2Route" => @http2_route,
    "httpRoute" => @http_route,
    "priority" => @priority,
  })
  result.compact
end