Class CfnSession
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.CfnSession
- All Implemented Interfaces:
IInspectable,ISessionRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:04.455Z")
@Stability(Stable)
public class CfnSession
extends CfnResource
implements IInspectable, ISessionRef, ITaggableV2
Definition of AWS::Bedrock::Session Resource Type.
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.*;
CfnSession cfnSession = CfnSession.Builder.create(this, "MyCfnSession")
.encryptionKeyArn("encryptionKeyArn")
.sessionMetadata(Map.of(
"sessionMetadataKey", "sessionMetadata"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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.interfaces.bedrock.ISessionRef
ISessionRef.Jsii$Default, ISessionRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSession(software.amazon.jsii.JsiiObjectRef objRef) CfnSession(software.constructs.Construct scope, String id) Create a newAWS::Bedrock::Session.CfnSession(software.constructs.Construct scope, String id, CfnSessionProps props) Create a newAWS::Bedrock::Session. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSession(ISessionRef resource) The timestamp for when the session was created.The timestamp for when the session was last modified.The Amazon Resource Name (ARN) of the session.The unique identifier of the session in UUID format.The current status of the session.Tag Manager which manages the tags for this resource.The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.A map of key-value pairs containing attributes to be persisted across the session.A reference to a Session resource.getTags()A list of tags associated with the session.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSession.renderProperties(Map<String, Object> props) voidsetEncryptionKeyArn(String value) The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.voidsetSessionMetadata(Map<String, String> value) A map of key-value pairs containing attributes to be persisted across the session.voidsetSessionMetadata(IResolvable value) A map of key-value pairs containing attributes to be persisted across the session.voidA list of tags associated with the session.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnSession
protected CfnSession(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSession
protected CfnSession(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSession
@Stability(Stable) public CfnSession(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnSessionProps props) Create a newAWS::Bedrock::Session.- 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.
-
CfnSession
@Stability(Stable) public CfnSession(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::Bedrock::Session.- 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.
-
-
Method Details
-
arnForSession
- Parameters:
resource- This parameter is required.
-
isCfnSession
Checks whether the given object is a CfnSession.- 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.
-
getAttrCreatedAt
The timestamp for when the session was created. -
getAttrLastUpdatedAt
The timestamp for when the session was last modified. -
getAttrSessionArn
The Amazon Resource Name (ARN) of the session. -
getAttrSessionId
The unique identifier of the session in UUID format. -
getAttrSessionStatus
The current status of the session. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSessionRef
A reference to a Session resource.- Specified by:
getSessionRefin interfaceISessionRef
-
getEncryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data. -
setEncryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data. -
getSessionMetadata
A map of key-value pairs containing attributes to be persisted across the session.Returns union: either
IResolvableor Mapinvalid input: '<'String,String> -
setSessionMetadata
A map of key-value pairs containing attributes to be persisted across the session. -
setSessionMetadata
A map of key-value pairs containing attributes to be persisted across the session. -
getTags
A list of tags associated with the session. -
setTags
A list of tags associated with the session.
-