CfnVirtualNodePropsMixin
- class aws_cdk.mixins_preview.aws_appmesh.mixins.CfnVirtualNodePropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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
listenerfor any inbound traffic that your virtual node expects. Any virtual service that your virtual node expects to communicate to is specified as abackend.The response metadata for your new virtual node contains the
arnthat 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 theAPPMESH_RESOURCE_ARNenvironment variable for your task group’s Envoy proxy container in your task definition or pod spec. This is then mapped to thenode.idandnode.clusterEnvoy 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.0or 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:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AccessLogProperty
- class CfnVirtualNodePropsMixin.AccessLogProperty(*, file=None)
Bases:
objectAn 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:
- 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.
AwsCloudMapInstanceAttributeProperty
- class CfnVirtualNodePropsMixin.AwsCloudMapInstanceAttributeProperty(*, key=None, value=None)
Bases:
objectAn 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:
- 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.
- 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.
AwsCloudMapServiceDiscoveryProperty
- class CfnVirtualNodePropsMixin.AwsCloudMapServiceDiscoveryProperty(*, attributes=None, ip_preference=None, namespace_name=None, service_name=None)
Bases:
objectAn 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:
- 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.
- 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.
- namespace_name
The HTTP name of the AWS Cloud Map namespace to use.
- service_name
The name of the AWS Cloud Map service to use.
BackendDefaultsProperty
- class CfnVirtualNodePropsMixin.BackendDefaultsProperty(*, client_policy=None)
Bases:
objectAn 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:
- 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.
BackendProperty
- class CfnVirtualNodePropsMixin.BackendProperty(*, virtual_service=None)
Bases:
objectAn 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:
- 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.
ClientPolicyProperty
- class CfnVirtualNodePropsMixin.ClientPolicyProperty(*, tls=None)
Bases:
objectAn 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:
- 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.
ClientPolicyTlsProperty
- class CfnVirtualNodePropsMixin.ClientPolicyTlsProperty(*, certificate=None, enforce=None, ports=None, validation=None)
Bases:
objectA 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 isTrue, 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:
- 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.
- enforce
Whether the policy is enforced.
The default is
True, if a value isn’t specified.
- ports
One or more ports that the policy is enforced for.
- validation
A reference to an object that represents a TLS validation context.
ClientTlsCertificateProperty
- class CfnVirtualNodePropsMixin.ClientTlsCertificateProperty(*, file=None, sds=None)
Bases:
objectAn object that represents the client’s certificate.
- Parameters:
file (
Union[IResolvable,ListenerTlsFileCertificateProperty,Dict[str,Any],None]) – 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) .sds (
Union[IResolvable,ListenerTlsSdsCertificateProperty,Dict[str,Any],None]) – A reference to an object that represents a client’s TLS Secret Discovery Service certificate.
- See:
- 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) .
- sds
A reference to an object that represents a client’s TLS Secret Discovery Service certificate.
DnsServiceDiscoveryProperty
- class CfnVirtualNodePropsMixin.DnsServiceDiscoveryProperty(*, hostname=None, ip_preference=None, response_type=None)
Bases:
objectAn 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:
- 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.
- 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.
- response_type
Specifies the DNS response type for the virtual node.
DurationProperty
- class CfnVirtualNodePropsMixin.DurationProperty(*, unit=None, value=None)
Bases:
objectAn 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:
- 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.
FileAccessLogProperty
- class CfnVirtualNodePropsMixin.FileAccessLogProperty(*, format=None, path=None)
Bases:
objectAn 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 eitherjson_formatortext_format.path (
Optional[str]) – The file path to write access logs to. You can use/dev/stdoutto send access logs to standard out and configure your Envoy container to use a log driver, such asawslogs, 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:
- 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_formatortext_format.
- path
The file path to write access logs to.
You can use
/dev/stdoutto send access logs to standard out and configure your Envoy container to use a log driver, such asawslogs, 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.
GrpcTimeoutProperty
- class CfnVirtualNodePropsMixin.GrpcTimeoutProperty(*, idle=None, per_request=None)
Bases:
objectAn 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:
- 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.
- 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.
HealthCheckProperty
- class CfnVirtualNodePropsMixin.HealthCheckProperty(*, healthy_threshold=None, interval_millis=None, path=None, port=None, protocol=None, timeout_millis=None, unhealthy_threshold=None)
Bases:
objectAn 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 thePortMappingfor the listener.protocol (
Optional[str]) – The protocol for the health check request. If you specifygrpc, 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:
- 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.
- interval_millis
The time period in milliseconds between each health check execution.
- 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.
- port
The destination port for the health check request.
This port must match the port defined in the
PortMappingfor the listener.
- protocol
The protocol for the health check request.
If you specify
grpc, then your service must conform to the GRPC Health Checking Protocol .
- timeout_millis
The amount of time to wait when receiving a response from the health check, in milliseconds.
- unhealthy_threshold
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.
HttpTimeoutProperty
- class CfnVirtualNodePropsMixin.HttpTimeoutProperty(*, idle=None, per_request=None)
Bases:
objectAn 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:
- 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.
- 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.
JsonFormatRefProperty
- class CfnVirtualNodePropsMixin.JsonFormatRefProperty(*, key=None, value=None)
Bases:
objectAn 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:
- 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.
- value
The specified value for the JSON.
ListenerProperty
- class CfnVirtualNodePropsMixin.ListenerProperty(*, connection_pool=None, health_check=None, outlier_detection=None, port_mapping=None, timeout=None, tls=None)
Bases:
objectAn object that represents a listener for a virtual node.
- Parameters:
connection_pool (
Union[IResolvable,VirtualNodeConnectionPoolProperty,Dict[str,Any],None]) – The connection pool information for the listener.health_check (
Union[IResolvable,HealthCheckProperty,Dict[str,Any],None]) – The health check information for the listener.outlier_detection (
Union[IResolvable,OutlierDetectionProperty,Dict[str,Any],None]) – The outlier detection information for the listener.port_mapping (
Union[IResolvable,PortMappingProperty,Dict[str,Any],None]) – The port mapping information for the listener.timeout (
Union[IResolvable,ListenerTimeoutProperty,Dict[str,Any],None]) – An object that represents timeouts for different protocols.tls (
Union[IResolvable,ListenerTlsProperty,Dict[str,Any],None]) – A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.
- See:
- 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.
- health_check
The health check information for the listener.
- outlier_detection
The outlier detection information for the listener.
- port_mapping
The port mapping information for the listener.
- timeout
An object that represents timeouts for different protocols.
- tls
A reference to an object that represents the Transport Layer Security (TLS) properties for a listener.
ListenerTimeoutProperty
- class CfnVirtualNodePropsMixin.ListenerTimeoutProperty(*, grpc=None, http=None, http2=None, tcp=None)
Bases:
objectAn object that represents timeouts for different protocols.
- Parameters:
grpc (
Union[IResolvable,GrpcTimeoutProperty,Dict[str,Any],None]) – An object that represents types of timeouts.http (
Union[IResolvable,HttpTimeoutProperty,Dict[str,Any],None]) – An object that represents types of timeouts.http2 (
Union[IResolvable,HttpTimeoutProperty,Dict[str,Any],None]) – An object that represents types of timeouts.tcp (
Union[IResolvable,TcpTimeoutProperty,Dict[str,Any],None]) – An object that represents types of timeouts.
- See:
- 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.
- http
An object that represents types of timeouts.
- http2
An object that represents types of timeouts.
- tcp
An object that represents types of timeouts.
ListenerTlsAcmCertificateProperty
- class CfnVirtualNodePropsMixin.ListenerTlsAcmCertificateProperty(*, certificate_arn=None)
Bases:
objectAn 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:
- 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) .
ListenerTlsCertificateProperty
- class CfnVirtualNodePropsMixin.ListenerTlsCertificateProperty(*, acm=None, file=None, sds=None)
Bases:
objectAn object that represents a listener’s Transport Layer Security (TLS) certificate.
- Parameters:
acm (
Union[IResolvable,ListenerTlsAcmCertificateProperty,Dict[str,Any],None]) – A reference to an object that represents an Certificate Manager certificate.file (
Union[IResolvable,ListenerTlsFileCertificateProperty,Dict[str,Any],None]) – A reference to an object that represents a local file certificate.sds (
Union[IResolvable,ListenerTlsSdsCertificateProperty,Dict[str,Any],None]) – A reference to an object that represents a listener’s Secret Discovery Service certificate.
- See:
- 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.
- file
A reference to an object that represents a local file certificate.
- sds
A reference to an object that represents a listener’s Secret Discovery Service certificate.
ListenerTlsFileCertificateProperty
- class CfnVirtualNodePropsMixin.ListenerTlsFileCertificateProperty(*, certificate_chain=None, private_key=None)
Bases:
objectAn 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:
- 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.
- private_key
The private key for a certificate stored on the file system of the virtual node that the proxy is running on.
ListenerTlsProperty
- class CfnVirtualNodePropsMixin.ListenerTlsProperty(*, certificate=None, mode=None, validation=None)
Bases:
objectAn 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:
- 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.
- 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.
- validation
A reference to an object that represents a listener’s Transport Layer Security (TLS) validation context.
ListenerTlsSdsCertificateProperty
- class CfnVirtualNodePropsMixin.ListenerTlsSdsCertificateProperty(*, secret_name=None)
Bases:
objectAn 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:
- 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.
ListenerTlsValidationContextProperty
- class CfnVirtualNodePropsMixin.ListenerTlsValidationContextProperty(*, subject_alternative_names=None, trust=None)
Bases:
objectAn object that represents a listener’s Transport Layer Security (TLS) validation context.
- Parameters:
subject_alternative_names (
Union[IResolvable,SubjectAlternativeNamesProperty,Dict[str,Any],None]) – A reference to an object that represents the SANs for a listener’s Transport Layer Security (TLS) validation context.trust (
Union[IResolvable,ListenerTlsValidationContextTrustProperty,Dict[str,Any],None]) – A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
- See:
- 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.
- trust
A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
ListenerTlsValidationContextTrustProperty
- class CfnVirtualNodePropsMixin.ListenerTlsValidationContextTrustProperty(*, file=None, sds=None)
Bases:
objectAn object that represents a listener’s Transport Layer Security (TLS) validation context trust.
- Parameters:
file (
Union[IResolvable,TlsValidationContextFileTrustProperty,Dict[str,Any],None]) – An object that represents a Transport Layer Security (TLS) validation context trust for a local file.sds (
Union[IResolvable,TlsValidationContextSdsTrustProperty,Dict[str,Any],None]) – A reference to an object that represents a listener’s Transport Layer Security (TLS) Secret Discovery Service validation context trust.
- See:
- 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.
- sds
A reference to an object that represents a listener’s Transport Layer Security (TLS) Secret Discovery Service validation context trust.
LoggingFormatProperty
- class CfnVirtualNodePropsMixin.LoggingFormatProperty(*, json=None, text=None)
Bases:
objectAn object that represents the format for the logs.
- Parameters:
json (
Union[IResolvable,Sequence[Union[IResolvable,JsonFormatRefProperty,Dict[str,Any]]],None]) – The logging format for JSON.text (
Optional[str]) – The logging format for text.
- See:
- 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.
LoggingProperty
- class CfnVirtualNodePropsMixin.LoggingProperty(*, access_log=None)
Bases:
objectAn 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:
- 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.
OutlierDetectionProperty
- class CfnVirtualNodePropsMixin.OutlierDetectionProperty(*, base_ejection_duration=None, interval=None, max_ejection_percent=None, max_server_errors=None)
Bases:
objectAn 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 consecutive5xxerrors required for ejection.
- See:
- 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.
- interval
The time interval between ejection sweep analysis.
- 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.
- max_server_errors
Number of consecutive
5xxerrors required for ejection.
PortMappingProperty
- class CfnVirtualNodePropsMixin.PortMappingProperty(*, port=None, protocol=None)
Bases:
objectAn 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. Specifyhttp,http2,grpc, ortcp.
- See:
- 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.
- protocol
The protocol used for the port mapping.
Specify
http,http2,grpc, ortcp.
ServiceDiscoveryProperty
- class CfnVirtualNodePropsMixin.ServiceDiscoveryProperty(*, aws_cloud_map=None, dns=None)
Bases:
objectAn object that represents the service discovery information for a virtual node.
- Parameters:
aws_cloud_map (
Union[IResolvable,AwsCloudMapServiceDiscoveryProperty,Dict[str,Any],None]) – Specifies any AWS Cloud Map information for the virtual node.dns (
Union[IResolvable,DnsServiceDiscoveryProperty,Dict[str,Any],None]) – Specifies the DNS information for the virtual node.
- See:
- 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.
- dns
Specifies the DNS information for the virtual node.
SubjectAlternativeNameMatchersProperty
- class CfnVirtualNodePropsMixin.SubjectAlternativeNameMatchersProperty(*, exact=None)
Bases:
objectAn 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:
- 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.
SubjectAlternativeNamesProperty
- class CfnVirtualNodePropsMixin.SubjectAlternativeNamesProperty(*, match=None)
Bases:
objectAn 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:
- 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.
TcpTimeoutProperty
- class CfnVirtualNodePropsMixin.TcpTimeoutProperty(*, idle=None)
Bases:
objectAn 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:
- 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.
TlsValidationContextAcmTrustProperty
- class CfnVirtualNodePropsMixin.TlsValidationContextAcmTrustProperty(*, certificate_authority_arns=None)
Bases:
objectAn 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:
- 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.
TlsValidationContextFileTrustProperty
- class CfnVirtualNodePropsMixin.TlsValidationContextFileTrustProperty(*, certificate_chain=None)
Bases:
objectAn 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:
- 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.
TlsValidationContextProperty
- class CfnVirtualNodePropsMixin.TlsValidationContextProperty(*, subject_alternative_names=None, trust=None)
Bases:
objectAn 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:
- 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.
- trust
A reference to where to retrieve the trust chain when validating a peer’s Transport Layer Security (TLS) certificate.
TlsValidationContextSdsTrustProperty
- class CfnVirtualNodePropsMixin.TlsValidationContextSdsTrustProperty(*, secret_name=None)
Bases:
objectAn 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:
- 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.
TlsValidationContextTrustProperty
- class CfnVirtualNodePropsMixin.TlsValidationContextTrustProperty(*, acm=None, file=None, sds=None)
Bases:
objectAn object that represents a Transport Layer Security (TLS) validation context trust.
- Parameters:
acm (
Union[IResolvable,TlsValidationContextAcmTrustProperty,Dict[str,Any],None]) – A reference to an object that represents a Transport Layer Security (TLS) validation context trust for an Certificate Manager certificate.file (
Union[IResolvable,TlsValidationContextFileTrustProperty,Dict[str,Any],None]) – An object that represents a Transport Layer Security (TLS) validation context trust for a local file.sds (
Union[IResolvable,TlsValidationContextSdsTrustProperty,Dict[str,Any],None]) – A reference to an object that represents a Transport Layer Security (TLS) Secret Discovery Service validation context trust.
- See:
- 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.
- file
An object that represents a Transport Layer Security (TLS) validation context trust for a local file.
- sds
A reference to an object that represents a Transport Layer Security (TLS) Secret Discovery Service validation context trust.
VirtualNodeConnectionPoolProperty
- class CfnVirtualNodePropsMixin.VirtualNodeConnectionPoolProperty(*, grpc=None, http=None, http2=None, tcp=None)
Bases:
objectAn 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
maxPendingRequestsis2147483647.- Parameters:
grpc (
Union[IResolvable,VirtualNodeGrpcConnectionPoolProperty,Dict[str,Any],None]) – An object that represents a type of connection pool.http (
Union[IResolvable,VirtualNodeHttpConnectionPoolProperty,Dict[str,Any],None]) – An object that represents a type of connection pool.http2 (
Union[IResolvable,VirtualNodeHttp2ConnectionPoolProperty,Dict[str,Any],None]) – An object that represents a type of connection pool.tcp (
Union[IResolvable,VirtualNodeTcpConnectionPoolProperty,Dict[str,Any],None]) – An object that represents a type of connection pool.
- See:
- 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.
- http
An object that represents a type of connection pool.
- http2
An object that represents a type of connection pool.
- tcp
An object that represents a type of connection pool.
VirtualNodeGrpcConnectionPoolProperty
- class CfnVirtualNodePropsMixin.VirtualNodeGrpcConnectionPoolProperty(*, max_requests=None)
Bases:
objectAn 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:
- 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.
VirtualNodeHttp2ConnectionPoolProperty
- class CfnVirtualNodePropsMixin.VirtualNodeHttp2ConnectionPoolProperty(*, max_requests=None)
Bases:
objectAn 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:
- 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.
VirtualNodeHttpConnectionPoolProperty
- class CfnVirtualNodePropsMixin.VirtualNodeHttpConnectionPoolProperty(*, max_connections=None, max_pending_requests=None)
Bases:
objectAn 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 aftermax_connectionsEnvoy will queue to upstream cluster.
- See:
- 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.
- max_pending_requests
Number of overflowing requests after
max_connectionsEnvoy will queue to upstream cluster.
VirtualNodeSpecProperty
- class CfnVirtualNodePropsMixin.VirtualNodeSpecProperty(*, backend_defaults=None, backends=None, listeners=None, logging=None, service_discovery=None)
Bases:
objectAn 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 alistener, then you must specify service discovery information.
- See:
- 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.
- 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.
- listeners
The listener that the virtual node is expected to receive inbound traffic from.
You can specify one listener.
- logging
The inbound and outbound access logging information for the virtual node.
- 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.
VirtualNodeTcpConnectionPoolProperty
- class CfnVirtualNodePropsMixin.VirtualNodeTcpConnectionPoolProperty(*, max_connections=None)
Bases:
objectAn 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:
- 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.
VirtualServiceBackendProperty
- class CfnVirtualNodePropsMixin.VirtualServiceBackendProperty(*, client_policy=None, virtual_service_name=None)
Bases:
objectAn 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:
- 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.
- 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.