Class CfnAgentAlias
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrock.CfnAgentAlias
- All Implemented Interfaces:
IInspectable,IAgentAliasRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:15.331Z")
@Stability(Stable)
public class CfnAgentAlias
extends CfnResource
implements IInspectable, IAgentAliasRef, ITaggableV2
Specifies an agent alias as a resource in a top-level template. Minimally, you must specify the following properties:.
- AgentAliasName – Specify a name for the alias.
For more information about creating aliases for an agent in Amazon Bedrock , see Deploy an Amazon Bedrock agent .
See the Properties section below for descriptions of both the required and optional properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
CfnAgentAlias cfnAgentAlias = CfnAgentAlias.Builder.create(this, "MyCfnAgentAlias")
.agentAliasName("agentAliasName")
.agentId("agentId")
// the properties below are optional
.description("description")
.routingConfiguration(List.of(AgentAliasRoutingConfigurationListItemProperty.builder()
.agentVersion("agentVersion")
.build()))
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains details about the history of the alias.static interfaceContains details about the routing configuration of the alias.static final classA fluent builder forCfnAgentAlias.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrock.IAgentAliasRef
IAgentAliasRef.Jsii$Default, IAgentAliasRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAgentAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAgentAlias(software.amazon.jsii.JsiiObjectRef objRef) CfnAgentAlias(software.constructs.Construct scope, String id, CfnAgentAliasProps props) Create a newAWS::Bedrock::AgentAlias. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAgentAlias(IAgentAliasRef resource) The name of the alias of the agent.A reference to a AgentAlias resource.The unique identifier of the agent.The Amazon Resource Name (ARN) of the alias of the agent.Contains details about the history of the alias.The unique identifier of the alias of the agent.The status of the alias of the agent and whether it is ready for use.The time at which the alias of the agent was created.The time at which the alias was last updated.Tag Manager which manages the tags for this resource.The description of the alias of the agent.Contains details about the routing configuration of the alias.getTags()Metadata that you can assign to a resource as key-value pairs.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAgentAlias.renderProperties(Map<String, Object> props) voidsetAgentAliasName(String value) The name of the alias of the agent.voidsetAgentId(String value) The unique identifier of the agent.voidsetDescription(String value) The description of the alias of the agent.voidsetRoutingConfiguration(List<Object> value) Contains details about the routing configuration of the alias.voidContains details about the routing configuration of the alias.voidMetadata that you can assign to a resource as key-value pairs.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAgentAlias
protected CfnAgentAlias(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAgentAlias
protected CfnAgentAlias(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAgentAlias
@Stability(Stable) public CfnAgentAlias(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAgentAliasProps props) Create a newAWS::Bedrock::AgentAlias.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForAgentAlias
- Parameters:
resource- This parameter is required.
-
isCfnAgentAlias
Checks whether the given object is a CfnAgentAlias.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAgentAliasRef
A reference to a AgentAlias resource.- Specified by:
getAgentAliasRefin interfaceIAgentAliasRef
-
getAttrAgentAliasArn
The Amazon Resource Name (ARN) of the alias of the agent. -
getAttrAgentAliasHistoryEvents
Contains details about the history of the alias. -
getAttrAgentAliasId
The unique identifier of the alias of the agent. -
getAttrAgentAliasStatus
The status of the alias of the agent and whether it is ready for use.The following statuses are possible:
- CREATING – The agent alias is being created.
- PREPARED – The agent alias is finished being created or updated and is ready to be invoked.
- FAILED – The agent alias API operation failed.
- UPDATING – The agent alias is being updated.
- DELETING – The agent alias is being deleted.
- DISSOCIATED - The agent alias has no version associated with it.
-
getAttrCreatedAt
The time at which the alias of the agent was created. -
getAttrUpdatedAt
The time at which the alias was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAgentAliasName
The name of the alias of the agent. -
setAgentAliasName
The name of the alias of the agent. -
getAgentId
The unique identifier of the agent. -
setAgentId
The unique identifier of the agent. -
getDescription
The description of the alias of the agent. -
setDescription
The description of the alias of the agent. -
getRoutingConfiguration
Contains details about the routing configuration of the alias.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnAgentAlias.AgentAliasRoutingConfigurationListItemProperty> -
setRoutingConfiguration
Contains details about the routing configuration of the alias. -
setRoutingConfiguration
Contains details about the routing configuration of the alias. -
getTags
Metadata that you can assign to a resource as key-value pairs.For more information, see the following resources:.
-
setTags
Metadata that you can assign to a resource as key-value pairs.For more information, see the following resources:.
-