Interface GuardrailAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GuardrailAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:33.737Z")
@Stability(Experimental)
public interface GuardrailAttributes
extends software.amazon.jsii.JsiiSerializable
(experimental) **************************************************************************** ATTRS FOR IMPORTED CONSTRUCT ***************************************************************************.
Example:
Stack stack;
Key cmk = Key.Builder.create(this, "cmk").build();
// Import an existing guardrail by ARN
IGuardrail importedGuardrail = Guardrail.fromGuardrailAttributes(stack, "TestGuardrail", GuardrailAttributes.builder()
.guardrailArn("arn:aws:bedrock:us-east-1:123456789012:guardrail/oygh3o8g7rtl")
.guardrailVersion("1") //optional
.kmsKey(cmk)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGuardrailAttributesstatic final classAn implementation forGuardrailAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic GuardrailAttributes.Builderbuilder()(experimental) The ARN of the guardrail.default String(experimental) The version of the guardrail.default IKey(experimental) The KMS key of the guardrail if custom encryption is configured.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGuardrailArn
(experimental) The ARN of the guardrail.At least one of guardrailArn or guardrailId must be defined in order to initialize a guardrail ref.
-
getGuardrailVersion
(experimental) The version of the guardrail.Default: "DRAFT"
-
getKmsKey
(experimental) The KMS key of the guardrail if custom encryption is configured.Default: undefined - Means data is encrypted by default with a AWS-managed key
-
builder
- Returns:
- a
GuardrailAttributes.BuilderofGuardrailAttributes
-