NonIpInstanceProps
- class aws_cdk.aws_servicediscovery.NonIpInstanceProps(*, custom_attributes=None, instance_id=None, service)
Bases:
NonIpInstanceBaseProps
- 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 nameservice (
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 non_ip_instance_props = servicediscovery.NonIpInstanceProps( 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
- instance_id
The id of the instance resource.
- Default:
Automatically generated name
- service
The Cloudmap service this resource is registered to.