aws-cdk-lib 2.201.0__py3-none-any.whl → 2.202.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 +24 -24
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.201.0.jsii.tgz → aws-cdk-lib@2.202.0.jsii.tgz} +0 -0
- aws_cdk/aws_athena/__init__.py +12 -11
- aws_cdk/aws_cloudfront/__init__.py +31 -39
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -0
- aws_cdk/aws_customerprofiles/__init__.py +10 -10
- aws_cdk/aws_ec2/__init__.py +165 -15
- aws_cdk/aws_efs/__init__.py +17 -6
- aws_cdk/aws_eks/__init__.py +180 -158
- aws_cdk/aws_glue/__init__.py +58 -24
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_kms/__init__.py +10 -4
- aws_cdk/aws_lambda/__init__.py +747 -12
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- aws_cdk/aws_msk/__init__.py +21 -2
- aws_cdk/aws_mwaa/__init__.py +45 -2
- aws_cdk/aws_rds/__init__.py +4 -1
- aws_cdk/aws_s3/__init__.py +16 -0
- aws_cdk/aws_sagemaker/__init__.py +8 -8
- aws_cdk/aws_wafv2/__init__.py +734 -8
- aws_cdk/cx_api/__init__.py +14 -0
- aws_cdk/pipelines/__init__.py +147 -38
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.202.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.202.0.dist-info}/RECORD +29 -29
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.202.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.202.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.202.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.201.0.dist-info → aws_cdk_lib-2.202.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_msk/__init__.py
CHANGED
|
@@ -843,7 +843,7 @@ class CfnCluster(
|
|
|
843
843
|
'''Describes the setup to be used for the broker nodes in the cluster.
|
|
844
844
|
|
|
845
845
|
:param client_subnets: The list of subnets to connect to in the client virtual private cloud (VPC). Amazon creates elastic network interfaces (ENIs) inside these subnets. Client applications use ENIs to produce and consume data. If you use the US West (N. California) Region, specify exactly two subnets. For other Regions where Amazon MSK is available, you can specify either two or three subnets. The subnets that you specify must be in distinct Availability Zones. When you create a cluster, Amazon MSK distributes the broker nodes evenly across the subnets that you specify. Client subnets can't occupy the Availability Zone with ID ``use1-az3`` .
|
|
846
|
-
:param instance_type: The type of Amazon EC2 instances to use for brokers.
|
|
846
|
+
:param instance_type: The type of Amazon EC2 instances to use for brokers. Depending on the `broker type <https://docs.aws.amazon.com/msk/latest/developerguide/broker-instance-types.html>`_ , Amazon MSK supports the following broker sizes: *Standard broker sizes* - kafka.t3.small .. epigraph:: You can't select the kafka.t3.small instance type when the metadata mode is KRaft. - kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge, kafka.m5.4xlarge, kafka.m5.8xlarge, kafka.m5.12xlarge, kafka.m5.16xlarge, kafka.m5.24xlarge - kafka.m7g.large, kafka.m7g.xlarge, kafka.m7g.2xlarge, kafka.m7g.4xlarge, kafka.m7g.8xlarge, kafka.m7g.12xlarge, kafka.m7g.16xlarge *Express broker sizes* - express.m7g.large, express.m7g.xlarge, express.m7g.2xlarge, express.m7g.4xlarge, express.m7g.8xlarge, express.m7g.12xlarge, express.m7g.16xlarge .. epigraph:: Some broker sizes might not be available in certian AWS Regions. See the updated `Pricing tools <https://docs.aws.amazon.com/msk/pricing/>`_ section on the Amazon MSK pricing page for the latest list of available instances by Region.
|
|
847
847
|
:param broker_az_distribution: This parameter is currently not in use.
|
|
848
848
|
:param connectivity_info: Information about the cluster's connectivity setting.
|
|
849
849
|
:param security_groups: The security groups to associate with the ENIs in order to specify who can connect to and communicate with the Amazon MSK cluster. If you don't specify a security group, Amazon MSK uses the default security group associated with the VPC. If you specify security groups that were shared with you, you must ensure that you have permissions to them. Specifically, you need the ``ec2:DescribeSecurityGroups`` permission.
|
|
@@ -937,7 +937,26 @@ class CfnCluster(
|
|
|
937
937
|
def instance_type(self) -> builtins.str:
|
|
938
938
|
'''The type of Amazon EC2 instances to use for brokers.
|
|
939
939
|
|
|
940
|
-
|
|
940
|
+
Depending on the `broker type <https://docs.aws.amazon.com/msk/latest/developerguide/broker-instance-types.html>`_ , Amazon MSK supports the following broker sizes:
|
|
941
|
+
|
|
942
|
+
*Standard broker sizes*
|
|
943
|
+
|
|
944
|
+
- kafka.t3.small
|
|
945
|
+
|
|
946
|
+
.. epigraph::
|
|
947
|
+
|
|
948
|
+
You can't select the kafka.t3.small instance type when the metadata mode is KRaft.
|
|
949
|
+
|
|
950
|
+
- kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge, kafka.m5.4xlarge, kafka.m5.8xlarge, kafka.m5.12xlarge, kafka.m5.16xlarge, kafka.m5.24xlarge
|
|
951
|
+
- kafka.m7g.large, kafka.m7g.xlarge, kafka.m7g.2xlarge, kafka.m7g.4xlarge, kafka.m7g.8xlarge, kafka.m7g.12xlarge, kafka.m7g.16xlarge
|
|
952
|
+
|
|
953
|
+
*Express broker sizes*
|
|
954
|
+
|
|
955
|
+
- express.m7g.large, express.m7g.xlarge, express.m7g.2xlarge, express.m7g.4xlarge, express.m7g.8xlarge, express.m7g.12xlarge, express.m7g.16xlarge
|
|
956
|
+
|
|
957
|
+
.. epigraph::
|
|
958
|
+
|
|
959
|
+
Some broker sizes might not be available in certian AWS Regions. See the updated `Pricing tools <https://docs.aws.amazon.com/msk/pricing/>`_ section on the Amazon MSK pricing page for the latest list of available instances by Region.
|
|
941
960
|
|
|
942
961
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-msk-cluster-brokernodegroupinfo.html#cfn-msk-cluster-brokernodegroupinfo-instancetype
|
|
943
962
|
'''
|
aws_cdk/aws_mwaa/__init__.py
CHANGED
|
@@ -145,7 +145,8 @@ class CfnEnvironment(
|
|
|
145
145
|
startup_script_s3_path="startupScriptS3Path",
|
|
146
146
|
tags=tags,
|
|
147
147
|
webserver_access_mode="webserverAccessMode",
|
|
148
|
-
weekly_maintenance_window_start="weeklyMaintenanceWindowStart"
|
|
148
|
+
weekly_maintenance_window_start="weeklyMaintenanceWindowStart",
|
|
149
|
+
worker_replacement_strategy="workerReplacementStrategy"
|
|
149
150
|
)
|
|
150
151
|
'''
|
|
151
152
|
|
|
@@ -179,6 +180,7 @@ class CfnEnvironment(
|
|
|
179
180
|
tags: typing.Any = None,
|
|
180
181
|
webserver_access_mode: typing.Optional[builtins.str] = None,
|
|
181
182
|
weekly_maintenance_window_start: typing.Optional[builtins.str] = None,
|
|
183
|
+
worker_replacement_strategy: typing.Optional[builtins.str] = None,
|
|
182
184
|
) -> None:
|
|
183
185
|
'''
|
|
184
186
|
:param scope: Scope in which this resource is defined.
|
|
@@ -208,6 +210,7 @@ class CfnEnvironment(
|
|
|
208
210
|
:param tags: The key-value tag pairs associated to your environment. For example, ``"Environment": "Staging"`` . To learn more, see `Tagging <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`_ . If you specify new tags for an existing environment, the update requires service interruption before taking effect.
|
|
209
211
|
:param webserver_access_mode: The Apache Airflow *Web server* access mode. To learn more, see `Apache Airflow access modes <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html>`_ . Valid values: ``PRIVATE_ONLY`` or ``PUBLIC_ONLY`` .
|
|
210
212
|
:param weekly_maintenance_window_start: The day and time of the week to start weekly maintenance updates of your environment in the following format: ``DAY:HH:MM`` . For example: ``TUE:03:30`` . You can specify a start time in 30 minute increments only. Supported input includes the following: - MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)
|
|
213
|
+
:param worker_replacement_strategy: The worker replacement strategy to use when updating the environment. Valid values: ``FORCED``, ``GRACEFUL``. FORCED means Apache Airflow workers will be stopped and replaced without waiting for tasks to complete before an update. GRACEFUL means Apache Airflow workers will be able to complete running tasks for up to 12 hours during an update before being stopped and replaced.
|
|
211
214
|
'''
|
|
212
215
|
if __debug__:
|
|
213
216
|
type_hints = typing.get_type_hints(_typecheckingstub__558d6a60af086ab1a40ad8057fcb128456129bbbd328752ab90d8a6d573efb1c)
|
|
@@ -239,6 +242,7 @@ class CfnEnvironment(
|
|
|
239
242
|
tags=tags,
|
|
240
243
|
webserver_access_mode=webserver_access_mode,
|
|
241
244
|
weekly_maintenance_window_start=weekly_maintenance_window_start,
|
|
245
|
+
worker_replacement_strategy=worker_replacement_strategy,
|
|
242
246
|
)
|
|
243
247
|
|
|
244
248
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -737,6 +741,19 @@ class CfnEnvironment(
|
|
|
737
741
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
738
742
|
jsii.set(self, "weeklyMaintenanceWindowStart", value) # pyright: ignore[reportArgumentType]
|
|
739
743
|
|
|
744
|
+
@builtins.property
|
|
745
|
+
@jsii.member(jsii_name="workerReplacementStrategy")
|
|
746
|
+
def worker_replacement_strategy(self) -> typing.Optional[builtins.str]:
|
|
747
|
+
'''The worker replacement strategy to use when updating the environment.'''
|
|
748
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "workerReplacementStrategy"))
|
|
749
|
+
|
|
750
|
+
@worker_replacement_strategy.setter
|
|
751
|
+
def worker_replacement_strategy(self, value: typing.Optional[builtins.str]) -> None:
|
|
752
|
+
if __debug__:
|
|
753
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6a69a886eac1c8570e29fe73891b3d0a6bf8bc1d04ac36bc656c130c6498adef)
|
|
754
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
755
|
+
jsii.set(self, "workerReplacementStrategy", value) # pyright: ignore[reportArgumentType]
|
|
756
|
+
|
|
740
757
|
@jsii.data_type(
|
|
741
758
|
jsii_type="aws-cdk-lib.aws_mwaa.CfnEnvironment.LoggingConfigurationProperty",
|
|
742
759
|
jsii_struct_bases=[],
|
|
@@ -1092,6 +1109,7 @@ class CfnEnvironment(
|
|
|
1092
1109
|
"tags": "tags",
|
|
1093
1110
|
"webserver_access_mode": "webserverAccessMode",
|
|
1094
1111
|
"weekly_maintenance_window_start": "weeklyMaintenanceWindowStart",
|
|
1112
|
+
"worker_replacement_strategy": "workerReplacementStrategy",
|
|
1095
1113
|
},
|
|
1096
1114
|
)
|
|
1097
1115
|
class CfnEnvironmentProps:
|
|
@@ -1123,6 +1141,7 @@ class CfnEnvironmentProps:
|
|
|
1123
1141
|
tags: typing.Any = None,
|
|
1124
1142
|
webserver_access_mode: typing.Optional[builtins.str] = None,
|
|
1125
1143
|
weekly_maintenance_window_start: typing.Optional[builtins.str] = None,
|
|
1144
|
+
worker_replacement_strategy: typing.Optional[builtins.str] = None,
|
|
1126
1145
|
) -> None:
|
|
1127
1146
|
'''Properties for defining a ``CfnEnvironment``.
|
|
1128
1147
|
|
|
@@ -1151,6 +1170,7 @@ class CfnEnvironmentProps:
|
|
|
1151
1170
|
:param tags: The key-value tag pairs associated to your environment. For example, ``"Environment": "Staging"`` . To learn more, see `Tagging <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`_ . If you specify new tags for an existing environment, the update requires service interruption before taking effect.
|
|
1152
1171
|
:param webserver_access_mode: The Apache Airflow *Web server* access mode. To learn more, see `Apache Airflow access modes <https://docs.aws.amazon.com/mwaa/latest/userguide/configuring-networking.html>`_ . Valid values: ``PRIVATE_ONLY`` or ``PUBLIC_ONLY`` .
|
|
1153
1172
|
:param weekly_maintenance_window_start: The day and time of the week to start weekly maintenance updates of your environment in the following format: ``DAY:HH:MM`` . For example: ``TUE:03:30`` . You can specify a start time in 30 minute increments only. Supported input includes the following: - MON|TUE|WED|THU|FRI|SAT|SUN:([01]\\d|2[0-3]):(00|30)
|
|
1173
|
+
:param worker_replacement_strategy: The worker replacement strategy to use when updating the environment. Valid values: ``FORCED``, ``GRACEFUL``. FORCED means Apache Airflow workers will be stopped and replaced without waiting for tasks to complete before an update. GRACEFUL means Apache Airflow workers will be able to complete running tasks for up to 12 hours during an update before being stopped and replaced.
|
|
1154
1174
|
|
|
1155
1175
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html
|
|
1156
1176
|
:exampleMetadata: fixture=_generated
|
|
@@ -1220,7 +1240,8 @@ class CfnEnvironmentProps:
|
|
|
1220
1240
|
startup_script_s3_path="startupScriptS3Path",
|
|
1221
1241
|
tags=tags,
|
|
1222
1242
|
webserver_access_mode="webserverAccessMode",
|
|
1223
|
-
weekly_maintenance_window_start="weeklyMaintenanceWindowStart"
|
|
1243
|
+
weekly_maintenance_window_start="weeklyMaintenanceWindowStart",
|
|
1244
|
+
worker_replacement_strategy="workerReplacementStrategy"
|
|
1224
1245
|
)
|
|
1225
1246
|
'''
|
|
1226
1247
|
if __debug__:
|
|
@@ -1250,6 +1271,7 @@ class CfnEnvironmentProps:
|
|
|
1250
1271
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
1251
1272
|
check_type(argname="argument webserver_access_mode", value=webserver_access_mode, expected_type=type_hints["webserver_access_mode"])
|
|
1252
1273
|
check_type(argname="argument weekly_maintenance_window_start", value=weekly_maintenance_window_start, expected_type=type_hints["weekly_maintenance_window_start"])
|
|
1274
|
+
check_type(argname="argument worker_replacement_strategy", value=worker_replacement_strategy, expected_type=type_hints["worker_replacement_strategy"])
|
|
1253
1275
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1254
1276
|
"name": name,
|
|
1255
1277
|
}
|
|
@@ -1301,6 +1323,8 @@ class CfnEnvironmentProps:
|
|
|
1301
1323
|
self._values["webserver_access_mode"] = webserver_access_mode
|
|
1302
1324
|
if weekly_maintenance_window_start is not None:
|
|
1303
1325
|
self._values["weekly_maintenance_window_start"] = weekly_maintenance_window_start
|
|
1326
|
+
if worker_replacement_strategy is not None:
|
|
1327
|
+
self._values["worker_replacement_strategy"] = worker_replacement_strategy
|
|
1304
1328
|
|
|
1305
1329
|
@builtins.property
|
|
1306
1330
|
def name(self) -> builtins.str:
|
|
@@ -1587,6 +1611,17 @@ class CfnEnvironmentProps:
|
|
|
1587
1611
|
result = self._values.get("weekly_maintenance_window_start")
|
|
1588
1612
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1589
1613
|
|
|
1614
|
+
@builtins.property
|
|
1615
|
+
def worker_replacement_strategy(self) -> typing.Optional[builtins.str]:
|
|
1616
|
+
'''The worker replacement strategy to use when updating the environment.
|
|
1617
|
+
|
|
1618
|
+
Valid values: ``FORCED``, ``GRACEFUL``. FORCED means Apache Airflow workers will be stopped and replaced without waiting for tasks to complete before an update. GRACEFUL means Apache Airflow workers will be able to complete running tasks for up to 12 hours during an update before being stopped and replaced.
|
|
1619
|
+
|
|
1620
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mwaa-environment.html#cfn-mwaa-environment-workerreplacementstrategy
|
|
1621
|
+
'''
|
|
1622
|
+
result = self._values.get("worker_replacement_strategy")
|
|
1623
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1624
|
+
|
|
1590
1625
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1591
1626
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
1592
1627
|
|
|
@@ -1635,6 +1670,7 @@ def _typecheckingstub__558d6a60af086ab1a40ad8057fcb128456129bbbd328752ab90d8a6d5
|
|
|
1635
1670
|
tags: typing.Any = None,
|
|
1636
1671
|
webserver_access_mode: typing.Optional[builtins.str] = None,
|
|
1637
1672
|
weekly_maintenance_window_start: typing.Optional[builtins.str] = None,
|
|
1673
|
+
worker_replacement_strategy: typing.Optional[builtins.str] = None,
|
|
1638
1674
|
) -> None:
|
|
1639
1675
|
"""Type checking stubs"""
|
|
1640
1676
|
pass
|
|
@@ -1801,6 +1837,12 @@ def _typecheckingstub__c4b7b1ca9a0752d370dddfd37838d62fc0fdbdce81d79923961a78bfa
|
|
|
1801
1837
|
"""Type checking stubs"""
|
|
1802
1838
|
pass
|
|
1803
1839
|
|
|
1840
|
+
def _typecheckingstub__6a69a886eac1c8570e29fe73891b3d0a6bf8bc1d04ac36bc656c130c6498adef(
|
|
1841
|
+
value: typing.Optional[builtins.str],
|
|
1842
|
+
) -> None:
|
|
1843
|
+
"""Type checking stubs"""
|
|
1844
|
+
pass
|
|
1845
|
+
|
|
1804
1846
|
def _typecheckingstub__d823c014bd64bec48bc3afd2f5085d92c0e9f9e6f7641f491eeb3020665639f5(
|
|
1805
1847
|
*,
|
|
1806
1848
|
dag_processing_logs: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEnvironment.ModuleLoggingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -1856,6 +1898,7 @@ def _typecheckingstub__9d7baed808ece1f6aca4fce5dbeac04c731d688aec6f3395e1f0892ea
|
|
|
1856
1898
|
tags: typing.Any = None,
|
|
1857
1899
|
webserver_access_mode: typing.Optional[builtins.str] = None,
|
|
1858
1900
|
weekly_maintenance_window_start: typing.Optional[builtins.str] = None,
|
|
1901
|
+
worker_replacement_strategy: typing.Optional[builtins.str] = None,
|
|
1859
1902
|
) -> None:
|
|
1860
1903
|
"""Type checking stubs"""
|
|
1861
1904
|
pass
|
aws_cdk/aws_rds/__init__.py
CHANGED
|
@@ -15182,7 +15182,7 @@ class CfnDBProxyTargetGroup(
|
|
|
15182
15182
|
'''Specifies the settings that control the size and behavior of the connection pool associated with a ``DBProxyTargetGroup`` .
|
|
15183
15183
|
|
|
15184
15184
|
:param connection_borrow_timeout: The number of seconds for a proxy to wait for a connection to become available in the connection pool. This setting only applies when the proxy has opened its maximum number of connections and all connections are busy with client sessions. Default: ``120`` Constraints: - Must be between 0 and 300.
|
|
15185
|
-
:param init_query: Add an initialization query, or modify the current one. You can specify one or more SQL statements for the proxy to run when opening each new database connection. The setting is typically used with ``SET`` statements to make sure that each connection has identical settings. Make sure the query added here is valid. This is an optional field, so you can choose to leave it empty. For including multiple variables in a single SET statement, use a comma separator. For example: ``SET variable1=value1, variable2=value2`` Default: no initialization query
|
|
15185
|
+
:param init_query: Add an initialization query, or modify the current one. You can specify one or more SQL statements for the proxy to run when opening each new database connection. The setting is typically used with ``SET`` statements to make sure that each connection has identical settings. Make sure the query added here is valid. This is an optional field, so you can choose to leave it empty. For including multiple variables in a single SET statement, use a comma separator. For example: ``SET variable1=value1, variable2=value2`` Default: no initialization query .. epigraph:: Since you can access initialization query as part of target group configuration, it is not protected by authentication or cryptographic methods. Anyone with access to view or manage your proxy target group configuration can view the initialization query. You should not add sensitive data, such as passwords or long-lived encryption keys, to this option.
|
|
15186
15186
|
:param max_connections_percent: The maximum size of the connection pool for each target in a target group. The value is expressed as a percentage of the ``max_connections`` setting for the RDS DB instance or Aurora DB cluster used by the target group. If you specify ``MaxIdleConnectionsPercent`` , then you must also include a value for this parameter. Default: ``10`` for RDS for Microsoft SQL Server, and ``100`` for all other engines Constraints: - Must be between 1 and 100.
|
|
15187
15187
|
:param max_idle_connections_percent: A value that controls how actively the proxy closes idle database connections in the connection pool. The value is expressed as a percentage of the ``max_connections`` setting for the RDS DB instance or Aurora DB cluster used by the target group. With a high value, the proxy leaves a high percentage of idle database connections open. A low value causes the proxy to close more idle connections and return them to the database. If you specify this parameter, then you must also include a value for ``MaxConnectionsPercent`` . Default: The default value is half of the value of ``MaxConnectionsPercent`` . For example, if ``MaxConnectionsPercent`` is 80, then the default value of ``MaxIdleConnectionsPercent`` is 40. If the value of ``MaxConnectionsPercent`` isn't specified, then for SQL Server, ``MaxIdleConnectionsPercent`` is ``5`` , and for all other engines, the default is ``50`` . Constraints: - Must be between 0 and the value of ``MaxConnectionsPercent`` .
|
|
15188
15188
|
:param session_pinning_filters: Each item in the list represents a class of SQL operations that normally cause all later statements in a session using a proxy to be pinned to the same underlying database connection. Including an item in the list exempts that class of SQL operations from the pinning behavior. Default: no session pinning filters
|
|
@@ -15249,6 +15249,9 @@ class CfnDBProxyTargetGroup(
|
|
|
15249
15249
|
For example: ``SET variable1=value1, variable2=value2``
|
|
15250
15250
|
|
|
15251
15251
|
Default: no initialization query
|
|
15252
|
+
.. epigraph::
|
|
15253
|
+
|
|
15254
|
+
Since you can access initialization query as part of target group configuration, it is not protected by authentication or cryptographic methods. Anyone with access to view or manage your proxy target group configuration can view the initialization query. You should not add sensitive data, such as passwords or long-lived encryption keys, to this option.
|
|
15252
15255
|
|
|
15253
15256
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-dbproxytargetgroup-connectionpoolconfigurationinfoformat.html#cfn-rds-dbproxytargetgroup-connectionpoolconfigurationinfoformat-initquery
|
|
15254
15257
|
'''
|
aws_cdk/aws_s3/__init__.py
CHANGED
|
@@ -152,6 +152,22 @@ bucket.grant_read_write(my_lambda)
|
|
|
152
152
|
Will give the Lambda's execution role permissions to read and write
|
|
153
153
|
from the bucket.
|
|
154
154
|
|
|
155
|
+
### Understanding "grant" Methods
|
|
156
|
+
|
|
157
|
+
The S3 construct library provides several grant methods for the `Bucket` resource, but two of them have a special behavior. This two accept an `objectsKeyPattern` parameter to restrict granted permissions to specific resources:
|
|
158
|
+
|
|
159
|
+
* `grantRead`
|
|
160
|
+
* `grantReadWrite`
|
|
161
|
+
|
|
162
|
+
When examining the synthesized policy, you'll notice it includes both your specified object key patterns and the bucket itself.
|
|
163
|
+
This is by design. Some permissions (like `s3:ListBucket`) apply at the bucket level, while others (like `s3:GetObject`) apply to specific objects.
|
|
164
|
+
|
|
165
|
+
Specifically, the [`s3:ListBucket` action operates on bucket resources](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html#amazons3-bucket)
|
|
166
|
+
and requires the bucket ARN to work properly. This might be seen as a bug, giving the impression that more permissions were granted than the ones you intended, but the reality is that the policy does not ignore your `objectsKeyPattern` - object-specific actions like `s3:GetObject`
|
|
167
|
+
will still be limited to the resources defined in your pattern.
|
|
168
|
+
|
|
169
|
+
If you need to restrict the `s3:ListBucket` action to specific paths, you can add a `Condition` to your policy that limits the `objectsKeyPattern` to specific folders. For more details and examples, see the [AWS documentation on bucket policies](https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies.html#example-bucket-policies-folders).
|
|
170
|
+
|
|
155
171
|
## AWS Foundational Security Best Practices
|
|
156
172
|
|
|
157
173
|
### Enforcing SSL
|
|
@@ -7763,7 +7763,7 @@ class CfnDomain(
|
|
|
7763
7763
|
:param execution_role_identity_config: The configuration for attaching a SageMaker AI user profile name to the execution role as a `sts:SourceIdentity key <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html>`_ .
|
|
7764
7764
|
:param r_studio_server_pro_domain_settings: A collection of settings that configure the ``RStudioServerPro`` Domain-level app.
|
|
7765
7765
|
:param security_group_ids: The security groups for the Amazon Virtual Private Cloud that the ``Domain`` uses for communication between Domain-level apps and user apps.
|
|
7766
|
-
:param unified_studio_settings:
|
|
7766
|
+
:param unified_studio_settings: The settings that apply to an SageMaker AI domain when you use it in Amazon SageMaker Unified Studio.
|
|
7767
7767
|
|
|
7768
7768
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-domainsettings.html
|
|
7769
7769
|
:exampleMetadata: fixture=_generated
|
|
@@ -7868,7 +7868,7 @@ class CfnDomain(
|
|
|
7868
7868
|
def unified_studio_settings(
|
|
7869
7869
|
self,
|
|
7870
7870
|
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnDomain.UnifiedStudioSettingsProperty"]]:
|
|
7871
|
-
'''
|
|
7871
|
+
'''The settings that apply to an SageMaker AI domain when you use it in Amazon SageMaker Unified Studio.
|
|
7872
7872
|
|
|
7873
7873
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-domainsettings.html#cfn-sagemaker-domain-domainsettings-unifiedstudiosettings
|
|
7874
7874
|
'''
|
|
@@ -9216,7 +9216,7 @@ class CfnDomain(
|
|
|
9216
9216
|
project_s3_path: typing.Optional[builtins.str] = None,
|
|
9217
9217
|
studio_web_portal_access: typing.Optional[builtins.str] = None,
|
|
9218
9218
|
) -> None:
|
|
9219
|
-
'''
|
|
9219
|
+
'''The settings that apply to an Amazon SageMaker AI domain when you use it in Amazon SageMaker Unified Studio.
|
|
9220
9220
|
|
|
9221
9221
|
:param domain_account_id: The ID of the AWS account that has the Amazon SageMaker Unified Studio domain. The default value, if you don't specify an ID, is the ID of the account that has the Amazon SageMaker AI domain.
|
|
9222
9222
|
:param domain_id: The ID of the Amazon SageMaker Unified Studio domain associated with this domain.
|
|
@@ -9224,7 +9224,7 @@ class CfnDomain(
|
|
|
9224
9224
|
:param environment_id: The ID of the environment that Amazon SageMaker Unified Studio associates with the domain.
|
|
9225
9225
|
:param project_id: The ID of the Amazon SageMaker Unified Studio project that corresponds to the domain.
|
|
9226
9226
|
:param project_s3_path: The location where Amazon S3 stores temporary execution data and other artifacts for the project that corresponds to the domain.
|
|
9227
|
-
:param studio_web_portal_access: Sets whether you can access the domain in Amazon SageMaker Studio:. ENABLED You can access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it in both studio interfaces. DISABLED You can't access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it only in that studio interface.
|
|
9227
|
+
:param studio_web_portal_access: Sets whether you can access the domain in Amazon SageMaker Studio:. - **ENABLED** - You can access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it in both studio interfaces. - **DISABLED** - You can't access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it only in that studio interface. To migrate a domain to Amazon SageMaker Unified Studio, you specify the UnifiedStudioSettings data type when you use the UpdateDomain action.
|
|
9228
9228
|
|
|
9229
9229
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-unifiedstudiosettings.html
|
|
9230
9230
|
:exampleMetadata: fixture=_generated
|
|
@@ -9332,10 +9332,10 @@ class CfnDomain(
|
|
|
9332
9332
|
def studio_web_portal_access(self) -> typing.Optional[builtins.str]:
|
|
9333
9333
|
'''Sets whether you can access the domain in Amazon SageMaker Studio:.
|
|
9334
9334
|
|
|
9335
|
-
ENABLED
|
|
9336
|
-
You can access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it in
|
|
9337
|
-
|
|
9338
|
-
|
|
9335
|
+
- **ENABLED** - You can access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it in both studio interfaces.
|
|
9336
|
+
- **DISABLED** - You can't access the domain in Amazon SageMaker Studio. If you migrate the domain to Amazon SageMaker Unified Studio, you can access it only in that studio interface.
|
|
9337
|
+
|
|
9338
|
+
To migrate a domain to Amazon SageMaker Unified Studio, you specify the UnifiedStudioSettings data type when you use the UpdateDomain action.
|
|
9339
9339
|
|
|
9340
9340
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-domain-unifiedstudiosettings.html#cfn-sagemaker-domain-unifiedstudiosettings-studiowebportalaccess
|
|
9341
9341
|
'''
|