PrivateDnsNamespaceProps
- class aws_cdk.aws_servicediscovery.PrivateDnsNamespaceProps(*, name, description=None, vpc)
Bases:
BaseNamespaceProps- Parameters:
name (
str) – A name for the Namespace.description (
Optional[str]) – A description of the Namespace. Default: nonevpc (
IVpc) – The Amazon VPC that you want to associate the namespace with.
- ExampleMetadata:
infused
Example:
# mesh: appmesh.Mesh vpc = ec2.Vpc(self, "vpc") namespace = cloudmap.PrivateDnsNamespace(self, "test-namespace", vpc=vpc, name="domain.local" ) service = namespace.create_service("Svc") node = mesh.add_virtual_node("virtual-node", service_discovery=appmesh.ServiceDiscovery.cloud_map(service), listeners=[appmesh.VirtualNodeListener.http( port=8081, health_check=appmesh.HealthCheck.http( healthy_threshold=3, interval=Duration.seconds(5), # minimum path="/health-check-path", timeout=Duration.seconds(2), # minimum unhealthy_threshold=2 ) )], access_log=appmesh.AccessLog.from_file_path("/dev/stdout") )
Attributes
- description
A description of the Namespace.
- Default:
none
- name
A name for the Namespace.
- vpc
The Amazon VPC that you want to associate the namespace with.