Class CfnWorkGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Athena::WorkGroup
.
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() .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()) .build();
-
Nested Class Summary
Nested ClassesModifier 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 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 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.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnWorkGroup
(Construct scope, String id, CfnWorkGroupProps props) Create a newAWS::Athena::WorkGroup
.protected
CfnWorkGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnWorkGroup
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe date and time the workgroup was created, as a UNIX timestamp in seconds.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()
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.void
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
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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 Construct scope, @NotNull String id, @NotNull CfnWorkGroupProps props) Create a newAWS::Athena::WorkGroup
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
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() -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
The tags (key-value pairs) to associate with 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.The default is false.
-
setRecursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries.The default is false.
-
setRecursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries.The default is false.
-
getState
The state of the workgroup: ENABLED or DISABLED. -
setState
The state of the workgroup: ENABLED or DISABLED. -
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.The
EnforceWorkGroupConfiguration
option determines whether workgroup settings override client-side query settings. -
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.The
EnforceWorkGroupConfiguration
option determines whether workgroup settings override client-side query settings. -
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.The
EnforceWorkGroupConfiguration
option determines whether workgroup settings override client-side query settings.
-