ManagedQueryResultsConfigurationProperty Struct
The configuration for storing results in Athena owned storage, which includes whether this feature is enabled;
whether encryption configuration, if any, is used for encrypting query results.
| Source | |
|---|---|
| Type last changed |
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 managedQueryResultsConfigurationProperty: athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty = {
enabled: false,
encryptionConfiguration: {
kmsKey: 'kmsKey',
},
};
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
managed_query_results_configuration_property = athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
enabled=False,
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
kms_key="kmsKey"
)
)
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.*;
ManagedQueryResultsConfigurationProperty managedQueryResultsConfigurationProperty = ManagedQueryResultsConfigurationProperty.builder()
.enabled(false)
.encryptionConfiguration(ManagedStorageEncryptionConfigurationProperty.builder()
.kmsKey("kmsKey")
.build())
.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 managedQueryResultsConfigurationProperty = new ManagedQueryResultsConfigurationProperty {
Enabled = false,
EncryptionConfiguration = new ManagedStorageEncryptionConfigurationProperty {
KmsKey = "kmsKey"
}
};
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"
managedQueryResultsConfigurationProperty := &ManagedQueryResultsConfigurationProperty{
Enabled: jsii.Boolean(false),
EncryptionConfiguration: &ManagedStorageEncryptionConfigurationProperty{
KmsKey: jsii.String("kmsKey"),
},
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #If set to true, allows you to store query results in Athena owned storage.
notes
If set to false, workgroup member stores query results in location specified under ResultConfiguration$OutputLocation . The default is false. A workgroup cannot have the ResultConfiguration$OutputLocation parameter when you set this field to true.
encryptionConfigurationoptionalIResolvable | CfnWorkGroup.encryption_configurationoptionaltyping.Union[IResolvable, ManagedStorageEncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.