Class WorkGroupConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.athena.model.WorkGroupConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<WorkGroupConfiguration.Builder,WorkGroupConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class WorkGroupConfiguration extends Object implements SdkPojo, Serializable, 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 theWorkGroupConfiguration. See WorkGroupConfiguration$EnforceWorkGroupConfiguration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWorkGroupConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadditionalConfiguration()Specifies a user defined JSON string that is passed to the notebook engine.static WorkGroupConfiguration.Builderbuilder()LongbytesScannedCutoffPerQuery()The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.CustomerContentEncryptionConfigurationcustomerContentEncryptionConfiguration()Specifies the KMS key that is used to encrypt the user's data stores in Athena.BooleanenableMinimumEncryptionConfiguration()Enforces a minimal level of encryption for the workgroup for query and calculation results that are written to Amazon S3.BooleanenforceWorkGroupConfiguration()If set to "true", the settings for the workgroup override client-side settings.EngineVersionengineVersion()The engine version that all queries running on the workgroup use.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexecutionRole()The ARN of the execution role used to access user resources for Spark sessions and IAM Identity Center enabled workgroups.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IdentityCenterConfigurationidentityCenterConfiguration()Specifies whether the workgroup is IAM Identity Center supported.BooleanpublishCloudWatchMetricsEnabled()Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.QueryResultsS3AccessGrantsConfigurationqueryResultsS3AccessGrantsConfiguration()Specifies whether Amazon S3 access grants are enabled for query results.BooleanrequesterPaysEnabled()If set totrue, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries.ResultConfigurationresultConfiguration()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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends WorkGroupConfiguration.Builder>serializableBuilderClass()WorkGroupConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
resultConfiguration
public final ResultConfiguration 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
public final Boolean 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
public final Boolean 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
public final Long 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
public final Boolean 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
public final EngineVersion engineVersion()
The engine version that all queries running on the workgroup use. Queries on the
AmazonAthenaPreviewFunctionalityworkgroup run on the preview engine regardless of this setting.- Returns:
- The engine version that all queries running on the workgroup use. Queries on the
AmazonAthenaPreviewFunctionalityworkgroup run on the preview engine regardless of this setting.
-
additionalConfiguration
public final String 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
public final String 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
public final CustomerContentEncryptionConfiguration 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
public final Boolean 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
EnforceWorkGroupConfigurationsetting takes precedence over theEnableMinimumEncryptionConfigurationflag. This means that ifEnforceWorkGroupConfigurationis true, theEnableMinimumEncryptionConfigurationflag 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
EnforceWorkGroupConfigurationsetting takes precedence over theEnableMinimumEncryptionConfigurationflag. This means that ifEnforceWorkGroupConfigurationis true, theEnableMinimumEncryptionConfigurationflag is ignored, and the workgroup configuration for encryption is used.
-
identityCenterConfiguration
public final IdentityCenterConfiguration identityCenterConfiguration()
Specifies whether the workgroup is IAM Identity Center supported.
- Returns:
- Specifies whether the workgroup is IAM Identity Center supported.
-
queryResultsS3AccessGrantsConfiguration
public final QueryResultsS3AccessGrantsConfiguration 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
public WorkGroupConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<WorkGroupConfiguration.Builder,WorkGroupConfiguration>
-
builder
public static WorkGroupConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends WorkGroupConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-