Class CfnSession.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnSession.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSession>
- Enclosing class:
CfnSession
@Stability(Stable)
public static final class CfnSession.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSession>
A fluent builder for
CfnSession.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnSession.BuilderencryptionKeyArn(String encryptionKeyArn) The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.sessionMetadata(Map<String, String> sessionMetadata) A map of key-value pairs containing attributes to be persisted across the session.sessionMetadata(IResolvable sessionMetadata) A map of key-value pairs containing attributes to be persisted across the session.A list of tags associated with the session.
-
Method Details
-
create
@Stability(Stable) public static CfnSession.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnSession.Builder.
-
encryptionKeyArn
The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.- Parameters:
encryptionKeyArn- The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data. This parameter is required.- Returns:
this- See Also:
-
sessionMetadata
A map of key-value pairs containing attributes to be persisted across the session.- Parameters:
sessionMetadata- A map of key-value pairs containing attributes to be persisted across the session. This parameter is required.- Returns:
this- See Also:
-
sessionMetadata
A map of key-value pairs containing attributes to be persisted across the session.- Parameters:
sessionMetadata- A map of key-value pairs containing attributes to be persisted across the session. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags associated with the session.- Parameters:
tags- A list of tags associated with the session. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSession>- Returns:
- a newly built instance of
CfnSession.
-