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 interfaceIndicates that an Amazon S3 canned ACL should be set to control ownership of stored query results.static final classA fluent builder forCfnWorkGroup.static interfaceSpecifies the KMS key that is used to encrypt the user's data stores in Athena.static interfaceIf query results are encrypted in Amazon S3, indicates the encryption option used (for example,SSE_KMSorCSE_KMS) and key information.static interfaceThe Athena engine version for running queries, or the PySpark engine version for running sessions.static interfaceThe location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results.static interfaceThe 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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnWorkGroup(Construct scope, String id, CfnWorkGroupProps props) Create a newAWS::Athena::WorkGroup.protectedCfnWorkGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkGroup(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The workgroup description.voidThe workgroup name.voidsetRecursiveDeleteOption(Boolean value) The option to delete a workgroup and its contents even if the workgroup contains any named queries.voidThe option to delete a workgroup and its contents even if the workgroup contains any named queries.voidThe state of the workgroup: ENABLED or DISABLED.voidThe 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.voidThe 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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin 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:
getCfnPropertiesin 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
EnforceWorkGroupConfigurationoption 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
EnforceWorkGroupConfigurationoption 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
EnforceWorkGroupConfigurationoption determines whether workgroup settings override client-side query settings.
-