BaseInstanceProps

class aws_cdk.aws_servicediscovery.BaseInstanceProps(*, custom_attributes=None, instance_id=None)

Bases: object

Used when the resource that’s associated with the service instance is accessible using values other than an IP address or a domain name (CNAME), i.e. for non-ip-instances.

Parameters:
  • custom_attributes (Optional[Mapping[str, str]]) – Custom attributes of the instance. Default: none

  • instance_id (Optional[str]) – The id of the instance resource. Default: Automatically generated name

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

base_instance_props = servicediscovery.BaseInstanceProps(
    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