# NonIpInstanceBaseProps

Extends: NonIpInstanceBaseProps
Extends: BaseInstanceProps

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

## Example

```ts
import * as cdk from '../../core';
import * as servicediscovery from '../lib';

const app = new cdk.App();
const stack = new cdk.Stack(app, 'aws-servicediscovery-integ');

const namespace = new servicediscovery.HttpNamespace(stack, 'MyNamespace', {
  name: 'MyHTTPNamespace',
});

const service1 = namespace.createService('NonIpService', {
  description: 'service registering non-ip instances',
});

service1.registerNonIpInstance('NonIpInstance', {
  customAttributes: { arn: 'arn:aws:s3:::amzn-s3-demo-bucket' },
});

const service2 = namespace.createService('IpService', {
  description: 'service registering ip instances',
  healthCheck: {
    type: servicediscovery.HealthCheckType.HTTP,
    resourcePath: '/check',
  },
});

service2.registerIpInstance('IpInstance', {
  ipv4: '54.239.25.192',
});

app.synth();
```

## Properties

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

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

  **Default:** Automatically generated name
