We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Definition of AWS::Bedrock::Session Resource Type
Create Session Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Session(name: string, args?: SessionArgs, opts?: CustomResourceOptions);@overload
def Session(resource_name: str,
args: Optional[SessionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Session(resource_name: str,
opts: Optional[ResourceOptions] = None,
encryption_key_arn: Optional[str] = None,
session_metadata: Optional[Mapping[str, str]] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewSession(ctx *Context, name string, args *SessionArgs, opts ...ResourceOption) (*Session, error)public Session(string name, SessionArgs? args = null, CustomResourceOptions? opts = null)
public Session(String name, SessionArgs args)
public Session(String name, SessionArgs args, CustomResourceOptions options)
type: aws-native:bedrock:Session
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_bedrock_session" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SessionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SessionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SessionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SessionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SessionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Session Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Session resource accepts the following input properties:
- Encryption
Key stringArn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- Session
Metadata Dictionary<string, string> - A map of key-value pairs containing attributes to be persisted across the session.
-
List<Pulumi.
Aws Native. Inputs. Tag> - A list of tags associated with the session.
- Encryption
Key stringArn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- Session
Metadata map[string]string - A map of key-value pairs containing attributes to be persisted across the session.
-
Tag
Args - A list of tags associated with the session.
- encryption_
key_ stringarn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- session_
metadata map(string) - A map of key-value pairs containing attributes to be persisted across the session.
- list(object)
- A list of tags associated with the session.
- encryption
Key StringArn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- session
Metadata Map<String,String> - A map of key-value pairs containing attributes to be persisted across the session.
- List<Tag>
- A list of tags associated with the session.
- encryption
Key stringArn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- session
Metadata {[key: string]: string} - A map of key-value pairs containing attributes to be persisted across the session.
- Tag[]
- A list of tags associated with the session.
- encryption_
key_ strarn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- session_
metadata Mapping[str, str] - A map of key-value pairs containing attributes to be persisted across the session.
-
Sequence[Tag
Args] - A list of tags associated with the session.
- encryption
Key StringArn - The Amazon Resource Name (ARN) of the KMS key to use to encrypt the session data.
- session
Metadata Map<String> - A map of key-value pairs containing attributes to be persisted across the session.
- List<Property Map>
- A list of tags associated with the session.
Outputs
All input properties are implicitly available as output properties. Additionally, the Session resource produces the following output properties:
- Created
At string - The timestamp for when the session was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - The timestamp for when the session was last modified.
- Session
Arn string - The Amazon Resource Name (ARN) of the session.
- Session
Id string - The unique identifier of the session in UUID format.
- Session
Status Pulumi.Aws Native. Bedrock. Session Status - The current status of the session.
- Created
At string - The timestamp for when the session was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - The timestamp for when the session was last modified.
- Session
Arn string - The Amazon Resource Name (ARN) of the session.
- Session
Id string - The unique identifier of the session in UUID format.
- Session
Status SessionStatus - The current status of the session.
- created_
at string - The timestamp for when the session was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated_ stringat - The timestamp for when the session was last modified.
- session_
arn string - The Amazon Resource Name (ARN) of the session.
- session_
id string - The unique identifier of the session in UUID format.
- session_
status "ACTIVE" | "EXPIRED" | "ENDED" - The current status of the session.
- created
At String - The timestamp for when the session was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - The timestamp for when the session was last modified.
- session
Arn String - The Amazon Resource Name (ARN) of the session.
- session
Id String - The unique identifier of the session in UUID format.
- session
Status SessionStatus - The current status of the session.
- created
At string - The timestamp for when the session was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringAt - The timestamp for when the session was last modified.
- session
Arn string - The Amazon Resource Name (ARN) of the session.
- session
Id string - The unique identifier of the session in UUID format.
- session
Status SessionStatus - The current status of the session.
- created_
at str - The timestamp for when the session was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strat - The timestamp for when the session was last modified.
- session_
arn str - The Amazon Resource Name (ARN) of the session.
- session_
id str - The unique identifier of the session in UUID format.
- session_
status SessionStatus - The current status of the session.
- created
At String - The timestamp for when the session was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - The timestamp for when the session was last modified.
- session
Arn String - The Amazon Resource Name (ARN) of the session.
- session
Id String - The unique identifier of the session in UUID format.
- session
Status "ACTIVE" | "EXPIRED" | "ENDED" - The current status of the session.
Look up Existing Session Resource
Get an existing Session resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): Session@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Sessionfunc GetSession(ctx *Context, name string, id IDInput, state *SessionState, opts ...ResourceOption) (*Session, error)public static Session Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Session get(String name, Output<String> id, CustomResourceOptions options)resources: existingSession: type: aws-native:bedrock:Session get: id: ${id}import {
to = aws-native_bedrock_session.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state SessionState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
SessionStatus
The current status of the session.
| Name | Value |
|---|---|
| Active | ACTIVE |
| Expired | EXPIRED |
| Ended | ENDED |
| Name | Value |
|---|---|
| Session | ACTIVE |
| Session | EXPIRED |
| Session | ENDED |
| Value |
|---|
ACTIVE |
EXPIRED |
ENDED |
| Name | Value |
|---|---|
| Active | ACTIVE |
| Expired | EXPIRED |
| Ended | ENDED |
| Name | Value |
|---|---|
| Active | ACTIVE |
| Expired | EXPIRED |
| Ended | ENDED |
| Name | Value |
|---|---|
| ACTIVE | ACTIVE |
| EXPIRED | EXPIRED |
| ENDED | ENDED |
| Value |
|---|
ACTIVE |
EXPIRED |
ENDED |
Tag, TagArgs
A set of tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi