aws-cdk-lib 2.200.1__py3-none-any.whl → 2.201.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +105 -13
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.200.1.jsii.tgz → aws-cdk-lib@2.201.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +2 -3
- aws_cdk/aws_amplify/__init__.py +3 -3
- aws_cdk/aws_apigateway/__init__.py +21 -17
- aws_cdk/aws_apigatewayv2/__init__.py +87 -45
- aws_cdk/aws_appconfig/__init__.py +38 -1
- aws_cdk/aws_appsync/__init__.py +10 -10
- aws_cdk/aws_athena/__init__.py +226 -0
- aws_cdk/aws_autoscaling/__init__.py +38 -37
- aws_cdk/aws_bedrock/__init__.py +5108 -1571
- aws_cdk/aws_cloudfront/__init__.py +8 -0
- aws_cdk/aws_cloudtrail/__init__.py +178 -0
- aws_cdk/aws_cloudwatch/__init__.py +7 -3
- aws_cdk/aws_codepipeline_actions/__init__.py +746 -0
- aws_cdk/aws_connect/__init__.py +5 -5
- aws_cdk/aws_customerprofiles/__init__.py +377 -8
- aws_cdk/aws_datasync/__init__.py +189 -160
- aws_cdk/aws_datazone/__init__.py +512 -170
- aws_cdk/aws_deadline/__init__.py +32 -4
- aws_cdk/aws_dsql/__init__.py +150 -10
- aws_cdk/aws_ec2/__init__.py +793 -56
- aws_cdk/aws_ecs/__init__.py +94 -11
- aws_cdk/aws_efs/__init__.py +92 -12
- aws_cdk/aws_eks/__init__.py +166 -19
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
- aws_cdk/aws_emr/__init__.py +10 -4
- aws_cdk/aws_entityresolution/__init__.py +25 -10
- aws_cdk/aws_evs/__init__.py +2204 -0
- aws_cdk/aws_fsx/__init__.py +7 -7
- aws_cdk/aws_lambda/__init__.py +409 -32
- aws_cdk/aws_lightsail/__init__.py +17 -13
- aws_cdk/aws_logs/__init__.py +1 -0
- aws_cdk/aws_networkfirewall/__init__.py +562 -0
- aws_cdk/aws_opensearchservice/__init__.py +3 -3
- aws_cdk/aws_opsworkscm/__init__.py +9 -43
- aws_cdk/aws_rds/__init__.py +284 -87
- aws_cdk/aws_s3/__init__.py +23 -15
- aws_cdk/aws_sagemaker/__init__.py +223 -3
- aws_cdk/aws_securityhub/__init__.py +18 -34
- aws_cdk/aws_ssm/__init__.py +83 -1
- aws_cdk/aws_stepfunctions/__init__.py +235 -45
- aws_cdk/aws_synthetics/__init__.py +74 -0
- aws_cdk/aws_transfer/__init__.py +3 -3
- aws_cdk/aws_verifiedpermissions/__init__.py +17 -6
- aws_cdk/aws_wafv2/__init__.py +39 -2
- {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/RECORD +53 -52
- {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.200.1.dist-info → aws_cdk_lib-2.201.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_athena/__init__.py
CHANGED
|
@@ -1569,6 +1569,12 @@ class CfnWorkGroup(
|
|
|
1569
1569
|
selected_engine_version="selectedEngineVersion"
|
|
1570
1570
|
),
|
|
1571
1571
|
execution_role="executionRole",
|
|
1572
|
+
managed_query_results_configuration=athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
1573
|
+
enabled=False,
|
|
1574
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
1575
|
+
kms_key="kmsKey"
|
|
1576
|
+
)
|
|
1577
|
+
),
|
|
1572
1578
|
publish_cloud_watch_metrics_enabled=False,
|
|
1573
1579
|
requester_pays_enabled=False,
|
|
1574
1580
|
result_configuration=athena.CfnWorkGroup.ResultConfigurationProperty(
|
|
@@ -1597,6 +1603,12 @@ class CfnWorkGroup(
|
|
|
1597
1603
|
selected_engine_version="selectedEngineVersion"
|
|
1598
1604
|
),
|
|
1599
1605
|
execution_role="executionRole",
|
|
1606
|
+
managed_query_results_configuration=athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
1607
|
+
enabled=False,
|
|
1608
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
1609
|
+
kms_key="kmsKey"
|
|
1610
|
+
)
|
|
1611
|
+
),
|
|
1600
1612
|
publish_cloud_watch_metrics_enabled=False,
|
|
1601
1613
|
remove_bytes_scanned_cutoff_per_query=False,
|
|
1602
1614
|
remove_customer_content_encryption_configuration=False,
|
|
@@ -2113,6 +2125,141 @@ class CfnWorkGroup(
|
|
|
2113
2125
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
2114
2126
|
)
|
|
2115
2127
|
|
|
2128
|
+
@jsii.data_type(
|
|
2129
|
+
jsii_type="aws-cdk-lib.aws_athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty",
|
|
2130
|
+
jsii_struct_bases=[],
|
|
2131
|
+
name_mapping={
|
|
2132
|
+
"enabled": "enabled",
|
|
2133
|
+
"encryption_configuration": "encryptionConfiguration",
|
|
2134
|
+
},
|
|
2135
|
+
)
|
|
2136
|
+
class ManagedQueryResultsConfigurationProperty:
|
|
2137
|
+
def __init__(
|
|
2138
|
+
self,
|
|
2139
|
+
*,
|
|
2140
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2141
|
+
encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2142
|
+
) -> None:
|
|
2143
|
+
'''The configuration for the managed query results and encryption option.
|
|
2144
|
+
|
|
2145
|
+
ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
|
|
2146
|
+
|
|
2147
|
+
:param enabled:
|
|
2148
|
+
:param encryption_configuration: Indicates the encryption configuration for Athena Managed Storage. If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key
|
|
2149
|
+
|
|
2150
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedqueryresultsconfiguration.html
|
|
2151
|
+
:exampleMetadata: fixture=_generated
|
|
2152
|
+
|
|
2153
|
+
Example::
|
|
2154
|
+
|
|
2155
|
+
# The code below shows an example of how to instantiate this type.
|
|
2156
|
+
# The values are placeholders you should change.
|
|
2157
|
+
from aws_cdk import aws_athena as athena
|
|
2158
|
+
|
|
2159
|
+
managed_query_results_configuration_property = athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
2160
|
+
enabled=False,
|
|
2161
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
2162
|
+
kms_key="kmsKey"
|
|
2163
|
+
)
|
|
2164
|
+
)
|
|
2165
|
+
'''
|
|
2166
|
+
if __debug__:
|
|
2167
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f6c4d2e9be468cb69e158be7cc0f67bd537760da2f65bdfea130a3adceb65198)
|
|
2168
|
+
check_type(argname="argument enabled", value=enabled, expected_type=type_hints["enabled"])
|
|
2169
|
+
check_type(argname="argument encryption_configuration", value=encryption_configuration, expected_type=type_hints["encryption_configuration"])
|
|
2170
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2171
|
+
if enabled is not None:
|
|
2172
|
+
self._values["enabled"] = enabled
|
|
2173
|
+
if encryption_configuration is not None:
|
|
2174
|
+
self._values["encryption_configuration"] = encryption_configuration
|
|
2175
|
+
|
|
2176
|
+
@builtins.property
|
|
2177
|
+
def enabled(
|
|
2178
|
+
self,
|
|
2179
|
+
) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
|
|
2180
|
+
'''
|
|
2181
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedqueryresultsconfiguration.html#cfn-athena-workgroup-managedqueryresultsconfiguration-enabled
|
|
2182
|
+
'''
|
|
2183
|
+
result = self._values.get("enabled")
|
|
2184
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
|
|
2185
|
+
|
|
2186
|
+
@builtins.property
|
|
2187
|
+
def encryption_configuration(
|
|
2188
|
+
self,
|
|
2189
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty"]]:
|
|
2190
|
+
'''Indicates the encryption configuration for Athena Managed Storage.
|
|
2191
|
+
|
|
2192
|
+
If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key
|
|
2193
|
+
|
|
2194
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedqueryresultsconfiguration.html#cfn-athena-workgroup-managedqueryresultsconfiguration-encryptionconfiguration
|
|
2195
|
+
'''
|
|
2196
|
+
result = self._values.get("encryption_configuration")
|
|
2197
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty"]], result)
|
|
2198
|
+
|
|
2199
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2200
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2201
|
+
|
|
2202
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2203
|
+
return not (rhs == self)
|
|
2204
|
+
|
|
2205
|
+
def __repr__(self) -> str:
|
|
2206
|
+
return "ManagedQueryResultsConfigurationProperty(%s)" % ", ".join(
|
|
2207
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2208
|
+
)
|
|
2209
|
+
|
|
2210
|
+
@jsii.data_type(
|
|
2211
|
+
jsii_type="aws-cdk-lib.aws_athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty",
|
|
2212
|
+
jsii_struct_bases=[],
|
|
2213
|
+
name_mapping={"kms_key": "kmsKey"},
|
|
2214
|
+
)
|
|
2215
|
+
class ManagedStorageEncryptionConfigurationProperty:
|
|
2216
|
+
def __init__(self, *, kms_key: typing.Optional[builtins.str] = None) -> None:
|
|
2217
|
+
'''Indicates the encryption configuration for Athena Managed Storage.
|
|
2218
|
+
|
|
2219
|
+
If not setting this field, Managed Storage will encrypt the query results with Athena's encryption key
|
|
2220
|
+
|
|
2221
|
+
:param kms_key: For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.
|
|
2222
|
+
|
|
2223
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedstorageencryptionconfiguration.html
|
|
2224
|
+
:exampleMetadata: fixture=_generated
|
|
2225
|
+
|
|
2226
|
+
Example::
|
|
2227
|
+
|
|
2228
|
+
# The code below shows an example of how to instantiate this type.
|
|
2229
|
+
# The values are placeholders you should change.
|
|
2230
|
+
from aws_cdk import aws_athena as athena
|
|
2231
|
+
|
|
2232
|
+
managed_storage_encryption_configuration_property = athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
2233
|
+
kms_key="kmsKey"
|
|
2234
|
+
)
|
|
2235
|
+
'''
|
|
2236
|
+
if __debug__:
|
|
2237
|
+
type_hints = typing.get_type_hints(_typecheckingstub__53549459074bb1d23e4ee2a6fd045c500008070dfc2015833edc260380222a02)
|
|
2238
|
+
check_type(argname="argument kms_key", value=kms_key, expected_type=type_hints["kms_key"])
|
|
2239
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
2240
|
+
if kms_key is not None:
|
|
2241
|
+
self._values["kms_key"] = kms_key
|
|
2242
|
+
|
|
2243
|
+
@builtins.property
|
|
2244
|
+
def kms_key(self) -> typing.Optional[builtins.str]:
|
|
2245
|
+
'''For SSE-KMS and CSE-KMS, this is the KMS key ARN or ID.
|
|
2246
|
+
|
|
2247
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-managedstorageencryptionconfiguration.html#cfn-athena-workgroup-managedstorageencryptionconfiguration-kmskey
|
|
2248
|
+
'''
|
|
2249
|
+
result = self._values.get("kms_key")
|
|
2250
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2251
|
+
|
|
2252
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2253
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
2254
|
+
|
|
2255
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
2256
|
+
return not (rhs == self)
|
|
2257
|
+
|
|
2258
|
+
def __repr__(self) -> str:
|
|
2259
|
+
return "ManagedStorageEncryptionConfigurationProperty(%s)" % ", ".join(
|
|
2260
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
2261
|
+
)
|
|
2262
|
+
|
|
2116
2263
|
@jsii.data_type(
|
|
2117
2264
|
jsii_type="aws-cdk-lib.aws_athena.CfnWorkGroup.ResultConfigurationProperty",
|
|
2118
2265
|
jsii_struct_bases=[],
|
|
@@ -2453,6 +2600,7 @@ class CfnWorkGroup(
|
|
|
2453
2600
|
"enforce_work_group_configuration": "enforceWorkGroupConfiguration",
|
|
2454
2601
|
"engine_version": "engineVersion",
|
|
2455
2602
|
"execution_role": "executionRole",
|
|
2603
|
+
"managed_query_results_configuration": "managedQueryResultsConfiguration",
|
|
2456
2604
|
"publish_cloud_watch_metrics_enabled": "publishCloudWatchMetricsEnabled",
|
|
2457
2605
|
"requester_pays_enabled": "requesterPaysEnabled",
|
|
2458
2606
|
"result_configuration": "resultConfiguration",
|
|
@@ -2468,6 +2616,7 @@ class CfnWorkGroup(
|
|
|
2468
2616
|
enforce_work_group_configuration: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2469
2617
|
engine_version: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.EngineVersionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2470
2618
|
execution_role: typing.Optional[builtins.str] = None,
|
|
2619
|
+
managed_query_results_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.ManagedQueryResultsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2471
2620
|
publish_cloud_watch_metrics_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2472
2621
|
requester_pays_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2473
2622
|
result_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.ResultConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2482,6 +2631,7 @@ class CfnWorkGroup(
|
|
|
2482
2631
|
:param 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 <https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html>`_ .
|
|
2483
2632
|
:param engine_version: The engine version that all queries running on the workgroup use.
|
|
2484
2633
|
:param 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.
|
|
2634
|
+
:param managed_query_results_configuration: The configuration for the managed query results and encryption option. ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
|
|
2485
2635
|
:param publish_cloud_watch_metrics_enabled: Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
|
|
2486
2636
|
:param 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 is ``false`` . For more information about Requester Pays buckets, see `Requester Pays Buckets <https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html>`_ in the *Amazon Simple Storage Service Developer Guide* .
|
|
2487
2637
|
:param 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 <https://docs.aws.amazon.com/athena/latest/ug/querying.html>`_ .
|
|
@@ -2507,6 +2657,12 @@ class CfnWorkGroup(
|
|
|
2507
2657
|
selected_engine_version="selectedEngineVersion"
|
|
2508
2658
|
),
|
|
2509
2659
|
execution_role="executionRole",
|
|
2660
|
+
managed_query_results_configuration=athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
2661
|
+
enabled=False,
|
|
2662
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
2663
|
+
kms_key="kmsKey"
|
|
2664
|
+
)
|
|
2665
|
+
),
|
|
2510
2666
|
publish_cloud_watch_metrics_enabled=False,
|
|
2511
2667
|
requester_pays_enabled=False,
|
|
2512
2668
|
result_configuration=athena.CfnWorkGroup.ResultConfigurationProperty(
|
|
@@ -2532,6 +2688,7 @@ class CfnWorkGroup(
|
|
|
2532
2688
|
check_type(argname="argument enforce_work_group_configuration", value=enforce_work_group_configuration, expected_type=type_hints["enforce_work_group_configuration"])
|
|
2533
2689
|
check_type(argname="argument engine_version", value=engine_version, expected_type=type_hints["engine_version"])
|
|
2534
2690
|
check_type(argname="argument execution_role", value=execution_role, expected_type=type_hints["execution_role"])
|
|
2691
|
+
check_type(argname="argument managed_query_results_configuration", value=managed_query_results_configuration, expected_type=type_hints["managed_query_results_configuration"])
|
|
2535
2692
|
check_type(argname="argument publish_cloud_watch_metrics_enabled", value=publish_cloud_watch_metrics_enabled, expected_type=type_hints["publish_cloud_watch_metrics_enabled"])
|
|
2536
2693
|
check_type(argname="argument requester_pays_enabled", value=requester_pays_enabled, expected_type=type_hints["requester_pays_enabled"])
|
|
2537
2694
|
check_type(argname="argument result_configuration", value=result_configuration, expected_type=type_hints["result_configuration"])
|
|
@@ -2548,6 +2705,8 @@ class CfnWorkGroup(
|
|
|
2548
2705
|
self._values["engine_version"] = engine_version
|
|
2549
2706
|
if execution_role is not None:
|
|
2550
2707
|
self._values["execution_role"] = execution_role
|
|
2708
|
+
if managed_query_results_configuration is not None:
|
|
2709
|
+
self._values["managed_query_results_configuration"] = managed_query_results_configuration
|
|
2551
2710
|
if publish_cloud_watch_metrics_enabled is not None:
|
|
2552
2711
|
self._values["publish_cloud_watch_metrics_enabled"] = publish_cloud_watch_metrics_enabled
|
|
2553
2712
|
if requester_pays_enabled is not None:
|
|
@@ -2626,6 +2785,19 @@ class CfnWorkGroup(
|
|
|
2626
2785
|
result = self._values.get("execution_role")
|
|
2627
2786
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2628
2787
|
|
|
2788
|
+
@builtins.property
|
|
2789
|
+
def managed_query_results_configuration(
|
|
2790
|
+
self,
|
|
2791
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedQueryResultsConfigurationProperty"]]:
|
|
2792
|
+
'''The configuration for the managed query results and encryption option.
|
|
2793
|
+
|
|
2794
|
+
ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
|
|
2795
|
+
|
|
2796
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfiguration.html#cfn-athena-workgroup-workgroupconfiguration-managedqueryresultsconfiguration
|
|
2797
|
+
'''
|
|
2798
|
+
result = self._values.get("managed_query_results_configuration")
|
|
2799
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedQueryResultsConfigurationProperty"]], result)
|
|
2800
|
+
|
|
2629
2801
|
@builtins.property
|
|
2630
2802
|
def publish_cloud_watch_metrics_enabled(
|
|
2631
2803
|
self,
|
|
@@ -2684,6 +2856,7 @@ class CfnWorkGroup(
|
|
|
2684
2856
|
"enforce_work_group_configuration": "enforceWorkGroupConfiguration",
|
|
2685
2857
|
"engine_version": "engineVersion",
|
|
2686
2858
|
"execution_role": "executionRole",
|
|
2859
|
+
"managed_query_results_configuration": "managedQueryResultsConfiguration",
|
|
2687
2860
|
"publish_cloud_watch_metrics_enabled": "publishCloudWatchMetricsEnabled",
|
|
2688
2861
|
"remove_bytes_scanned_cutoff_per_query": "removeBytesScannedCutoffPerQuery",
|
|
2689
2862
|
"remove_customer_content_encryption_configuration": "removeCustomerContentEncryptionConfiguration",
|
|
@@ -2701,6 +2874,7 @@ class CfnWorkGroup(
|
|
|
2701
2874
|
enforce_work_group_configuration: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2702
2875
|
engine_version: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.EngineVersionProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2703
2876
|
execution_role: typing.Optional[builtins.str] = None,
|
|
2877
|
+
managed_query_results_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkGroup.ManagedQueryResultsConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2704
2878
|
publish_cloud_watch_metrics_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2705
2879
|
remove_bytes_scanned_cutoff_per_query: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2706
2880
|
remove_customer_content_encryption_configuration: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
@@ -2715,6 +2889,7 @@ class CfnWorkGroup(
|
|
|
2715
2889
|
:param 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
|
|
2716
2890
|
:param engine_version: The Athena engine version for running queries.
|
|
2717
2891
|
:param execution_role: Execution Role ARN required to run Athena Spark Calculations.
|
|
2892
|
+
:param managed_query_results_configuration: The configuration for the managed query results and encryption option. ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
|
|
2718
2893
|
:param publish_cloud_watch_metrics_enabled: Indicates that the Amazon CloudWatch metrics are enabled for the workgroup.
|
|
2719
2894
|
:param remove_bytes_scanned_cutoff_per_query: Indicates that the data usage control limit per query is removed.
|
|
2720
2895
|
:param remove_customer_content_encryption_configuration:
|
|
@@ -2742,6 +2917,12 @@ class CfnWorkGroup(
|
|
|
2742
2917
|
selected_engine_version="selectedEngineVersion"
|
|
2743
2918
|
),
|
|
2744
2919
|
execution_role="executionRole",
|
|
2920
|
+
managed_query_results_configuration=athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
2921
|
+
enabled=False,
|
|
2922
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
2923
|
+
kms_key="kmsKey"
|
|
2924
|
+
)
|
|
2925
|
+
),
|
|
2745
2926
|
publish_cloud_watch_metrics_enabled=False,
|
|
2746
2927
|
remove_bytes_scanned_cutoff_per_query=False,
|
|
2747
2928
|
remove_customer_content_encryption_configuration=False,
|
|
@@ -2773,6 +2954,7 @@ class CfnWorkGroup(
|
|
|
2773
2954
|
check_type(argname="argument enforce_work_group_configuration", value=enforce_work_group_configuration, expected_type=type_hints["enforce_work_group_configuration"])
|
|
2774
2955
|
check_type(argname="argument engine_version", value=engine_version, expected_type=type_hints["engine_version"])
|
|
2775
2956
|
check_type(argname="argument execution_role", value=execution_role, expected_type=type_hints["execution_role"])
|
|
2957
|
+
check_type(argname="argument managed_query_results_configuration", value=managed_query_results_configuration, expected_type=type_hints["managed_query_results_configuration"])
|
|
2776
2958
|
check_type(argname="argument publish_cloud_watch_metrics_enabled", value=publish_cloud_watch_metrics_enabled, expected_type=type_hints["publish_cloud_watch_metrics_enabled"])
|
|
2777
2959
|
check_type(argname="argument remove_bytes_scanned_cutoff_per_query", value=remove_bytes_scanned_cutoff_per_query, expected_type=type_hints["remove_bytes_scanned_cutoff_per_query"])
|
|
2778
2960
|
check_type(argname="argument remove_customer_content_encryption_configuration", value=remove_customer_content_encryption_configuration, expected_type=type_hints["remove_customer_content_encryption_configuration"])
|
|
@@ -2791,6 +2973,8 @@ class CfnWorkGroup(
|
|
|
2791
2973
|
self._values["engine_version"] = engine_version
|
|
2792
2974
|
if execution_role is not None:
|
|
2793
2975
|
self._values["execution_role"] = execution_role
|
|
2976
|
+
if managed_query_results_configuration is not None:
|
|
2977
|
+
self._values["managed_query_results_configuration"] = managed_query_results_configuration
|
|
2794
2978
|
if publish_cloud_watch_metrics_enabled is not None:
|
|
2795
2979
|
self._values["publish_cloud_watch_metrics_enabled"] = publish_cloud_watch_metrics_enabled
|
|
2796
2980
|
if remove_bytes_scanned_cutoff_per_query is not None:
|
|
@@ -2864,6 +3048,19 @@ class CfnWorkGroup(
|
|
|
2864
3048
|
result = self._values.get("execution_role")
|
|
2865
3049
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2866
3050
|
|
|
3051
|
+
@builtins.property
|
|
3052
|
+
def managed_query_results_configuration(
|
|
3053
|
+
self,
|
|
3054
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedQueryResultsConfigurationProperty"]]:
|
|
3055
|
+
'''The configuration for the managed query results and encryption option.
|
|
3056
|
+
|
|
3057
|
+
ResultConfiguration and ManagedQueryResultsConfiguration cannot be set at the same time
|
|
3058
|
+
|
|
3059
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-athena-workgroup-workgroupconfigurationupdates.html#cfn-athena-workgroup-workgroupconfigurationupdates-managedqueryresultsconfiguration
|
|
3060
|
+
'''
|
|
3061
|
+
result = self._values.get("managed_query_results_configuration")
|
|
3062
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkGroup.ManagedQueryResultsConfigurationProperty"]], result)
|
|
3063
|
+
|
|
2867
3064
|
@builtins.property
|
|
2868
3065
|
def publish_cloud_watch_metrics_enabled(
|
|
2869
3066
|
self,
|
|
@@ -3001,6 +3198,12 @@ class CfnWorkGroupProps:
|
|
|
3001
3198
|
selected_engine_version="selectedEngineVersion"
|
|
3002
3199
|
),
|
|
3003
3200
|
execution_role="executionRole",
|
|
3201
|
+
managed_query_results_configuration=athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
3202
|
+
enabled=False,
|
|
3203
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
3204
|
+
kms_key="kmsKey"
|
|
3205
|
+
)
|
|
3206
|
+
),
|
|
3004
3207
|
publish_cloud_watch_metrics_enabled=False,
|
|
3005
3208
|
requester_pays_enabled=False,
|
|
3006
3209
|
result_configuration=athena.CfnWorkGroup.ResultConfigurationProperty(
|
|
@@ -3029,6 +3232,12 @@ class CfnWorkGroupProps:
|
|
|
3029
3232
|
selected_engine_version="selectedEngineVersion"
|
|
3030
3233
|
),
|
|
3031
3234
|
execution_role="executionRole",
|
|
3235
|
+
managed_query_results_configuration=athena.CfnWorkGroup.ManagedQueryResultsConfigurationProperty(
|
|
3236
|
+
enabled=False,
|
|
3237
|
+
encryption_configuration=athena.CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty(
|
|
3238
|
+
kms_key="kmsKey"
|
|
3239
|
+
)
|
|
3240
|
+
),
|
|
3032
3241
|
publish_cloud_watch_metrics_enabled=False,
|
|
3033
3242
|
remove_bytes_scanned_cutoff_per_query=False,
|
|
3034
3243
|
remove_customer_content_encryption_configuration=False,
|
|
@@ -3567,6 +3776,21 @@ def _typecheckingstub__89f0b78a82f24ece8384b490252230129c42a711fdb038b4ecd645d32
|
|
|
3567
3776
|
"""Type checking stubs"""
|
|
3568
3777
|
pass
|
|
3569
3778
|
|
|
3779
|
+
def _typecheckingstub__f6c4d2e9be468cb69e158be7cc0f67bd537760da2f65bdfea130a3adceb65198(
|
|
3780
|
+
*,
|
|
3781
|
+
enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3782
|
+
encryption_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.ManagedStorageEncryptionConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3783
|
+
) -> None:
|
|
3784
|
+
"""Type checking stubs"""
|
|
3785
|
+
pass
|
|
3786
|
+
|
|
3787
|
+
def _typecheckingstub__53549459074bb1d23e4ee2a6fd045c500008070dfc2015833edc260380222a02(
|
|
3788
|
+
*,
|
|
3789
|
+
kms_key: typing.Optional[builtins.str] = None,
|
|
3790
|
+
) -> None:
|
|
3791
|
+
"""Type checking stubs"""
|
|
3792
|
+
pass
|
|
3793
|
+
|
|
3570
3794
|
def _typecheckingstub__86d94b0afb15160d6ec72666a7574c95b2d16afd21c5ca80a9f352f319f2f46c(
|
|
3571
3795
|
*,
|
|
3572
3796
|
acl_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.AclConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -3599,6 +3823,7 @@ def _typecheckingstub__5bc58a8f7fc071c8f6e3cf6044079ec303e9ba8521ef96ca98c62cfdd
|
|
|
3599
3823
|
enforce_work_group_configuration: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3600
3824
|
engine_version: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.EngineVersionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3601
3825
|
execution_role: typing.Optional[builtins.str] = None,
|
|
3826
|
+
managed_query_results_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.ManagedQueryResultsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3602
3827
|
publish_cloud_watch_metrics_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3603
3828
|
requester_pays_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3604
3829
|
result_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.ResultConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -3614,6 +3839,7 @@ def _typecheckingstub__6d600654f5aa48cb49fd4baf2a677e5f7725dcfa1249836427c1d9f65
|
|
|
3614
3839
|
enforce_work_group_configuration: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3615
3840
|
engine_version: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.EngineVersionProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3616
3841
|
execution_role: typing.Optional[builtins.str] = None,
|
|
3842
|
+
managed_query_results_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkGroup.ManagedQueryResultsConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3617
3843
|
publish_cloud_watch_metrics_enabled: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3618
3844
|
remove_bytes_scanned_cutoff_per_query: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
3619
3845
|
remove_customer_content_encryption_configuration: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|