Class GuardrailBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.bedrock.alpha.GuardrailBase
- All Implemented Interfaces:
IEnvironmentAware,IResource,IGuardrail,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
Guardrail
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:49.486Z")
@Stability(Experimental)
public abstract class GuardrailBase
extends Resource
implements IGuardrail
(experimental) Abstract base class for a Guardrail.
Contains methods and attributes valid for Guardrails either created with CDK or imported.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IGuardrail
IGuardrail.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGuardrailBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedGuardrailBase(software.amazon.jsii.JsiiObjectRef objRef) protectedGuardrailBase(software.constructs.Construct scope, String id) protectedGuardrailBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionabstract String(experimental) The ARN of the guardrail.abstract String(experimental) The ID of the guardrail.(experimental) The version of the guardrail.abstract IKey(experimental) Optional KMS encryption key associated with this guardrail.abstract String(experimental) When this guardrail was last updated.grant(IGrantable grantee, String... actions) (experimental) Grant the given principal identity permissions to perform actions on this guardrail.grantApply(IGrantable grantee) (experimental) Grant the given identity permissions to apply the guardrail.(experimental) Return the given named metric for this guardrail.metric(String metricName, MetricOptions props) (experimental) Return the given named metric for this guardrail.static Metric(experimental) Return the given named metric for all guardrails.static MetricmetricAll(String metricName, MetricOptions props) (experimental) Return the given named metric for all guardrails.static Metric(experimental) Return the invocation latency metric for all guardrails.static Metric(experimental) Return the invocation latency metric for all guardrails.static Metric(experimental) Return the invocations metric for all guardrails.static Metric(experimental) Return the invocations metric for all guardrails.static Metric(experimental) Return the invocations intervened metric for all guardrails.static Metric(experimental) Return the invocations intervened metric for all guardrails.static Metric(experimental) Return the text unit count metric for all guardrails.static Metric(experimental) Return the text unit count metric for all guardrails.(experimental) Return the invocation client errors metric for this guardrail.(experimental) Return the invocation client errors metric for this guardrail.(experimental) Return the invocation latency metric for this guardrail.(experimental) Return the invocation latency metric for this guardrail.(experimental) Return the invocations metric for this guardrail.metricInvocations(MetricOptions props) (experimental) Return the invocations metric for this guardrail.(experimental) Return the invocation server errors metric for this guardrail.(experimental) Return the invocation server errors metric for this guardrail.(experimental) Return the invocations intervened metric for this guardrail.(experimental) Return the invocations intervened metric for this guardrail.(experimental) Return the invocation throttles metric for this guardrail.(experimental) Return the invocation throttles metric for this guardrail.(experimental) Return the text unit count metric for this guardrail.metricTextUnitCount(MetricOptions props) (experimental) Return the text unit count metric for this guardrail.protected voidupdateVersion(String version) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
GuardrailBase
protected GuardrailBase(software.amazon.jsii.JsiiObjectRef objRef) -
GuardrailBase
protected GuardrailBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GuardrailBase
@Stability(Stable) protected GuardrailBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
GuardrailBase
@Stability(Stable) protected GuardrailBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
metricAll
@Stability(Experimental) @NotNull public static Metric metricAll(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for all guardrails.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties.- Parameters:
metricName- This parameter is required.props-
-
metricAll
(experimental) Return the given named metric for all guardrails.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties.- Parameters:
metricName- This parameter is required.
-
metricAllInvocationLatency
@Stability(Experimental) @NotNull public static Metric metricAllInvocationLatency(@Nullable MetricOptions props) (experimental) Return the invocation latency metric for all guardrails.- Parameters:
props-
-
metricAllInvocationLatency
(experimental) Return the invocation latency metric for all guardrails. -
metricAllInvocations
@Stability(Experimental) @NotNull public static Metric metricAllInvocations(@Nullable MetricOptions props) (experimental) Return the invocations metric for all guardrails.- Parameters:
props-
-
metricAllInvocations
(experimental) Return the invocations metric for all guardrails. -
metricAllInvocationsIntervened
@Stability(Experimental) @NotNull public static Metric metricAllInvocationsIntervened(@Nullable MetricOptions props) (experimental) Return the invocations intervened metric for all guardrails.- Parameters:
props-
-
metricAllInvocationsIntervened
(experimental) Return the invocations intervened metric for all guardrails. -
metricAllTextUnitCount
@Stability(Experimental) @NotNull public static Metric metricAllTextUnitCount(@Nullable MetricOptions props) (experimental) Return the text unit count metric for all guardrails.- Parameters:
props-
-
metricAllTextUnitCount
(experimental) Return the text unit count metric for all guardrails. -
grant
@Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant the given principal identity permissions to perform actions on this guardrail.- Specified by:
grantin interfaceIGuardrail- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantApply
(experimental) Grant the given identity permissions to apply the guardrail.- Specified by:
grantApplyin interfaceIGuardrail- Parameters:
grantee- This parameter is required.
-
metric
@Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for this guardrail.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties.- Specified by:
metricin interfaceIGuardrail- Parameters:
metricName- This parameter is required.props-
-
metric
(experimental) Return the given named metric for this guardrail.By default, the metric will be calculated as a sum over a period of 5 minutes. You can customize this by using the
statisticandperiodproperties.- Specified by:
metricin interfaceIGuardrail- Parameters:
metricName- This parameter is required.
-
metricInvocationClientErrors
@Stability(Experimental) @NotNull public Metric metricInvocationClientErrors(@Nullable MetricOptions props) (experimental) Return the invocation client errors metric for this guardrail.- Specified by:
metricInvocationClientErrorsin interfaceIGuardrail- Parameters:
props-
-
metricInvocationClientErrors
(experimental) Return the invocation client errors metric for this guardrail.- Specified by:
metricInvocationClientErrorsin interfaceIGuardrail
-
metricInvocationLatency
@Stability(Experimental) @NotNull public Metric metricInvocationLatency(@Nullable MetricOptions props) (experimental) Return the invocation latency metric for this guardrail.- Specified by:
metricInvocationLatencyin interfaceIGuardrail- Parameters:
props-
-
metricInvocationLatency
(experimental) Return the invocation latency metric for this guardrail.- Specified by:
metricInvocationLatencyin interfaceIGuardrail
-
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Specified by:
metricInvocationsin interfaceIGuardrail- Parameters:
props-
-
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Specified by:
metricInvocationsin interfaceIGuardrail
-
metricInvocationServerErrors
@Stability(Experimental) @NotNull public Metric metricInvocationServerErrors(@Nullable MetricOptions props) (experimental) Return the invocation server errors metric for this guardrail.- Specified by:
metricInvocationServerErrorsin interfaceIGuardrail- Parameters:
props-
-
metricInvocationServerErrors
(experimental) Return the invocation server errors metric for this guardrail.- Specified by:
metricInvocationServerErrorsin interfaceIGuardrail
-
metricInvocationsIntervened
@Stability(Experimental) @NotNull public Metric metricInvocationsIntervened(@Nullable MetricOptions props) (experimental) Return the invocations intervened metric for this guardrail.- Specified by:
metricInvocationsIntervenedin interfaceIGuardrail- Parameters:
props-
-
metricInvocationsIntervened
(experimental) Return the invocations intervened metric for this guardrail.- Specified by:
metricInvocationsIntervenedin interfaceIGuardrail
-
metricInvocationThrottles
@Stability(Experimental) @NotNull public Metric metricInvocationThrottles(@Nullable MetricOptions props) (experimental) Return the invocation throttles metric for this guardrail.- Specified by:
metricInvocationThrottlesin interfaceIGuardrail- Parameters:
props-
-
metricInvocationThrottles
(experimental) Return the invocation throttles metric for this guardrail.- Specified by:
metricInvocationThrottlesin interfaceIGuardrail
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Specified by:
metricTextUnitCountin interfaceIGuardrail- Parameters:
props-
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Specified by:
metricTextUnitCountin interfaceIGuardrail
-
updateVersion
- Parameters:
version- This parameter is required.
-
getGuardrailArn
(experimental) The ARN of the guardrail.- Specified by:
getGuardrailArnin interfaceIGuardrail
-
getGuardrailId
(experimental) The ID of the guardrail.- Specified by:
getGuardrailIdin interfaceIGuardrail
-
getGuardrailVersion
(experimental) The version of the guardrail.- Specified by:
getGuardrailVersionin interfaceIGuardrail
-
getKmsKey
(experimental) Optional KMS encryption key associated with this guardrail.- Specified by:
getKmsKeyin interfaceIGuardrail
-
getLastUpdated
(experimental) When this guardrail was last updated.- Specified by:
getLastUpdatedin interfaceIGuardrail
-