CfnWorkGroupPropsMixin
- class aws_cdk.mixins_preview.aws_athena.mixins.CfnWorkGroupPropsMixin(props, *, strategy=None)
Bases:
MixinThe AWS::Athena::WorkGroup resource specifies an Amazon Athena workgroup, which contains a name, description, creation time, state, and other configuration, listed under
WorkGroupConfiguration.Each workgroup enables you to isolate queries for you or your group from other queries in the same account. For more information, see CreateWorkGroup in the Amazon Athena API Reference .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html
- CloudformationResource:
AWS::Athena::WorkGroup
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins cfn_work_group_props_mixin = athena_mixins.CfnWorkGroupPropsMixin(athena_mixins.CfnWorkGroupMixinProps( description="description", name="name", recursive_delete_option=False, state="state", tags=[CfnTag( key="key", value="value" )], work_group_configuration=athena_mixins.CfnWorkGroupPropsMixin.WorkGroupConfigurationProperty( additional_configuration="additionalConfiguration", bytes_scanned_cutoff_per_query=123, customer_content_encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.CustomerContentEncryptionConfigurationProperty( kms_key="kmsKey" ), enforce_work_group_configuration=False, engine_configuration=athena_mixins.CfnWorkGroupPropsMixin.EngineConfigurationProperty( additional_configs={ "additional_configs_key": "additionalConfigs" }, classifications=[athena_mixins.CfnWorkGroupPropsMixin.ClassificationProperty( name="name", properties={ "properties_key": "properties" } )], coordinator_dpu_size=123, default_executor_dpu_size=123, max_concurrent_dpus=123, spark_properties={ "spark_properties_key": "sparkProperties" } ), engine_version=athena_mixins.CfnWorkGroupPropsMixin.EngineVersionProperty( effective_engine_version="effectiveEngineVersion", selected_engine_version="selectedEngineVersion" ), execution_role="executionRole", managed_query_results_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedQueryResultsConfigurationProperty( enabled=False, encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty( kms_key="kmsKey" ) ), monitoring_configuration=athena_mixins.CfnWorkGroupPropsMixin.MonitoringConfigurationProperty( cloud_watch_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty( enabled=False, log_group="logGroup", log_stream_name_prefix="logStreamNamePrefix", log_types={ "log_types_key": ["logTypes"] } ), managed_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty( enabled=False, kms_key="kmsKey" ), s3_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty( enabled=False, kms_key="kmsKey", log_location="logLocation" ) ), publish_cloud_watch_metrics_enabled=False, requester_pays_enabled=False, result_configuration=athena_mixins.CfnWorkGroupPropsMixin.ResultConfigurationProperty( acl_configuration=athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" ), encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" ), expected_bucket_owner="expectedBucketOwner", output_location="outputLocation" ) ), work_group_configuration_updates=athena_mixins.CfnWorkGroupPropsMixin.WorkGroupConfigurationUpdatesProperty( additional_configuration="additionalConfiguration", bytes_scanned_cutoff_per_query=123, customer_content_encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.CustomerContentEncryptionConfigurationProperty( kms_key="kmsKey" ), enforce_work_group_configuration=False, engine_configuration=athena_mixins.CfnWorkGroupPropsMixin.EngineConfigurationProperty( additional_configs={ "additional_configs_key": "additionalConfigs" }, classifications=[athena_mixins.CfnWorkGroupPropsMixin.ClassificationProperty( name="name", properties={ "properties_key": "properties" } )], coordinator_dpu_size=123, default_executor_dpu_size=123, max_concurrent_dpus=123, spark_properties={ "spark_properties_key": "sparkProperties" } ), engine_version=athena_mixins.CfnWorkGroupPropsMixin.EngineVersionProperty( effective_engine_version="effectiveEngineVersion", selected_engine_version="selectedEngineVersion" ), execution_role="executionRole", managed_query_results_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedQueryResultsConfigurationProperty( enabled=False, encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty( kms_key="kmsKey" ) ), monitoring_configuration=athena_mixins.CfnWorkGroupPropsMixin.MonitoringConfigurationProperty( cloud_watch_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty( enabled=False, log_group="logGroup", log_stream_name_prefix="logStreamNamePrefix", log_types={ "log_types_key": ["logTypes"] } ), managed_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty( enabled=False, kms_key="kmsKey" ), s3_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty( enabled=False, kms_key="kmsKey", log_location="logLocation" ) ), publish_cloud_watch_metrics_enabled=False, remove_bytes_scanned_cutoff_per_query=False, remove_customer_content_encryption_configuration=False, requester_pays_enabled=False, result_configuration_updates=athena_mixins.CfnWorkGroupPropsMixin.ResultConfigurationUpdatesProperty( acl_configuration=athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" ), encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" ), expected_bucket_owner="expectedBucketOwner", output_location="outputLocation", remove_acl_configuration=False, remove_encryption_configuration=False, remove_expected_bucket_owner=False, remove_output_location=False ) ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Athena::WorkGroup.- Parameters:
props (
Union[CfnWorkGroupMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['description', 'name', 'recursiveDeleteOption', 'state', 'tags', 'workGroupConfiguration', 'workGroupConfigurationUpdates']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
AclConfigurationProperty
- class CfnWorkGroupPropsMixin.AclConfigurationProperty(*, s3_acl_option=None)
Bases:
objectIndicates that an Amazon S3 canned ACL should be set to control ownership of stored query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO.
When Athena stores query results in Amazon S3, the canned ACL is set with the
x-amz-aclrequest header. For more information about S3 Object Ownership, see Object Ownership settings in the Amazon S3 User Guide .- Parameters:
s3_acl_option (
Optional[str]) – The Amazon S3 canned ACL that Athena should specify when storing query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO. Currently the only supported canned ACL isBUCKET_OWNER_FULL_CONTROL. If a query runs in a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL specified in the workgroup’s settings is used for all queries that run in the workgroup. For more information about Amazon S3 canned ACLs, see Canned ACL in the Amazon S3 User Guide .- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins acl_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" )
Attributes
- s3_acl_option
The Amazon S3 canned ACL that Athena should specify when storing query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO.
Currently the only supported canned ACL is
BUCKET_OWNER_FULL_CONTROL. If a query runs in a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL specified in the workgroup’s settings is used for all queries that run in the workgroup. For more information about Amazon S3 canned ACLs, see Canned ACL in the Amazon S3 User Guide .
ClassificationProperty
- class CfnWorkGroupPropsMixin.ClassificationProperty(*, name=None, properties=None)
Bases:
objectA classification refers to a set of specific configurations.
- Parameters:
name (
Optional[str]) – The name of the configuration classification.properties (
Union[Mapping[str,str],IResolvable,None]) – A set of properties specified within a configuration classification.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins classification_property = athena_mixins.CfnWorkGroupPropsMixin.ClassificationProperty( name="name", properties={ "properties_key": "properties" } )
Attributes
- name
The name of the configuration classification.
- properties
A set of properties specified within a configuration classification.
CloudWatchLoggingConfigurationProperty
- class CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty(*, enabled=None, log_group=None, log_stream_name_prefix=None, log_types=None)
Bases:
objectConfiguration settings for delivering logs to Amazon CloudWatch log groups.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – Enables CloudWatch logging.log_group (
Optional[str]) – The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.log_stream_name_prefix (
Optional[str]) – Prefix for the CloudWatch log stream name.log_types (
Union[IResolvable,Mapping[str,Sequence[str]],None]) – The types of logs that you want to publish to CloudWatch.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins cloud_watch_logging_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty( enabled=False, log_group="logGroup", log_stream_name_prefix="logStreamNamePrefix", log_types={ "log_types_key": ["logTypes"] } )
Attributes
- enabled
Enables CloudWatch logging.
- log_group
The name of the log group in Amazon CloudWatch Logs where you want to publish your logs.
- log_stream_name_prefix
Prefix for the CloudWatch log stream name.
- log_types
The types of logs that you want to publish to CloudWatch.
CustomerContentEncryptionConfigurationProperty
- class CfnWorkGroupPropsMixin.CustomerContentEncryptionConfigurationProperty(*, kms_key=None)
Bases:
objectSpecifies the customer managed KMS key that is used to encrypt the user’s data stores in Athena.
When an AWS managed key is used, this value is null. This setting does not apply to Athena SQL workgroups.
- Parameters:
kms_key (
Optional[str]) – The customer managed KMS key that is used to encrypt the user’s data stores in Athena.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins customer_content_encryption_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.CustomerContentEncryptionConfigurationProperty( kms_key="kmsKey" )
Attributes
- kms_key
The customer managed KMS key that is used to encrypt the user’s data stores in Athena.
EncryptionConfigurationProperty
- class CfnWorkGroupPropsMixin.EncryptionConfigurationProperty(*, encryption_option=None, kms_key=None)
Bases:
objectIf query results are encrypted in Amazon S3, indicates the encryption option used (for example,
SSE_KMSorCSE_KMS) and key information.- Parameters:
encryption_option (
Optional[str]) – Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (SSE_S3), server-side encryption with KMS-managed keys (SSE_KMS), or client-side encryption with KMS-managed keys (CSE_KMS) is used. If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup’s setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.kms_key (
Optional[str]) – ForSSE_KMSandCSE_KMS, this is the KMS key ARN or ID.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins encryption_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" )
Attributes
- encryption_option
Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (
SSE_S3), server-side encryption with KMS-managed keys (SSE_KMS), or client-side encryption with KMS-managed keys (CSE_KMS) is used.If a query runs in a workgroup and the workgroup overrides client-side settings, then the workgroup’s setting for encryption is used. It specifies whether query results must be encrypted, for all queries that run in this workgroup.
- kms_key
For
SSE_KMSandCSE_KMS, this is the KMS key ARN or ID.
EngineConfigurationProperty
- class CfnWorkGroupPropsMixin.EngineConfigurationProperty(*, additional_configs=None, classifications=None, coordinator_dpu_size=None, default_executor_dpu_size=None, max_concurrent_dpus=None, spark_properties=None)
Bases:
objectThe engine configuration for the workgroup, which includes the minimum/maximum number of Data Processing Units (DPU) that queries should use when running in provisioned capacity.
If not specified, Athena uses default values (Default value for min is 4 and for max is Minimum of 124 and allocated DPUs).
To specify DPU values for PC queries the WG containing EngineConfiguration should have the following values: The name of the Classifications should be
athena-query-engine-properties, with the only allowed properties asmax-dpu-countandmin-dpu-count.- Parameters:
additional_configs (
Union[Mapping[str,str],IResolvable,None]) – Contains additional notebook engineMAP<string, string>parameter mappings in the form of key-value pairs. To specify an Athena notebook that the Jupyter server will download and serve, specify a value for theStartSessionRequest$NotebookVersionfield, and then add a key namedNotebookIdtoAdditionalConfigsthat has the value of the Athena notebook ID.classifications (
Union[IResolvable,Sequence[Union[IResolvable,ClassificationProperty,Dict[str,Any]]],None]) – The configuration classifications that can be specified for the engine.coordinator_dpu_size (
Union[int,float,None]) – The number of DPUs to use for the coordinator. A coordinator is a special executor that orchestrates processing work and manages other executors in a notebook session. The default is 1.default_executor_dpu_size (
Union[int,float,None]) – The default number of DPUs to use for executors. An executor is the smallest unit of compute that a notebook session can request from Athena. The default is 1.max_concurrent_dpus (
Union[int,float,None]) – The maximum number of DPUs that can run concurrently.spark_properties (
Union[Mapping[str,str],IResolvable,None]) – Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins engine_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.EngineConfigurationProperty( additional_configs={ "additional_configs_key": "additionalConfigs" }, classifications=[athena_mixins.CfnWorkGroupPropsMixin.ClassificationProperty( name="name", properties={ "properties_key": "properties" } )], coordinator_dpu_size=123, default_executor_dpu_size=123, max_concurrent_dpus=123, spark_properties={ "spark_properties_key": "sparkProperties" } )
Attributes
- additional_configs
Contains additional notebook engine
MAP<string, string>parameter mappings in the form of key-value pairs.To specify an Athena notebook that the Jupyter server will download and serve, specify a value for the
StartSessionRequest$NotebookVersionfield, and then add a key namedNotebookIdtoAdditionalConfigsthat has the value of the Athena notebook ID.
- classifications
The configuration classifications that can be specified for the engine.
- coordinator_dpu_size
The number of DPUs to use for the coordinator.
A coordinator is a special executor that orchestrates processing work and manages other executors in a notebook session. The default is 1.
- default_executor_dpu_size
The default number of DPUs to use for executors.
An executor is the smallest unit of compute that a notebook session can request from Athena. The default is 1.
- max_concurrent_dpus
The maximum number of DPUs that can run concurrently.
- spark_properties
Specifies custom jar files and Spark properties for use cases like cluster encryption, table formats, and general Spark tuning.
EngineVersionProperty
- class CfnWorkGroupPropsMixin.EngineVersionProperty(*, effective_engine_version=None, selected_engine_version=None)
Bases:
objectThe Athena engine version for running queries, or the PySpark engine version for running sessions.
- Parameters:
effective_engine_version (
Optional[str]) – Read only. The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by aCreateWorkGrouporUpdateWorkGroupoperation, theEffectiveEngineVersionfield is ignored.selected_engine_version (
Optional[str]) – The engine version requested by the user. Possible values are determined by the output ofListEngineVersions, including AUTO. The default is AUTO.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins engine_version_property = athena_mixins.CfnWorkGroupPropsMixin.EngineVersionProperty( effective_engine_version="effectiveEngineVersion", selected_engine_version="selectedEngineVersion" )
Attributes
- effective_engine_version
Read only.
The engine version on which the query runs. If the user requests a valid engine version other than Auto, the effective engine version is the same as the engine version that the user requested. If the user requests Auto, the effective engine version is chosen by Athena. When a request to update the engine version is made by a
CreateWorkGrouporUpdateWorkGroupoperation, theEffectiveEngineVersionfield is ignored.
- selected_engine_version
The engine version requested by the user.
Possible values are determined by the output of
ListEngineVersions, including AUTO. The default is AUTO.
ManagedLoggingConfigurationProperty
- class CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty(*, enabled=None, kms_key=None)
Bases:
objectConfiguration settings for delivering logs to Amazon S3 buckets.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – Enables mamanged log persistence.kms_key (
Optional[str]) – The KMS key ARN to encrypt the logs stored in managed log persistence.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins managed_logging_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty( enabled=False, kms_key="kmsKey" )
Attributes
- enabled
Enables mamanged log persistence.
- kms_key
The KMS key ARN to encrypt the logs stored in managed log persistence.
ManagedQueryResultsConfigurationProperty
- class CfnWorkGroupPropsMixin.ManagedQueryResultsConfigurationProperty(*, enabled=None, encryption_configuration=None)
Bases:
objectThe configuration for storing results in Athena owned storage, which includes whether this feature is enabled;
whether encryption configuration, if any, is used for encrypting query results.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – If set to true, allows you to store query results in Athena owned storage. If set to false, workgroup member stores query results in location specified underResultConfiguration$OutputLocation. The default is false. A workgroup cannot have theResultConfiguration$OutputLocationparameter when you set this field to true.encryption_configuration (
Union[IResolvable,ManagedStorageEncryptionConfigurationProperty,Dict[str,Any],None]) – If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins managed_query_results_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.ManagedQueryResultsConfigurationProperty( enabled=False, encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty( kms_key="kmsKey" ) )
Attributes
- enabled
If set to true, allows you to store query results in Athena owned storage.
If set to false, workgroup member stores query results in location specified under
ResultConfiguration$OutputLocation. The default is false. A workgroup cannot have theResultConfiguration$OutputLocationparameter when you set this field to true.
- encryption_configuration
If you encrypt query and calculation results in Athena owned storage, this field indicates the encryption option (for example, SSE_KMS or CSE_KMS) and key information.
ManagedStorageEncryptionConfigurationProperty
- class CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty(*, kms_key=None)
Bases:
objectIndicates the encryption configuration for Athena Managed Storage.
If not setting this field, Managed Storage will encrypt the query results with Athena’s encryption key
- Parameters:
kms_key (
Optional[str]) – For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins managed_storage_encryption_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty( kms_key="kmsKey" )
Attributes
- kms_key
For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.
MonitoringConfigurationProperty
- class CfnWorkGroupPropsMixin.MonitoringConfigurationProperty(*, cloud_watch_logging_configuration=None, managed_logging_configuration=None, s3_logging_configuration=None)
Bases:
objectContains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.
- Parameters:
cloud_watch_logging_configuration (
Union[IResolvable,CloudWatchLoggingConfigurationProperty,Dict[str,Any],None]) – Configuration settings for delivering logs to Amazon CloudWatch log groups.managed_logging_configuration (
Union[IResolvable,ManagedLoggingConfigurationProperty,Dict[str,Any],None]) – Configuration settings for managed log persistence.s3_logging_configuration (
Union[IResolvable,S3LoggingConfigurationProperty,Dict[str,Any],None]) – Configuration settings for delivering logs to Amazon S3 buckets.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins monitoring_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.MonitoringConfigurationProperty( cloud_watch_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty( enabled=False, log_group="logGroup", log_stream_name_prefix="logStreamNamePrefix", log_types={ "log_types_key": ["logTypes"] } ), managed_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty( enabled=False, kms_key="kmsKey" ), s3_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty( enabled=False, kms_key="kmsKey", log_location="logLocation" ) )
Attributes
- cloud_watch_logging_configuration
Configuration settings for delivering logs to Amazon CloudWatch log groups.
- managed_logging_configuration
Configuration settings for managed log persistence.
- s3_logging_configuration
Configuration settings for delivering logs to Amazon S3 buckets.
ResultConfigurationProperty
- class CfnWorkGroupPropsMixin.ResultConfigurationProperty(*, acl_configuration=None, encryption_configuration=None, expected_bucket_owner=None, output_location=None)
Bases:
objectThe location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query and calculation results.
These are known as “client-side settings”. If workgroup settings override client-side settings, then the query uses the workgroup settings.
- Parameters:
acl_configuration (
Union[IResolvable,AclConfigurationProperty,Dict[str,Any],None]) – Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results. Currently the only supported canned ACL isBUCKET_OWNER_FULL_CONTROL. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ACL configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. SeeEnforceWorkGroupConfiguration.encryption_configuration (
Union[IResolvable,EncryptionConfigurationProperty,Dict[str,Any],None]) – If query results are encrypted in Amazon S3, indicates the encryption option used (for example,SSE_KMSorCSE_KMS) and key information. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the encryption configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. SeeEnforceWorkGroupConfigurationand Override client-side settings .expected_bucket_owner (
Optional[str]) – The account ID that you expect to be the owner of the Amazon S3 bucket specified byResultConfiguration:OutputLocation. If set, Athena uses the value forExpectedBucketOwnerwhen it makes Amazon S3 calls to your specified output location. If theExpectedBucketOwneraccount ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error. This is a client-side setting. If workgroup settings override client-side settings, then the query uses theExpectedBucketOwnersetting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. SeeEnforceWorkGroupConfiguration.output_location (
Optional[str]) – The location in Amazon S3 where your query results are stored, such ass3://path/to/query/bucket/. To run a query, you must specify the query results location using either a client-side setting for individual queries or a location specified by the workgroup. If workgroup settings override client-side settings, then the query uses the location specified for the workgroup. If no query location is set, Athena issues an error. For more information, see Work with query results and recent queries andEnforceWorkGroupConfiguration.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins result_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.ResultConfigurationProperty( acl_configuration=athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" ), encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" ), expected_bucket_owner="expectedBucketOwner", output_location="outputLocation" )
Attributes
- acl_configuration
Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results.
Currently the only supported canned ACL is
BUCKET_OWNER_FULL_CONTROL. This is a client-side setting. If workgroup settings override client-side settings, then the query uses the ACL configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. SeeEnforceWorkGroupConfiguration.
- encryption_configuration
If query results are encrypted in Amazon S3, indicates the encryption option used (for example,
SSE_KMSorCSE_KMS) and key information.This is a client-side setting. If workgroup settings override client-side settings, then the query uses the encryption configuration that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See
EnforceWorkGroupConfigurationand Override client-side settings .
- expected_bucket_owner
The account ID that you expect to be the owner of the Amazon S3 bucket specified by
ResultConfiguration:OutputLocation.If set, Athena uses the value for
ExpectedBucketOwnerwhen it makes Amazon S3 calls to your specified output location. If theExpectedBucketOwneraccount ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error.This is a client-side setting. If workgroup settings override client-side settings, then the query uses the
ExpectedBucketOwnersetting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. SeeEnforceWorkGroupConfiguration.
- output_location
The location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/.To run a query, you must specify the query results location using either a client-side setting for individual queries or a location specified by the workgroup. If workgroup settings override client-side settings, then the query uses the location specified for the workgroup. If no query location is set, Athena issues an error. For more information, see Work with query results and recent queries and
EnforceWorkGroupConfiguration.
ResultConfigurationUpdatesProperty
- class CfnWorkGroupPropsMixin.ResultConfigurationUpdatesProperty(*, acl_configuration=None, encryption_configuration=None, expected_bucket_owner=None, output_location=None, remove_acl_configuration=None, remove_encryption_configuration=None, remove_expected_bucket_owner=None, remove_output_location=None)
Bases:
objectThe information about the updates in the query results, such as output location and encryption configuration for the query results.
- Parameters:
acl_configuration (
Union[IResolvable,AclConfigurationProperty,Dict[str,Any],None]) – The ACL configuration for the query results.encryption_configuration (
Union[IResolvable,EncryptionConfigurationProperty,Dict[str,Any],None]) – The encryption configuration for the query results.expected_bucket_owner (
Optional[str]) – The AWS account ID that you expect to be the owner of the Amazon S3 bucket specified by ` <https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-outputlocation>`_ . If set, Athena uses the value forExpectedBucketOwnerwhen it makes Amazon S3 calls to your specified output location. If theExpectedBucketOwnerAWS account ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error. If workgroup settings override client-side settings, then the query uses theExpectedBucketOwnersetting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See ` <https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-enforceworkgroupconfiguration>`_ and Workgroup Settings Override Client-Side Settings .output_location (
Optional[str]) – The location in Amazon S3 where your query results are stored, such ass3://path/to/query/bucket/. For more information, see Query Results If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup. The “workgroup settings override” is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. SeeEnforceWorkGroupConfiguration.remove_acl_configuration (
Union[bool,IResolvable,None]) –If set to
true, indicates that the previously-specified ACL configuration for queries in this workgroup should be ignored and set to null. If set tofalseor not set, and a value is present in theAclConfigurationofResultConfigurationUpdates, theAclConfigurationin the workgroup’sResultConfigurationis updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .remove_encryption_configuration (
Union[bool,IResolvable,None]) –If set to “true”, indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null. If set to “false” or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the workgroup’s ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .
remove_expected_bucket_owner (
Union[bool,IResolvable,None]) –If set to “true”, removes the AWS account ID previously specified for ` <https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-expectedbucketowner>`_ . If set to “false” or not set, and a value is present in the
ExpectedBucketOwnerinResultConfigurationUpdates(the client-side setting), theExpectedBucketOwnerin the workgroup’sResultConfigurationis updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .remove_output_location (
Union[bool,IResolvable,None]) –If set to “true”, indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null. If set to “false” or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup’s ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins result_configuration_updates_property = athena_mixins.CfnWorkGroupPropsMixin.ResultConfigurationUpdatesProperty( acl_configuration=athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" ), encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" ), expected_bucket_owner="expectedBucketOwner", output_location="outputLocation", remove_acl_configuration=False, remove_encryption_configuration=False, remove_expected_bucket_owner=False, remove_output_location=False )
Attributes
- acl_configuration
The ACL configuration for the query results.
- encryption_configuration
The encryption configuration for the query results.
- expected_bucket_owner
The AWS account ID that you expect to be the owner of the Amazon S3 bucket specified by ` <https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-outputlocation>`_ . If set, Athena uses the value for
ExpectedBucketOwnerwhen it makes Amazon S3 calls to your specified output location. If theExpectedBucketOwnerAWS account ID does not match the actual owner of the Amazon S3 bucket, the call fails with a permissions error.If workgroup settings override client-side settings, then the query uses the
ExpectedBucketOwnersetting that is specified for the workgroup, and also uses the location for storing query results specified in the workgroup. See ` <https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-enforceworkgroupconfiguration>`_ and Workgroup Settings Override Client-Side Settings .
- output_location
The location in Amazon S3 where your query results are stored, such as
s3://path/to/query/bucket/.For more information, see Query Results If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup. The “workgroup settings override” is specified in EnforceWorkGroupConfiguration (true/false) in the WorkGroupConfiguration. See
EnforceWorkGroupConfiguration.
- remove_acl_configuration
If set to
true, indicates that the previously-specified ACL configuration for queries in this workgroup should be ignored and set to null.If set to
falseor not set, and a value is present in theAclConfigurationofResultConfigurationUpdates, theAclConfigurationin the workgroup’sResultConfigurationis updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .
- remove_encryption_configuration
If set to “true”, indicates that the previously-specified encryption configuration (also known as the client-side setting) for queries in this workgroup should be ignored and set to null.
If set to “false” or not set, and a value is present in the EncryptionConfiguration in ResultConfigurationUpdates (the client-side setting), the EncryptionConfiguration in the workgroup’s ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .
- remove_expected_bucket_owner
If set to “true”, removes the AWS account ID previously specified for ` <https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-properties-athena-workgroup-resultconfiguration.html#cfn-athena-workgroup-resultconfiguration-expectedbucketowner>`_ . If set to “false” or not set, and a value is present in the
ExpectedBucketOwnerinResultConfigurationUpdates(the client-side setting), theExpectedBucketOwnerin the workgroup’sResultConfigurationis updated with the new value. For more information, see Workgroup Settings Override Client-Side Settings .
- remove_output_location
If set to “true”, indicates that the previously-specified query results location (also known as a client-side setting) for queries in this workgroup should be ignored and set to null.
If set to “false” or not set, and a value is present in the OutputLocation in ResultConfigurationUpdates (the client-side setting), the OutputLocation in the workgroup’s ResultConfiguration will be updated with the new value. For more information, see Override Client-Side Settings .
S3LoggingConfigurationProperty
- class CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty(*, enabled=None, kms_key=None, log_location=None)
Bases:
objectConfiguration settings for delivering logs to Amazon S3 buckets.
- Parameters:
enabled (
Union[bool,IResolvable,None]) – Enables S3 log delivery.kms_key (
Optional[str]) – The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.log_location (
Optional[str]) – The Amazon S3 destination URI for log publishing.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins s3_logging_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty( enabled=False, kms_key="kmsKey", log_location="logLocation" )
Attributes
- enabled
Enables S3 log delivery.
- kms_key
The KMS key ARN to encrypt the logs published to the given Amazon S3 destination.
- log_location
The Amazon S3 destination URI for log publishing.
WorkGroupConfigurationProperty
- class CfnWorkGroupPropsMixin.WorkGroupConfigurationProperty(*, additional_configuration=None, bytes_scanned_cutoff_per_query=None, customer_content_encryption_configuration=None, enforce_work_group_configuration=None, engine_configuration=None, engine_version=None, execution_role=None, managed_query_results_configuration=None, monitoring_configuration=None, publish_cloud_watch_metrics_enabled=None, requester_pays_enabled=None, result_configuration=None)
Bases:
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.
The
EnforceWorkGroupConfigurationoption determines whether workgroup settings override client-side query settings.- Parameters:
additional_configuration (
Optional[str]) – Specifies a user defined JSON string that is passed to the session engine.bytes_scanned_cutoff_per_query (
Union[int,float,None]) – The upper limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan. No default is defined. .. epigraph:: This property currently supports integer types. Support for long values is planned.customer_content_encryption_configuration (
Union[IResolvable,CustomerContentEncryptionConfigurationProperty,Dict[str,Any],None]) – 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.enforce_work_group_configuration (
Union[bool,IResolvable,None]) –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 Override client-side settings .
engine_configuration (
Union[IResolvable,EngineConfigurationProperty,Dict[str,Any],None]) – The engine configuration for running queries.engine_version (
Union[IResolvable,EngineVersionProperty,Dict[str,Any],None]) – The engine version that all queries running on the workgroup use.execution_role (
Optional[str]) – Role used to access user resources in an Athena for Apache Spark session. This property applies only to Spark-enabled workgroups in Athena.managed_query_results_configuration (
Union[IResolvable,ManagedQueryResultsConfigurationProperty,Dict[str,Any],None]) – The configuration for storing results in Athena owned storage, which includes whether this feature is enabled; whether encryption configuration, if any, is used for encrypting query results.monitoring_configuration (
Union[IResolvable,MonitoringConfigurationProperty,Dict[str,Any],None]) – Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.publish_cloud_watch_metrics_enabled (
Union[bool,IResolvable,None]) – Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.requester_pays_enabled (
Union[bool,IResolvable,None]) – If set totrue, 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 .result_configuration (
Union[IResolvable,ResultConfigurationProperty,Dict[str,Any],None]) –Specifies the location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. For more information, see Work with query results and recent queries .
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins work_group_configuration_property = athena_mixins.CfnWorkGroupPropsMixin.WorkGroupConfigurationProperty( additional_configuration="additionalConfiguration", bytes_scanned_cutoff_per_query=123, customer_content_encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.CustomerContentEncryptionConfigurationProperty( kms_key="kmsKey" ), enforce_work_group_configuration=False, engine_configuration=athena_mixins.CfnWorkGroupPropsMixin.EngineConfigurationProperty( additional_configs={ "additional_configs_key": "additionalConfigs" }, classifications=[athena_mixins.CfnWorkGroupPropsMixin.ClassificationProperty( name="name", properties={ "properties_key": "properties" } )], coordinator_dpu_size=123, default_executor_dpu_size=123, max_concurrent_dpus=123, spark_properties={ "spark_properties_key": "sparkProperties" } ), engine_version=athena_mixins.CfnWorkGroupPropsMixin.EngineVersionProperty( effective_engine_version="effectiveEngineVersion", selected_engine_version="selectedEngineVersion" ), execution_role="executionRole", managed_query_results_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedQueryResultsConfigurationProperty( enabled=False, encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty( kms_key="kmsKey" ) ), monitoring_configuration=athena_mixins.CfnWorkGroupPropsMixin.MonitoringConfigurationProperty( cloud_watch_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty( enabled=False, log_group="logGroup", log_stream_name_prefix="logStreamNamePrefix", log_types={ "log_types_key": ["logTypes"] } ), managed_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty( enabled=False, kms_key="kmsKey" ), s3_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty( enabled=False, kms_key="kmsKey", log_location="logLocation" ) ), publish_cloud_watch_metrics_enabled=False, requester_pays_enabled=False, result_configuration=athena_mixins.CfnWorkGroupPropsMixin.ResultConfigurationProperty( acl_configuration=athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" ), encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" ), expected_bucket_owner="expectedBucketOwner", output_location="outputLocation" ) )
Attributes
- additional_configuration
Specifies a user defined JSON string that is passed to the session engine.
- bytes_scanned_cutoff_per_query
The upper limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.
No default is defined. .. epigraph:
This property currently supports integer types. Support for long values is planned.
- customer_content_encryption_configuration
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.
- enforce_work_group_configuration
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 Override client-side settings .
- engine_configuration
The engine configuration for running queries.
- engine_version
The engine version that all queries running on the workgroup use.
- execution_role
Role used to access user resources in an Athena for Apache Spark session.
This property applies only to Spark-enabled workgroups in Athena.
- managed_query_results_configuration
The configuration for storing results in Athena owned storage, which includes whether this feature is enabled;
whether encryption configuration, if any, is used for encrypting query results.
- monitoring_configuration
Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.
- publish_cloud_watch_metrics_enabled
Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
- requester_pays_enabled
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 isfalse. For more information about Requester Pays buckets, see Requester Pays Buckets in the Amazon Simple Storage Service Developer Guide .
- result_configuration
Specifies the location in Amazon S3 where query results are stored and the encryption option, if any, used for query results.
For more information, see Work with query results and recent queries .
WorkGroupConfigurationUpdatesProperty
- class CfnWorkGroupPropsMixin.WorkGroupConfigurationUpdatesProperty(*, additional_configuration=None, bytes_scanned_cutoff_per_query=None, customer_content_encryption_configuration=None, enforce_work_group_configuration=None, engine_configuration=None, engine_version=None, execution_role=None, managed_query_results_configuration=None, monitoring_configuration=None, publish_cloud_watch_metrics_enabled=None, remove_bytes_scanned_cutoff_per_query=None, remove_customer_content_encryption_configuration=None, requester_pays_enabled=None, result_configuration_updates=None)
Bases:
objectThe 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.
- Parameters:
additional_configuration (
Optional[str]) – Additional Configuration that are passed to Athena Spark Calculations running in this workgroup.bytes_scanned_cutoff_per_query (
Union[int,float,None]) – The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.customer_content_encryption_configuration (
Union[IResolvable,CustomerContentEncryptionConfigurationProperty,Dict[str,Any],None]) – Indicates the KMS key for encrypting notebook content.enforce_work_group_configuration (
Union[bool,IResolvable,None]) – If set to “true”, the settings for the workgroup override client-side settings. If set to “false”, client-side settings are usedengine_configuration (
Union[IResolvable,EngineConfigurationProperty,Dict[str,Any],None]) – The engine configuration for running queries.engine_version (
Union[IResolvable,EngineVersionProperty,Dict[str,Any],None]) – The Athena engine version for running queries.execution_role (
Optional[str]) – The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups. This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.managed_query_results_configuration (
Union[IResolvable,ManagedQueryResultsConfigurationProperty,Dict[str,Any],None]) – The configuration for the managed query results and encryption option. ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same timemonitoring_configuration (
Union[IResolvable,MonitoringConfigurationProperty,Dict[str,Any],None]) – Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.publish_cloud_watch_metrics_enabled (
Union[bool,IResolvable,None]) – Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.remove_bytes_scanned_cutoff_per_query (
Union[bool,IResolvable,None]) – Indicates that the data usage control limit per query is removed.remove_customer_content_encryption_configuration (
Union[bool,IResolvable,None])requester_pays_enabled (
Union[bool,IResolvable,None]) – 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.result_configuration_updates (
Union[IResolvable,ResultConfigurationUpdatesProperty,Dict[str,Any],None]) – The result configuration information about the queries in this workgroup that will be updated. Includes the updated results location and an updated option for encrypting query results.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_athena import mixins as athena_mixins work_group_configuration_updates_property = athena_mixins.CfnWorkGroupPropsMixin.WorkGroupConfigurationUpdatesProperty( additional_configuration="additionalConfiguration", bytes_scanned_cutoff_per_query=123, customer_content_encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.CustomerContentEncryptionConfigurationProperty( kms_key="kmsKey" ), enforce_work_group_configuration=False, engine_configuration=athena_mixins.CfnWorkGroupPropsMixin.EngineConfigurationProperty( additional_configs={ "additional_configs_key": "additionalConfigs" }, classifications=[athena_mixins.CfnWorkGroupPropsMixin.ClassificationProperty( name="name", properties={ "properties_key": "properties" } )], coordinator_dpu_size=123, default_executor_dpu_size=123, max_concurrent_dpus=123, spark_properties={ "spark_properties_key": "sparkProperties" } ), engine_version=athena_mixins.CfnWorkGroupPropsMixin.EngineVersionProperty( effective_engine_version="effectiveEngineVersion", selected_engine_version="selectedEngineVersion" ), execution_role="executionRole", managed_query_results_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedQueryResultsConfigurationProperty( enabled=False, encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedStorageEncryptionConfigurationProperty( kms_key="kmsKey" ) ), monitoring_configuration=athena_mixins.CfnWorkGroupPropsMixin.MonitoringConfigurationProperty( cloud_watch_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.CloudWatchLoggingConfigurationProperty( enabled=False, log_group="logGroup", log_stream_name_prefix="logStreamNamePrefix", log_types={ "log_types_key": ["logTypes"] } ), managed_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.ManagedLoggingConfigurationProperty( enabled=False, kms_key="kmsKey" ), s3_logging_configuration=athena_mixins.CfnWorkGroupPropsMixin.S3LoggingConfigurationProperty( enabled=False, kms_key="kmsKey", log_location="logLocation" ) ), publish_cloud_watch_metrics_enabled=False, remove_bytes_scanned_cutoff_per_query=False, remove_customer_content_encryption_configuration=False, requester_pays_enabled=False, result_configuration_updates=athena_mixins.CfnWorkGroupPropsMixin.ResultConfigurationUpdatesProperty( acl_configuration=athena_mixins.CfnWorkGroupPropsMixin.AclConfigurationProperty( s3_acl_option="s3AclOption" ), encryption_configuration=athena_mixins.CfnWorkGroupPropsMixin.EncryptionConfigurationProperty( encryption_option="encryptionOption", kms_key="kmsKey" ), expected_bucket_owner="expectedBucketOwner", output_location="outputLocation", remove_acl_configuration=False, remove_encryption_configuration=False, remove_expected_bucket_owner=False, remove_output_location=False ) )
Attributes
- additional_configuration
Additional Configuration that are passed to Athena Spark Calculations running in this workgroup.
- bytes_scanned_cutoff_per_query
The upper data usage limit (cutoff) for the amount of bytes a single query in a workgroup is allowed to scan.
- customer_content_encryption_configuration
Indicates the KMS key for encrypting notebook content.
- enforce_work_group_configuration
If set to “true”, the settings for the workgroup override client-side settings.
If set to “false”, client-side settings are used
- engine_configuration
The engine configuration for running queries.
- engine_version
The Athena engine version for running queries.
- execution_role
The ARN of the execution role used to access user resources for Spark sessions and Identity Center enabled workgroups.
This property applies only to Spark enabled workgroups and Identity Center enabled workgroups.
- managed_query_results_configuration
The configuration for the managed query results and encryption option.
ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
- monitoring_configuration
Contains the configuration settings for managed log persistence, delivering logs to Amazon S3 buckets, Amazon CloudWatch log groups etc.
- publish_cloud_watch_metrics_enabled
Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
- remove_bytes_scanned_cutoff_per_query
Indicates that the data usage control limit per query is removed.
- remove_customer_content_encryption_configuration
-
- Type:
see
- requester_pays_enabled
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.
- result_configuration_updates
The result configuration information about the queries in this workgroup that will be updated.
Includes the updated results location and an updated option for encrypting query results.