Class: AWSCDK::AppMesh::CfnGatewayRoute::GrpcGatewayRouteMetadataProperty

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

Overview

An object representing the metadata of the gateway route.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, invert: nil, match: nil) ⇒ GrpcGatewayRouteMetadataProperty

Returns a new instance of GrpcGatewayRouteMetadataProperty.

Parameters:



1088
1089
1090
1091
1092
1093
1094
1095
# File 'app_mesh/cfn_gateway_route.rb', line 1088

def initialize(name:, invert: nil, match: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @invert = invert
  Jsii::Type.check_type(@invert, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "invert") unless @invert.nil?
  @match = match.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnGatewayRoute::GatewayRouteMetadataMatchProperty.new(**match.transform_keys(&:to_sym)) : match
  Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmbkdhdGV3YXlSb3V0ZS5HYXRld2F5Um91dGVNZXRhZGF0YU1hdGNoUHJvcGVydHkifV19fQ==")), "match") unless @match.nil?
end

Instance Attribute Details

#invertBoolean, ... (readonly)

Specify True to match anything except the match criteria.

The default value is False .



1108
1109
1110
# File 'app_mesh/cfn_gateway_route.rb', line 1108

def invert
  @invert
end

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

The criteria for determining a metadata match.



1113
1114
1115
# File 'app_mesh/cfn_gateway_route.rb', line 1113

def match
  @match
end

#nameString (readonly)

A name for the gateway route metadata.



1101
1102
1103
# File 'app_mesh/cfn_gateway_route.rb', line 1101

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1115
1116
1117
1118
1119
1120
1121
# File 'app_mesh/cfn_gateway_route.rb', line 1115

def self.jsii_properties
  {
    :name => "name",
    :invert => "invert",
    :match => "match",
  }
end

Instance Method Details

#to_jsiiObject



1123
1124
1125
1126
1127
1128
1129
1130
1131
# File 'app_mesh/cfn_gateway_route.rb', line 1123

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "invert" => @invert,
    "match" => @match,
  })
  result.compact
end