CfnGatewayRouteMixinProps

class aws_cdk.cfn_property_mixins.aws_appmesh.CfnGatewayRouteMixinProps(*, gateway_route_name=None, mesh_name=None, mesh_owner=None, spec=None, tags=None, virtual_gateway_name=None)

Bases: object

Properties for CfnGatewayRoutePropsMixin.

Parameters:
  • gateway_route_name (Optional[str]) – The name of the gateway route.

  • mesh_name (Optional[str]) – The name of the service mesh that the resource resides in.

  • mesh_owner (Optional[str]) – The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes .

  • spec (Union[IResolvable, GatewayRouteSpecProperty, Dict[str, Any], None]) – The specifications of the gateway route.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – Optional metadata that you can apply to the gateway route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

  • virtual_gateway_name (Optional[str]) – The virtual gateway that the gateway route is associated with.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.cfn_property_mixins import aws_appmesh as appmesh

cfn_gateway_route_mixin_props = appmesh.CfnGatewayRouteMixinProps(
    gateway_route_name="gatewayRouteName",
    mesh_name="meshName",
    mesh_owner="meshOwner",
    spec=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteSpecProperty(
        grpc_route=appmesh.CfnGatewayRoutePropsMixin.GrpcGatewayRouteProperty(
            action=appmesh.CfnGatewayRoutePropsMixin.GrpcGatewayRouteActionProperty(
                rewrite=appmesh.CfnGatewayRoutePropsMixin.GrpcGatewayRouteRewriteProperty(
                    hostname=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteHostnameRewriteProperty(
                        default_target_hostname="defaultTargetHostname"
                    )
                ),
                target=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteTargetProperty(
                    port=123,
                    virtual_service=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteVirtualServiceProperty(
                        virtual_service_name="virtualServiceName"
                    )
                )
            ),
            match=appmesh.CfnGatewayRoutePropsMixin.GrpcGatewayRouteMatchProperty(
                hostname=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteHostnameMatchProperty(
                    exact="exact",
                    suffix="suffix"
                ),
                metadata=[appmesh.CfnGatewayRoutePropsMixin.GrpcGatewayRouteMetadataProperty(
                    invert=False,
                    match=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteMetadataMatchProperty(
                        exact="exact",
                        prefix="prefix",
                        range=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteRangeMatchProperty(
                            end=123,
                            start=123
                        ),
                        regex="regex",
                        suffix="suffix"
                    ),
                    name="name"
                )],
                port=123,
                service_name="serviceName"
            )
        ),
        http2_route=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteProperty(
            action=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteActionProperty(
                rewrite=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteRewriteProperty(
                    hostname=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteHostnameRewriteProperty(
                        default_target_hostname="defaultTargetHostname"
                    ),
                    path=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRoutePathRewriteProperty(
                        exact="exact"
                    ),
                    prefix=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRoutePrefixRewriteProperty(
                        default_prefix="defaultPrefix",
                        value="value"
                    )
                ),
                target=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteTargetProperty(
                    port=123,
                    virtual_service=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteVirtualServiceProperty(
                        virtual_service_name="virtualServiceName"
                    )
                )
            ),
            match=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteMatchProperty(
                headers=[appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteHeaderProperty(
                    invert=False,
                    match=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteHeaderMatchProperty(
                        exact="exact",
                        prefix="prefix",
                        range=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteRangeMatchProperty(
                            end=123,
                            start=123
                        ),
                        regex="regex",
                        suffix="suffix"
                    ),
                    name="name"
                )],
                hostname=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteHostnameMatchProperty(
                    exact="exact",
                    suffix="suffix"
                ),
                method="method",
                path=appmesh.CfnGatewayRoutePropsMixin.HttpPathMatchProperty(
                    exact="exact",
                    regex="regex"
                ),
                port=123,
                prefix="prefix",
                query_parameters=[appmesh.CfnGatewayRoutePropsMixin.QueryParameterProperty(
                    match=appmesh.CfnGatewayRoutePropsMixin.HttpQueryParameterMatchProperty(
                        exact="exact"
                    ),
                    name="name"
                )]
            )
        ),
        http_route=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteProperty(
            action=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteActionProperty(
                rewrite=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteRewriteProperty(
                    hostname=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteHostnameRewriteProperty(
                        default_target_hostname="defaultTargetHostname"
                    ),
                    path=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRoutePathRewriteProperty(
                        exact="exact"
                    ),
                    prefix=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRoutePrefixRewriteProperty(
                        default_prefix="defaultPrefix",
                        value="value"
                    )
                ),
                target=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteTargetProperty(
                    port=123,
                    virtual_service=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteVirtualServiceProperty(
                        virtual_service_name="virtualServiceName"
                    )
                )
            ),
            match=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteMatchProperty(
                headers=[appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteHeaderProperty(
                    invert=False,
                    match=appmesh.CfnGatewayRoutePropsMixin.HttpGatewayRouteHeaderMatchProperty(
                        exact="exact",
                        prefix="prefix",
                        range=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteRangeMatchProperty(
                            end=123,
                            start=123
                        ),
                        regex="regex",
                        suffix="suffix"
                    ),
                    name="name"
                )],
                hostname=appmesh.CfnGatewayRoutePropsMixin.GatewayRouteHostnameMatchProperty(
                    exact="exact",
                    suffix="suffix"
                ),
                method="method",
                path=appmesh.CfnGatewayRoutePropsMixin.HttpPathMatchProperty(
                    exact="exact",
                    regex="regex"
                ),
                port=123,
                prefix="prefix",
                query_parameters=[appmesh.CfnGatewayRoutePropsMixin.QueryParameterProperty(
                    match=appmesh.CfnGatewayRoutePropsMixin.HttpQueryParameterMatchProperty(
                        exact="exact"
                    ),
                    name="name"
                )]
            )
        ),
        priority=123
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    virtual_gateway_name="virtualGatewayName"
)

Attributes

gateway_route_name

The name of the gateway route.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-gatewayroutename

mesh_name

The name of the service mesh that the resource resides in.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-meshname

mesh_owner

The AWS IAM account ID of the service mesh owner.

If the account ID is not your own, then it’s the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-meshowner

spec

The specifications of the gateway route.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-spec

tags

Optional metadata that you can apply to the gateway route to assist with categorization and organization.

Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-tags

virtual_gateway_name

The virtual gateway that the gateway route is associated with.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html#cfn-appmesh-gatewayroute-virtualgatewayname