Configure the default bucket in AwsSession - Amazon Braket

Configure the default bucket in AwsSession

Providing your own AwsSession gives you greater flexibility, for example, in the location of your default bucket. By default, an AwsSession has a default bucket location of f"amazon-braket-{id}-{region}". But you can override that default when creating an AwsSession. Users can optionally pass in an AwsSession object into AwsQuantumJob.create with the parameter name aws_session as shown in the following code example.

aws_session = AwsSession(default_bucket="other-default-bucket") # then you can use that AwsSession when creating a hybrid job job = AwsQuantumJob.create( ... aws_session=aws_session )