Struct aws_sdk_athena::model::work_group_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for WorkGroupConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn result_configuration(self, input: ResultConfiguration) -> Self
pub fn result_configuration(self, input: ResultConfiguration) -> Self
The configuration for the workgroup, which includes the location in Amazon S3 where query results are stored and the encryption option, if any, used for query 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. For more information, see Query Results.
sourcepub fn set_result_configuration(self, input: Option<ResultConfiguration>) -> Self
pub fn set_result_configuration(self, input: Option<ResultConfiguration>) -> Self
The configuration for the workgroup, which includes the location in Amazon S3 where query results are stored and the encryption option, if any, used for query 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. For more information, see Query Results.
sourcepub fn enforce_work_group_configuration(self, input: bool) -> Self
pub fn enforce_work_group_configuration(self, input: bool) -> Self
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.
sourcepub fn set_enforce_work_group_configuration(self, input: Option<bool>) -> Self
pub fn set_enforce_work_group_configuration(self, input: Option<bool>) -> Self
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.
sourcepub fn publish_cloud_watch_metrics_enabled(self, input: bool) -> Self
pub fn publish_cloud_watch_metrics_enabled(self, input: bool) -> Self
Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
sourcepub fn set_publish_cloud_watch_metrics_enabled(self, input: Option<bool>) -> Self
pub fn set_publish_cloud_watch_metrics_enabled(self, input: Option<bool>) -> Self
Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
sourcepub fn bytes_scanned_cutoff_per_query(self, input: i64) -> Self
pub fn bytes_scanned_cutoff_per_query(self, input: i64) -> Self
The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.
sourcepub fn set_bytes_scanned_cutoff_per_query(self, input: Option<i64>) -> Self
pub fn set_bytes_scanned_cutoff_per_query(self, input: Option<i64>) -> Self
The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.
sourcepub fn requester_pays_enabled(self, input: bool) -> Self
pub fn requester_pays_enabled(self, input: bool) -> Self
If set to true
, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false
, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false
. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
sourcepub fn set_requester_pays_enabled(self, input: Option<bool>) -> Self
pub fn set_requester_pays_enabled(self, input: Option<bool>) -> Self
If set to true
, allows members assigned to a workgroup to reference Amazon S3 Requester Pays buckets in queries. If set to false
, workgroup members cannot query data from Requester Pays buckets, and queries that retrieve data from Requester Pays buckets cause an error. The default is false
. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide.
sourcepub fn engine_version(self, input: EngineVersion) -> Self
pub fn engine_version(self, input: EngineVersion) -> Self
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.
sourcepub fn set_engine_version(self, input: Option<EngineVersion>) -> Self
pub fn set_engine_version(self, input: Option<EngineVersion>) -> Self
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.
sourcepub fn additional_configuration(self, input: impl Into<String>) -> Self
pub fn additional_configuration(self, input: impl Into<String>) -> Self
Specifies a user defined JSON string that is passed to the notebook engine.
sourcepub fn set_additional_configuration(self, input: Option<String>) -> Self
pub fn set_additional_configuration(self, input: Option<String>) -> Self
Specifies a user defined JSON string that is passed to the notebook engine.
sourcepub fn execution_role(self, input: impl Into<String>) -> Self
pub fn execution_role(self, input: impl Into<String>) -> Self
Role used in a notebook session for accessing the user's resources.
sourcepub fn set_execution_role(self, input: Option<String>) -> Self
pub fn set_execution_role(self, input: Option<String>) -> Self
Role used in a notebook session for accessing the user's resources.
sourcepub fn customer_content_encryption_configuration(
self,
input: CustomerContentEncryptionConfiguration
) -> Self
pub fn customer_content_encryption_configuration( self, input: CustomerContentEncryptionConfiguration ) -> Self
Specifies the KMS key that is used to encrypt the user's data stores in Athena.
sourcepub fn set_customer_content_encryption_configuration(
self,
input: Option<CustomerContentEncryptionConfiguration>
) -> Self
pub fn set_customer_content_encryption_configuration( self, input: Option<CustomerContentEncryptionConfiguration> ) -> Self
Specifies the KMS key that is used to encrypt the user's data stores in Athena.
sourcepub fn build(self) -> WorkGroupConfiguration
pub fn build(self) -> WorkGroupConfiguration
Consumes the builder and constructs a WorkGroupConfiguration
.