# SecretAttachmentTargetProps

Attachment target specifications.

- Source: [`aws-secretsmanager/lib/secret.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-secretsmanager/lib/secret.ts#L849)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_secretsmanager as secretsmanager } from 'aws-cdk-lib';
const secretAttachmentTargetProps: secretsmanager.SecretAttachmentTargetProps = {
  targetId: 'targetId',
  targetType: secretsmanager.AttachmentTargetType.RDS_DB_INSTANCE,
};
```

## Properties

- `targetId`: string (required) — The id of the target to attach the secret to.

- `targetType`: [AttachmentTargetType](/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager.AttachmentTargetType.html) (required) — The type of the target to attach the secret to.
