Class CfnWorkGroup
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
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() .additionalConfiguration("additionalConfiguration") .bytesScannedCutoffPerQuery(123) .customerContentEncryptionConfiguration(CustomerContentEncryptionConfigurationProperty.builder() .kmsKey("kmsKey") .build()) .enforceWorkGroupConfiguration(false) .engineVersion(EngineVersionProperty.builder() .effectiveEngineVersion("effectiveEngineVersion") .selectedEngineVersion("selectedEngineVersion") .build()) .executionRole("executionRole") .publishCloudWatchMetricsEnabled(false) .requesterPaysEnabled(false) .resultConfiguration(ResultConfigurationProperty.builder() .aclConfiguration(AclConfigurationProperty.builder() .s3AclOption("s3AclOption") .build()) .encryptionConfiguration(EncryptionConfigurationProperty.builder() .encryptionOption("encryptionOption") // the properties below are optional .kmsKey("kmsKey") .build()) .expectedBucketOwner("expectedBucketOwner") .outputLocation("outputLocation") .build()) .build()) .workGroupConfigurationUpdates(WorkGroupConfigurationUpdatesProperty.builder() .additionalConfiguration("additionalConfiguration") .bytesScannedCutoffPerQuery(123) .customerContentEncryptionConfiguration(CustomerContentEncryptionConfigurationProperty.builder() .kmsKey("kmsKey") .build()) .enforceWorkGroupConfiguration(false) .engineVersion(EngineVersionProperty.builder() .effectiveEngineVersion("effectiveEngineVersion") .selectedEngineVersion("selectedEngineVersion") .build()) .executionRole("executionRole") .publishCloudWatchMetricsEnabled(false) .removeBytesScannedCutoffPerQuery(false) .removeCustomerContentEncryptionConfiguration(false) .requesterPaysEnabled(false) .resultConfigurationUpdates(ResultConfigurationUpdatesProperty.builder() .aclConfiguration(AclConfigurationProperty.builder() .s3AclOption("s3AclOption") .build()) .encryptionConfiguration(EncryptionConfigurationProperty.builder() .encryptionOption("encryptionOption") // the properties below are optional .kmsKey("kmsKey") .build()) .expectedBucketOwner("expectedBucketOwner") .outputLocation("outputLocation") .removeAclConfiguration(false) .removeEncryptionConfiguration(false) .removeExpectedBucketOwner(false) .removeOutputLocation(false) .build()) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results.static final class
A fluent builder forCfnWorkGroup
.static interface
Specifies the customer managed KMS key that is used to encrypt the user's data stores in Athena.static interface
If query results are encrypted in Amazon S3, indicates the encryption option used (for example,SSE_KMS
orCSE_KMS
) and key information.static interface
The Athena engine version for running queries, or the PySpark engine version for running sessions.static interface
The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results.static interface
The information about the updates in the query results, such as output location and encryption configuration for the query results.static interface
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.static interface
The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnWorkGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnWorkGroup
(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkGroup
(software.constructs.Construct scope, String id, CfnWorkGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe date and time the workgroup was created, as a UNIX timestamp in seconds.Read only.Read only.The workgroup description.getName()
The workgroup name.The option to delete a workgroup and its contents even if the workgroup contains any named queries.getState()
The state of the workgroup: ENABLED or DISABLED.getTags()
Tag Manager which manages the tags for this resource.The tags (key-value pairs) to associate with this resource.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.Deprecated.this property has been deprecatedvoid
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) The workgroup description.void
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
The option to delete a workgroup and its contents even if the workgroup contains any named queries.void
The state of the workgroup: ENABLED or DISABLED.void
setTagsRaw
(List<CfnTag> value) The tags (key-value pairs) to associate with this resource.void
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
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
Deprecated.this property has been deprecatedvoid
Deprecated.this property has been deprecatedMethods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorkGroup
protected CfnWorkGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkGroup
protected CfnWorkGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkGroup
@Stability(Stable) public CfnWorkGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkGroupProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreationTime
The date and time the workgroup was created, as a UNIX timestamp in seconds.For example:
1582761016
. -
getAttrWorkGroupConfigurationEngineVersionEffectiveEngineVersion
@Stability(Stable) @NotNull public String getAttrWorkGroupConfigurationEngineVersionEffectiveEngineVersion()Read only.The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a CreateWorkGroup or UpdateWorkGroup operation, the EffectiveEngineVersion field is ignored.
-
getAttrWorkGroupConfigurationUpdatesEngineVersionEffectiveEngineVersion
@Stability(Stable) @NotNull public String getAttrWorkGroupConfigurationUpdatesEngineVersionEffectiveEngineVersion()Read only.The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a
CreateWorkGroup
orUpdateWorkGroup
operation, theEffectiveEngineVersion
field is ignored. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The workgroup name. -
setName
The workgroup name. -
getDescription
The workgroup description. -
setDescription
The workgroup description. -
getRecursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries. -
setRecursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries. -
setRecursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries. -
getState
The state of the workgroup: ENABLED or DISABLED. -
setState
The state of the workgroup: ENABLED or DISABLED. -
getTagsRaw
The tags (key-value pairs) to associate with this resource. -
setTagsRaw
The tags (key-value pairs) to associate with this resource. -
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. -
setWorkGroupConfiguration
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. -
setWorkGroupConfiguration
@Stability(Stable) public void setWorkGroupConfiguration(@Nullable 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. -
getWorkGroupConfigurationUpdates
Deprecated.this property has been deprecated(deprecated) The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified. -
setWorkGroupConfigurationUpdates
@Stability(Deprecated) @Deprecated public void setWorkGroupConfigurationUpdates(@Nullable IResolvable value) Deprecated.this property has been deprecated(deprecated) The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified. -
setWorkGroupConfigurationUpdates
@Stability(Deprecated) @Deprecated public void setWorkGroupConfigurationUpdates(@Nullable CfnWorkGroup.WorkGroupConfigurationUpdatesProperty value) Deprecated.this property has been deprecated(deprecated) The configuration information that will be updated for this workgroup, which includes the location in Amazon S3 where query results are stored, the encryption option, if any, used for query results, whether the Amazon CloudWatch Metrics are enabled for the workgroup, whether the workgroup settings override the client-side settings, and the data usage limit for the amount of bytes scanned per query, if it is specified.
-