Show / Hide Table of Contents

Class GatewayRouteSpecConfig

All Properties for GatewayRoute Specs.

Inheritance
System.Object
GatewayRouteSpecConfig
Implements
IGatewayRouteSpecConfig
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public class GatewayRouteSpecConfig : Object, IGatewayRouteSpecConfig
Syntax (vb)
Public Class GatewayRouteSpecConfig
    Inherits Object
    Implements IGatewayRouteSpecConfig
Remarks

ExampleMetadata: fixture=_generated

Examples
// 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
};

Synopsis

Constructors

GatewayRouteSpecConfig()

Properties

GrpcSpecConfig

The spec for a grpc gateway route.

Http2SpecConfig

The spec for an http2 gateway route.

HttpSpecConfig

The spec for an http gateway route.

Priority

The priority for the gateway route.

Constructors

GatewayRouteSpecConfig()

public GatewayRouteSpecConfig()

Properties

GrpcSpecConfig

The spec for a grpc gateway route.

public CfnGatewayRoute.IGrpcGatewayRouteProperty GrpcSpecConfig { get; set; }
Property Value

CfnGatewayRoute.IGrpcGatewayRouteProperty

Remarks

Default: - no grpc spec

Http2SpecConfig

The spec for an http2 gateway route.

public CfnGatewayRoute.IHttpGatewayRouteProperty Http2SpecConfig { get; set; }
Property Value

CfnGatewayRoute.IHttpGatewayRouteProperty

Remarks

Default: - no http2 spec

HttpSpecConfig

The spec for an http gateway route.

public CfnGatewayRoute.IHttpGatewayRouteProperty HttpSpecConfig { get; set; }
Property Value

CfnGatewayRoute.IHttpGatewayRouteProperty

Remarks

Default: - no http spec

Priority

The priority for the gateway route.

public Nullable<double> Priority { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

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.

Default: - no particular priority

Implements

IGatewayRouteSpecConfig
Back to top Generated by DocFX