Skip to content
v2.278.0

SessionReference Struct ​

A reference to a Session resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as interfaces_bedrock } from 'aws-cdk-lib/interfaces';
const sessionReference: interfaces_bedrock.SessionReference = {
  sessionArn: 'sessionArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_bedrock as interfaces_bedrock

session_reference = interfaces_bedrock.SessionReference(
    session_arn="sessionArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.bedrock.*;

SessionReference sessionReference = SessionReference.builder()
        .sessionArn("sessionArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Bedrock;

var sessionReference = new SessionReference {
    SessionArn = "sessionArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sessionReference := &SessionReference{
	SessionArn: jsii.String("sessionArn"),
}

Properties ​

sessionArnstringsession_arnstrsessionArnStringSessionArnstringSessionArn*string required #
The SessionArn of the Session resource.