Workgroup

class Workgroup : KotlinCustomResource

Provides an Athena Workgroup.

Example Usage

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()
.configuration(WorkgroupConfigurationArgs.builder()
.enforceWorkgroupConfiguration(true)
.publishCloudwatchMetricsEnabled(true)
.resultConfiguration(WorkgroupConfigurationResultConfigurationArgs.builder()
.outputLocation(String.format("s3://%s/output/", aws_s3_bucket.example().bucket()))
.encryptionConfiguration(WorkgroupConfigurationResultConfigurationEncryptionConfigurationArgs.builder()
.encryptionOption("SSE_KMS")
.kmsKeyArn(aws_kms_key.example().arn())
.build())
.build())
.build())
.build());
}
}

Import

Athena Workgroups can be imported using their name, e.g.,

$ pulumi import aws:athena/workgroup:Workgroup example example

Properties

Link copied to clipboard
val arn: Output<String>

ARN of the workgroup

Link copied to clipboard

Configuration block with various settings for the workgroup. Documented below.

Link copied to clipboard
val description: Output<String>?

Description of the workgroup.

Link copied to clipboard
val forceDestroy: Output<Boolean>?

Option to delete the workgroup and its contents even if the workgroup contains any named queries.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Name of the workgroup.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>?

State of the workgroup. Valid values are DISABLED or ENABLED. Defaults to ENABLED.

Link copied to clipboard
val tags: Output<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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>