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
WorkgroupConfiguration 
- Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- ForceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- Dictionary<string, string>
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Configuration
WorkgroupConfiguration Args 
- Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- ForceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- map[string]string
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration
WorkgroupConfiguration 
- Configuration block with various settings for the workgroup. Documented below.
- description String
- Description of the workgroup.
- forceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- Map<String,String>
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration
WorkgroupConfiguration 
- Configuration block with various settings for the workgroup. Documented below.
- description string
- Description of the workgroup.
- forceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- {[key: string]: string}
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- configuration
WorkgroupConfiguration 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 DISABLEDorENABLED. Defaults toENABLED.
- Mapping[str, str]
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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.
- forceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- Map<String>
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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) -> Workgroupfunc 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)resources:  _:    type: aws:athena:Workgroup    get:      id: ${id}- 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
WorkgroupConfiguration 
- Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- ForceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- Dictionary<string, string>
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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_tagsconfiguration block.
- Arn string
- ARN of the workgroup
- Configuration
WorkgroupConfiguration Args 
- Configuration block with various settings for the workgroup. Documented below.
- Description string
- Description of the workgroup.
- ForceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- map[string]string
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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_tagsconfiguration block.
- arn String
- ARN of the workgroup
- configuration
WorkgroupConfiguration 
- Configuration block with various settings for the workgroup. Documented below.
- description String
- Description of the workgroup.
- forceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- Map<String,String>
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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_tagsconfiguration block.
- arn string
- ARN of the workgroup
- configuration
WorkgroupConfiguration 
- Configuration block with various settings for the workgroup. Documented below.
- description string
- Description of the workgroup.
- forceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- {[key: string]: string}
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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_tagsconfiguration block.
- arn str
- ARN of the workgroup
- configuration
WorkgroupConfiguration 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 DISABLEDorENABLED. Defaults toENABLED.
- Mapping[str, str]
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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_tagsconfiguration 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.
- forceDestroy 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 DISABLEDorENABLED. Defaults toENABLED.
- Map<String>
- Key-value map of resource tags for the workgroup. If configured with a provider default_tagsconfiguration 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_tagsconfiguration block.
Supporting Types
WorkgroupConfiguration, WorkgroupConfigurationArgs    
- BytesScanned 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.
- EnforceWorkgroup 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.
- EngineVersion WorkgroupConfiguration Engine Version 
- Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- ExecutionRole string
- Role used in a notebook session for accessing the user's resources.
- PublishCloudwatch boolMetrics Enabled 
- Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true.
- RequesterPays 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.
- ResultConfiguration WorkgroupConfiguration Result Configuration 
- Configuration block with result settings. See Result Configuration below.
- BytesScanned 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.
- EnforceWorkgroup 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.
- EngineVersion WorkgroupConfiguration Engine Version 
- Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- ExecutionRole string
- Role used in a notebook session for accessing the user's resources.
- PublishCloudwatch boolMetrics Enabled 
- Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true.
- RequesterPays 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.
- ResultConfiguration WorkgroupConfiguration Result Configuration 
- Configuration block with result settings. See Result Configuration below.
- bytesScanned 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.
- enforceWorkgroup 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.
- engineVersion WorkgroupConfiguration Engine Version 
- Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- executionRole String
- Role used in a notebook session for accessing the user's resources.
- publishCloudwatch BooleanMetrics Enabled 
- Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true.
- requesterPays 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.
- resultConfiguration WorkgroupConfiguration Result Configuration 
- Configuration block with result settings. See Result Configuration below.
- bytesScanned 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.
- enforceWorkgroup 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.
- engineVersion WorkgroupConfiguration Engine Version 
- Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- executionRole string
- Role used in a notebook session for accessing the user's resources.
- publishCloudwatch booleanMetrics Enabled 
- Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true.
- requesterPays 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.
- resultConfiguration 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.
- bytesScanned 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.
- enforceWorkgroup 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.
- engineVersion Property Map
- Configuration block for the Athena Engine Versioning. For more information, see Athena Engine Versioning. See Engine Version below.
- executionRole String
- Role used in a notebook session for accessing the user's resources.
- publishCloudwatch BooleanMetrics Enabled 
- Boolean whether Amazon CloudWatch metrics are enabled for the workgroup. Defaults to true.
- requesterPays 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.
- resultConfiguration Property Map
- Configuration block with result settings. See Result Configuration below.
WorkgroupConfigurationEngineVersion, WorkgroupConfigurationEngineVersionArgs        
- EffectiveEngine stringVersion 
- The engine version on which the query runs. If selected_engine_versionis set toAUTO, the effective engine version is chosen by Athena.
- SelectedEngine stringVersion 
- Requested engine version. Defaults to AUTO.
- EffectiveEngine stringVersion 
- The engine version on which the query runs. If selected_engine_versionis set toAUTO, the effective engine version is chosen by Athena.
- SelectedEngine stringVersion 
- Requested engine version. Defaults to AUTO.
- effectiveEngine StringVersion 
- The engine version on which the query runs. If selected_engine_versionis set toAUTO, the effective engine version is chosen by Athena.
- selectedEngine StringVersion 
- Requested engine version. Defaults to AUTO.
- effectiveEngine stringVersion 
- The engine version on which the query runs. If selected_engine_versionis set toAUTO, the effective engine version is chosen by Athena.
- selectedEngine stringVersion 
- Requested engine version. Defaults to AUTO.
- effective_engine_ strversion 
- The engine version on which the query runs. If selected_engine_versionis set toAUTO, the effective engine version is chosen by Athena.
- selected_engine_ strversion 
- Requested engine version. Defaults to AUTO.
- effectiveEngine StringVersion 
- The engine version on which the query runs. If selected_engine_versionis set toAUTO, the effective engine version is chosen by Athena.
- selectedEngine StringVersion 
- Requested engine version. Defaults to AUTO.
WorkgroupConfigurationResultConfiguration, WorkgroupConfigurationResultConfigurationArgs        
- AclConfiguration 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.
- EncryptionConfiguration WorkgroupConfiguration Result Configuration Encryption Configuration 
- Configuration block with encryption settings. See Encryption Configuration below.
- ExpectedBucket stringOwner 
- AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- OutputLocation 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.
- AclConfiguration 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.
- EncryptionConfiguration WorkgroupConfiguration Result Configuration Encryption Configuration 
- Configuration block with encryption settings. See Encryption Configuration below.
- ExpectedBucket stringOwner 
- AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- OutputLocation 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.
- aclConfiguration 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.
- encryptionConfiguration WorkgroupConfiguration Result Configuration Encryption Configuration 
- Configuration block with encryption settings. See Encryption Configuration below.
- expectedBucket StringOwner 
- AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- outputLocation 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.
- aclConfiguration 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.
- encryptionConfiguration WorkgroupConfiguration Result Configuration Encryption Configuration 
- Configuration block with encryption settings. See Encryption Configuration below.
- expectedBucket stringOwner 
- AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- outputLocation 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.
- aclConfiguration Property Map
- That an Amazon S3 canned ACL should be set to control ownership of stored query results. See ACL Configuration below.
- encryptionConfiguration Property Map
- Configuration block with encryption settings. See Encryption Configuration below.
- expectedBucket StringOwner 
- AWS account ID that you expect to be the owner of the Amazon S3 bucket.
- outputLocation 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            
- S3AclOption string
- Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL.
- S3AclOption string
- Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL.
- s3AclOption String
- Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL.
- s3AclOption 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.
- s3AclOption String
- Amazon S3 canned ACL that Athena should specify when storing query results. Valid value is BUCKET_OWNER_FULL_CONTROL.
WorkgroupConfigurationResultConfigurationEncryptionConfiguration, WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs            
- EncryptionOption 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.
- KmsKey stringArn 
- For SSE_KMSandCSE_KMS, this is the KMS key ARN.
- EncryptionOption 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.
- KmsKey stringArn 
- For SSE_KMSandCSE_KMS, this is the KMS key ARN.
- encryptionOption 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.
- kmsKey StringArn 
- For SSE_KMSandCSE_KMS, this is the KMS key ARN.
- encryptionOption 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.
- kmsKey stringArn 
- For SSE_KMSandCSE_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_KMSandCSE_KMS, this is the KMS key ARN.
- encryptionOption 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.
- kmsKey StringArn 
- For SSE_KMSandCSE_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 awsTerraform Provider.