aws.athena.Workgroup
Explore with Pulumi AI
Provides an Athena Workgroup.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.athena.Workgroup("example", {
name: "example",
configuration: {
enforceWorkgroupConfiguration: true,
publishCloudwatchMetricsEnabled: true,
resultConfiguration: {
outputLocation: `s3://${exampleAwsS3Bucket.bucket}/output/`,
encryptionConfiguration: {
encryptionOption: "SSE_KMS",
kmsKeyArn: exampleAwsKmsKey.arn,
},
},
},
});
import pulumi
import pulumi_aws as aws
example = aws.athena.Workgroup("example",
name="example",
configuration={
"enforce_workgroup_configuration": True,
"publish_cloudwatch_metrics_enabled": True,
"result_configuration": {
"output_location": f"s3://{example_aws_s3_bucket['bucket']}/output/",
"encryption_configuration": {
"encryption_option": "SSE_KMS",
"kms_key_arn": example_aws_kms_key["arn"],
},
},
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/athena"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := athena.NewWorkgroup(ctx, "example", &athena.WorkgroupArgs{
Name: pulumi.String("example"),
Configuration: &athena.WorkgroupConfigurationArgs{
EnforceWorkgroupConfiguration: pulumi.Bool(true),
PublishCloudwatchMetricsEnabled: pulumi.Bool(true),
ResultConfiguration: &athena.WorkgroupConfigurationResultConfigurationArgs{
OutputLocation: pulumi.Sprintf("s3://%v/output/", exampleAwsS3Bucket.Bucket),
EncryptionConfiguration: &athena.WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs{
EncryptionOption: pulumi.String("SSE_KMS"),
KmsKeyArn: pulumi.Any(exampleAwsKmsKey.Arn),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Athena.Workgroup("example", new()
{
Name = "example",
Configuration = new Aws.Athena.Inputs.WorkgroupConfigurationArgs
{
EnforceWorkgroupConfiguration = true,
PublishCloudwatchMetricsEnabled = true,
ResultConfiguration = new Aws.Athena.Inputs.WorkgroupConfigurationResultConfigurationArgs
{
OutputLocation = $"s3://{exampleAwsS3Bucket.Bucket}/output/",
EncryptionConfiguration = new Aws.Athena.Inputs.WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs
{
EncryptionOption = "SSE_KMS",
KmsKeyArn = exampleAwsKmsKey.Arn,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.athena.Workgroup;
import com.pulumi.aws.athena.WorkgroupArgs;
import com.pulumi.aws.athena.inputs.WorkgroupConfigurationArgs;
import com.pulumi.aws.athena.inputs.WorkgroupConfigurationResultConfigurationArgs;
import com.pulumi.aws.athena.inputs.WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Workgroup("example", WorkgroupArgs.builder()
.name("example")
.configuration(WorkgroupConfigurationArgs.builder()
.enforceWorkgroupConfiguration(true)
.publishCloudwatchMetricsEnabled(true)
.resultConfiguration(WorkgroupConfigurationResultConfigurationArgs.builder()
.outputLocation(String.format("s3://%s/output/", exampleAwsS3Bucket.bucket()))
.encryptionConfiguration(WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs.builder()
.encryptionOption("SSE_KMS")
.kmsKeyArn(exampleAwsKmsKey.arn())
.build())
.build())
.build())
.build());
}
}
resources:
example:
type: aws:athena:Workgroup
properties:
name: example
configuration:
enforceWorkgroupConfiguration: true
publishCloudwatchMetricsEnabled: true
resultConfiguration:
outputLocation: s3://${exampleAwsS3Bucket.bucket}/output/
encryptionConfiguration:
encryptionOption: SSE_KMS
kmsKeyArn: ${exampleAwsKmsKey.arn}
Create Workgroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workgroup(name: string, args?: WorkgroupArgs, opts?: CustomResourceOptions);
@overload
def Workgroup(resource_name: str,
args: Optional[WorkgroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Workgroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration: Optional[WorkgroupConfigurationArgs] = None,
description: Optional[str] = None,
force_destroy: Optional[bool] = None,
name: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewWorkgroup(ctx *Context, name string, args *WorkgroupArgs, opts ...ResourceOption) (*Workgroup, error)
public Workgroup(string name, WorkgroupArgs? args = null, CustomResourceOptions? opts = null)
public Workgroup(String name, WorkgroupArgs args)
public Workgroup(String name, WorkgroupArgs args, CustomResourceOptions options)
type: aws:athena:Workgroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkgroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkgroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkgroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkgroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkgroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var workgroupResource = new Aws.Athena.Workgroup("workgroupResource", new()
{
Configuration = new Aws.Athena.Inputs.WorkgroupConfigurationArgs
{
BytesScannedCutoffPerQuery = 0,
EnforceWorkgroupConfiguration = false,
EngineVersion = new Aws.Athena.Inputs.WorkgroupConfigurationEngineVersionArgs
{
EffectiveEngineVersion = "string",
SelectedEngineVersion = "string",
},
ExecutionRole = "string",
PublishCloudwatchMetricsEnabled = false,
RequesterPaysEnabled = false,
ResultConfiguration = new Aws.Athena.Inputs.WorkgroupConfigurationResultConfigurationArgs
{
AclConfiguration = new Aws.Athena.Inputs.WorkgroupConfigurationResultConfigurationAclConfigurationArgs
{
S3AclOption = "string",
},
EncryptionConfiguration = new Aws.Athena.Inputs.WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs
{
EncryptionOption = "string",
KmsKeyArn = "string",
},
ExpectedBucketOwner = "string",
OutputLocation = "string",
},
},
Description = "string",
ForceDestroy = false,
Name = "string",
State = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := athena.NewWorkgroup(ctx, "workgroupResource", &athena.WorkgroupArgs{
Configuration: &athena.WorkgroupConfigurationArgs{
BytesScannedCutoffPerQuery: pulumi.Int(0),
EnforceWorkgroupConfiguration: pulumi.Bool(false),
EngineVersion: &athena.WorkgroupConfigurationEngineVersionArgs{
EffectiveEngineVersion: pulumi.String("string"),
SelectedEngineVersion: pulumi.String("string"),
},
ExecutionRole: pulumi.String("string"),
PublishCloudwatchMetricsEnabled: pulumi.Bool(false),
RequesterPaysEnabled: pulumi.Bool(false),
ResultConfiguration: &athena.WorkgroupConfigurationResultConfigurationArgs{
AclConfiguration: &athena.WorkgroupConfigurationResultConfigurationAclConfigurationArgs{
S3AclOption: pulumi.String("string"),
},
EncryptionConfiguration: &athena.WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs{
EncryptionOption: pulumi.String("string"),
KmsKeyArn: pulumi.String("string"),
},
ExpectedBucketOwner: pulumi.String("string"),
OutputLocation: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
ForceDestroy: pulumi.Bool(false),
Name: pulumi.String("string"),
State: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var workgroupResource = new Workgroup("workgroupResource", WorkgroupArgs.builder()
.configuration(WorkgroupConfigurationArgs.builder()
.bytesScannedCutoffPerQuery(0)
.enforceWorkgroupConfiguration(false)
.engineVersion(WorkgroupConfigurationEngineVersionArgs.builder()
.effectiveEngineVersion("string")
.selectedEngineVersion("string")
.build())
.executionRole("string")
.publishCloudwatchMetricsEnabled(false)
.requesterPaysEnabled(false)
.resultConfiguration(WorkgroupConfigurationResultConfigurationArgs.builder()
.aclConfiguration(WorkgroupConfigurationResultConfigurationAclConfigurationArgs.builder()
.s3AclOption("string")
.build())
.encryptionConfiguration(WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs.builder()
.encryptionOption("string")
.kmsKeyArn("string")
.build())
.expectedBucketOwner("string")
.outputLocation("string")
.build())
.build())
.description("string")
.forceDestroy(false)
.name("string")
.state("string")
.tags(Map.of("string", "string"))
.build());
workgroup_resource = aws.athena.Workgroup("workgroupResource",
configuration={
"bytes_scanned_cutoff_per_query": 0,
"enforce_workgroup_configuration": False,
"engine_version": {
"effective_engine_version": "string",
"selected_engine_version": "string",
},
"execution_role": "string",
"publish_cloudwatch_metrics_enabled": False,
"requester_pays_enabled": False,
"result_configuration": {
"acl_configuration": {
"s3_acl_option": "string",
},
"encryption_configuration": {
"encryption_option": "string",
"kms_key_arn": "string",
},
"expected_bucket_owner": "string",
"output_location": "string",
},
},
description="string",
force_destroy=False,
name="string",
state="string",
tags={
"string": "string",
})
const workgroupResource = new aws.athena.Workgroup("workgroupResource", {
configuration: {
bytesScannedCutoffPerQuery: 0,
enforceWorkgroupConfiguration: false,
engineVersion: {
effectiveEngineVersion: "string",
selectedEngineVersion: "string",
},
executionRole: "string",
publishCloudwatchMetricsEnabled: false,
requesterPaysEnabled: false,
resultConfiguration: {
aclConfiguration: {
s3AclOption: "string",
},
encryptionConfiguration: {
encryptionOption: "string",
kmsKeyArn: "string",
},
expectedBucketOwner: "string",
outputLocation: "string",
},
},
description: "string",
forceDestroy: false,
name: "string",
state: "string",
tags: {
string: "string",
},
});
type: aws:athena:Workgroup
properties:
configuration:
bytesScannedCutoffPerQuery: 0
enforceWorkgroupConfiguration: false
engineVersion:
effectiveEngineVersion: string
selectedEngineVersion: string
executionRole: string
publishCloudwatchMetricsEnabled: false
requesterPaysEnabled: false
resultConfiguration:
aclConfiguration:
s3AclOption: string
encryptionConfiguration:
encryptionOption: string
kmsKeyArn: string
expectedBucketOwner: string
outputLocation: string
description: string
forceDestroy: false
name: string
state: string
tags:
string: string
Workgroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Workgroup resource accepts the following input properties:
- Configuration
Workgroup
Configuration - Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- Force
Destroy bool - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- Name string
- Name of the workgroup.
- State string
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Dictionary<string, string>
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Configuration
Workgroup
Configuration Args - Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- Force
Destroy bool - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- Name string
- Name of the workgroup.
- State string
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - map[string]string
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration
Workgroup
Configuration - Configuration block with various settings for the workgroup. Documented below.
- description String
- Description of the workgroup.
- force
Destroy Boolean - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name String
- Name of the workgroup.
- state String
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Map<String,String>
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration
Workgroup
Configuration - Configuration block with various settings for the workgroup. Documented below.
- description string
- Description of the workgroup.
- force
Destroy boolean - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name string
- Name of the workgroup.
- state string
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - {[key: string]: string}
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration
Workgroup
Configuration Args - Configuration block with various settings for the workgroup. Documented below.
- description str
- Description of the workgroup.
- force_
destroy bool - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name str
- Name of the workgroup.
- state str
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Mapping[str, str]
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration Property Map
- Configuration block with various settings for the workgroup. Documented below.
- description String
- Description of the workgroup.
- force
Destroy Boolean - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name String
- Name of the workgroup.
- state String
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Map<String>
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Workgroup resource produces the following output properties:
Look up Existing Workgroup Resource
Get an existing Workgroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WorkgroupState, opts?: CustomResourceOptions): Workgroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
configuration: Optional[WorkgroupConfigurationArgs] = None,
description: Optional[str] = None,
force_destroy: Optional[bool] = None,
name: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Workgroup
func GetWorkgroup(ctx *Context, name string, id IDInput, state *WorkgroupState, opts ...ResourceOption) (*Workgroup, error)
public static Workgroup Get(string name, Input<string> id, WorkgroupState? state, CustomResourceOptions? opts = null)
public static Workgroup get(String name, Output<String> id, WorkgroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- ARN of the workgroup
- Configuration
Workgroup
Configuration - Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- Force
Destroy bool - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- Name string
- Name of the workgroup.
- State string
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Dictionary<string, string>
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- ARN of the workgroup
- Configuration
Workgroup
Configuration Args - Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- Force
Destroy bool - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- Name string
- Name of the workgroup.
- State string
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - map[string]string
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the workgroup
- configuration
Workgroup
Configuration - Configuration block with various settings for the workgroup. Documented below.
- description String
- Description of the workgroup.
- force
Destroy Boolean - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name String
- Name of the workgroup.
- state String
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Map<String,String>
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- ARN of the workgroup
- configuration
Workgroup
Configuration - Configuration block with various settings for the workgroup. Documented below.
- description string
- Description of the workgroup.
- force
Destroy boolean - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name string
- Name of the workgroup.
- state string
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - {[key: string]: string}
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- ARN of the workgroup
- configuration
Workgroup
Configuration Args - Configuration block with various settings for the workgroup. Documented below.
- description str
- Description of the workgroup.
- force_
destroy bool - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name str
- Name of the workgroup.
- state str
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Mapping[str, str]
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- ARN of the workgroup
- configuration Property Map
- Configuration block with various settings for the workgroup. Documented below.
- description String
- Description of the workgroup.
- force
Destroy Boolean - Option to delete the workgroup and its contents even if the workgroup contains any named queries.
- name String
- Name of the workgroup.
- state String
- State of the workgroup. Valid values are
DISABLED
orENABLED
. Defaults toENABLED
. - Map<String>
- Key-value map of resource tags for the workgroup. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
WorkgroupConfiguration, WorkgroupConfigurationArgs
- Bytes
Scanned intCutoff Per Query - Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least
10485760
. - Enforce
Workgroup boolConfiguration - Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to
true
. - Engine
Version WorkgroupConfiguration Engine Version - Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- Execution
Role string - Role used in a notebook session for accessing the user's resources.
- Publish
Cloudwatch boolMetrics Enabled - Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to
true
. - Requester
Pays boolEnabled - If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
- Result
Configuration WorkgroupConfiguration Result Configuration - Configuration block with result settings. See Result Configuration below.
- Bytes
Scanned intCutoff Per Query - Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least
10485760
. - Enforce
Workgroup boolConfiguration - Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to
true
. - Engine
Version WorkgroupConfiguration Engine Version - Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- Execution
Role string - Role used in a notebook session for accessing the user's resources.
- Publish
Cloudwatch boolMetrics Enabled - Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to
true
. - Requester
Pays boolEnabled - If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
- Result
Configuration WorkgroupConfiguration Result Configuration - Configuration block with result settings. See Result Configuration below.
- bytes
Scanned IntegerCutoff Per Query - Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least
10485760
. - enforce
Workgroup BooleanConfiguration - Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to
true
. - engine
Version WorkgroupConfiguration Engine Version - Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- execution
Role String - Role used in a notebook session for accessing the user's resources.
- publish
Cloudwatch BooleanMetrics Enabled - Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to
true
. - requester
Pays BooleanEnabled - If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
- result
Configuration WorkgroupConfiguration Result Configuration - Configuration block with result settings. See Result Configuration below.
- bytes
Scanned numberCutoff Per Query - Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least
10485760
. - enforce
Workgroup booleanConfiguration - Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to
true
. - engine
Version WorkgroupConfiguration Engine Version - Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- execution
Role string - Role used in a notebook session for accessing the user's resources.
- publish
Cloudwatch booleanMetrics Enabled - Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to
true
. - requester
Pays booleanEnabled - If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
- result
Configuration WorkgroupConfiguration Result Configuration - Configuration block with result settings. See Result Configuration below.
- bytes_
scanned_ intcutoff_ per_ query - Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least
10485760
. - enforce_
workgroup_ boolconfiguration - Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to
true
. - engine_
version WorkgroupConfiguration Engine Version - Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- execution_
role str - Role used in a notebook session for accessing the user's resources.
- publish_
cloudwatch_ boolmetrics_ enabled - Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to
true
. - requester_
pays_ boolenabled - If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
- result_
configuration WorkgroupConfiguration Result Configuration - Configuration block with result settings. See Result Configuration below.
- bytes
Scanned NumberCutoff Per Query - Integer for the upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. Must be at least
10485760
. - enforce
Workgroup BooleanConfiguration - Boolean whether the settings for the workgroup override client-side settings. For more information, see Workgroup Settings Override Client-Side Settings. Defaults to
true
. - engine
Version Property Map - Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- execution
Role String - Role used in a notebook session for accessing the user's resources.
- publish
Cloudwatch BooleanMetrics Enabled - Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to
true
. - requester
Pays BooleanEnabled - If set to true , allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false , workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false . For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
- result
Configuration Property Map - Configuration block with result settings. See Result Configuration below.
WorkgroupConfigurationEngineVersion, WorkgroupConfigurationEngineVersionArgs
- Effective
Engine stringVersion - The engine version on which the query runs. If
selected_engine_version
is set toAUTO
, the effective engine version is chosen by Athena. - Selected
Engine stringVersion - Requested engine version. Defaults to
AUTO
.
- Effective
Engine stringVersion - The engine version on which the query runs. If
selected_engine_version
is set toAUTO
, the effective engine version is chosen by Athena. - Selected
Engine stringVersion - Requested engine version. Defaults to
AUTO
.
- effective
Engine StringVersion - The engine version on which the query runs. If
selected_engine_version
is set toAUTO
, the effective engine version is chosen by Athena. - selected
Engine StringVersion - Requested engine version. Defaults to
AUTO
.
- effective
Engine stringVersion - The engine version on which the query runs. If
selected_engine_version
is set toAUTO
, the effective engine version is chosen by Athena. - selected
Engine stringVersion - Requested engine version. Defaults to
AUTO
.
- effective_
engine_ strversion - The engine version on which the query runs. If
selected_engine_version
is set toAUTO
, the effective engine version is chosen by Athena. - selected_
engine_ strversion - Requested engine version. Defaults to
AUTO
.
- effective
Engine StringVersion - The engine version on which the query runs. If
selected_engine_version
is set toAUTO
, the effective engine version is chosen by Athena. - selected
Engine StringVersion - Requested engine version. Defaults to
AUTO
.
WorkgroupConfigurationResultConfiguration, WorkgroupConfigurationResultConfigurationArgs
- Acl
Configuration WorkgroupConfiguration Result Configuration Acl Configuration - That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- Encryption
Configuration WorkgroupConfiguration Result Configuration Encryption Configuration - Configuration block with encryption settings. See Encryption Configuration below.
- Expected
Bucket stringOwner - AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- Output
Location string - Location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. For more information, see Queries and Query Result Files.
- Acl
Configuration WorkgroupConfiguration Result Configuration Acl Configuration - That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- Encryption
Configuration WorkgroupConfiguration Result Configuration Encryption Configuration - Configuration block with encryption settings. See Encryption Configuration below.
- Expected
Bucket stringOwner - AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- Output
Location string - Location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. For more information, see Queries and Query Result Files.
- acl
Configuration WorkgroupConfiguration Result Configuration Acl Configuration - That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- encryption
Configuration WorkgroupConfiguration Result Configuration Encryption Configuration - Configuration block with encryption settings. See Encryption Configuration below.
- expected
Bucket StringOwner - AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- output
Location String - Location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. For more information, see Queries and Query Result Files.
- acl
Configuration WorkgroupConfiguration Result Configuration Acl Configuration - That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- encryption
Configuration WorkgroupConfiguration Result Configuration Encryption Configuration - Configuration block with encryption settings. See Encryption Configuration below.
- expected
Bucket stringOwner - AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- output
Location string - Location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. For more information, see Queries and Query Result Files.
- acl_
configuration WorkgroupConfiguration Result Configuration Acl Configuration - That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- encryption_
configuration WorkgroupConfiguration Result Configuration Encryption Configuration - Configuration block with encryption settings. See Encryption Configuration below.
- expected_
bucket_ strowner - AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- output_
location str - Location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. For more information, see Queries and Query Result Files.
- acl
Configuration Property Map - That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- encryption
Configuration Property Map - Configuration block with encryption settings. See Encryption Configuration below.
- expected
Bucket StringOwner - AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- output
Location String - Location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/
. For more information, see Queries and Query Result Files.
WorkgroupConfigurationResultConfigurationAclConfiguration, WorkgroupConfigurationResultConfigurationAclConfigurationArgs
- S3Acl
Option string - Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is
BUCKET_OWNER_FULL_CONTROL
.
- S3Acl
Option string - Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is
BUCKET_OWNER_FULL_CONTROL
.
- s3Acl
Option String - Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is
BUCKET_OWNER_FULL_CONTROL
.
- s3Acl
Option string - Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is
BUCKET_OWNER_FULL_CONTROL
.
- s3_
acl_ stroption - Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is
BUCKET_OWNER_FULL_CONTROL
.
- s3Acl
Option String - Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is
BUCKET_OWNER_FULL_CONTROL
.
WorkgroupConfigurationResultConfigurationEncryptionConfiguration, WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs
- Encryption
Option string - Whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - Kms
Key stringArn - For
SSE_KMS
andCSE_KMS
, this is the KMS key ARN.
- Encryption
Option string - Whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - Kms
Key stringArn - For
SSE_KMS
andCSE_KMS
, this is the KMS key ARN.
- encryption
Option String - Whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - kms
Key StringArn - For
SSE_KMS
andCSE_KMS
, this is the KMS key ARN.
- encryption
Option string - Whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - kms
Key stringArn - For
SSE_KMS
andCSE_KMS
, this is the KMS key ARN.
- encryption_
option str - Whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - kms_
key_ strarn - For
SSE_KMS
andCSE_KMS
, this is the KMS key ARN.
- encryption
Option String - Whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3
), server-side encryption with KMS-managed keys (SSE_KMS
), or client-side encryption with KMS-managed keys (CSE_KMS
) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup's setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup. - kms
Key StringArn - For
SSE_KMS
andCSE_KMS
, this is the KMS key ARN.
Import
Using pulumi import
, import Athena Workgroups using their name. For example:
$ pulumi import aws:athena/workgroup:Workgroup example example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.