interface Location
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.Location |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#Location |
Java | software.amazon.awscdk.services.s3.Location |
Python | aws_cdk.aws_s3.Location |
TypeScript (source) | aws-cdk-lib » aws_s3 » Location |
An interface that represents the location of a specific object in an S3 Bucket.
Example
const startQueryExecutionJob = new tasks.AthenaStartQueryExecution(this, 'Start Athena Query', {
queryString: sfn.JsonPath.stringAt('$.queryString'),
queryExecutionContext: {
databaseName: 'mydatabase',
},
resultConfiguration: {
encryptionConfiguration: {
encryptionOption: tasks.EncryptionOption.S3_MANAGED,
},
outputLocation: {
bucketName: 'query-results-bucket',
objectKey: 'folder',
},
},
executionParameters: ['param1', 'param2'],
resultReuseConfigurationMaxAge: Duration.minutes(100),
});
Properties
Name | Type | Description |
---|---|---|
bucket | string | The name of the S3 Bucket the object is in. |
object | string | The path inside the Bucket where the object is located at. |
object | string | The S3 object version. |
bucketName
Type:
string
The name of the S3 Bucket the object is in.
objectKey
Type:
string
The path inside the Bucket where the object is located at.
objectVersion?
Type:
string
(optional)
The S3 object version.