Class: AWSCDK::AppMesh::CfnRoute::GrpcRouteMetadataProperty

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

Overview

An object that represents the match metadata for the route.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GrpcRouteMetadataProperty.

Parameters:



945
946
947
948
949
950
951
952
# File 'app_mesh/cfn_route.rb', line 945

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::CfnRoute::GrpcRouteMetadataMatchMethodProperty.new(**match.transform_keys(&:to_sym)) : match
  Jsii::Type.check_type(@match, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblJvdXRlLkdycGNSb3V0ZU1ldGFkYXRhTWF0Y2hNZXRob2RQcm9wZXJ0eSJ9XX19")), "match") unless @match.nil?
end

Instance Attribute Details

#invertBoolean, ... (readonly)

Specify True to match anything except the match criteria.

The default value is False .



965
966
967
# File 'app_mesh/cfn_route.rb', line 965

def invert
  @invert
end

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

An object that represents the data to match from the request.



970
971
972
# File 'app_mesh/cfn_route.rb', line 970

def match
  @match
end

#nameString (readonly)

The name of the route.



958
959
960
# File 'app_mesh/cfn_route.rb', line 958

def name
  @name
end

Class Method Details

.jsii_propertiesObject



972
973
974
975
976
977
978
# File 'app_mesh/cfn_route.rb', line 972

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

Instance Method Details

#to_jsiiObject



980
981
982
983
984
985
986
987
988
# File 'app_mesh/cfn_route.rb', line 980

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