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:
IResource
,IGuardrail
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
- Direct Known Subclasses:
Guardrail
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-02T11:25:42.808Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IGuardrail
IGuardrail.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GuardrailBase
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
GuardrailBase
(software.amazon.jsii.JsiiObjectRef objRef) protected
GuardrailBase
(software.constructs.Construct scope, String id) protected
GuardrailBase
(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 Metric
metricAll
(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 void
updateVersion
(String version) Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods 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
statistic
andperiod
properties.- 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
statistic
andperiod
properties.- 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:
grant
in 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:
grantApply
in 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
statistic
andperiod
properties.- Specified by:
metric
in 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
statistic
andperiod
properties.- Specified by:
metric
in 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:
metricInvocationClientErrors
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationClientErrors
(experimental) Return the invocation client errors metric for this guardrail.- Specified by:
metricInvocationClientErrors
in interfaceIGuardrail
-
metricInvocationLatency
@Stability(Experimental) @NotNull public Metric metricInvocationLatency(@Nullable MetricOptions props) (experimental) Return the invocation latency metric for this guardrail.- Specified by:
metricInvocationLatency
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationLatency
(experimental) Return the invocation latency metric for this guardrail.- Specified by:
metricInvocationLatency
in interfaceIGuardrail
-
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Specified by:
metricInvocations
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Specified by:
metricInvocations
in interfaceIGuardrail
-
metricInvocationServerErrors
@Stability(Experimental) @NotNull public Metric metricInvocationServerErrors(@Nullable MetricOptions props) (experimental) Return the invocation server errors metric for this guardrail.- Specified by:
metricInvocationServerErrors
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationServerErrors
(experimental) Return the invocation server errors metric for this guardrail.- Specified by:
metricInvocationServerErrors
in interfaceIGuardrail
-
metricInvocationsIntervened
@Stability(Experimental) @NotNull public Metric metricInvocationsIntervened(@Nullable MetricOptions props) (experimental) Return the invocations intervened metric for this guardrail.- Specified by:
metricInvocationsIntervened
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationsIntervened
(experimental) Return the invocations intervened metric for this guardrail.- Specified by:
metricInvocationsIntervened
in interfaceIGuardrail
-
metricInvocationThrottles
@Stability(Experimental) @NotNull public Metric metricInvocationThrottles(@Nullable MetricOptions props) (experimental) Return the invocation throttles metric for this guardrail.- Specified by:
metricInvocationThrottles
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationThrottles
(experimental) Return the invocation throttles metric for this guardrail.- Specified by:
metricInvocationThrottles
in interfaceIGuardrail
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Specified by:
metricTextUnitCount
in interfaceIGuardrail
- Parameters:
props
-
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Specified by:
metricTextUnitCount
in interfaceIGuardrail
-
updateVersion
- Parameters:
version
- This parameter is required.
-
getGuardrailArn
(experimental) The ARN of the guardrail.- Specified by:
getGuardrailArn
in interfaceIGuardrail
-
getGuardrailId
(experimental) The ID of the guardrail.- Specified by:
getGuardrailId
in interfaceIGuardrail
-
getGuardrailVersion
(experimental) The version of the guardrail.- Specified by:
getGuardrailVersion
in interfaceIGuardrail
-
getKmsKey
(experimental) Optional KMS encryption key associated with this guardrail.- Specified by:
getKmsKey
in interfaceIGuardrail
-
getLastUpdated
(experimental) When this guardrail was last updated.- Specified by:
getLastUpdated
in interfaceIGuardrail
-