Interface IAgent.Jsii$Default
- All Superinterfaces:
IAgent,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IGrantable,IGrantable.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IAgent.Jsii$Proxy
- Enclosing interface:
IAgent
IAgent.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrock.alpha.IAgent
IAgent.Jsii$Default, IAgent.Jsii$ProxyNested 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.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.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 String(experimental) The ARN of the agent.default String(experimental) The ID of the Agent.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default IPrincipalThe principal to grant permissions to.default IKey(experimental) Optional KMS encryption key associated with this agent.default String(experimental) When this agent was last updated.default software.constructs.NodegetNode()The tree node.default IRolegetRole()(experimental) The IAM role associated to the agent.default StackgetStack()The stack in which this resource is defined.default GrantgrantInvoke(IGrantable grantee) (experimental) Grant invoke permissions on this agent to an IAM principal.default MetricmetricCount(MetricOptions props) (experimental) Return the CloudWatch metric for agent count.default RuleonEvent(String id, OnEventOptions options) (experimental) Defines a CloudWatch event rule triggered by agent events.Methods inherited from interface software.amazon.awscdk.services.bedrock.alpha.IAgent
metricCount, onEventMethods 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
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin interfaceIGrantable.Jsii$Default
-
getAgentArn
(experimental) The ARN of the agent.- Specified by:
getAgentArnin interfaceIAgent
-
getAgentId
(experimental) The ID of the Agent.- Specified by:
getAgentIdin interfaceIAgent
-
getRole
(experimental) The IAM role associated to the agent. -
getKmsKey
(experimental) Optional KMS encryption key associated with this agent. -
getLastUpdated
(experimental) When this agent was last updated.- Specified by:
getLastUpdatedin interfaceIAgent
-
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.
-
grantInvoke
(experimental) Grant invoke permissions on this agent to an IAM principal.Note: This grant will only work when the grantee is in the same AWS account where the agent is defined. Cross-account invocation is not supported.
- Specified by:
grantInvokein interfaceIAgent- Parameters:
grantee- This parameter is required.
-
metricCount
(experimental) Return the CloudWatch metric for agent count.- Specified by:
metricCountin interfaceIAgent- Parameters:
props-
-
onEvent
@Stability(Experimental) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) (experimental) Defines a CloudWatch event rule triggered by agent events.
-