# AliasTargetInstanceProps

Extends: AliasTargetInstanceProps
Extends: BaseInstanceProps
Used as props by: AliasTargetInstance

- Source: [`aws-servicediscovery/lib/alias-target-instance.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-servicediscovery/lib/alias-target-instance.ts#L16)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicediscovery as servicediscovery } from 'aws-cdk-lib';

declare const service: servicediscovery.Service;
const aliasTargetInstanceProps: servicediscovery.AliasTargetInstanceProps = {
  dnsName: 'dnsName',
  service: service,

  // the properties below are optional
  customAttributes: {
    customAttributesKey: 'customAttributes',
  },
  instanceId: 'instanceId',
};
```

## Properties

- `customAttributes`: { [key: string]: string } = none — Custom attributes of the instance.

- `dnsName`: string (required) — DNS name of the target.

- `instanceId`: string — The id of the instance resource.

  **Default:** Automatically generated name

- `service`: [IService](/cdk/api/v2/docs/aws-cdk-lib.aws_servicediscovery.IService.html) (required) — The Cloudmap service this resource is registered to.
