# ManagedQueryResultsConfigurationProperty

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: Generated at build time
- Type last changed: v2.201.0 · 13 Jun 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — If set to true, allows you to store query results in Athena owned storage.

  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.

- `encryptionConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty.html) — 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.
