Skip to content
v2.278.0

GatewayRouteSpecConfig Struct ​

All Properties for GatewayRoute Specs.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const gatewayRouteSpecConfig: appmesh.GatewayRouteSpecConfig = {
  grpcSpecConfig: {
    action: {
      target: {
        virtualService: {
          virtualServiceName: 'virtualServiceName',
        },

        // the properties below are optional
        port: 123,
      },

      // the properties below are optional
      rewrite: {
        hostname: {
          defaultTargetHostname: 'defaultTargetHostname',
        },
      },
    },
    match: {
      hostname: {
        exact: 'exact',
        suffix: 'suffix',
      },
      metadata: [{
        name: 'name',

        // the properties below are optional
        invert: false,
        match: {
          exact: 'exact',
          prefix: 'prefix',
          range: {
            end: 123,
            start: 123,
          },
          regex: 'regex',
          suffix: 'suffix',
        },
      }],
      port: 123,
      serviceName: 'serviceName',
    },
  },
  http2SpecConfig: {
    action: {
      target: {
        virtualService: {
          virtualServiceName: 'virtualServiceName',
        },

        // the properties below are optional
        port: 123,
      },

      // the properties below are optional
      rewrite: {
        hostname: {
          defaultTargetHostname: 'defaultTargetHostname',
        },
        path: {
          exact: 'exact',
        },
        prefix: {
          defaultPrefix: 'defaultPrefix',
          value: 'value',
        },
      },
    },
    match: {
      headers: [{
        name: 'name',

        // the properties below are optional
        invert: false,
        match: {
          exact: 'exact',
          prefix: 'prefix',
          range: {
            end: 123,
            start: 123,
          },
          regex: 'regex',
          suffix: 'suffix',
        },
      }],
      hostname: {
        exact: 'exact',
        suffix: 'suffix',
      },
      method: 'method',
      path: {
        exact: 'exact',
        regex: 'regex',
      },
      port: 123,
      prefix: 'prefix',
      queryParameters: [{
        name: 'name',

        // the properties below are optional
        match: {
          exact: 'exact',
        },
      }],
    },
  },
  httpSpecConfig: {
    action: {
      target: {
        virtualService: {
          virtualServiceName: 'virtualServiceName',
        },

        // the properties below are optional
        port: 123,
      },

      // the properties below are optional
      rewrite: {
        hostname: {
          defaultTargetHostname: 'defaultTargetHostname',
        },
        path: {
          exact: 'exact',
        },
        prefix: {
          defaultPrefix: 'defaultPrefix',
          value: 'value',
        },
      },
    },
    match: {
      headers: [{
        name: 'name',

        // the properties below are optional
        invert: false,
        match: {
          exact: 'exact',
          prefix: 'prefix',
          range: {
            end: 123,
            start: 123,
          },
          regex: 'regex',
          suffix: 'suffix',
        },
      }],
      hostname: {
        exact: 'exact',
        suffix: 'suffix',
      },
      method: 'method',
      path: {
        exact: 'exact',
        regex: 'regex',
      },
      port: 123,
      prefix: 'prefix',
      queryParameters: [{
        name: 'name',

        // the properties below are optional
        match: {
          exact: 'exact',
        },
      }],
    },
  },
  priority: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

gateway_route_spec_config = appmesh.GatewayRouteSpecConfig(
    grpc_spec_config=appmesh.CfnGatewayRoute.GrpcGatewayRouteProperty(
        action=appmesh.CfnGatewayRoute.GrpcGatewayRouteActionProperty(
            target=appmesh.CfnGatewayRoute.GatewayRouteTargetProperty(
                virtual_service=appmesh.CfnGatewayRoute.GatewayRouteVirtualServiceProperty(
                    virtual_service_name="virtualServiceName"
                ),

                # the properties below are optional
                port=123
            ),

            # the properties below are optional
            rewrite=appmesh.CfnGatewayRoute.GrpcGatewayRouteRewriteProperty(
                hostname=appmesh.CfnGatewayRoute.GatewayRouteHostnameRewriteProperty(
                    default_target_hostname="defaultTargetHostname"
                )
            )
        ),
        match=appmesh.CfnGatewayRoute.GrpcGatewayRouteMatchProperty(
            hostname=appmesh.CfnGatewayRoute.GatewayRouteHostnameMatchProperty(
                exact="exact",
                suffix="suffix"
            ),
            metadata=[appmesh.CfnGatewayRoute.GrpcGatewayRouteMetadataProperty(
                name="name",

                # the properties below are optional
                invert=False,
                match=appmesh.CfnGatewayRoute.GatewayRouteMetadataMatchProperty(
                    exact="exact",
                    prefix="prefix",
                    range=appmesh.CfnGatewayRoute.GatewayRouteRangeMatchProperty(
                        end=123,
                        start=123
                    ),
                    regex="regex",
                    suffix="suffix"
                )
            )],
            port=123,
            service_name="serviceName"
        )
    ),
    http2_spec_config=appmesh.CfnGatewayRoute.HttpGatewayRouteProperty(
        action=appmesh.CfnGatewayRoute.HttpGatewayRouteActionProperty(
            target=appmesh.CfnGatewayRoute.GatewayRouteTargetProperty(
                virtual_service=appmesh.CfnGatewayRoute.GatewayRouteVirtualServiceProperty(
                    virtual_service_name="virtualServiceName"
                ),

                # the properties below are optional
                port=123
            ),

            # the properties below are optional
            rewrite=appmesh.CfnGatewayRoute.HttpGatewayRouteRewriteProperty(
                hostname=appmesh.CfnGatewayRoute.GatewayRouteHostnameRewriteProperty(
                    default_target_hostname="defaultTargetHostname"
                ),
                path=appmesh.CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty(
                    exact="exact"
                ),
                prefix=appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty(
                    default_prefix="defaultPrefix",
                    value="value"
                )
            )
        ),
        match=appmesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty(
            headers=[appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty(
                name="name",

                # the properties below are optional
                invert=False,
                match=appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderMatchProperty(
                    exact="exact",
                    prefix="prefix",
                    range=appmesh.CfnGatewayRoute.GatewayRouteRangeMatchProperty(
                        end=123,
                        start=123
                    ),
                    regex="regex",
                    suffix="suffix"
                )
            )],
            hostname=appmesh.CfnGatewayRoute.GatewayRouteHostnameMatchProperty(
                exact="exact",
                suffix="suffix"
            ),
            method="method",
            path=appmesh.CfnGatewayRoute.HttpPathMatchProperty(
                exact="exact",
                regex="regex"
            ),
            port=123,
            prefix="prefix",
            query_parameters=[appmesh.CfnGatewayRoute.QueryParameterProperty(
                name="name",

                # the properties below are optional
                match=appmesh.CfnGatewayRoute.HttpQueryParameterMatchProperty(
                    exact="exact"
                )
            )]
        )
    ),
    http_spec_config=appmesh.CfnGatewayRoute.HttpGatewayRouteProperty(
        action=appmesh.CfnGatewayRoute.HttpGatewayRouteActionProperty(
            target=appmesh.CfnGatewayRoute.GatewayRouteTargetProperty(
                virtual_service=appmesh.CfnGatewayRoute.GatewayRouteVirtualServiceProperty(
                    virtual_service_name="virtualServiceName"
                ),

                # the properties below are optional
                port=123
            ),

            # the properties below are optional
            rewrite=appmesh.CfnGatewayRoute.HttpGatewayRouteRewriteProperty(
                hostname=appmesh.CfnGatewayRoute.GatewayRouteHostnameRewriteProperty(
                    default_target_hostname="defaultTargetHostname"
                ),
                path=appmesh.CfnGatewayRoute.HttpGatewayRoutePathRewriteProperty(
                    exact="exact"
                ),
                prefix=appmesh.CfnGatewayRoute.HttpGatewayRoutePrefixRewriteProperty(
                    default_prefix="defaultPrefix",
                    value="value"
                )
            )
        ),
        match=appmesh.CfnGatewayRoute.HttpGatewayRouteMatchProperty(
            headers=[appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderProperty(
                name="name",

                # the properties below are optional
                invert=False,
                match=appmesh.CfnGatewayRoute.HttpGatewayRouteHeaderMatchProperty(
                    exact="exact",
                    prefix="prefix",
                    range=appmesh.CfnGatewayRoute.GatewayRouteRangeMatchProperty(
                        end=123,
                        start=123
                    ),
                    regex="regex",
                    suffix="suffix"
                )
            )],
            hostname=appmesh.CfnGatewayRoute.GatewayRouteHostnameMatchProperty(
                exact="exact",
                suffix="suffix"
            ),
            method="method",
            path=appmesh.CfnGatewayRoute.HttpPathMatchProperty(
                exact="exact",
                regex="regex"
            ),
            port=123,
            prefix="prefix",
            query_parameters=[appmesh.CfnGatewayRoute.QueryParameterProperty(
                name="name",

                # the properties below are optional
                match=appmesh.CfnGatewayRoute.HttpQueryParameterMatchProperty(
                    exact="exact"
                )
            )]
        )
    ),
    priority=123
)
java
// 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.*;

GatewayRouteSpecConfig gatewayRouteSpecConfig = GatewayRouteSpecConfig.builder()
        .grpcSpecConfig(GrpcGatewayRouteProperty.builder()
                .action(GrpcGatewayRouteActionProperty.builder()
                        .target(GatewayRouteTargetProperty.builder()
                                .virtualService(GatewayRouteVirtualServiceProperty.builder()
                                        .virtualServiceName("virtualServiceName")
                                        .build())

                                // the properties below are optional
                                .port(123)
                                .build())

                        // the properties below are optional
                        .rewrite(GrpcGatewayRouteRewriteProperty.builder()
                                .hostname(GatewayRouteHostnameRewriteProperty.builder()
                                        .defaultTargetHostname("defaultTargetHostname")
                                        .build())
                                .build())
                        .build())
                .match(GrpcGatewayRouteMatchProperty.builder()
                        .hostname(GatewayRouteHostnameMatchProperty.builder()
                                .exact("exact")
                                .suffix("suffix")
                                .build())
                        .metadata(List.of(GrpcGatewayRouteMetadataProperty.builder()
                                .name("name")

                                // the properties below are optional
                                .invert(false)
                                .match(GatewayRouteMetadataMatchProperty.builder()
                                        .exact("exact")
                                        .prefix("prefix")
                                        .range(GatewayRouteRangeMatchProperty.builder()
                                                .end(123)
                                                .start(123)
                                                .build())
                                        .regex("regex")
                                        .suffix("suffix")
                                        .build())
                                .build()))
                        .port(123)
                        .serviceName("serviceName")
                        .build())
                .build())
        .http2SpecConfig(HttpGatewayRouteProperty.builder()
                .action(HttpGatewayRouteActionProperty.builder()
                        .target(GatewayRouteTargetProperty.builder()
                                .virtualService(GatewayRouteVirtualServiceProperty.builder()
                                        .virtualServiceName("virtualServiceName")
                                        .build())

                                // the properties below are optional
                                .port(123)
                                .build())

                        // the properties below are optional
                        .rewrite(HttpGatewayRouteRewriteProperty.builder()
                                .hostname(GatewayRouteHostnameRewriteProperty.builder()
                                        .defaultTargetHostname("defaultTargetHostname")
                                        .build())
                                .path(HttpGatewayRoutePathRewriteProperty.builder()
                                        .exact("exact")
                                        .build())
                                .prefix(HttpGatewayRoutePrefixRewriteProperty.builder()
                                        .defaultPrefix("defaultPrefix")
                                        .value("value")
                                        .build())
                                .build())
                        .build())
                .match(HttpGatewayRouteMatchProperty.builder()
                        .headers(List.of(HttpGatewayRouteHeaderProperty.builder()
                                .name("name")

                                // the properties below are optional
                                .invert(false)
                                .match(HttpGatewayRouteHeaderMatchProperty.builder()
                                        .exact("exact")
                                        .prefix("prefix")
                                        .range(GatewayRouteRangeMatchProperty.builder()
                                                .end(123)
                                                .start(123)
                                                .build())
                                        .regex("regex")
                                        .suffix("suffix")
                                        .build())
                                .build()))
                        .hostname(GatewayRouteHostnameMatchProperty.builder()
                                .exact("exact")
                                .suffix("suffix")
                                .build())
                        .method("method")
                        .path(HttpPathMatchProperty.builder()
                                .exact("exact")
                                .regex("regex")
                                .build())
                        .port(123)
                        .prefix("prefix")
                        .queryParameters(List.of(QueryParameterProperty.builder()
                                .name("name")

                                // the properties below are optional
                                .match(HttpQueryParameterMatchProperty.builder()
                                        .exact("exact")
                                        .build())
                                .build()))
                        .build())
                .build())
        .httpSpecConfig(HttpGatewayRouteProperty.builder()
                .action(HttpGatewayRouteActionProperty.builder()
                        .target(GatewayRouteTargetProperty.builder()
                                .virtualService(GatewayRouteVirtualServiceProperty.builder()
                                        .virtualServiceName("virtualServiceName")
                                        .build())

                                // the properties below are optional
                                .port(123)
                                .build())

                        // the properties below are optional
                        .rewrite(HttpGatewayRouteRewriteProperty.builder()
                                .hostname(GatewayRouteHostnameRewriteProperty.builder()
                                        .defaultTargetHostname("defaultTargetHostname")
                                        .build())
                                .path(HttpGatewayRoutePathRewriteProperty.builder()
                                        .exact("exact")
                                        .build())
                                .prefix(HttpGatewayRoutePrefixRewriteProperty.builder()
                                        .defaultPrefix("defaultPrefix")
                                        .value("value")
                                        .build())
                                .build())
                        .build())
                .match(HttpGatewayRouteMatchProperty.builder()
                        .headers(List.of(HttpGatewayRouteHeaderProperty.builder()
                                .name("name")

                                // the properties below are optional
                                .invert(false)
                                .match(HttpGatewayRouteHeaderMatchProperty.builder()
                                        .exact("exact")
                                        .prefix("prefix")
                                        .range(GatewayRouteRangeMatchProperty.builder()
                                                .end(123)
                                                .start(123)
                                                .build())
                                        .regex("regex")
                                        .suffix("suffix")
                                        .build())
                                .build()))
                        .hostname(GatewayRouteHostnameMatchProperty.builder()
                                .exact("exact")
                                .suffix("suffix")
                                .build())
                        .method("method")
                        .path(HttpPathMatchProperty.builder()
                                .exact("exact")
                                .regex("regex")
                                .build())
                        .port(123)
                        .prefix("prefix")
                        .queryParameters(List.of(QueryParameterProperty.builder()
                                .name("name")

                                // the properties below are optional
                                .match(HttpQueryParameterMatchProperty.builder()
                                        .exact("exact")
                                        .build())
                                .build()))
                        .build())
                .build())
        .priority(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;

var gatewayRouteSpecConfig = new GatewayRouteSpecConfig {
    GrpcSpecConfig = new GrpcGatewayRouteProperty {
        Action = new GrpcGatewayRouteActionProperty {
            Target = new GatewayRouteTargetProperty {
                VirtualService = new GatewayRouteVirtualServiceProperty {
                    VirtualServiceName = "virtualServiceName"
                },

                // the properties below are optional
                Port = 123
            },

            // the properties below are optional
            Rewrite = new GrpcGatewayRouteRewriteProperty {
                Hostname = new GatewayRouteHostnameRewriteProperty {
                    DefaultTargetHostname = "defaultTargetHostname"
                }
            }
        },
        Match = new GrpcGatewayRouteMatchProperty {
            Hostname = new GatewayRouteHostnameMatchProperty {
                Exact = "exact",
                Suffix = "suffix"
            },
            Metadata = new [] { new GrpcGatewayRouteMetadataProperty {
                Name = "name",

                // the properties below are optional
                Invert = false,
                Match = new GatewayRouteMetadataMatchProperty {
                    Exact = "exact",
                    Prefix = "prefix",
                    Range = new GatewayRouteRangeMatchProperty {
                        End = 123,
                        Start = 123
                    },
                    Regex = "regex",
                    Suffix = "suffix"
                }
            } },
            Port = 123,
            ServiceName = "serviceName"
        }
    },
    Http2SpecConfig = new HttpGatewayRouteProperty {
        Action = new HttpGatewayRouteActionProperty {
            Target = new GatewayRouteTargetProperty {
                VirtualService = new GatewayRouteVirtualServiceProperty {
                    VirtualServiceName = "virtualServiceName"
                },

                // the properties below are optional
                Port = 123
            },

            // the properties below are optional
            Rewrite = new HttpGatewayRouteRewriteProperty {
                Hostname = new GatewayRouteHostnameRewriteProperty {
                    DefaultTargetHostname = "defaultTargetHostname"
                },
                Path = new HttpGatewayRoutePathRewriteProperty {
                    Exact = "exact"
                },
                Prefix = new HttpGatewayRoutePrefixRewriteProperty {
                    DefaultPrefix = "defaultPrefix",
                    Value = "value"
                }
            }
        },
        Match = new HttpGatewayRouteMatchProperty {
            Headers = new [] { new HttpGatewayRouteHeaderProperty {
                Name = "name",

                // the properties below are optional
                Invert = false,
                Match = new HttpGatewayRouteHeaderMatchProperty {
                    Exact = "exact",
                    Prefix = "prefix",
                    Range = new GatewayRouteRangeMatchProperty {
                        End = 123,
                        Start = 123
                    },
                    Regex = "regex",
                    Suffix = "suffix"
                }
            } },
            Hostname = new GatewayRouteHostnameMatchProperty {
                Exact = "exact",
                Suffix = "suffix"
            },
            Method = "method",
            Path = new HttpPathMatchProperty {
                Exact = "exact",
                Regex = "regex"
            },
            Port = 123,
            Prefix = "prefix",
            QueryParameters = new [] { new QueryParameterProperty {
                Name = "name",

                // the properties below are optional
                Match = new HttpQueryParameterMatchProperty {
                    Exact = "exact"
                }
            } }
        }
    },
    HttpSpecConfig = new HttpGatewayRouteProperty {
        Action = new HttpGatewayRouteActionProperty {
            Target = new GatewayRouteTargetProperty {
                VirtualService = new GatewayRouteVirtualServiceProperty {
                    VirtualServiceName = "virtualServiceName"
                },

                // the properties below are optional
                Port = 123
            },

            // the properties below are optional
            Rewrite = new HttpGatewayRouteRewriteProperty {
                Hostname = new GatewayRouteHostnameRewriteProperty {
                    DefaultTargetHostname = "defaultTargetHostname"
                },
                Path = new HttpGatewayRoutePathRewriteProperty {
                    Exact = "exact"
                },
                Prefix = new HttpGatewayRoutePrefixRewriteProperty {
                    DefaultPrefix = "defaultPrefix",
                    Value = "value"
                }
            }
        },
        Match = new HttpGatewayRouteMatchProperty {
            Headers = new [] { new HttpGatewayRouteHeaderProperty {
                Name = "name",

                // the properties below are optional
                Invert = false,
                Match = new HttpGatewayRouteHeaderMatchProperty {
                    Exact = "exact",
                    Prefix = "prefix",
                    Range = new GatewayRouteRangeMatchProperty {
                        End = 123,
                        Start = 123
                    },
                    Regex = "regex",
                    Suffix = "suffix"
                }
            } },
            Hostname = new GatewayRouteHostnameMatchProperty {
                Exact = "exact",
                Suffix = "suffix"
            },
            Method = "method",
            Path = new HttpPathMatchProperty {
                Exact = "exact",
                Regex = "regex"
            },
            Port = 123,
            Prefix = "prefix",
            QueryParameters = new [] { new QueryParameterProperty {
                Name = "name",

                // the properties below are optional
                Match = new HttpQueryParameterMatchProperty {
                    Exact = "exact"
                }
            } }
        }
    },
    Priority = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

gatewayRouteSpecConfig := &GatewayRouteSpecConfig{
	GrpcSpecConfig: &GrpcGatewayRouteProperty{
		Action: &GrpcGatewayRouteActionProperty{
			Target: &GatewayRouteTargetProperty{
				VirtualService: &GatewayRouteVirtualServiceProperty{
					VirtualServiceName: jsii.String("virtualServiceName"),
				},

				// the properties below are optional
				Port: jsii.Number(123),
			},

			// the properties below are optional
			Rewrite: &GrpcGatewayRouteRewriteProperty{
				Hostname: &GatewayRouteHostnameRewriteProperty{
					DefaultTargetHostname: jsii.String("defaultTargetHostname"),
				},
			},
		},
		Match: &GrpcGatewayRouteMatchProperty{
			Hostname: &GatewayRouteHostnameMatchProperty{
				Exact: jsii.String("exact"),
				Suffix: jsii.String("suffix"),
			},
			Metadata: []interface{}{
				&GrpcGatewayRouteMetadataProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					Invert: jsii.Boolean(false),
					Match: &GatewayRouteMetadataMatchProperty{
						Exact: jsii.String("exact"),
						Prefix: jsii.String("prefix"),
						Range: &GatewayRouteRangeMatchProperty{
							End: jsii.Number(123),
							Start: jsii.Number(123),
						},
						Regex: jsii.String("regex"),
						Suffix: jsii.String("suffix"),
					},
				},
			},
			Port: jsii.Number(123),
			ServiceName: jsii.String("serviceName"),
		},
	},
	Http2SpecConfig: &HttpGatewayRouteProperty{
		Action: &HttpGatewayRouteActionProperty{
			Target: &GatewayRouteTargetProperty{
				VirtualService: &GatewayRouteVirtualServiceProperty{
					VirtualServiceName: jsii.String("virtualServiceName"),
				},

				// the properties below are optional
				Port: jsii.Number(123),
			},

			// the properties below are optional
			Rewrite: &HttpGatewayRouteRewriteProperty{
				Hostname: &GatewayRouteHostnameRewriteProperty{
					DefaultTargetHostname: jsii.String("defaultTargetHostname"),
				},
				Path: &HttpGatewayRoutePathRewriteProperty{
					Exact: jsii.String("exact"),
				},
				Prefix: &HttpGatewayRoutePrefixRewriteProperty{
					DefaultPrefix: jsii.String("defaultPrefix"),
					Value: jsii.String("value"),
				},
			},
		},
		Match: &HttpGatewayRouteMatchProperty{
			Headers: []interface{}{
				&HttpGatewayRouteHeaderProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					Invert: jsii.Boolean(false),
					Match: &HttpGatewayRouteHeaderMatchProperty{
						Exact: jsii.String("exact"),
						Prefix: jsii.String("prefix"),
						Range: &GatewayRouteRangeMatchProperty{
							End: jsii.Number(123),
							Start: jsii.Number(123),
						},
						Regex: jsii.String("regex"),
						Suffix: jsii.String("suffix"),
					},
				},
			},
			Hostname: &GatewayRouteHostnameMatchProperty{
				Exact: jsii.String("exact"),
				Suffix: jsii.String("suffix"),
			},
			Method: jsii.String("method"),
			Path: &HttpPathMatchProperty{
				Exact: jsii.String("exact"),
				Regex: jsii.String("regex"),
			},
			Port: jsii.Number(123),
			Prefix: jsii.String("prefix"),
			QueryParameters: []interface{}{
				&QueryParameterProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					Match: &HttpQueryParameterMatchProperty{
						Exact: jsii.String("exact"),
					},
				},
			},
		},
	},
	HttpSpecConfig: &HttpGatewayRouteProperty{
		Action: &HttpGatewayRouteActionProperty{
			Target: &GatewayRouteTargetProperty{
				VirtualService: &GatewayRouteVirtualServiceProperty{
					VirtualServiceName: jsii.String("virtualServiceName"),
				},

				// the properties below are optional
				Port: jsii.Number(123),
			},

			// the properties below are optional
			Rewrite: &HttpGatewayRouteRewriteProperty{
				Hostname: &GatewayRouteHostnameRewriteProperty{
					DefaultTargetHostname: jsii.String("defaultTargetHostname"),
				},
				Path: &HttpGatewayRoutePathRewriteProperty{
					Exact: jsii.String("exact"),
				},
				Prefix: &HttpGatewayRoutePrefixRewriteProperty{
					DefaultPrefix: jsii.String("defaultPrefix"),
					Value: jsii.String("value"),
				},
			},
		},
		Match: &HttpGatewayRouteMatchProperty{
			Headers: []interface{}{
				&HttpGatewayRouteHeaderProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					Invert: jsii.Boolean(false),
					Match: &HttpGatewayRouteHeaderMatchProperty{
						Exact: jsii.String("exact"),
						Prefix: jsii.String("prefix"),
						Range: &GatewayRouteRangeMatchProperty{
							End: jsii.Number(123),
							Start: jsii.Number(123),
						},
						Regex: jsii.String("regex"),
						Suffix: jsii.String("suffix"),
					},
				},
			},
			Hostname: &GatewayRouteHostnameMatchProperty{
				Exact: jsii.String("exact"),
				Suffix: jsii.String("suffix"),
			},
			Method: jsii.String("method"),
			Path: &HttpPathMatchProperty{
				Exact: jsii.String("exact"),
				Regex: jsii.String("regex"),
			},
			Port: jsii.Number(123),
			Prefix: jsii.String("prefix"),
			QueryParameters: []interface{}{
				&QueryParameterProperty{
					Name: jsii.String("name"),

					// the properties below are optional
					Match: &HttpQueryParameterMatchProperty{
						Exact: jsii.String("exact"),
					},
				},
			},
		},
	},
	Priority: jsii.Number(123),
}

Properties ​

grpcSpecConfigoptionalCfnGatewayRoute.GrpcGatewayRoutePropertygrpc_spec_configoptionalGrpcGatewayRoutePropertygrpcSpecConfigoptionalGrpcGatewayRoutePropertyGrpcSpecConfigoptionalGrpcGatewayRoutePropertyGrpcSpecConfigoptionalGrpcGatewayRouteProperty #
The spec for a grpc gateway route.

Default: no grpc spec

http2SpecConfigoptionalCfnGatewayRoute.HttpGatewayRoutePropertyhttp2_spec_configoptionalHttpGatewayRoutePropertyhttp2SpecConfigoptionalHttpGatewayRoutePropertyHttp2SpecConfigoptionalHttpGatewayRoutePropertyHttp2SpecConfigoptionalHttpGatewayRouteProperty #
The spec for an http2 gateway route.

Default: no http2 spec

httpSpecConfigoptionalCfnGatewayRoute.HttpGatewayRoutePropertyhttp_spec_configoptionalHttpGatewayRoutePropertyhttpSpecConfigoptionalHttpGatewayRoutePropertyHttpSpecConfigoptionalHttpGatewayRoutePropertyHttpSpecConfigoptionalHttpGatewayRouteProperty #
The spec for an http gateway route.

Default: no http spec

priorityoptionalnumberpriorityoptionalint | floatpriorityoptionalNumberPriorityoptionaldoublePriorityoptional*float64 #
The priority for the gateway route.

Default: no particular priority

When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.