AliasTargetInstanceProps
- class aws_cdk.aws_servicediscovery.AliasTargetInstanceProps(*, custom_attributes=None, instance_id=None, dns_name, service)
Bases:
BaseInstanceProps
- Parameters:
custom_attributes (
Optional
[Mapping
[str
,str
]]) – Custom attributes of the instance. Default: noneinstance_id (
Optional
[str
]) – The id of the instance resource. Default: Automatically generated namedns_name (
str
) – DNS name of the target.service (
IService
) – The Cloudmap service this resource is registered to.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_servicediscovery as servicediscovery # service: servicediscovery.Service alias_target_instance_props = servicediscovery.AliasTargetInstanceProps( dns_name="dnsName", service=service, # the properties below are optional custom_attributes={ "custom_attributes_key": "customAttributes" }, instance_id="instanceId" )
Attributes
- custom_attributes
Custom attributes of the instance.
- Default:
none
- dns_name
DNS name of the target.
- instance_id
The id of the instance resource.
- Default:
Automatically generated name
- service
The Cloudmap service this resource is registered to.