NonIpInstanceProps¶
-
class
aws_cdk.aws_servicediscovery.
NonIpInstanceProps
(*, custom_attributes=None, instance_id=None, service)¶ Bases:
aws_cdk.aws_servicediscovery.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
- Return type
Optional
[Mapping
[str
,str
]]
-
instance_id
¶ The id of the instance resource.
- Default
Automatically generated name
- Return type
Optional
[str
]