Interface CfnWorkGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWorkGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:31.634Z")
@Stability(Stable)
public interface CfnWorkGroupProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnWorkGroup.
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.*;
CfnWorkGroupProps cfnWorkGroupProps = CfnWorkGroupProps.builder()
.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")
.managedQueryResultsConfiguration(ManagedQueryResultsConfigurationProperty.builder()
.enabled(false)
.encryptionConfiguration(ManagedStorageEncryptionConfigurationProperty.builder()
.kmsKey("kmsKey")
.build())
.build())
.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")
.managedQueryResultsConfiguration(ManagedQueryResultsConfigurationProperty.builder()
.enabled(false)
.encryptionConfiguration(ManagedStorageEncryptionConfigurationProperty.builder()
.kmsKey("kmsKey")
.build())
.build())
.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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWorkGroupPropsstatic final classAn implementation forCfnWorkGroupProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnWorkGroupProps.Builderbuilder()default StringThe workgroup description.getName()The workgroup name.default ObjectThe option to delete a workgroup and its contents even if the workgroup contains any named queries.default StringgetState()The state of the workgroup: ENABLED or DISABLED.getTags()The tags (key-value pairs) to associate with this resource.default ObjectThe 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.default ObjectDeprecated.this property has been deprecatedMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
The workgroup name.- See Also:
-
getDescription
The workgroup description.- See Also:
-
getRecursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries.The default is false.
Returns union: either
BooleanorIResolvable- See Also:
-
getState
The state of the workgroup: ENABLED or DISABLED.- See Also:
-
getTags
The tags (key-value pairs) to associate with this resource.- See Also:
-
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.Returns union: either
IResolvableorCfnWorkGroup.WorkGroupConfigurationProperty- See Also:
-
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.Returns union: either
IResolvableorCfnWorkGroup.WorkGroupConfigurationUpdatesProperty- See Also:
-
builder
- Returns:
- a
CfnWorkGroupProps.BuilderofCfnWorkGroupProps
-