Class WorkGroupConfiguration
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<WorkGroupConfiguration.Builder,
WorkGroupConfiguration>
The configuration of the workgroup, which includes the location in Amazon S3 where query and calculation results are
stored, the encryption option, if any, used for query and calculation results, whether the Amazon CloudWatch Metrics
are enabled for the workgroup and whether workgroup settings override query settings, and the data usage limits for
the amount of data scanned per query or per workgroup. The workgroup settings override is specified in
EnforceWorkGroupConfiguration
(true/false) in the WorkGroupConfiguration
. See
WorkGroupConfiguration$EnforceWorkGroupConfiguration.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Specifies a user defined JSON string that is passed to the notebook engine.builder()
final Long
The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.Specifies the KMS key that is used to encrypt the user's data stores in Athena.final Boolean
Enforces a minimal level of encryption for the workgroup for query and calculation results that are written to Amazon S3.final Boolean
If set to "true", the settings for the workgroup override client-side settings.final EngineVersion
The engine version that all queries running on the workgroup use.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
Specifies whether the workgroup is IAM Identity Center supported.final Boolean
Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.Specifies whether Amazon S3 access grants are enabled for query results.final Boolean
If set totrue
, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries.final ResultConfiguration
The configuration for the workgroup, which includes 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 Class
<? extends WorkGroupConfiguration.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
resultConfiguration
The configuration for the workgroup, which includes the location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results. To run the query, you must specify the query results location using one of the ways: either in the workgroup using this setting, or for individual queries (client-side), using ResultConfiguration$OutputLocation. If none of them is set, Athena issues an error that no output location is provided.
- Returns:
- The configuration for the workgroup, which includes the location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results. To run the query, you must specify the query results location using one of the ways: either in the workgroup using this setting, or for individual queries (client-side), using ResultConfiguration$OutputLocation. If none of them is set, Athena issues an error that no output location is provided.
-
enforceWorkGroupConfiguration
If set to "true", the settings for the workgroup override client-side settings. If set to "false", client-side settings are used. For more information, see Workgroup Settings Override Client-Side Settings.
- Returns:
- If set to "true", the settings for the workgroup override client-side settings. If set to "false", client-side settings are used. For more information, see Workgroup Settings Override Client-Side Settings.
-
publishCloudWatchMetricsEnabled
Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
- Returns:
- Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
-
bytesScannedCutoffPerQuery
The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.
- Returns:
- The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.
-
requesterPaysEnabled
If set to
true
, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set tofalse
, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default isfalse
. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.- Returns:
- If set to
true
, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set tofalse
, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default isfalse
. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
-
engineVersion
The engine version that all queries running on the workgroup use. Queries on the
AmazonAthenaPreviewFunctionality
workgroup run on the preview engine regardless of this setting.- Returns:
- The engine version that all queries running on the workgroup use. Queries on the
AmazonAthenaPreviewFunctionality
workgroup run on the preview engine regardless of this setting.
-
additionalConfiguration
Specifies a user defined JSON string that is passed to the notebook engine.
- Returns:
- Specifies a user defined JSON string that is passed to the notebook engine.
-
executionRole
The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and IAM Identity Center enabled workgroups. The property is required for IAM Identity Center enabled workgroups.
- Returns:
- The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and IAM Identity Center enabled workgroups. The property is required for IAM Identity Center enabled workgroups.
-
customerContentEncryptionConfiguration
Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.
- Returns:
- Specifies the KMS key that is used to encrypt the user's data stores in Athena. This setting does not apply to Athena SQL workgroups.
-
enableMinimumEncryptionConfiguration
Enforces a minimal level of encryption for the workgroup for query and calculation results that are written to Amazon S3. When enabled, workgroup users can set encryption only to the minimum level set by the administrator or higher when they submit queries.
The
EnforceWorkGroupConfiguration
setting takes precedence over theEnableMinimumEncryptionConfiguration
flag. This means that ifEnforceWorkGroupConfiguration
is true, theEnableMinimumEncryptionConfiguration
flag is ignored, and the workgroup configuration for encryption is used.- Returns:
- Enforces a minimal level of encryption for the workgroup for query and calculation results that are
written to Amazon S3. When enabled, workgroup users can set encryption only to the minimum level set by
the administrator or higher when they submit queries.
The
EnforceWorkGroupConfiguration
setting takes precedence over theEnableMinimumEncryptionConfiguration
flag. This means that ifEnforceWorkGroupConfiguration
is true, theEnableMinimumEncryptionConfiguration
flag is ignored, and the workgroup configuration for encryption is used.
-
identityCenterConfiguration
Specifies whether the workgroup is IAM Identity Center supported.
- Returns:
- Specifies whether the workgroup is IAM Identity Center supported.
-
queryResultsS3AccessGrantsConfiguration
Specifies whether Amazon S3 access grants are enabled for query results.
- Returns:
- Specifies whether Amazon S3 access grants are enabled for query results.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<WorkGroupConfiguration.Builder,
WorkGroupConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-