ResultConfigurationProperty
The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results.
These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the workgroup settings.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_athena as athena } from 'aws-cdk-lib';
const resultConfigurationProperty: athena.CfnWorkGroup.ResultConfigurationProperty = {
aclConfiguration: {
s3AclOption: 's3AclOption',
},
encryptionConfiguration: {
encryptionOption: 'encryptionOption',
// the properties below are optional
kmsKey: 'kmsKey',
},
expectedBucketOwner: 'expectedBucketOwner',
outputLocation: 'outputLocation',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_athena as athena
result_configuration_property = athena.CfnWorkGroup.ResultConfigurationProperty(
acl_configuration=athena.CfnWorkGroup.AclConfigurationProperty(
s3_acl_option="s3AclOption"
),
encryption_configuration=athena.CfnWorkGroup.EncryptionConfigurationProperty(
encryption_option="encryptionOption",
# the properties below are optional
kms_key="kmsKey"
),
expected_bucket_owner="expectedBucketOwner",
output_location="outputLocation"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.athena.*;
ResultConfigurationProperty resultConfigurationProperty = ResultConfigurationProperty.builder()
.aclConfiguration(AclConfigurationProperty.builder()
.s3AclOption("s3AclOption")
.build())
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.encryptionOption("encryptionOption")
// the properties below are optional
.kmsKey("kmsKey")
.build())
.expectedBucketOwner("expectedBucketOwner")
.outputLocation("outputLocation")
.build();
// 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.AWS.Athena;
var resultConfigurationProperty = new ResultConfigurationProperty {
AclConfiguration = new AclConfigurationProperty {
S3AclOption = "s3AclOption"
},
EncryptionConfiguration = new EncryptionConfigurationProperty {
EncryptionOption = "encryptionOption",
// the properties below are optional
KmsKey = "kmsKey"
},
ExpectedBucketOwner = "expectedBucketOwner",
OutputLocation = "outputLocation"
};
// 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"
resultConfigurationProperty := &ResultConfigurationProperty{
AclConfiguration: &AclConfigurationProperty{
S3AclOption: jsii.String("s3AclOption"),
},
EncryptionConfiguration: &EncryptionConfigurationProperty{
EncryptionOption: jsii.String("encryptionOption"),
// the properties below are optional
KmsKey: jsii.String("kmsKey"),
},
ExpectedBucketOwner: jsii.String("expectedBucketOwner"),
OutputLocation: jsii.String("outputLocation"),
}
Properties
aclConfigurationoptionalIResolvable | CfnWorkGroup.acl_configurationoptionaltyping.Union[IResolvable, AclConfigurationProperty]aclConfigurationoptionalIResolvableAclConfigurationoptionalIResolvableAclConfigurationoptionalinterface{} #notes
Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL . This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ACL configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See EnforceWorkGroupConfiguration .
encryptionConfigurationoptionalIResolvable | CfnWorkGroup.encryption_configurationoptionaltyping.Union[IResolvable, EncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #notes
This is a client-side setting. If workgroup settings override client-side settings, then the query uses the encryption configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See EnforceWorkGroupConfiguration and Override client-side settings .
expectedBucketOwneroptionalstringexpected_bucket_owneroptionalstrexpectedBucketOwneroptionalStringExpectedBucketOwneroptionalstringExpectedBucketOwneroptional*string #notes
If set, Athena uses the value for ExpectedBucketOwner when it makes Amazon S3 calls to your specified output location. If the ExpectedBucketOwner account ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error.
This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ExpectedBucketOwner setting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See EnforceWorkGroupConfiguration .
outputLocationoptionalstringoutput_locationoptionalstroutputLocationoptionalStringOutputLocationoptionalstringOutputLocationoptional*string #notes
To run a query, you must specify the query results location using either a client-side setting for individual queries or a location specified by the workgroup. If workgroup settings override client-side settings, then the query uses the location specified for the workgroup. If no query location is set, Athena issues an error. For more information, see Work with query results and recent queries and EnforceWorkGroupConfiguration .