Interface CfnRoute.GrpcRouteMatchProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRoute.GrpcRouteMatchProperty.Jsii$Proxy
Enclosing class:
CfnRoute

@Stability(Stable) public static interface CfnRoute.GrpcRouteMatchProperty extends software.amazon.jsii.JsiiSerializable
An object that represents the criteria for determining a request match.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appmesh.*;
 GrpcRouteMatchProperty grpcRouteMatchProperty = GrpcRouteMatchProperty.builder()
         .metadata(List.of(GrpcRouteMetadataProperty.builder()
                 .name("name")
                 // the properties below are optional
                 .invert(false)
                 .match(GrpcRouteMetadataMatchMethodProperty.builder()
                         .exact("exact")
                         .prefix("prefix")
                         .range(MatchRangeProperty.builder()
                                 .end(123)
                                 .start(123)
                                 .build())
                         .regex("regex")
                         .suffix("suffix")
                         .build())
                 .build()))
         .methodName("methodName")
         .port(123)
         .serviceName("serviceName")
         .build();
 
  • Method Details

    • getMetadata

      @Stability(Stable) @Nullable default Object getMetadata()
      An object that represents the data to match from the request.
    • getMethodName

      @Stability(Stable) @Nullable default String getMethodName()
      The method name to match from the request.

      If you specify a name, you must also specify a serviceName .

    • getPort

      @Stability(Stable) @Nullable default Number getPort()
      The port number to match on.
    • getServiceName

      @Stability(Stable) @Nullable default String getServiceName()
      The fully qualified domain name for the service to match from the request.
    • builder

      @Stability(Stable) static CfnRoute.GrpcRouteMatchProperty.Builder builder()
      Returns:
      a CfnRoute.GrpcRouteMatchProperty.Builder of CfnRoute.GrpcRouteMatchProperty