Interface IGuardrail.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IGuardrail,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IGuardrail.Jsii$Proxy
- Enclosing interface:
IGuardrail
IGuardrail.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IGuardrail
IGuardrail.Jsii$Default, IGuardrail.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default String(experimental) The ARN of the guardrail.default String(experimental) The ID of the guardrail.default String(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.default software.constructs.NodegetNode()The tree node.default StackgetStack()The stack in which this resource is defined.default Grantgrant(IGrantable grantee, String... actions) (experimental) Grant the given principal identity permissions to perform actions on this guardrail.default GrantgrantApply(IGrantable grantee) (experimental) Grant the given identity permissions to apply the guardrail.default Metricmetric(String metricName, MetricOptions props) (experimental) Return the given named metric for this guardrail.default Metric(experimental) Return the invocation client errors metric for this guardrail.default Metric(experimental) Return the invocation latency metric for this guardrail.default MetricmetricInvocations(MetricOptions props) (experimental) Return the invocations metric for this guardrail.default Metric(experimental) Return the invocation server errors metric for this guardrail.default Metric(experimental) Return the invocations intervened metric for this guardrail.default Metric(experimental) Return the invocation throttles metric for this guardrail.default MetricmetricTextUnitCount(MetricOptions props) (experimental) Return the text unit count metric for this guardrail.Methods inherited from interface software.amazon.awscdk.services.bedrock.alpha.IGuardrail
metric, metricInvocationClientErrors, metricInvocationLatency, metricInvocations, metricInvocationServerErrors, metricInvocationsIntervened, metricInvocationThrottles, metricTextUnitCountMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
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.If no explicit version is created, this will default to "DRAFT"
- 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
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
grant
@Stability(Experimental) @NotNull default 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 default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for this guardrail.- Specified by:
metricin interfaceIGuardrail- Parameters:
metricName- This parameter is required.props-
-
metricInvocationClientErrors
@Stability(Experimental) @NotNull default Metric metricInvocationClientErrors(@Nullable MetricOptions props) (experimental) Return the invocation client errors metric for this guardrail.- Specified by:
metricInvocationClientErrorsin interfaceIGuardrail- Parameters:
props-
-
metricInvocationLatency
@Stability(Experimental) @NotNull default Metric metricInvocationLatency(@Nullable MetricOptions props) (experimental) Return the invocation latency metric for this guardrail.- Specified by:
metricInvocationLatencyin interfaceIGuardrail- Parameters:
props-
-
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Specified by:
metricInvocationsin interfaceIGuardrail- Parameters:
props-
-
metricInvocationServerErrors
@Stability(Experimental) @NotNull default Metric metricInvocationServerErrors(@Nullable MetricOptions props) (experimental) Return the invocation server errors metric for this guardrail.- Specified by:
metricInvocationServerErrorsin interfaceIGuardrail- Parameters:
props-
-
metricInvocationsIntervened
@Stability(Experimental) @NotNull default Metric metricInvocationsIntervened(@Nullable MetricOptions props) (experimental) Return the invocations intervened metric for this guardrail.- Specified by:
metricInvocationsIntervenedin interfaceIGuardrail- Parameters:
props-
-
metricInvocationThrottles
@Stability(Experimental) @NotNull default Metric metricInvocationThrottles(@Nullable MetricOptions props) (experimental) Return the invocation throttles metric for this guardrail.- Specified by:
metricInvocationThrottlesin interfaceIGuardrail- Parameters:
props-
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Specified by:
metricTextUnitCountin interfaceIGuardrail- Parameters:
props-
-