Skip to content
v2.278.0

ResultConfigurationProperty ​

Struct External

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.

Example ​

ts
// 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',
};
python
# 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"
)
java
// 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();
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.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"
};
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"

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.AclConfigurationPropertyacl_configurationoptionaltyping.Union[IResolvable, AclConfigurationProperty]aclConfigurationoptionalIResolvableAclConfigurationoptionalIResolvableAclConfigurationoptionalinterface{} #
Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results.
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.EncryptionConfigurationPropertyencryption_configurationoptionaltyping.Union[IResolvable, EncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #
If query results are encrypted in Amazon S3, indicates the encryption option used (for example, `SSE_KMS` or `CSE_KMS` ) and key information.
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 #
The account ID that you expect to be the owner of the Amazon S3 bucket specified by `ResultConfiguration:OutputLocation` .
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 #
The location in Amazon S3 where your query results are stored, such as `s3://path/to/query/bucket/` .
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 .