@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.694Z") @Stability(value=Stable) public class CfnWorkGroup extends CfnResource implements IInspectable
The AWS::Athena::WorkGroup resource specifies an Amazon Athena workgroup, which contains a name, description, creation time, state, and other configuration, listed under WorkGroupConfiguration . Each workgroup enables you to isolate queries for you or your group from other queries in the same account. For more information, see CreateWorkGroup in the Amazon Athena API Reference .
Example:
// 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.*;
CfnWorkGroup cfnWorkGroup = CfnWorkGroup.Builder.create(this, "MyCfnWorkGroup")
.name("name")
// the properties below are optional
.description("description")
.recursiveDeleteOption(false)
.state("state")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.workGroupConfiguration(WorkGroupConfigurationProperty.builder()
.bytesScannedCutoffPerQuery(123)
.enforceWorkGroupConfiguration(false)
.engineVersion(EngineVersionProperty.builder()
.effectiveEngineVersion("effectiveEngineVersion")
.selectedEngineVersion("selectedEngineVersion")
.build())
.publishCloudWatchMetricsEnabled(false)
.requesterPaysEnabled(false)
.resultConfiguration(ResultConfigurationProperty.builder()
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.encryptionOption("encryptionOption")
// the properties below are optional
.kmsKey("kmsKey")
.build())
.outputLocation("outputLocation")
.build())
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnWorkGroup.Builder
A fluent builder for
CfnWorkGroup. |
static interface |
CfnWorkGroup.EncryptionConfigurationProperty
If query results are encrypted in Amazon S3, indicates the encryption option used (for example, `SSE_KMS` or `CSE_KMS` ) and key information.
|
static interface |
CfnWorkGroup.EngineVersionProperty
The Athena engine version for running queries.
|
static interface |
CfnWorkGroup.ResultConfigurationProperty
The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results.
|
static interface |
CfnWorkGroup.WorkGroupConfigurationProperty
The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnWorkGroup(software.constructs.Construct scope,
String id,
CfnWorkGroupProps props)
Create a new `AWS::Athena::WorkGroup`.
|
protected |
CfnWorkGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnWorkGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCreationTime()
The date and time the workgroup was created, as a UNIX timestamp in seconds.
|
String |
getAttrWorkGroupConfigurationEngineVersionEffectiveEngineVersion() |
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The workgroup description.
|
String |
getName()
The workgroup name.
|
Object |
getRecursiveDeleteOption()
The option to delete a workgroup and its contents even if the workgroup contains any named queries.
|
String |
getState()
The state of the workgroup: ENABLED or DISABLED.
|
TagManager |
getTags()
The tags (key-value pairs) to associate with this resource.
|
Object |
getWorkGroupConfiguration()
The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
The workgroup description.
|
void |
setName(String value)
The workgroup name.
|
void |
setRecursiveDeleteOption(Boolean value)
The option to delete a workgroup and its contents even if the workgroup contains any named queries.
|
void |
setRecursiveDeleteOption(IResolvable value)
The option to delete a workgroup and its contents even if the workgroup contains any named queries.
|
void |
setState(String value)
The state of the workgroup: ENABLED or DISABLED.
|
void |
setWorkGroupConfiguration(CfnWorkGroup.WorkGroupConfigurationProperty value)
The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified.
|
void |
setWorkGroupConfiguration(IResolvable value)
The configuration of the workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether Amazon CloudWatch Metrics are enabled for the workgroup, and the limit for the amount of bytes scanned (cutoff) per query, if it is specified.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnWorkGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnWorkGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnWorkGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnWorkGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCreationTime()
For example: 1582761016 .
@Stability(value=Stable) @NotNull public String getAttrWorkGroupConfigurationEngineVersionEffectiveEngineVersion()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getRecursiveDeleteOption()
The default is false.
@Stability(value=Stable)
public void setRecursiveDeleteOption(@Nullable
Boolean value)
The default is false.
@Stability(value=Stable)
public void setRecursiveDeleteOption(@Nullable
IResolvable value)
The default is false.
@Stability(value=Stable) @Nullable public String getState()
@Stability(value=Stable)
public void setState(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getWorkGroupConfiguration()
The EnforceWorkGroupConfiguration option determines whether workgroup settings override client-side query settings.
@Stability(value=Stable)
public void setWorkGroupConfiguration(@Nullable
CfnWorkGroup.WorkGroupConfigurationProperty value)
The EnforceWorkGroupConfiguration option determines whether workgroup settings override client-side query settings.
@Stability(value=Stable)
public void setWorkGroupConfiguration(@Nullable
IResolvable value)
The EnforceWorkGroupConfiguration option determines whether workgroup settings override client-side query settings.
Copyright © 2022. All rights reserved.