> **Experimental**
>
> `@aws-cdk/aws-bedrock-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# GuardrailAttributes

****************************************************************************                     ATTRS FOR IMPORTED CONSTRUCT ***************************************************************************.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`bedrock/guardrails/guardrails.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-bedrock-alpha/bedrock/guardrails/guardrails.ts#L391)

## Example

```ts
declare const stack: Stack;
const cmk = new kms.Key(this, 'cmk', {});
// Import an existing guardrail by ARN
const importedGuardrail = bedrock.Guardrail.fromGuardrailAttributes(stack, 'TestGuardrail', {
  guardrailArn: 'arn:aws:bedrock:us-east-1:123456789012:guardrail/oygh3o8g7rtl',
  guardrailVersion: '1', //optional
  kmsKey: cmk, //optional
});
```

## Properties

- `guardrailArn`: string (required) — The ARN of the guardrail.

  At least one of guardrailArn or guardrailId must be
  defined in order to initialize a guardrail ref.

- `guardrailVersion`: string = "DRAFT" — The version of the guardrail.

- `kmsKey`: [IKey](/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html) — The KMS key of the guardrail if custom encryption is configured.

  **Default:** undefined - Means data is encrypted by default with a AWS-managed key
