CfnVirtualNodePropsMixin

class aws_cdk.mixins_preview.aws_appmesh.mixins.CfnVirtualNodePropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a virtual node within a service mesh.

A virtual node acts as a logical pointer to a particular task group, such as an Amazon ECS service or a Kubernetes deployment. When you create a virtual node, you can specify the service discovery information for your task group, and whether the proxy running in a task group will communicate with other proxies using Transport Layer Security (TLS).

You define a listener for any inbound traffic that your virtual node expects. Any virtual service that your virtual node expects to communicate to is specified as a backend .

The response metadata for your new virtual node contains the arn that is associated with the virtual node. Set this value to the full ARN; for example, arn:aws:appmesh:us-west-2:123456789012:myMesh/default/virtualNode/myApp ) as the APPMESH_RESOURCE_ARN environment variable for your task group’s Envoy proxy container in your task definition or pod spec. This is then mapped to the node.id and node.cluster Envoy parameters. .. epigraph:

By default, App Mesh uses the name of the resource you specified in ``APPMESH_RESOURCE_ARN`` when Envoy is referring to itself in metrics and traces. You can override this behavior by setting the ``APPMESH_RESOURCE_CLUSTER`` environment variable with your own name.

For more information about virtual nodes, see Virtual nodes . You must be using 1.15.0 or later of the Envoy image when setting these variables. For more information aboutApp Mesh Envoy variables, see Envoy image in the AWS App Mesh User Guide.

See:

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

CloudformationResource:

AWS::AppMesh::VirtualNode

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

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

cfn_virtual_node_props_mixin = appmesh_mixins.CfnVirtualNodePropsMixin(appmesh_mixins.CfnVirtualNodeMixinProps(
    mesh_name="meshName",
    mesh_owner="meshOwner",
    spec=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeSpecProperty(
        backend_defaults=appmesh_mixins.CfnVirtualNodePropsMixin.BackendDefaultsProperty(
            client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
                tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
                    certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                        file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                            certificate_chain="certificateChain",
                            private_key="privateKey"
                        ),
                        sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                            secret_name="secretName"
                        )
                    ),
                    enforce=False,
                    ports=[123],
                    validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                        subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                            match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                                exact=["exact"]
                            )
                        ),
                        trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                            acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                                certificate_authority_arns=["certificateAuthorityArns"]
                            ),
                            file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                                certificate_chain="certificateChain"
                            ),
                            sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                                secret_name="secretName"
                            )
                        )
                    )
                )
            )
        ),
        backends=[appmesh_mixins.CfnVirtualNodePropsMixin.BackendProperty(
            virtual_service=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualServiceBackendProperty(
                client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
                    tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
                        certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                            file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                                certificate_chain="certificateChain",
                                private_key="privateKey"
                            ),
                            sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                                secret_name="secretName"
                            )
                        ),
                        enforce=False,
                        ports=[123],
                        validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                            subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                                match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                                    exact=["exact"]
                                )
                            ),
                            trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                                acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                                    certificate_authority_arns=["certificateAuthorityArns"]
                                ),
                                file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                                    certificate_chain="certificateChain"
                                ),
                                sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                                    secret_name="secretName"
                                )
                            )
                        )
                    )
                ),
                virtual_service_name="virtualServiceName"
            )
        )],
        listeners=[appmesh_mixins.CfnVirtualNodePropsMixin.ListenerProperty(
            connection_pool=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeConnectionPoolProperty(
                grpc=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(
                    max_requests=123
                ),
                http=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(
                    max_connections=123,
                    max_pending_requests=123
                ),
                http2=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(
                    max_requests=123
                ),
                tcp=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(
                    max_connections=123
                )
            ),
            health_check=appmesh_mixins.CfnVirtualNodePropsMixin.HealthCheckProperty(
                healthy_threshold=123,
                interval_millis=123,
                path="path",
                port=123,
                protocol="protocol",
                timeout_millis=123,
                unhealthy_threshold=123
            ),
            outlier_detection=appmesh_mixins.CfnVirtualNodePropsMixin.OutlierDetectionProperty(
                base_ejection_duration=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                ),
                interval=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                ),
                max_ejection_percent=123,
                max_server_errors=123
            ),
            port_mapping=appmesh_mixins.CfnVirtualNodePropsMixin.PortMappingProperty(
                port=123,
                protocol="protocol"
            ),
            timeout=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTimeoutProperty(
                grpc=appmesh_mixins.CfnVirtualNodePropsMixin.GrpcTimeoutProperty(
                    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    ),
                    per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    )
                ),
                http=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
                    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    ),
                    per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    )
                ),
                http2=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
                    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    ),
                    per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    )
                ),
                tcp=appmesh_mixins.CfnVirtualNodePropsMixin.TcpTimeoutProperty(
                    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                        unit="unit",
                        value=123
                    )
                )
            ),
            tls=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsProperty(
                certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(
                    acm=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(
                        certificate_arn="certificateArn"
                    ),
                    file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                        certificate_chain="certificateChain",
                        private_key="privateKey"
                    ),
                    sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                        secret_name="secretName"
                    )
                ),
                mode="mode",
                validation=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(
                    subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                        match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                            exact=["exact"]
                        )
                    ),
                    trust=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(
                        file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                            certificate_chain="certificateChain"
                        ),
                        sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                            secret_name="secretName"
                        )
                    )
                )
            )
        )],
        logging=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingProperty(
            access_log=appmesh_mixins.CfnVirtualNodePropsMixin.AccessLogProperty(
                file=appmesh_mixins.CfnVirtualNodePropsMixin.FileAccessLogProperty(
                    format=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingFormatProperty(
                        json=[appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
                            key="key",
                            value="value"
                        )],
                        text="text"
                    ),
                    path="path"
                )
            )
        ),
        service_discovery=appmesh_mixins.CfnVirtualNodePropsMixin.ServiceDiscoveryProperty(
            aws_cloud_map=appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty(
                attributes=[appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(
                    key="key",
                    value="value"
                )],
                ip_preference="ipPreference",
                namespace_name="namespaceName",
                service_name="serviceName"
            ),
            dns=appmesh_mixins.CfnVirtualNodePropsMixin.DnsServiceDiscoveryProperty(
                hostname="hostname",
                ip_preference="ipPreference",
                response_type="responseType"
            )
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    virtual_node_name="virtualNodeName"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::AppMesh::VirtualNode.

Parameters:
  • props (Union[CfnVirtualNodeMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['meshName', 'meshOwner', 'spec', 'tags', 'virtualNodeName']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

AccessLogProperty

class CfnVirtualNodePropsMixin.AccessLogProperty(*, file=None)

Bases: object

An object that represents the access logging information for a virtual node.

Parameters:

file (Union[IResolvable, FileAccessLogProperty, Dict[str, Any], None]) – The file object to send virtual node access logs to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-accesslog.html

ExampleMetadata:

fixture=_generated

Example:

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

access_log_property = appmesh_mixins.CfnVirtualNodePropsMixin.AccessLogProperty(
    file=appmesh_mixins.CfnVirtualNodePropsMixin.FileAccessLogProperty(
        format=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingFormatProperty(
            json=[appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
                key="key",
                value="value"
            )],
            text="text"
        ),
        path="path"
    )
)

Attributes

file

The file object to send virtual node access logs to.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-accesslog.html#cfn-appmesh-virtualnode-accesslog-file

AwsCloudMapInstanceAttributeProperty

class CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(*, key=None, value=None)

Bases: object

An object that represents the AWS Cloud Map attribute information for your virtual node.

AWS Cloud Map is not available in the eu-south-1 Region.

Parameters:
  • key (Optional[str]) – The name of an AWS Cloud Map service instance attribute key. Any AWS Cloud Map service instance that contains the specified key and value is returned.

  • value (Optional[str]) – The value of an AWS Cloud Map service instance attribute key. Any AWS Cloud Map service instance that contains the specified key and value is returned.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapinstanceattribute.html

ExampleMetadata:

fixture=_generated

Example:

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

aws_cloud_map_instance_attribute_property = appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(
    key="key",
    value="value"
)

Attributes

key

The name of an AWS Cloud Map service instance attribute key.

Any AWS Cloud Map service instance that contains the specified key and value is returned.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapinstanceattribute.html#cfn-appmesh-virtualnode-awscloudmapinstanceattribute-key

value

The value of an AWS Cloud Map service instance attribute key.

Any AWS Cloud Map service instance that contains the specified key and value is returned.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapinstanceattribute.html#cfn-appmesh-virtualnode-awscloudmapinstanceattribute-value

AwsCloudMapServiceDiscoveryProperty

class CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty(*, attributes=None, ip_preference=None, namespace_name=None, service_name=None)

Bases: object

An object that represents the AWS Cloud Map service discovery information for your virtual node.

AWS Cloud Map is not available in the eu-south-1 Region.

Parameters:
  • attributes (Union[IResolvable, Sequence[Union[IResolvable, AwsCloudMapInstanceAttributeProperty, Dict[str, Any]]], None]) – A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all of the specified key/value pairs will be returned.

  • ip_preference (Optional[str]) – The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.

  • namespace_name (Optional[str]) – The HTTP name of the AWS Cloud Map namespace to use.

  • service_name (Optional[str]) – The name of the AWS Cloud Map service to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html

ExampleMetadata:

fixture=_generated

Example:

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

aws_cloud_map_service_discovery_property = appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty(
    attributes=[appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(
        key="key",
        value="value"
    )],
    ip_preference="ipPreference",
    namespace_name="namespaceName",
    service_name="serviceName"
)

Attributes

attributes

A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.

Only instances that match all of the specified key/value pairs will be returned.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-attributes

ip_preference

The preferred IP version that this virtual node uses.

Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-ippreference

namespace_name

The HTTP name of the AWS Cloud Map namespace to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-namespacename

service_name

The name of the AWS Cloud Map service to use.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-awscloudmapservicediscovery.html#cfn-appmesh-virtualnode-awscloudmapservicediscovery-servicename

BackendDefaultsProperty

class CfnVirtualNodePropsMixin.BackendDefaultsProperty(*, client_policy=None)

Bases: object

An object that represents the default properties for a backend.

Parameters:

client_policy (Union[IResolvable, ClientPolicyProperty, Dict[str, Any], None]) – A reference to an object that represents a client policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html

ExampleMetadata:

fixture=_generated

Example:

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

backend_defaults_property = appmesh_mixins.CfnVirtualNodePropsMixin.BackendDefaultsProperty(
    client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
        tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
            certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                    certificate_chain="certificateChain",
                    private_key="privateKey"
                ),
                sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                    secret_name="secretName"
                )
            ),
            enforce=False,
            ports=[123],
            validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                    match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                        exact=["exact"]
                    )
                ),
                trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                    acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                        certificate_authority_arns=["certificateAuthorityArns"]
                    ),
                    file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                        certificate_chain="certificateChain"
                    ),
                    sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                        secret_name="secretName"
                    )
                )
            )
        )
    )
)

Attributes

client_policy

A reference to an object that represents a client policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backenddefaults.html#cfn-appmesh-virtualnode-backenddefaults-clientpolicy

BackendProperty

class CfnVirtualNodePropsMixin.BackendProperty(*, virtual_service=None)

Bases: object

An object that represents the backends that a virtual node is expected to send outbound traffic to.

Parameters:

virtual_service (Union[IResolvable, VirtualServiceBackendProperty, Dict[str, Any], None]) – Specifies a virtual service to use as a backend.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backend.html

ExampleMetadata:

fixture=_generated

Example:

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

backend_property = appmesh_mixins.CfnVirtualNodePropsMixin.BackendProperty(
    virtual_service=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualServiceBackendProperty(
        client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
            tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
                certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                    file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                        certificate_chain="certificateChain",
                        private_key="privateKey"
                    ),
                    sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                        secret_name="secretName"
                    )
                ),
                enforce=False,
                ports=[123],
                validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                    subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                        match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                            exact=["exact"]
                        )
                    ),
                    trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                        acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                            certificate_authority_arns=["certificateAuthorityArns"]
                        ),
                        file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                            certificate_chain="certificateChain"
                        ),
                        sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                            secret_name="secretName"
                        )
                    )
                )
            )
        ),
        virtual_service_name="virtualServiceName"
    )
)

Attributes

virtual_service

Specifies a virtual service to use as a backend.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-backend.html#cfn-appmesh-virtualnode-backend-virtualservice

ClientPolicyProperty

class CfnVirtualNodePropsMixin.ClientPolicyProperty(*, tls=None)

Bases: object

An object that represents a client policy.

Parameters:

tls (Union[IResolvable, ClientPolicyTlsProperty, Dict[str, Any], None]) – A reference to an object that represents a Transport Layer Security (TLS) client policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicy.html

ExampleMetadata:

fixture=_generated

Example:

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

client_policy_property = appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
    tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
        certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
            file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                certificate_chain="certificateChain",
                private_key="privateKey"
            ),
            sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                secret_name="secretName"
            )
        ),
        enforce=False,
        ports=[123],
        validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
            subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                    exact=["exact"]
                )
            ),
            trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                    certificate_authority_arns=["certificateAuthorityArns"]
                ),
                file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                    certificate_chain="certificateChain"
                ),
                sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                    secret_name="secretName"
                )
            )
        )
    )
)

Attributes

tls

A reference to an object that represents a Transport Layer Security (TLS) client policy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicy.html#cfn-appmesh-virtualnode-clientpolicy-tls

ClientPolicyTlsProperty

class CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(*, certificate=None, enforce=None, ports=None, validation=None)

Bases: object

A reference to an object that represents a Transport Layer Security (TLS) client policy.

Parameters:
  • certificate (Union[IResolvable, ClientTlsCertificateProperty, Dict[str, Any], None]) – A reference to an object that represents a client’s TLS certificate.

  • enforce (Union[bool, IResolvable, None]) – Whether the policy is enforced. The default is True , if a value isn’t specified.

  • ports (Union[Sequence[Union[int, float]], IResolvable, None]) – One or more ports that the policy is enforced for.

  • validation (Union[IResolvable, TlsValidationContextProperty, Dict[str, Any], None]) – A reference to an object that represents a TLS validation context.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html

ExampleMetadata:

fixture=_generated

Example:

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

client_policy_tls_property = appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
    certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
        file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
            certificate_chain="certificateChain",
            private_key="privateKey"
        ),
        sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
            secret_name="secretName"
        )
    ),
    enforce=False,
    ports=[123],
    validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
        subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
            match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                exact=["exact"]
            )
        ),
        trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
            acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                certificate_authority_arns=["certificateAuthorityArns"]
            ),
            file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                certificate_chain="certificateChain"
            ),
            sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                secret_name="secretName"
            )
        )
    )
)

Attributes

certificate

A reference to an object that represents a client’s TLS certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-certificate

enforce

Whether the policy is enforced.

The default is True , if a value isn’t specified.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-enforce

ports

One or more ports that the policy is enforced for.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-ports

validation

A reference to an object that represents a TLS validation context.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clientpolicytls.html#cfn-appmesh-virtualnode-clientpolicytls-validation

ClientTlsCertificateProperty

class CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(*, file=None, sds=None)

Bases: object

An object that represents the client’s certificate.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clienttlscertificate.html

ExampleMetadata:

fixture=_generated

Example:

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

client_tls_certificate_property = appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
    file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
        certificate_chain="certificateChain",
        private_key="privateKey"
    ),
    sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
        secret_name="secretName"
    )
)

Attributes

file

An object that represents a local file certificate.

The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see Transport Layer Security (TLS) .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clienttlscertificate.html#cfn-appmesh-virtualnode-clienttlscertificate-file

sds

A reference to an object that represents a client’s TLS Secret Discovery Service certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-clienttlscertificate.html#cfn-appmesh-virtualnode-clienttlscertificate-sds

DnsServiceDiscoveryProperty

class CfnVirtualNodePropsMixin.DnsServiceDiscoveryProperty(*, hostname=None, ip_preference=None, response_type=None)

Bases: object

An object that represents the DNS service discovery information for your virtual node.

Parameters:
  • hostname (Optional[str]) – Specifies the DNS service discovery hostname for the virtual node.

  • ip_preference (Optional[str]) – The preferred IP version that this virtual node uses. Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.

  • response_type (Optional[str]) – Specifies the DNS response type for the virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html

ExampleMetadata:

fixture=_generated

Example:

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

dns_service_discovery_property = appmesh_mixins.CfnVirtualNodePropsMixin.DnsServiceDiscoveryProperty(
    hostname="hostname",
    ip_preference="ipPreference",
    response_type="responseType"
)

Attributes

hostname

Specifies the DNS service discovery hostname for the virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-hostname

ip_preference

The preferred IP version that this virtual node uses.

Setting the IP preference on the virtual node only overrides the IP preference set for the mesh on this specific node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-ippreference

response_type

Specifies the DNS response type for the virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-dnsservicediscovery.html#cfn-appmesh-virtualnode-dnsservicediscovery-responsetype

DurationProperty

class CfnVirtualNodePropsMixin.DurationProperty(*, unit=None, value=None)

Bases: object

An object that represents a duration of time.

Parameters:
  • unit (Optional[str]) – A unit of time.

  • value (Union[int, float, None]) – A number of time units.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-duration.html

ExampleMetadata:

fixture=_generated

Example:

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

duration_property = appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
    unit="unit",
    value=123
)

Attributes

unit

A unit of time.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-duration.html#cfn-appmesh-virtualnode-duration-unit

value

A number of time units.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-duration.html#cfn-appmesh-virtualnode-duration-value

FileAccessLogProperty

class CfnVirtualNodePropsMixin.FileAccessLogProperty(*, format=None, path=None)

Bases: object

An object that represents an access log file.

Parameters:
  • format (Union[IResolvable, LoggingFormatProperty, Dict[str, Any], None]) – The specified format for the logs. The format is either json_format or text_format .

  • path (Optional[str]) – The file path to write access logs to. You can use /dev/stdout to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs , to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container’s file system to write the files to disk. .. epigraph:: The Envoy process must have write permissions to the path that you specify here. Otherwise, Envoy fails to bootstrap properly.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-fileaccesslog.html

ExampleMetadata:

fixture=_generated

Example:

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

file_access_log_property = appmesh_mixins.CfnVirtualNodePropsMixin.FileAccessLogProperty(
    format=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingFormatProperty(
        json=[appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
            key="key",
            value="value"
        )],
        text="text"
    ),
    path="path"
)

Attributes

format

The specified format for the logs.

The format is either json_format or text_format .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-fileaccesslog.html#cfn-appmesh-virtualnode-fileaccesslog-format

path

The file path to write access logs to.

You can use /dev/stdout to send access logs to standard out and configure your Envoy container to use a log driver, such as awslogs , to export the access logs to a log storage service such as Amazon CloudWatch Logs. You can also specify a path in the Envoy container’s file system to write the files to disk. .. epigraph:

The Envoy process must have write permissions to the path that you specify here. Otherwise, Envoy fails to bootstrap properly.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-fileaccesslog.html#cfn-appmesh-virtualnode-fileaccesslog-path

GrpcTimeoutProperty

class CfnVirtualNodePropsMixin.GrpcTimeoutProperty(*, idle=None, per_request=None)

Bases: object

An object that represents types of timeouts.

Parameters:
  • idle (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

  • per_request (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-grpctimeout.html

ExampleMetadata:

fixture=_generated

Example:

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

grpc_timeout_property = appmesh_mixins.CfnVirtualNodePropsMixin.GrpcTimeoutProperty(
    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    ),
    per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    )
)

Attributes

idle

An object that represents an idle timeout.

An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-grpctimeout.html#cfn-appmesh-virtualnode-grpctimeout-idle

per_request

An object that represents a per request timeout.

The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-grpctimeout.html#cfn-appmesh-virtualnode-grpctimeout-perrequest

HealthCheckProperty

class CfnVirtualNodePropsMixin.HealthCheckProperty(*, healthy_threshold=None, interval_millis=None, path=None, port=None, protocol=None, timeout_millis=None, unhealthy_threshold=None)

Bases: object

An object that represents the health check policy for a virtual node’s listener.

Parameters:
  • healthy_threshold (Union[int, float, None]) – The number of consecutive successful health checks that must occur before declaring listener healthy.

  • interval_millis (Union[int, float, None]) – The time period in milliseconds between each health check execution.

  • path (Optional[str]) – The destination path for the health check request. This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.

  • port (Union[int, float, None]) – The destination port for the health check request. This port must match the port defined in the PortMapping for the listener.

  • protocol (Optional[str]) – The protocol for the health check request. If you specify grpc , then your service must conform to the GRPC Health Checking Protocol .

  • timeout_millis (Union[int, float, None]) – The amount of time to wait when receiving a response from the health check, in milliseconds.

  • unhealthy_threshold (Union[int, float, None]) – The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html

ExampleMetadata:

fixture=_generated

Example:

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

health_check_property = appmesh_mixins.CfnVirtualNodePropsMixin.HealthCheckProperty(
    healthy_threshold=123,
    interval_millis=123,
    path="path",
    port=123,
    protocol="protocol",
    timeout_millis=123,
    unhealthy_threshold=123
)

Attributes

healthy_threshold

The number of consecutive successful health checks that must occur before declaring listener healthy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-healthythreshold

interval_millis

The time period in milliseconds between each health check execution.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-intervalmillis

path

The destination path for the health check request.

This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-path

port

The destination port for the health check request.

This port must match the port defined in the PortMapping for the listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-port

protocol

The protocol for the health check request.

If you specify grpc , then your service must conform to the GRPC Health Checking Protocol .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-protocol

timeout_millis

The amount of time to wait when receiving a response from the health check, in milliseconds.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-timeoutmillis

unhealthy_threshold

The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-healthcheck.html#cfn-appmesh-virtualnode-healthcheck-unhealthythreshold

HttpTimeoutProperty

class CfnVirtualNodePropsMixin.HttpTimeoutProperty(*, idle=None, per_request=None)

Bases: object

An object that represents types of timeouts.

Parameters:
  • idle (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

  • per_request (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – An object that represents a per request timeout. The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-httptimeout.html

ExampleMetadata:

fixture=_generated

Example:

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

http_timeout_property = appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    ),
    per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    )
)

Attributes

idle

An object that represents an idle timeout.

An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-httptimeout.html#cfn-appmesh-virtualnode-httptimeout-idle

per_request

An object that represents a per request timeout.

The default value is 15 seconds. If you set a higher timeout, then make sure that the higher value is set for each App Mesh resource in a conversation. For example, if a virtual node backend uses a virtual router provider to route to another virtual node, then the timeout should be greater than 15 seconds for the source and destination virtual node and the route.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-httptimeout.html#cfn-appmesh-virtualnode-httptimeout-perrequest

JsonFormatRefProperty

class CfnVirtualNodePropsMixin.JsonFormatRefProperty(*, key=None, value=None)

Bases: object

An object that represents the key value pairs for the JSON.

Parameters:
  • key (Optional[str]) – The specified key for the JSON.

  • value (Optional[str]) – The specified value for the JSON.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-jsonformatref.html

ExampleMetadata:

fixture=_generated

Example:

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

json_format_ref_property = appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
    key="key",
    value="value"
)

Attributes

key

The specified key for the JSON.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-jsonformatref.html#cfn-appmesh-virtualnode-jsonformatref-key

value

The specified value for the JSON.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-jsonformatref.html#cfn-appmesh-virtualnode-jsonformatref-value

ListenerProperty

class CfnVirtualNodePropsMixin.ListenerProperty(*, connection_pool=None, health_check=None, outlier_detection=None, port_mapping=None, timeout=None, tls=None)

Bases: object

An object that represents a listener for a virtual node.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerProperty(
    connection_pool=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeConnectionPoolProperty(
        grpc=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(
            max_requests=123
        ),
        http=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(
            max_connections=123,
            max_pending_requests=123
        ),
        http2=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(
            max_requests=123
        ),
        tcp=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(
            max_connections=123
        )
    ),
    health_check=appmesh_mixins.CfnVirtualNodePropsMixin.HealthCheckProperty(
        healthy_threshold=123,
        interval_millis=123,
        path="path",
        port=123,
        protocol="protocol",
        timeout_millis=123,
        unhealthy_threshold=123
    ),
    outlier_detection=appmesh_mixins.CfnVirtualNodePropsMixin.OutlierDetectionProperty(
        base_ejection_duration=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        ),
        interval=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        ),
        max_ejection_percent=123,
        max_server_errors=123
    ),
    port_mapping=appmesh_mixins.CfnVirtualNodePropsMixin.PortMappingProperty(
        port=123,
        protocol="protocol"
    ),
    timeout=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTimeoutProperty(
        grpc=appmesh_mixins.CfnVirtualNodePropsMixin.GrpcTimeoutProperty(
            idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            ),
            per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            )
        ),
        http=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
            idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            ),
            per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            )
        ),
        http2=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
            idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            ),
            per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            )
        ),
        tcp=appmesh_mixins.CfnVirtualNodePropsMixin.TcpTimeoutProperty(
            idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            )
        )
    ),
    tls=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsProperty(
        certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(
            acm=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(
                certificate_arn="certificateArn"
            ),
            file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                certificate_chain="certificateChain",
                private_key="privateKey"
            ),
            sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                secret_name="secretName"
            )
        ),
        mode="mode",
        validation=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(
            subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                    exact=["exact"]
                )
            ),
            trust=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(
                file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                    certificate_chain="certificateChain"
                ),
                sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                    secret_name="secretName"
                )
            )
        )
    )
)

Attributes

connection_pool

The connection pool information for the listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-connectionpool

health_check

The health check information for the listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-healthcheck

outlier_detection

The outlier detection information for the listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-outlierdetection

port_mapping

The port mapping information for the listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-portmapping

timeout

An object that represents timeouts for different protocols.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-timeout

tls

A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listener.html#cfn-appmesh-virtualnode-listener-tls

ListenerTimeoutProperty

class CfnVirtualNodePropsMixin.ListenerTimeoutProperty(*, grpc=None, http=None, http2=None, tcp=None)

Bases: object

An object that represents timeouts for different protocols.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_timeout_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTimeoutProperty(
    grpc=appmesh_mixins.CfnVirtualNodePropsMixin.GrpcTimeoutProperty(
        idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    http=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
        idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    http2=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
        idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        ),
        per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        )
    ),
    tcp=appmesh_mixins.CfnVirtualNodePropsMixin.TcpTimeoutProperty(
        idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
            unit="unit",
            value=123
        )
    )
)

Attributes

grpc

An object that represents types of timeouts.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-grpc

http

An object that represents types of timeouts.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-http

http2

An object that represents types of timeouts.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-http2

tcp

An object that represents types of timeouts.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertimeout.html#cfn-appmesh-virtualnode-listenertimeout-tcp

ListenerTlsAcmCertificateProperty

class CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(*, certificate_arn=None)

Bases: object

An object that represents an Certificate Manager certificate.

Parameters:

certificate_arn (Optional[str]) –

The Amazon Resource Name (ARN) for the certificate. The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see Transport Layer Security (TLS) .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsacmcertificate.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_acm_certificate_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(
    certificate_arn="certificateArn"
)

Attributes

certificate_arn

The Amazon Resource Name (ARN) for the certificate.

The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see Transport Layer Security (TLS) .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsacmcertificate.html#cfn-appmesh-virtualnode-listenertlsacmcertificate-certificatearn

ListenerTlsCertificateProperty

class CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(*, acm=None, file=None, sds=None)

Bases: object

An object that represents a listener’s Transport Layer Security (TLS) certificate.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_certificate_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(
    acm=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(
        certificate_arn="certificateArn"
    ),
    file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
        certificate_chain="certificateChain",
        private_key="privateKey"
    ),
    sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
        secret_name="secretName"
    )
)

Attributes

acm

A reference to an object that represents an Certificate Manager certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-acm

file

A reference to an object that represents a local file certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-file

sds

A reference to an object that represents a listener’s Secret Discovery Service certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlscertificate.html#cfn-appmesh-virtualnode-listenertlscertificate-sds

ListenerTlsFileCertificateProperty

class CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(*, certificate_chain=None, private_key=None)

Bases: object

An object that represents a local file certificate.

The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see Transport Layer Security (TLS) .

Parameters:
  • certificate_chain (Optional[str]) – The certificate chain for the certificate.

  • private_key (Optional[str]) – The private key for a certificate stored on the file system of the virtual node that the proxy is running on.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsfilecertificate.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_file_certificate_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
    certificate_chain="certificateChain",
    private_key="privateKey"
)

Attributes

certificate_chain

The certificate chain for the certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsfilecertificate.html#cfn-appmesh-virtualnode-listenertlsfilecertificate-certificatechain

private_key

The private key for a certificate stored on the file system of the virtual node that the proxy is running on.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsfilecertificate.html#cfn-appmesh-virtualnode-listenertlsfilecertificate-privatekey

ListenerTlsProperty

class CfnVirtualNodePropsMixin.ListenerTlsProperty(*, certificate=None, mode=None, validation=None)

Bases: object

An object that represents the Transport Layer Security (TLS) properties for a listener.

Parameters:
  • certificate (Union[IResolvable, ListenerTlsCertificateProperty, Dict[str, Any], None]) – A reference to an object that represents a listener’s Transport Layer Security (TLS) certificate.

  • mode (Optional[str]) – Specify one of the following modes. - ** STRICT – Listener only accepts connections with TLS enabled. - ** PERMISSIVE – Listener accepts connections with or without TLS enabled. - ** DISABLED – Listener only accepts connections without TLS.

  • validation (Union[IResolvable, ListenerTlsValidationContextProperty, Dict[str, Any], None]) – A reference to an object that represents a listener’s Transport Layer Security (TLS) validation context.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsProperty(
    certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(
        acm=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(
            certificate_arn="certificateArn"
        ),
        file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
            certificate_chain="certificateChain",
            private_key="privateKey"
        ),
        sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
            secret_name="secretName"
        )
    ),
    mode="mode",
    validation=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(
        subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
            match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                exact=["exact"]
            )
        ),
        trust=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(
            file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                certificate_chain="certificateChain"
            ),
            sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                secret_name="secretName"
            )
        )
    )
)

Attributes

certificate

A reference to an object that represents a listener’s Transport Layer Security (TLS) certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-certificate

mode

Specify one of the following modes.

  • ** STRICT – Listener only accepts connections with TLS enabled.

  • ** PERMISSIVE – Listener accepts connections with or without TLS enabled.

  • ** DISABLED – Listener only accepts connections without TLS.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-mode

validation

A reference to an object that represents a listener’s Transport Layer Security (TLS) validation context.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertls.html#cfn-appmesh-virtualnode-listenertls-validation

ListenerTlsSdsCertificateProperty

class CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(*, secret_name=None)

Bases: object

An object that represents the listener’s Secret Discovery Service certificate.

The proxy must be configured with a local SDS provider via a Unix Domain Socket. See App Mesh TLS documentation for more info.

Parameters:

secret_name (Optional[str]) – A reference to an object that represents the name of the secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlssdscertificate.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_sds_certificate_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
    secret_name="secretName"
)

Attributes

secret_name

A reference to an object that represents the name of the secret requested from the Secret Discovery Service provider representing Transport Layer Security (TLS) materials like a certificate or certificate chain.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlssdscertificate.html#cfn-appmesh-virtualnode-listenertlssdscertificate-secretname

ListenerTlsValidationContextProperty

class CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(*, subject_alternative_names=None, trust=None)

Bases: object

An object that represents a listener’s Transport Layer Security (TLS) validation context.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontext.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_validation_context_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(
    subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
        match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
            exact=["exact"]
        )
    ),
    trust=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(
        file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
            certificate_chain="certificateChain"
        ),
        sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
            secret_name="secretName"
        )
    )
)

Attributes

subject_alternative_names

A reference to an object that represents the SANs for a listener’s Transport Layer Security (TLS) validation context.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontext.html#cfn-appmesh-virtualnode-listenertlsvalidationcontext-subjectalternativenames

trust

A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontext.html#cfn-appmesh-virtualnode-listenertlsvalidationcontext-trust

ListenerTlsValidationContextTrustProperty

class CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(*, file=None, sds=None)

Bases: object

An object that represents a listener’s Transport Layer Security (TLS) validation context trust.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontexttrust.html

ExampleMetadata:

fixture=_generated

Example:

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

listener_tls_validation_context_trust_property = appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(
    file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
        certificate_chain="certificateChain"
    ),
    sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
        secret_name="secretName"
    )
)

Attributes

file

An object that represents a Transport Layer Security (TLS) validation context trust for a local file.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-listenertlsvalidationcontexttrust-file

sds

A reference to an object that represents a listener’s Transport Layer Security (TLS) Secret Discovery Service validation context trust.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-listenertlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-listenertlsvalidationcontexttrust-sds

LoggingFormatProperty

class CfnVirtualNodePropsMixin.LoggingFormatProperty(*, json=None, text=None)

Bases: object

An object that represents the format for the logs.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-loggingformat.html

ExampleMetadata:

fixture=_generated

Example:

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

logging_format_property = appmesh_mixins.CfnVirtualNodePropsMixin.LoggingFormatProperty(
    json=[appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
        key="key",
        value="value"
    )],
    text="text"
)

Attributes

json

The logging format for JSON.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-loggingformat.html#cfn-appmesh-virtualnode-loggingformat-json

text

The logging format for text.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-loggingformat.html#cfn-appmesh-virtualnode-loggingformat-text

LoggingProperty

class CfnVirtualNodePropsMixin.LoggingProperty(*, access_log=None)

Bases: object

An object that represents the logging information for a virtual node.

Parameters:

access_log (Union[IResolvable, AccessLogProperty, Dict[str, Any], None]) – The access log configuration for a virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-logging.html

ExampleMetadata:

fixture=_generated

Example:

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

logging_property = appmesh_mixins.CfnVirtualNodePropsMixin.LoggingProperty(
    access_log=appmesh_mixins.CfnVirtualNodePropsMixin.AccessLogProperty(
        file=appmesh_mixins.CfnVirtualNodePropsMixin.FileAccessLogProperty(
            format=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingFormatProperty(
                json=[appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
                    key="key",
                    value="value"
                )],
                text="text"
            ),
            path="path"
        )
    )
)

Attributes

access_log

The access log configuration for a virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-logging.html#cfn-appmesh-virtualnode-logging-accesslog

OutlierDetectionProperty

class CfnVirtualNodePropsMixin.OutlierDetectionProperty(*, base_ejection_duration=None, interval=None, max_ejection_percent=None, max_server_errors=None)

Bases: object

An object that represents the outlier detection for a virtual node’s listener.

Parameters:
  • base_ejection_duration (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – The base amount of time for which a host is ejected.

  • interval (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – The time interval between ejection sweep analysis.

  • max_ejection_percent (Union[int, float, None]) – Maximum percentage of hosts in load balancing pool for upstream service that can be ejected. Will eject at least one host regardless of the value.

  • max_server_errors (Union[int, float, None]) – Number of consecutive 5xx errors required for ejection.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html

ExampleMetadata:

fixture=_generated

Example:

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

outlier_detection_property = appmesh_mixins.CfnVirtualNodePropsMixin.OutlierDetectionProperty(
    base_ejection_duration=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    ),
    interval=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    ),
    max_ejection_percent=123,
    max_server_errors=123
)

Attributes

base_ejection_duration

The base amount of time for which a host is ejected.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-baseejectionduration

interval

The time interval between ejection sweep analysis.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-interval

max_ejection_percent

Maximum percentage of hosts in load balancing pool for upstream service that can be ejected.

Will eject at least one host regardless of the value.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-maxejectionpercent

max_server_errors

Number of consecutive 5xx errors required for ejection.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-outlierdetection.html#cfn-appmesh-virtualnode-outlierdetection-maxservererrors

PortMappingProperty

class CfnVirtualNodePropsMixin.PortMappingProperty(*, port=None, protocol=None)

Bases: object

An object representing a virtual node or virtual router listener port mapping.

Parameters:
  • port (Union[int, float, None]) – The port used for the port mapping.

  • protocol (Optional[str]) – The protocol used for the port mapping. Specify http , http2 , grpc , or tcp .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html

ExampleMetadata:

fixture=_generated

Example:

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

port_mapping_property = appmesh_mixins.CfnVirtualNodePropsMixin.PortMappingProperty(
    port=123,
    protocol="protocol"
)

Attributes

port

The port used for the port mapping.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-port

protocol

The protocol used for the port mapping.

Specify http , http2 , grpc , or tcp .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-portmapping.html#cfn-appmesh-virtualnode-portmapping-protocol

ServiceDiscoveryProperty

class CfnVirtualNodePropsMixin.ServiceDiscoveryProperty(*, aws_cloud_map=None, dns=None)

Bases: object

An object that represents the service discovery information for a virtual node.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-servicediscovery.html

ExampleMetadata:

fixture=_generated

Example:

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

service_discovery_property = appmesh_mixins.CfnVirtualNodePropsMixin.ServiceDiscoveryProperty(
    aws_cloud_map=appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty(
        attributes=[appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(
            key="key",
            value="value"
        )],
        ip_preference="ipPreference",
        namespace_name="namespaceName",
        service_name="serviceName"
    ),
    dns=appmesh_mixins.CfnVirtualNodePropsMixin.DnsServiceDiscoveryProperty(
        hostname="hostname",
        ip_preference="ipPreference",
        response_type="responseType"
    )
)

Attributes

aws_cloud_map

Specifies any AWS Cloud Map information for the virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-servicediscovery.html#cfn-appmesh-virtualnode-servicediscovery-awscloudmap

dns

Specifies the DNS information for the virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-servicediscovery.html#cfn-appmesh-virtualnode-servicediscovery-dns

SubjectAlternativeNameMatchersProperty

class CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(*, exact=None)

Bases: object

An object that represents the methods by which a subject alternative name on a peer Transport Layer Security (TLS) certificate can be matched.

Parameters:

exact (Optional[Sequence[str]]) – The values sent must match the specified values exactly.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-subjectalternativenamematchers.html

ExampleMetadata:

fixture=_generated

Example:

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

subject_alternative_name_matchers_property = appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
    exact=["exact"]
)

Attributes

exact

The values sent must match the specified values exactly.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-subjectalternativenamematchers.html#cfn-appmesh-virtualnode-subjectalternativenamematchers-exact

SubjectAlternativeNamesProperty

class CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(*, match=None)

Bases: object

An object that represents the subject alternative names secured by the certificate.

Parameters:

match (Union[IResolvable, SubjectAlternativeNameMatchersProperty, Dict[str, Any], None]) – An object that represents the criteria for determining a SANs match.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-subjectalternativenames.html

ExampleMetadata:

fixture=_generated

Example:

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

subject_alternative_names_property = appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
    match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
        exact=["exact"]
    )
)

Attributes

match

An object that represents the criteria for determining a SANs match.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-subjectalternativenames.html#cfn-appmesh-virtualnode-subjectalternativenames-match

TcpTimeoutProperty

class CfnVirtualNodePropsMixin.TcpTimeoutProperty(*, idle=None)

Bases: object

An object that represents types of timeouts.

Parameters:

idle (Union[IResolvable, DurationProperty, Dict[str, Any], None]) – An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tcptimeout.html

ExampleMetadata:

fixture=_generated

Example:

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

tcp_timeout_property = appmesh_mixins.CfnVirtualNodePropsMixin.TcpTimeoutProperty(
    idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
        unit="unit",
        value=123
    )
)

Attributes

idle

An object that represents an idle timeout.

An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tcptimeout.html#cfn-appmesh-virtualnode-tcptimeout-idle

TlsValidationContextAcmTrustProperty

class CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(*, certificate_authority_arns=None)

Bases: object

An object that represents a Transport Layer Security (TLS) validation context trust for an Certificate Manager certificate.

Parameters:

certificate_authority_arns (Optional[Sequence[str]]) – One or more ACM Amazon Resource Name (ARN)s.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextacmtrust.html

ExampleMetadata:

fixture=_generated

Example:

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

tls_validation_context_acm_trust_property = appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
    certificate_authority_arns=["certificateAuthorityArns"]
)

Attributes

certificate_authority_arns

One or more ACM Amazon Resource Name (ARN)s.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextacmtrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextacmtrust-certificateauthorityarns

TlsValidationContextFileTrustProperty

class CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(*, certificate_chain=None)

Bases: object

An object that represents a Transport Layer Security (TLS) validation context trust for a local file.

Parameters:

certificate_chain (Optional[str]) – The certificate trust chain for a certificate stored on the file system of the virtual node that the proxy is running on.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextfiletrust.html

ExampleMetadata:

fixture=_generated

Example:

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

tls_validation_context_file_trust_property = appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
    certificate_chain="certificateChain"
)

Attributes

certificate_chain

The certificate trust chain for a certificate stored on the file system of the virtual node that the proxy is running on.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextfiletrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextfiletrust-certificatechain

TlsValidationContextProperty

class CfnVirtualNodePropsMixin.TlsValidationContextProperty(*, subject_alternative_names=None, trust=None)

Bases: object

An object that represents how the proxy will validate its peer during Transport Layer Security (TLS) negotiation.

Parameters:
  • subject_alternative_names (Union[IResolvable, SubjectAlternativeNamesProperty, Dict[str, Any], None]) – A reference to an object that represents the SANs for a Transport Layer Security (TLS) validation context. If you don’t specify SANs on the terminating mesh endpoint, the Envoy proxy for that node doesn’t verify the SAN on a peer client certificate. If you don’t specify SANs on the originating mesh endpoint, the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. Since SPIRE vended certificates have a SPIFFE ID as a name, you must set the SAN since the name doesn’t match the service discovery name.

  • trust (Union[IResolvable, TlsValidationContextTrustProperty, Dict[str, Any], None]) – A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontext.html

ExampleMetadata:

fixture=_generated

Example:

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

tls_validation_context_property = appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
    subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
        match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
            exact=["exact"]
        )
    ),
    trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
        acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
            certificate_authority_arns=["certificateAuthorityArns"]
        ),
        file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
            certificate_chain="certificateChain"
        ),
        sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
            secret_name="secretName"
        )
    )
)

Attributes

subject_alternative_names

A reference to an object that represents the SANs for a Transport Layer Security (TLS) validation context.

If you don’t specify SANs on the terminating mesh endpoint, the Envoy proxy for that node doesn’t verify the SAN on a peer client certificate. If you don’t specify SANs on the originating mesh endpoint, the SAN on the certificate provided by the terminating endpoint must match the mesh endpoint service discovery configuration. Since SPIRE vended certificates have a SPIFFE ID as a name, you must set the SAN since the name doesn’t match the service discovery name.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontext.html#cfn-appmesh-virtualnode-tlsvalidationcontext-subjectalternativenames

trust

A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontext.html#cfn-appmesh-virtualnode-tlsvalidationcontext-trust

TlsValidationContextSdsTrustProperty

class CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(*, secret_name=None)

Bases: object

An object that represents a Transport Layer Security (TLS) Secret Discovery Service validation context trust.

The proxy must be configured with a local SDS provider via a Unix Domain Socket. See App Mesh TLS documentation for more info.

Parameters:

secret_name (Optional[str]) – A reference to an object that represents the name of the secret for a Transport Layer Security (TLS) Secret Discovery Service validation context trust.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextsdstrust.html

ExampleMetadata:

fixture=_generated

Example:

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

tls_validation_context_sds_trust_property = appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
    secret_name="secretName"
)

Attributes

secret_name

A reference to an object that represents the name of the secret for a Transport Layer Security (TLS) Secret Discovery Service validation context trust.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontextsdstrust.html#cfn-appmesh-virtualnode-tlsvalidationcontextsdstrust-secretname

TlsValidationContextTrustProperty

class CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(*, acm=None, file=None, sds=None)

Bases: object

An object that represents a Transport Layer Security (TLS) validation context trust.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html

ExampleMetadata:

fixture=_generated

Example:

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

tls_validation_context_trust_property = appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
    acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
        certificate_authority_arns=["certificateAuthorityArns"]
    ),
    file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
        certificate_chain="certificateChain"
    ),
    sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
        secret_name="secretName"
    )
)

Attributes

acm

A reference to an object that represents a Transport Layer Security (TLS) validation context trust for an Certificate Manager certificate.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-tlsvalidationcontexttrust-acm

file

An object that represents a Transport Layer Security (TLS) validation context trust for a local file.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-tlsvalidationcontexttrust-file

sds

A reference to an object that represents a Transport Layer Security (TLS) Secret Discovery Service validation context trust.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-tlsvalidationcontexttrust.html#cfn-appmesh-virtualnode-tlsvalidationcontexttrust-sds

VirtualNodeConnectionPoolProperty

class CfnVirtualNodePropsMixin.VirtualNodeConnectionPoolProperty(*, grpc=None, http=None, http2=None, tcp=None)

Bases: object

An object that represents the type of virtual node connection pool.

Only one protocol is used at a time and should be the same protocol as the one chosen under port mapping.

If not present the default value for maxPendingRequests is 2147483647 .

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_node_connection_pool_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeConnectionPoolProperty(
    grpc=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(
        max_requests=123
    ),
    http=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(
        max_connections=123,
        max_pending_requests=123
    ),
    http2=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(
        max_requests=123
    ),
    tcp=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(
        max_connections=123
    )
)

Attributes

grpc

An object that represents a type of connection pool.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-grpc

http

An object that represents a type of connection pool.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-http

http2

An object that represents a type of connection pool.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-http2

tcp

An object that represents a type of connection pool.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodeconnectionpool.html#cfn-appmesh-virtualnode-virtualnodeconnectionpool-tcp

VirtualNodeGrpcConnectionPoolProperty

class CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(*, max_requests=None)

Bases: object

An object that represents a type of connection pool.

Parameters:

max_requests (Union[int, float, None]) – Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodegrpcconnectionpool.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_node_grpc_connection_pool_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(
    max_requests=123
)

Attributes

max_requests

Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodegrpcconnectionpool.html#cfn-appmesh-virtualnode-virtualnodegrpcconnectionpool-maxrequests

VirtualNodeHttp2ConnectionPoolProperty

class CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(*, max_requests=None)

Bases: object

An object that represents a type of connection pool.

Parameters:

max_requests (Union[int, float, None]) – Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttp2connectionpool.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_node_http2_connection_pool_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(
    max_requests=123
)

Attributes

max_requests

Maximum number of inflight requests Envoy can concurrently support across hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttp2connectionpool.html#cfn-appmesh-virtualnode-virtualnodehttp2connectionpool-maxrequests

VirtualNodeHttpConnectionPoolProperty

class CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(*, max_connections=None, max_pending_requests=None)

Bases: object

An object that represents a type of connection pool.

Parameters:
  • max_connections (Union[int, float, None]) – Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.

  • max_pending_requests (Union[int, float, None]) – Number of overflowing requests after max_connections Envoy will queue to upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttpconnectionpool.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_node_http_connection_pool_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(
    max_connections=123,
    max_pending_requests=123
)

Attributes

max_connections

Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodehttpconnectionpool-maxconnections

max_pending_requests

Number of overflowing requests after max_connections Envoy will queue to upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodehttpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodehttpconnectionpool-maxpendingrequests

VirtualNodeSpecProperty

class CfnVirtualNodePropsMixin.VirtualNodeSpecProperty(*, backend_defaults=None, backends=None, listeners=None, logging=None, service_discovery=None)

Bases: object

An object that represents the specification of a virtual node.

Parameters:
  • backend_defaults (Union[IResolvable, BackendDefaultsProperty, Dict[str, Any], None]) – A reference to an object that represents the defaults for backends.

  • backends (Union[IResolvable, Sequence[Union[IResolvable, BackendProperty, Dict[str, Any]]], None]) – The backends that the virtual node is expected to send outbound traffic to. .. epigraph:: App Mesh doesn’t validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn’t already exist.

  • listeners (Union[IResolvable, Sequence[Union[IResolvable, ListenerProperty, Dict[str, Any]]], None]) – The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.

  • logging (Union[IResolvable, LoggingProperty, Dict[str, Any], None]) – The inbound and outbound access logging information for the virtual node.

  • service_discovery (Union[IResolvable, ServiceDiscoveryProperty, Dict[str, Any], None]) – The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener , then you must specify service discovery information.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_node_spec_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeSpecProperty(
    backend_defaults=appmesh_mixins.CfnVirtualNodePropsMixin.BackendDefaultsProperty(
        client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
            tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
                certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                    file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                        certificate_chain="certificateChain",
                        private_key="privateKey"
                    ),
                    sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                        secret_name="secretName"
                    )
                ),
                enforce=False,
                ports=[123],
                validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                    subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                        match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                            exact=["exact"]
                        )
                    ),
                    trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                        acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                            certificate_authority_arns=["certificateAuthorityArns"]
                        ),
                        file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                            certificate_chain="certificateChain"
                        ),
                        sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                            secret_name="secretName"
                        )
                    )
                )
            )
        )
    ),
    backends=[appmesh_mixins.CfnVirtualNodePropsMixin.BackendProperty(
        virtual_service=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualServiceBackendProperty(
            client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
                tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
                    certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                        file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                            certificate_chain="certificateChain",
                            private_key="privateKey"
                        ),
                        sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                            secret_name="secretName"
                        )
                    ),
                    enforce=False,
                    ports=[123],
                    validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                        subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                            match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                                exact=["exact"]
                            )
                        ),
                        trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                            acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                                certificate_authority_arns=["certificateAuthorityArns"]
                            ),
                            file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                                certificate_chain="certificateChain"
                            ),
                            sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                                secret_name="secretName"
                            )
                        )
                    )
                )
            ),
            virtual_service_name="virtualServiceName"
        )
    )],
    listeners=[appmesh_mixins.CfnVirtualNodePropsMixin.ListenerProperty(
        connection_pool=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeConnectionPoolProperty(
            grpc=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(
                max_requests=123
            ),
            http=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(
                max_connections=123,
                max_pending_requests=123
            ),
            http2=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(
                max_requests=123
            ),
            tcp=appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(
                max_connections=123
            )
        ),
        health_check=appmesh_mixins.CfnVirtualNodePropsMixin.HealthCheckProperty(
            healthy_threshold=123,
            interval_millis=123,
            path="path",
            port=123,
            protocol="protocol",
            timeout_millis=123,
            unhealthy_threshold=123
        ),
        outlier_detection=appmesh_mixins.CfnVirtualNodePropsMixin.OutlierDetectionProperty(
            base_ejection_duration=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            ),
            interval=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                unit="unit",
                value=123
            ),
            max_ejection_percent=123,
            max_server_errors=123
        ),
        port_mapping=appmesh_mixins.CfnVirtualNodePropsMixin.PortMappingProperty(
            port=123,
            protocol="protocol"
        ),
        timeout=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTimeoutProperty(
            grpc=appmesh_mixins.CfnVirtualNodePropsMixin.GrpcTimeoutProperty(
                idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                ),
                per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                )
            ),
            http=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
                idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                ),
                per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                )
            ),
            http2=appmesh_mixins.CfnVirtualNodePropsMixin.HttpTimeoutProperty(
                idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                ),
                per_request=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                )
            ),
            tcp=appmesh_mixins.CfnVirtualNodePropsMixin.TcpTimeoutProperty(
                idle=appmesh_mixins.CfnVirtualNodePropsMixin.DurationProperty(
                    unit="unit",
                    value=123
                )
            )
        ),
        tls=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsProperty(
            certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(
                acm=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(
                    certificate_arn="certificateArn"
                ),
                file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                    certificate_chain="certificateChain",
                    private_key="privateKey"
                ),
                sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                    secret_name="secretName"
                )
            ),
            mode="mode",
            validation=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(
                subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                    match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                        exact=["exact"]
                    )
                ),
                trust=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(
                    file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                        certificate_chain="certificateChain"
                    ),
                    sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                        secret_name="secretName"
                    )
                )
            )
        )
    )],
    logging=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingProperty(
        access_log=appmesh_mixins.CfnVirtualNodePropsMixin.AccessLogProperty(
            file=appmesh_mixins.CfnVirtualNodePropsMixin.FileAccessLogProperty(
                format=appmesh_mixins.CfnVirtualNodePropsMixin.LoggingFormatProperty(
                    json=[appmesh_mixins.CfnVirtualNodePropsMixin.JsonFormatRefProperty(
                        key="key",
                        value="value"
                    )],
                    text="text"
                ),
                path="path"
            )
        )
    ),
    service_discovery=appmesh_mixins.CfnVirtualNodePropsMixin.ServiceDiscoveryProperty(
        aws_cloud_map=appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty(
            attributes=[appmesh_mixins.CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(
                key="key",
                value="value"
            )],
            ip_preference="ipPreference",
            namespace_name="namespaceName",
            service_name="serviceName"
        ),
        dns=appmesh_mixins.CfnVirtualNodePropsMixin.DnsServiceDiscoveryProperty(
            hostname="hostname",
            ip_preference="ipPreference",
            response_type="responseType"
        )
    )
)

Attributes

backend_defaults

A reference to an object that represents the defaults for backends.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-backenddefaults

backends

The backends that the virtual node is expected to send outbound traffic to.

App Mesh doesn’t validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn’t already exist.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-backends

listeners

The listener that the virtual node is expected to receive inbound traffic from.

You can specify one listener.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-listeners

logging

The inbound and outbound access logging information for the virtual node.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-logging

service_discovery

The service discovery information for the virtual node.

If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener , then you must specify service discovery information.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodespec.html#cfn-appmesh-virtualnode-virtualnodespec-servicediscovery

VirtualNodeTcpConnectionPoolProperty

class CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(*, max_connections=None)

Bases: object

An object that represents a type of connection pool.

Parameters:

max_connections (Union[int, float, None]) – Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodetcpconnectionpool.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_node_tcp_connection_pool_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(
    max_connections=123
)

Attributes

max_connections

Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualnodetcpconnectionpool.html#cfn-appmesh-virtualnode-virtualnodetcpconnectionpool-maxconnections

VirtualServiceBackendProperty

class CfnVirtualNodePropsMixin.VirtualServiceBackendProperty(*, client_policy=None, virtual_service_name=None)

Bases: object

An object that represents a virtual service backend for a virtual node.

Parameters:
  • client_policy (Union[IResolvable, ClientPolicyProperty, Dict[str, Any], None]) – A reference to an object that represents the client policy for a backend.

  • virtual_service_name (Optional[str]) – The name of the virtual service that is acting as a virtual node backend. .. epigraph:: App Mesh doesn’t validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn’t already exist.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualservicebackend.html

ExampleMetadata:

fixture=_generated

Example:

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

virtual_service_backend_property = appmesh_mixins.CfnVirtualNodePropsMixin.VirtualServiceBackendProperty(
    client_policy=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyProperty(
        tls=appmesh_mixins.CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(
            certificate=appmesh_mixins.CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(
                file=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(
                    certificate_chain="certificateChain",
                    private_key="privateKey"
                ),
                sds=appmesh_mixins.CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(
                    secret_name="secretName"
                )
            ),
            enforce=False,
            ports=[123],
            validation=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextProperty(
                subject_alternative_names=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(
                    match=appmesh_mixins.CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(
                        exact=["exact"]
                    )
                ),
                trust=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(
                    acm=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(
                        certificate_authority_arns=["certificateAuthorityArns"]
                    ),
                    file=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(
                        certificate_chain="certificateChain"
                    ),
                    sds=appmesh_mixins.CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(
                        secret_name="secretName"
                    )
                )
            )
        )
    ),
    virtual_service_name="virtualServiceName"
)

Attributes

client_policy

A reference to an object that represents the client policy for a backend.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualservicebackend.html#cfn-appmesh-virtualnode-virtualservicebackend-clientpolicy

virtual_service_name

The name of the virtual service that is acting as a virtual node backend.

App Mesh doesn’t validate the existence of those virtual services specified in backends. This is to prevent a cyclic dependency between virtual nodes and virtual services creation. Make sure the virtual service name is correct. The virtual service can be created afterwards if it doesn’t already exist.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-virtualservicebackend.html#cfn-appmesh-virtualnode-virtualservicebackend-virtualservicename