interface GuardrailAttributes
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.GuardrailAttributes |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#GuardrailAttributes |
![]() | software.amazon.awscdk.services.bedrock.alpha.GuardrailAttributes |
![]() | aws_cdk.aws_bedrock_alpha.GuardrailAttributes |
![]() | @aws-cdk/aws-bedrock-alpha ยป GuardrailAttributes |
**************************************************************************** ATTRS FOR IMPORTED CONSTRUCT ***************************************************************************.
Example
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
Name | Type | Description |
---|---|---|
guardrail | string | The ARN of the guardrail. |
guardrail | string | The version of the guardrail. |
kms | IKey | The KMS key of the guardrail if custom encryption is configured. |
guardrailArn
Type:
string
The ARN of the guardrail.
At least one of guardrailArn or guardrailId must be defined in order to initialize a guardrail ref.
guardrailVersion?
Type:
string
(optional, default: "DRAFT")
The version of the guardrail.
kmsKey?
Type:
IKey
(optional, default: undefined - Means data is encrypted by default with a AWS-managed key)
The KMS key of the guardrail if custom encryption is configured.