Class CfnWorkGroup.Builder
java.lang.Object
software.amazon.awscdk.services.athena.CfnWorkGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkGroup>
- Enclosing class:
- CfnWorkGroup
@Stability(Stable)
public static final class CfnWorkGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkGroup>
A fluent builder for
CfnWorkGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnWorkGroup.Builder
description
(String description) The workgroup description.The workgroup name.recursiveDeleteOption
(Boolean recursiveDeleteOption) The option to delete a workgroup and its contents even if the workgroup contains any named queries.recursiveDeleteOption
(IResolvable recursiveDeleteOption) The option to delete a workgroup and its contents even if the workgroup contains any named queries.The state of the workgroup: ENABLED or DISABLED.The tags (key-value pairs) to associate with this resource.workGroupConfiguration
(IResolvable workGroupConfiguration) 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.workGroupConfiguration
(CfnWorkGroup.WorkGroupConfigurationProperty workGroupConfiguration) 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.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnWorkGroup.Builder
.
-
name
The workgroup name.- Parameters:
name
- The workgroup name. This parameter is required.- Returns:
this
-
description
The workgroup description.- Parameters:
description
- The workgroup description. This parameter is required.- Returns:
this
-
recursiveDeleteOption
The option to delete a workgroup and its contents even if the workgroup contains any named queries.The default is false.
- Parameters:
recursiveDeleteOption
- The option to delete a workgroup and its contents even if the workgroup contains any named queries. This parameter is required.- Returns:
this
-
recursiveDeleteOption
@Stability(Stable) public CfnWorkGroup.Builder recursiveDeleteOption(IResolvable recursiveDeleteOption) The option to delete a workgroup and its contents even if the workgroup contains any named queries.The default is false.
- Parameters:
recursiveDeleteOption
- The option to delete a workgroup and its contents even if the workgroup contains any named queries. This parameter is required.- Returns:
this
-
state
The state of the workgroup: ENABLED or DISABLED.- Parameters:
state
- The state of the workgroup: ENABLED or DISABLED. This parameter is required.- Returns:
this
-
tags
The tags (key-value pairs) to associate with this resource.- Parameters:
tags
- The tags (key-value pairs) to associate with this resource. This parameter is required.- Returns:
this
-
workGroupConfiguration
@Stability(Stable) public CfnWorkGroup.Builder workGroupConfiguration(IResolvable workGroupConfiguration) 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.- Parameters:
workGroupConfiguration
- 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. This parameter is required.- Returns:
this
-
workGroupConfiguration
@Stability(Stable) public CfnWorkGroup.Builder workGroupConfiguration(CfnWorkGroup.WorkGroupConfigurationProperty workGroupConfiguration) 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.- Parameters:
workGroupConfiguration
- 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. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkGroup>
- Returns:
- a newly built instance of
CfnWorkGroup
.
-