Class Location
An interface that represents the location of a specific object in an S3 Bucket.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Location : ILocation
Syntax (vb)
Public Class Location Implements ILocation
Remarks
ExampleMetadata: infused
Examples
var startQueryExecutionJob = new AthenaStartQueryExecution(this, "Start Athena Query", new AthenaStartQueryExecutionProps {
QueryString = JsonPath.StringAt("$.queryString"),
QueryExecutionContext = new QueryExecutionContext {
DatabaseName = "mydatabase"
},
ResultConfiguration = new ResultConfiguration {
EncryptionConfiguration = new EncryptionConfiguration {
EncryptionOption = EncryptionOption.S3_MANAGED
},
OutputLocation = new Location {
BucketName = "query-results-bucket",
ObjectKey = "folder"
}
},
ExecutionParameters = new [] { "param1", "param2" },
ResultReuseConfigurationMaxAge = Duration.Minutes(100)
});
Synopsis
Constructors
Location() | An interface that represents the location of a specific object in an S3 Bucket. |
Properties
BucketName | The name of the S3 Bucket the object is in. |
ObjectKey | The path inside the Bucket where the object is located at. |
ObjectVersion | The S3 object version. |
Constructors
Location()
An interface that represents the location of a specific object in an S3 Bucket.
public Location()
Remarks
ExampleMetadata: infused
Examples
var startQueryExecutionJob = new AthenaStartQueryExecution(this, "Start Athena Query", new AthenaStartQueryExecutionProps {
QueryString = JsonPath.StringAt("$.queryString"),
QueryExecutionContext = new QueryExecutionContext {
DatabaseName = "mydatabase"
},
ResultConfiguration = new ResultConfiguration {
EncryptionConfiguration = new EncryptionConfiguration {
EncryptionOption = EncryptionOption.S3_MANAGED
},
OutputLocation = new Location {
BucketName = "query-results-bucket",
ObjectKey = "folder"
}
},
ExecutionParameters = new [] { "param1", "param2" },
ResultReuseConfigurationMaxAge = Duration.Minutes(100)
});
Properties
BucketName
The name of the S3 Bucket the object is in.
public string BucketName { get; set; }
Property Value
Remarks
ExampleMetadata: infused
ObjectKey
The path inside the Bucket where the object is located at.
public string ObjectKey { get; set; }
Property Value
Remarks
ExampleMetadata: infused
ObjectVersion
The S3 object version.
public string? ObjectVersion { get; set; }
Property Value
Remarks
ExampleMetadata: infused