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$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IGuardrail
IGuardrail.Jsii$Default, IGuardrail.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.default ResourceEnvironment
getEnv()
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.Node
getNode()
The tree node.default Stack
getStack()
The stack in which this resource is defined.default Grant
grant
(IGrantable grantee, String... actions) (experimental) Grant the given principal identity permissions to perform actions on this guardrail.default Grant
grantApply
(IGrantable grantee) (experimental) Grant the given identity permissions to apply the guardrail.default Metric
metric
(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 Metric
metricInvocations
(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 Metric
metricTextUnitCount
(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, metricTextUnitCount
Methods 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:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in 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:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
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.If no explicit version is created, this will default to "DRAFT"
- 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
-
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:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in 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:
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 default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for this guardrail.- Specified by:
metric
in 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:
metricInvocationClientErrors
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationLatency
@Stability(Experimental) @NotNull default Metric metricInvocationLatency(@Nullable MetricOptions props) (experimental) Return the invocation latency metric for this guardrail.- Specified by:
metricInvocationLatency
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocations
(experimental) Return the invocations metric for this guardrail.- Specified by:
metricInvocations
in 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:
metricInvocationServerErrors
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationsIntervened
@Stability(Experimental) @NotNull default Metric metricInvocationsIntervened(@Nullable MetricOptions props) (experimental) Return the invocations intervened metric for this guardrail.- Specified by:
metricInvocationsIntervened
in interfaceIGuardrail
- Parameters:
props
-
-
metricInvocationThrottles
@Stability(Experimental) @NotNull default Metric metricInvocationThrottles(@Nullable MetricOptions props) (experimental) Return the invocation throttles metric for this guardrail.- Specified by:
metricInvocationThrottles
in interfaceIGuardrail
- Parameters:
props
-
-
metricTextUnitCount
(experimental) Return the text unit count metric for this guardrail.- Specified by:
metricTextUnitCount
in interfaceIGuardrail
- Parameters:
props
-
-