Interface IGuardrail
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IGuardrail.Jsii$Default
- All Known Implementing Classes:
Guardrail
,GuardrailBase
,IGuardrail.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-02T11:25:42.814Z")
@Stability(Experimental)
public interface IGuardrail
extends software.amazon.jsii.JsiiSerializable, IResource
(experimental) Represents a Guardrail, either created with CDK or imported.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIGuardrail
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescription(experimental) The ARN of the guardrail.(experimental) The ID of the guardrail.(experimental) The version of the guardrail.default IKey
(experimental) Optional KMS encryption key associated with this guardrail.default 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.(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.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
-
Method Details
-
getGuardrailArn
(experimental) The ARN of the guardrail. -
getGuardrailId
(experimental) The ID of the guardrail. -
getGuardrailVersion
(experimental) The version of the guardrail.If no explicit version is created, this will default to "DRAFT"
-
getKmsKey
(experimental) Optional KMS encryption key associated with this guardrail. -
getLastUpdated
(experimental) When this guardrail was last updated. -
grant
@Stability(Experimental) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) (experimental) Grant the given principal identity permissions to perform actions on this guardrail.- Parameters:
grantee
- This parameter is required.actions
- This parameter is required.
-
grantApply
(experimental) Grant the given identity permissions to apply the guardrail.- Parameters:
grantee
- This parameter is required.
-
metric
@Stability(Experimental) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for this guardrail.- Parameters:
metricName
- This parameter is required.props
-
-
metric
(experimental) Return the given named metric for this guardrail.- Parameters:
metricName
- This parameter is required.
-
metricInvocationClientErrors
@Stability(Experimental) @NotNull Metric metricInvocationClientErrors(@Nullable MetricOptions props) (experimental) Return the invocation client errors metric for this guardrail.- Parameters:
props
-
-
metricInvocationClientErrors
(experimental) Return the invocation client errors metric for this guardrail. -
metricInvocationLatency
(experimental) Return the invocation latency metric for this guardrail.- Parameters:
props
-
-
metricInvocationLatency
(experimental) Return the invocation latency metric for this guardrail. -
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Parameters:
props
-
-
metricInvocations
(experimental) Return the invocations metric for this guardrail. -
metricInvocationServerErrors
@Stability(Experimental) @NotNull Metric metricInvocationServerErrors(@Nullable MetricOptions props) (experimental) Return the invocation server errors metric for this guardrail.- Parameters:
props
-
-
metricInvocationServerErrors
(experimental) Return the invocation server errors metric for this guardrail. -
metricInvocationsIntervened
(experimental) Return the invocations intervened metric for this guardrail.- Parameters:
props
-
-
metricInvocationsIntervened
(experimental) Return the invocations intervened metric for this guardrail. -
metricInvocationThrottles
(experimental) Return the invocation throttles metric for this guardrail.- Parameters:
props
-
-
metricInvocationThrottles
(experimental) Return the invocation throttles metric for this guardrail. -
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Parameters:
props
-
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.
-