aws-cdk-lib 2.138.0__py3-none-any.whl → 2.139.1__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.

Files changed (37) hide show
  1. aws_cdk/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.138.0.jsii.tgz → aws-cdk-lib@2.139.1.jsii.tgz} +0 -0
  3. aws_cdk/aws_apigateway/__init__.py +29 -16
  4. aws_cdk/aws_appconfig/__init__.py +289 -44
  5. aws_cdk/aws_appintegrations/__init__.py +55 -6
  6. aws_cdk/aws_autoscaling/__init__.py +62 -60
  7. aws_cdk/aws_backup/__init__.py +34 -42
  8. aws_cdk/aws_batch/__init__.py +9 -3
  9. aws_cdk/aws_bedrock/__init__.py +4144 -0
  10. aws_cdk/aws_cloudwatch/__init__.py +120 -0
  11. aws_cdk/aws_datazone/__init__.py +22 -0
  12. aws_cdk/aws_dms/__init__.py +2 -4
  13. aws_cdk/aws_ec2/__init__.py +123 -84
  14. aws_cdk/aws_ecr/__init__.py +630 -0
  15. aws_cdk/aws_ecs/__init__.py +121 -19
  16. aws_cdk/aws_efs/__init__.py +592 -0
  17. aws_cdk/aws_elasticloadbalancingv2/__init__.py +23 -8
  18. aws_cdk/aws_events_targets/__init__.py +17 -4
  19. aws_cdk/aws_kms/__init__.py +44 -0
  20. aws_cdk/aws_lambda/__init__.py +9 -0
  21. aws_cdk/aws_oam/__init__.py +204 -0
  22. aws_cdk/aws_rds/__init__.py +15 -11
  23. aws_cdk/aws_redshiftserverless/__init__.py +157 -0
  24. aws_cdk/aws_securitylake/__init__.py +160 -105
  25. aws_cdk/aws_ses_actions/__init__.py +155 -0
  26. aws_cdk/aws_ssm/__init__.py +5 -2
  27. aws_cdk/aws_timestream/__init__.py +1045 -0
  28. aws_cdk/aws_transfer/__init__.py +15 -6
  29. aws_cdk/aws_wisdom/__init__.py +2 -2
  30. aws_cdk/custom_resources/__init__.py +440 -0
  31. aws_cdk/cx_api/__init__.py +17 -0
  32. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/METADATA +1 -1
  33. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/RECORD +37 -37
  34. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/LICENSE +0 -0
  35. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/NOTICE +0 -0
  36. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/WHEEL +0 -0
  37. {aws_cdk_lib-2.138.0.dist-info → aws_cdk_lib-2.139.1.dist-info}/top_level.txt +0 -0
@@ -820,6 +820,7 @@ from ..aws_ec2 import (
820
820
  SubnetSelection as _SubnetSelection_e57d76df,
821
821
  )
822
822
  from ..aws_iam import (
823
+ Grant as _Grant_a7ae64f8,
823
824
  IGrantable as _IGrantable_71c4f5de,
824
825
  IPrincipal as _IPrincipal_539bb2fd,
825
826
  IRole as _IRole_235f5d8e,
@@ -830,6 +831,7 @@ from ..aws_lambda import IFunction as _IFunction_6adb0ab8
830
831
  from ..aws_logs import (
831
832
  ILogGroup as _ILogGroup_3c4fa718, RetentionDays as _RetentionDays_070f99f0
832
833
  )
834
+ from ..aws_stepfunctions import LogLevel as _LogLevel_be1990fe
833
835
 
834
836
 
835
837
  @jsii.implements(_IGrantable_71c4f5de)
@@ -1624,6 +1626,99 @@ class AwsSdkCall:
1624
1626
  )
1625
1627
 
1626
1628
 
1629
+ @jsii.data_type(
1630
+ jsii_type="aws-cdk-lib.custom_resources.LogOptions",
1631
+ jsii_struct_bases=[],
1632
+ name_mapping={
1633
+ "destination": "destination",
1634
+ "include_execution_data": "includeExecutionData",
1635
+ "level": "level",
1636
+ },
1637
+ )
1638
+ class LogOptions:
1639
+ def __init__(
1640
+ self,
1641
+ *,
1642
+ destination: typing.Optional[_ILogGroup_3c4fa718] = None,
1643
+ include_execution_data: typing.Optional[builtins.bool] = None,
1644
+ level: typing.Optional[_LogLevel_be1990fe] = None,
1645
+ ) -> None:
1646
+ '''Log Options for the state machine.
1647
+
1648
+ :param destination: The log group where the execution history events will be logged. Default: - a new log group will be created
1649
+ :param include_execution_data: Determines whether execution data is included in your log. Default: - false
1650
+ :param level: Defines which category of execution history events are logged. Default: - ERROR
1651
+
1652
+ :exampleMetadata: fixture=_generated
1653
+
1654
+ Example::
1655
+
1656
+ # The code below shows an example of how to instantiate this type.
1657
+ # The values are placeholders you should change.
1658
+ from aws_cdk import aws_logs as logs
1659
+ from aws_cdk import aws_stepfunctions as stepfunctions
1660
+ from aws_cdk import custom_resources
1661
+
1662
+ # log_group: logs.LogGroup
1663
+
1664
+ log_options = custom_resources.LogOptions(
1665
+ destination=log_group,
1666
+ include_execution_data=False,
1667
+ level=stepfunctions.LogLevel.OFF
1668
+ )
1669
+ '''
1670
+ if __debug__:
1671
+ type_hints = typing.get_type_hints(_typecheckingstub__2622296f61199d2b10825c21d976c0578e9488ad1b2b7635565f604c598734b7)
1672
+ check_type(argname="argument destination", value=destination, expected_type=type_hints["destination"])
1673
+ check_type(argname="argument include_execution_data", value=include_execution_data, expected_type=type_hints["include_execution_data"])
1674
+ check_type(argname="argument level", value=level, expected_type=type_hints["level"])
1675
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
1676
+ if destination is not None:
1677
+ self._values["destination"] = destination
1678
+ if include_execution_data is not None:
1679
+ self._values["include_execution_data"] = include_execution_data
1680
+ if level is not None:
1681
+ self._values["level"] = level
1682
+
1683
+ @builtins.property
1684
+ def destination(self) -> typing.Optional[_ILogGroup_3c4fa718]:
1685
+ '''The log group where the execution history events will be logged.
1686
+
1687
+ :default: - a new log group will be created
1688
+ '''
1689
+ result = self._values.get("destination")
1690
+ return typing.cast(typing.Optional[_ILogGroup_3c4fa718], result)
1691
+
1692
+ @builtins.property
1693
+ def include_execution_data(self) -> typing.Optional[builtins.bool]:
1694
+ '''Determines whether execution data is included in your log.
1695
+
1696
+ :default: - false
1697
+ '''
1698
+ result = self._values.get("include_execution_data")
1699
+ return typing.cast(typing.Optional[builtins.bool], result)
1700
+
1701
+ @builtins.property
1702
+ def level(self) -> typing.Optional[_LogLevel_be1990fe]:
1703
+ '''Defines which category of execution history events are logged.
1704
+
1705
+ :default: - ERROR
1706
+ '''
1707
+ result = self._values.get("level")
1708
+ return typing.cast(typing.Optional[_LogLevel_be1990fe], result)
1709
+
1710
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1711
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1712
+
1713
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1714
+ return not (rhs == self)
1715
+
1716
+ def __repr__(self) -> str:
1717
+ return "LogOptions(%s)" % ", ".join(
1718
+ k + "=" + repr(v) for k, v in self._values.items()
1719
+ )
1720
+
1721
+
1627
1722
  class Logging(
1628
1723
  metaclass=jsii.JSIIAbstractClass,
1629
1724
  jsii_type="aws-cdk-lib.custom_resources.Logging",
@@ -1918,6 +2013,7 @@ class Provider(
1918
2013
  id: builtins.str,
1919
2014
  *,
1920
2015
  on_event_handler: _IFunction_6adb0ab8,
2016
+ disable_waiter_state_machine_logging: typing.Optional[builtins.bool] = None,
1921
2017
  is_complete_handler: typing.Optional[_IFunction_6adb0ab8] = None,
1922
2018
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
1923
2019
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
@@ -1929,11 +2025,13 @@ class Provider(
1929
2025
  total_timeout: typing.Optional[_Duration_4839e8c3] = None,
1930
2026
  vpc: typing.Optional[_IVpc_f30d5663] = None,
1931
2027
  vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
2028
+ waiter_state_machine_log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
1932
2029
  ) -> None:
1933
2030
  '''
1934
2031
  :param scope: -
1935
2032
  :param id: -
1936
2033
  :param on_event_handler: The AWS Lambda function to invoke for all resource lifecycle operations (CREATE/UPDATE/DELETE). This function is responsible to begin the requested resource operation (CREATE/UPDATE/DELETE) and return any additional properties to add to the event, which will later be passed to ``isComplete``. The ``PhysicalResourceId`` property must be included in the response.
2034
+ :param disable_waiter_state_machine_logging: Whether logging for the waiter state machine is disabled. Default: - false
1937
2035
  :param is_complete_handler: The AWS Lambda function to invoke in order to determine if the operation is complete. This function will be called immediately after ``onEvent`` and then periodically based on the configured query interval as long as it returns ``false``. If the function still returns ``false`` and the alloted timeout has passed, the operation will fail. Default: - provider is synchronous. This means that the ``onEvent`` handler is expected to finish all lifecycle operations within the initial invocation.
1938
2036
  :param log_group: The Log Group used for logging of events emitted by the custom resource's lambda function. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: - a default log group created by AWS Lambda
1939
2037
  :param log_retention: The number of days framework log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: logs.RetentionDays.INFINITE
@@ -1945,6 +2043,7 @@ class Provider(
1945
2043
  :param total_timeout: Total timeout for the entire operation. The maximum timeout is 1 hour (yes, it can exceed the AWS Lambda 15 minutes) Default: Duration.minutes(30)
1946
2044
  :param vpc: The vpc to provision the lambda functions in. Default: - functions are not provisioned inside a vpc.
1947
2045
  :param vpc_subnets: Which subnets from the VPC to place the lambda functions in. Only used if 'vpc' is supplied. Note: internet access for Lambdas requires a NAT gateway, so picking Public subnets is not allowed. Default: - the Vpc default strategy if not specified
2046
+ :param waiter_state_machine_log_options: Defines what execution history events of the waiter state machine are logged and where they are logged. Default: - A default log group will be created if logging for the waiter state machine is enabled.
1948
2047
  '''
1949
2048
  if __debug__:
1950
2049
  type_hints = typing.get_type_hints(_typecheckingstub__29415d7bf7977fcf110b77ce69cec309dcf0404601944735020770ddfe2b01a8)
@@ -1952,6 +2051,7 @@ class Provider(
1952
2051
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
1953
2052
  props = ProviderProps(
1954
2053
  on_event_handler=on_event_handler,
2054
+ disable_waiter_state_machine_logging=disable_waiter_state_machine_logging,
1955
2055
  is_complete_handler=is_complete_handler,
1956
2056
  log_group=log_group,
1957
2057
  log_retention=log_retention,
@@ -1963,6 +2063,7 @@ class Provider(
1963
2063
  total_timeout=total_timeout,
1964
2064
  vpc=vpc,
1965
2065
  vpc_subnets=vpc_subnets,
2066
+ waiter_state_machine_log_options=waiter_state_machine_log_options,
1966
2067
  )
1967
2068
 
1968
2069
  jsii.create(self.__class__, self, [scope, id, props])
@@ -1991,6 +2092,7 @@ class Provider(
1991
2092
  jsii_struct_bases=[],
1992
2093
  name_mapping={
1993
2094
  "on_event_handler": "onEventHandler",
2095
+ "disable_waiter_state_machine_logging": "disableWaiterStateMachineLogging",
1994
2096
  "is_complete_handler": "isCompleteHandler",
1995
2097
  "log_group": "logGroup",
1996
2098
  "log_retention": "logRetention",
@@ -2002,6 +2104,7 @@ class Provider(
2002
2104
  "total_timeout": "totalTimeout",
2003
2105
  "vpc": "vpc",
2004
2106
  "vpc_subnets": "vpcSubnets",
2107
+ "waiter_state_machine_log_options": "waiterStateMachineLogOptions",
2005
2108
  },
2006
2109
  )
2007
2110
  class ProviderProps:
@@ -2009,6 +2112,7 @@ class ProviderProps:
2009
2112
  self,
2010
2113
  *,
2011
2114
  on_event_handler: _IFunction_6adb0ab8,
2115
+ disable_waiter_state_machine_logging: typing.Optional[builtins.bool] = None,
2012
2116
  is_complete_handler: typing.Optional[_IFunction_6adb0ab8] = None,
2013
2117
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
2014
2118
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
@@ -2020,10 +2124,12 @@ class ProviderProps:
2020
2124
  total_timeout: typing.Optional[_Duration_4839e8c3] = None,
2021
2125
  vpc: typing.Optional[_IVpc_f30d5663] = None,
2022
2126
  vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
2127
+ waiter_state_machine_log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2023
2128
  ) -> None:
2024
2129
  '''Initialization properties for the ``Provider`` construct.
2025
2130
 
2026
2131
  :param on_event_handler: The AWS Lambda function to invoke for all resource lifecycle operations (CREATE/UPDATE/DELETE). This function is responsible to begin the requested resource operation (CREATE/UPDATE/DELETE) and return any additional properties to add to the event, which will later be passed to ``isComplete``. The ``PhysicalResourceId`` property must be included in the response.
2132
+ :param disable_waiter_state_machine_logging: Whether logging for the waiter state machine is disabled. Default: - false
2027
2133
  :param is_complete_handler: The AWS Lambda function to invoke in order to determine if the operation is complete. This function will be called immediately after ``onEvent`` and then periodically based on the configured query interval as long as it returns ``false``. If the function still returns ``false`` and the alloted timeout has passed, the operation will fail. Default: - provider is synchronous. This means that the ``onEvent`` handler is expected to finish all lifecycle operations within the initial invocation.
2028
2134
  :param log_group: The Log Group used for logging of events emitted by the custom resource's lambda function. Providing a user-controlled log group was rolled out to commercial regions on 2023-11-16. If you are deploying to another type of region, please check regional availability first. Default: - a default log group created by AWS Lambda
2029
2135
  :param log_retention: The number of days framework log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``INFINITE``. This is a legacy API and we strongly recommend you migrate to ``logGroup`` if you can. ``logGroup`` allows you to create a fully customizable log group and instruct the Lambda function to send logs to it. Default: logs.RetentionDays.INFINITE
@@ -2035,6 +2141,7 @@ class ProviderProps:
2035
2141
  :param total_timeout: Total timeout for the entire operation. The maximum timeout is 1 hour (yes, it can exceed the AWS Lambda 15 minutes) Default: Duration.minutes(30)
2036
2142
  :param vpc: The vpc to provision the lambda functions in. Default: - functions are not provisioned inside a vpc.
2037
2143
  :param vpc_subnets: Which subnets from the VPC to place the lambda functions in. Only used if 'vpc' is supplied. Note: internet access for Lambdas requires a NAT gateway, so picking Public subnets is not allowed. Default: - the Vpc default strategy if not specified
2144
+ :param waiter_state_machine_log_options: Defines what execution history events of the waiter state machine are logged and where they are logged. Default: - A default log group will be created if logging for the waiter state machine is enabled.
2038
2145
 
2039
2146
  :exampleMetadata: infused
2040
2147
 
@@ -2056,9 +2163,12 @@ class ProviderProps:
2056
2163
  '''
2057
2164
  if isinstance(vpc_subnets, dict):
2058
2165
  vpc_subnets = _SubnetSelection_e57d76df(**vpc_subnets)
2166
+ if isinstance(waiter_state_machine_log_options, dict):
2167
+ waiter_state_machine_log_options = LogOptions(**waiter_state_machine_log_options)
2059
2168
  if __debug__:
2060
2169
  type_hints = typing.get_type_hints(_typecheckingstub__32b03803ee02437d8d83814282c700ede5633030e4d9f7ebdaf3b9d075b0cbdb)
2061
2170
  check_type(argname="argument on_event_handler", value=on_event_handler, expected_type=type_hints["on_event_handler"])
2171
+ check_type(argname="argument disable_waiter_state_machine_logging", value=disable_waiter_state_machine_logging, expected_type=type_hints["disable_waiter_state_machine_logging"])
2062
2172
  check_type(argname="argument is_complete_handler", value=is_complete_handler, expected_type=type_hints["is_complete_handler"])
2063
2173
  check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
2064
2174
  check_type(argname="argument log_retention", value=log_retention, expected_type=type_hints["log_retention"])
@@ -2070,9 +2180,12 @@ class ProviderProps:
2070
2180
  check_type(argname="argument total_timeout", value=total_timeout, expected_type=type_hints["total_timeout"])
2071
2181
  check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
2072
2182
  check_type(argname="argument vpc_subnets", value=vpc_subnets, expected_type=type_hints["vpc_subnets"])
2183
+ check_type(argname="argument waiter_state_machine_log_options", value=waiter_state_machine_log_options, expected_type=type_hints["waiter_state_machine_log_options"])
2073
2184
  self._values: typing.Dict[builtins.str, typing.Any] = {
2074
2185
  "on_event_handler": on_event_handler,
2075
2186
  }
2187
+ if disable_waiter_state_machine_logging is not None:
2188
+ self._values["disable_waiter_state_machine_logging"] = disable_waiter_state_machine_logging
2076
2189
  if is_complete_handler is not None:
2077
2190
  self._values["is_complete_handler"] = is_complete_handler
2078
2191
  if log_group is not None:
@@ -2095,6 +2208,8 @@ class ProviderProps:
2095
2208
  self._values["vpc"] = vpc
2096
2209
  if vpc_subnets is not None:
2097
2210
  self._values["vpc_subnets"] = vpc_subnets
2211
+ if waiter_state_machine_log_options is not None:
2212
+ self._values["waiter_state_machine_log_options"] = waiter_state_machine_log_options
2098
2213
 
2099
2214
  @builtins.property
2100
2215
  def on_event_handler(self) -> _IFunction_6adb0ab8:
@@ -2109,6 +2224,15 @@ class ProviderProps:
2109
2224
  assert result is not None, "Required property 'on_event_handler' is missing"
2110
2225
  return typing.cast(_IFunction_6adb0ab8, result)
2111
2226
 
2227
+ @builtins.property
2228
+ def disable_waiter_state_machine_logging(self) -> typing.Optional[builtins.bool]:
2229
+ '''Whether logging for the waiter state machine is disabled.
2230
+
2231
+ :default: - false
2232
+ '''
2233
+ result = self._values.get("disable_waiter_state_machine_logging")
2234
+ return typing.cast(typing.Optional[builtins.bool], result)
2235
+
2112
2236
  @builtins.property
2113
2237
  def is_complete_handler(self) -> typing.Optional[_IFunction_6adb0ab8]:
2114
2238
  '''The AWS Lambda function to invoke in order to determine if the operation is complete.
@@ -2245,6 +2369,15 @@ class ProviderProps:
2245
2369
  result = self._values.get("vpc_subnets")
2246
2370
  return typing.cast(typing.Optional[_SubnetSelection_e57d76df], result)
2247
2371
 
2372
+ @builtins.property
2373
+ def waiter_state_machine_log_options(self) -> typing.Optional[LogOptions]:
2374
+ '''Defines what execution history events of the waiter state machine are logged and where they are logged.
2375
+
2376
+ :default: - A default log group will be created if logging for the waiter state machine is enabled.
2377
+ '''
2378
+ result = self._values.get("waiter_state_machine_log_options")
2379
+ return typing.cast(typing.Optional[LogOptions], result)
2380
+
2248
2381
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
2249
2382
  return isinstance(rhs, self.__class__) and rhs._values == self._values
2250
2383
 
@@ -2322,11 +2455,269 @@ class SdkCallsPolicyOptions:
2322
2455
  )
2323
2456
 
2324
2457
 
2458
+ class WaiterStateMachine(
2459
+ _constructs_77d1e7e8.Construct,
2460
+ metaclass=jsii.JSIIMeta,
2461
+ jsii_type="aws-cdk-lib.custom_resources.WaiterStateMachine",
2462
+ ):
2463
+ '''A very simple StateMachine construct highly customized to the provider framework.
2464
+
2465
+ We previously used ``CfnResource`` instead of ``CfnStateMachine`` to avoid depending
2466
+ on ``aws-stepfunctions`` module, but now it is okay.
2467
+
2468
+ The state machine continuously calls the isCompleteHandler, until it succeeds or times out.
2469
+ The handler is called ``maxAttempts`` times with an ``interval`` duration and a ``backoffRate`` rate.
2470
+
2471
+ :exampleMetadata: fixture=_generated
2472
+
2473
+ Example::
2474
+
2475
+ # The code below shows an example of how to instantiate this type.
2476
+ # The values are placeholders you should change.
2477
+ import aws_cdk as cdk
2478
+ from aws_cdk import aws_lambda as lambda_
2479
+ from aws_cdk import aws_logs as logs
2480
+ from aws_cdk import aws_stepfunctions as stepfunctions
2481
+ from aws_cdk import custom_resources
2482
+
2483
+ # function_: lambda.Function
2484
+ # log_group: logs.LogGroup
2485
+
2486
+ waiter_state_machine = custom_resources.WaiterStateMachine(self, "MyWaiterStateMachine",
2487
+ backoff_rate=123,
2488
+ interval=cdk.Duration.minutes(30),
2489
+ is_complete_handler=function_,
2490
+ max_attempts=123,
2491
+ timeout_handler=function_,
2492
+
2493
+ # the properties below are optional
2494
+ disable_logging=False,
2495
+ log_options=custom_resources.LogOptions(
2496
+ destination=log_group,
2497
+ include_execution_data=False,
2498
+ level=stepfunctions.LogLevel.OFF
2499
+ )
2500
+ )
2501
+ '''
2502
+
2503
+ def __init__(
2504
+ self,
2505
+ scope: _constructs_77d1e7e8.Construct,
2506
+ id: builtins.str,
2507
+ *,
2508
+ backoff_rate: jsii.Number,
2509
+ interval: _Duration_4839e8c3,
2510
+ is_complete_handler: _IFunction_6adb0ab8,
2511
+ max_attempts: jsii.Number,
2512
+ timeout_handler: _IFunction_6adb0ab8,
2513
+ disable_logging: typing.Optional[builtins.bool] = None,
2514
+ log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2515
+ ) -> None:
2516
+ '''
2517
+ :param scope: -
2518
+ :param id: -
2519
+ :param backoff_rate: Backoff between attempts.
2520
+ :param interval: The interval to wait between attempts.
2521
+ :param is_complete_handler: The main handler that notifies if the waiter to decide 'complete' or 'incomplete'.
2522
+ :param max_attempts: Number of attempts.
2523
+ :param timeout_handler: The handler to call if the waiter times out and is incomplete.
2524
+ :param disable_logging: Whether logging for the state machine is disabled. Default: - false
2525
+ :param log_options: Defines what execution history events are logged and where they are logged. Default: - A default log group will be created if logging is enabled.
2526
+ '''
2527
+ if __debug__:
2528
+ type_hints = typing.get_type_hints(_typecheckingstub__12427b739f326cdb535d2aaf4a70f10977eec5711902d4e5e395f0b8c9bb184e)
2529
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
2530
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
2531
+ props = WaiterStateMachineProps(
2532
+ backoff_rate=backoff_rate,
2533
+ interval=interval,
2534
+ is_complete_handler=is_complete_handler,
2535
+ max_attempts=max_attempts,
2536
+ timeout_handler=timeout_handler,
2537
+ disable_logging=disable_logging,
2538
+ log_options=log_options,
2539
+ )
2540
+
2541
+ jsii.create(self.__class__, self, [scope, id, props])
2542
+
2543
+ @jsii.member(jsii_name="grantStartExecution")
2544
+ def grant_start_execution(self, identity: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
2545
+ '''Grant the given identity permissions on StartExecution of the state machine.
2546
+
2547
+ :param identity: -
2548
+ '''
2549
+ if __debug__:
2550
+ type_hints = typing.get_type_hints(_typecheckingstub__2c3d1c306ca04ebd1194ce4f97bed6aa9510a02067654b39f43a1ecef601e3db)
2551
+ check_type(argname="argument identity", value=identity, expected_type=type_hints["identity"])
2552
+ return typing.cast(_Grant_a7ae64f8, jsii.invoke(self, "grantStartExecution", [identity]))
2553
+
2554
+ @builtins.property
2555
+ @jsii.member(jsii_name="stateMachineArn")
2556
+ def state_machine_arn(self) -> builtins.str:
2557
+ '''The ARN of the state machine.'''
2558
+ return typing.cast(builtins.str, jsii.get(self, "stateMachineArn"))
2559
+
2560
+
2561
+ @jsii.data_type(
2562
+ jsii_type="aws-cdk-lib.custom_resources.WaiterStateMachineProps",
2563
+ jsii_struct_bases=[],
2564
+ name_mapping={
2565
+ "backoff_rate": "backoffRate",
2566
+ "interval": "interval",
2567
+ "is_complete_handler": "isCompleteHandler",
2568
+ "max_attempts": "maxAttempts",
2569
+ "timeout_handler": "timeoutHandler",
2570
+ "disable_logging": "disableLogging",
2571
+ "log_options": "logOptions",
2572
+ },
2573
+ )
2574
+ class WaiterStateMachineProps:
2575
+ def __init__(
2576
+ self,
2577
+ *,
2578
+ backoff_rate: jsii.Number,
2579
+ interval: _Duration_4839e8c3,
2580
+ is_complete_handler: _IFunction_6adb0ab8,
2581
+ max_attempts: jsii.Number,
2582
+ timeout_handler: _IFunction_6adb0ab8,
2583
+ disable_logging: typing.Optional[builtins.bool] = None,
2584
+ log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2585
+ ) -> None:
2586
+ '''Initialization properties for the ``WaiterStateMachine`` construct.
2587
+
2588
+ :param backoff_rate: Backoff between attempts.
2589
+ :param interval: The interval to wait between attempts.
2590
+ :param is_complete_handler: The main handler that notifies if the waiter to decide 'complete' or 'incomplete'.
2591
+ :param max_attempts: Number of attempts.
2592
+ :param timeout_handler: The handler to call if the waiter times out and is incomplete.
2593
+ :param disable_logging: Whether logging for the state machine is disabled. Default: - false
2594
+ :param log_options: Defines what execution history events are logged and where they are logged. Default: - A default log group will be created if logging is enabled.
2595
+
2596
+ :exampleMetadata: fixture=_generated
2597
+
2598
+ Example::
2599
+
2600
+ # The code below shows an example of how to instantiate this type.
2601
+ # The values are placeholders you should change.
2602
+ import aws_cdk as cdk
2603
+ from aws_cdk import aws_lambda as lambda_
2604
+ from aws_cdk import aws_logs as logs
2605
+ from aws_cdk import aws_stepfunctions as stepfunctions
2606
+ from aws_cdk import custom_resources
2607
+
2608
+ # function_: lambda.Function
2609
+ # log_group: logs.LogGroup
2610
+
2611
+ waiter_state_machine_props = custom_resources.WaiterStateMachineProps(
2612
+ backoff_rate=123,
2613
+ interval=cdk.Duration.minutes(30),
2614
+ is_complete_handler=function_,
2615
+ max_attempts=123,
2616
+ timeout_handler=function_,
2617
+
2618
+ # the properties below are optional
2619
+ disable_logging=False,
2620
+ log_options=custom_resources.LogOptions(
2621
+ destination=log_group,
2622
+ include_execution_data=False,
2623
+ level=stepfunctions.LogLevel.OFF
2624
+ )
2625
+ )
2626
+ '''
2627
+ if isinstance(log_options, dict):
2628
+ log_options = LogOptions(**log_options)
2629
+ if __debug__:
2630
+ type_hints = typing.get_type_hints(_typecheckingstub__569ff1333551048ad82f7261bcf43cbefe118e974cba179165c355fc9347fc13)
2631
+ check_type(argname="argument backoff_rate", value=backoff_rate, expected_type=type_hints["backoff_rate"])
2632
+ check_type(argname="argument interval", value=interval, expected_type=type_hints["interval"])
2633
+ check_type(argname="argument is_complete_handler", value=is_complete_handler, expected_type=type_hints["is_complete_handler"])
2634
+ check_type(argname="argument max_attempts", value=max_attempts, expected_type=type_hints["max_attempts"])
2635
+ check_type(argname="argument timeout_handler", value=timeout_handler, expected_type=type_hints["timeout_handler"])
2636
+ check_type(argname="argument disable_logging", value=disable_logging, expected_type=type_hints["disable_logging"])
2637
+ check_type(argname="argument log_options", value=log_options, expected_type=type_hints["log_options"])
2638
+ self._values: typing.Dict[builtins.str, typing.Any] = {
2639
+ "backoff_rate": backoff_rate,
2640
+ "interval": interval,
2641
+ "is_complete_handler": is_complete_handler,
2642
+ "max_attempts": max_attempts,
2643
+ "timeout_handler": timeout_handler,
2644
+ }
2645
+ if disable_logging is not None:
2646
+ self._values["disable_logging"] = disable_logging
2647
+ if log_options is not None:
2648
+ self._values["log_options"] = log_options
2649
+
2650
+ @builtins.property
2651
+ def backoff_rate(self) -> jsii.Number:
2652
+ '''Backoff between attempts.'''
2653
+ result = self._values.get("backoff_rate")
2654
+ assert result is not None, "Required property 'backoff_rate' is missing"
2655
+ return typing.cast(jsii.Number, result)
2656
+
2657
+ @builtins.property
2658
+ def interval(self) -> _Duration_4839e8c3:
2659
+ '''The interval to wait between attempts.'''
2660
+ result = self._values.get("interval")
2661
+ assert result is not None, "Required property 'interval' is missing"
2662
+ return typing.cast(_Duration_4839e8c3, result)
2663
+
2664
+ @builtins.property
2665
+ def is_complete_handler(self) -> _IFunction_6adb0ab8:
2666
+ '''The main handler that notifies if the waiter to decide 'complete' or 'incomplete'.'''
2667
+ result = self._values.get("is_complete_handler")
2668
+ assert result is not None, "Required property 'is_complete_handler' is missing"
2669
+ return typing.cast(_IFunction_6adb0ab8, result)
2670
+
2671
+ @builtins.property
2672
+ def max_attempts(self) -> jsii.Number:
2673
+ '''Number of attempts.'''
2674
+ result = self._values.get("max_attempts")
2675
+ assert result is not None, "Required property 'max_attempts' is missing"
2676
+ return typing.cast(jsii.Number, result)
2677
+
2678
+ @builtins.property
2679
+ def timeout_handler(self) -> _IFunction_6adb0ab8:
2680
+ '''The handler to call if the waiter times out and is incomplete.'''
2681
+ result = self._values.get("timeout_handler")
2682
+ assert result is not None, "Required property 'timeout_handler' is missing"
2683
+ return typing.cast(_IFunction_6adb0ab8, result)
2684
+
2685
+ @builtins.property
2686
+ def disable_logging(self) -> typing.Optional[builtins.bool]:
2687
+ '''Whether logging for the state machine is disabled.
2688
+
2689
+ :default: - false
2690
+ '''
2691
+ result = self._values.get("disable_logging")
2692
+ return typing.cast(typing.Optional[builtins.bool], result)
2693
+
2694
+ @builtins.property
2695
+ def log_options(self) -> typing.Optional[LogOptions]:
2696
+ '''Defines what execution history events are logged and where they are logged.
2697
+
2698
+ :default: - A default log group will be created if logging is enabled.
2699
+ '''
2700
+ result = self._values.get("log_options")
2701
+ return typing.cast(typing.Optional[LogOptions], result)
2702
+
2703
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
2704
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
2705
+
2706
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
2707
+ return not (rhs == self)
2708
+
2709
+ def __repr__(self) -> str:
2710
+ return "WaiterStateMachineProps(%s)" % ", ".join(
2711
+ k + "=" + repr(v) for k, v in self._values.items()
2712
+ )
2713
+
2714
+
2325
2715
  __all__ = [
2326
2716
  "AwsCustomResource",
2327
2717
  "AwsCustomResourcePolicy",
2328
2718
  "AwsCustomResourceProps",
2329
2719
  "AwsSdkCall",
2720
+ "LogOptions",
2330
2721
  "Logging",
2331
2722
  "LoggingProps",
2332
2723
  "PhysicalResourceId",
@@ -2334,6 +2725,8 @@ __all__ = [
2334
2725
  "Provider",
2335
2726
  "ProviderProps",
2336
2727
  "SdkCallsPolicyOptions",
2728
+ "WaiterStateMachine",
2729
+ "WaiterStateMachineProps",
2337
2730
  ]
2338
2731
 
2339
2732
  publication.publish()
@@ -2414,6 +2807,15 @@ def _typecheckingstub__af7bb124668b93c6ce7d641df2daeabfe424e271742385a76e7e56ec9
2414
2807
  """Type checking stubs"""
2415
2808
  pass
2416
2809
 
2810
+ def _typecheckingstub__2622296f61199d2b10825c21d976c0578e9488ad1b2b7635565f604c598734b7(
2811
+ *,
2812
+ destination: typing.Optional[_ILogGroup_3c4fa718] = None,
2813
+ include_execution_data: typing.Optional[builtins.bool] = None,
2814
+ level: typing.Optional[_LogLevel_be1990fe] = None,
2815
+ ) -> None:
2816
+ """Type checking stubs"""
2817
+ pass
2818
+
2417
2819
  def _typecheckingstub__da0d46a1eb4b059395d06daee7dcb9417dffd0b4cf8e8942cbe0a6549f0faf4b(
2418
2820
  *,
2419
2821
  log_api_response_data: typing.Optional[builtins.bool] = None,
@@ -2444,6 +2846,7 @@ def _typecheckingstub__29415d7bf7977fcf110b77ce69cec309dcf0404601944735020770ddf
2444
2846
  id: builtins.str,
2445
2847
  *,
2446
2848
  on_event_handler: _IFunction_6adb0ab8,
2849
+ disable_waiter_state_machine_logging: typing.Optional[builtins.bool] = None,
2447
2850
  is_complete_handler: typing.Optional[_IFunction_6adb0ab8] = None,
2448
2851
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
2449
2852
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
@@ -2455,6 +2858,7 @@ def _typecheckingstub__29415d7bf7977fcf110b77ce69cec309dcf0404601944735020770ddf
2455
2858
  total_timeout: typing.Optional[_Duration_4839e8c3] = None,
2456
2859
  vpc: typing.Optional[_IVpc_f30d5663] = None,
2457
2860
  vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
2861
+ waiter_state_machine_log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2458
2862
  ) -> None:
2459
2863
  """Type checking stubs"""
2460
2864
  pass
@@ -2462,6 +2866,7 @@ def _typecheckingstub__29415d7bf7977fcf110b77ce69cec309dcf0404601944735020770ddf
2462
2866
  def _typecheckingstub__32b03803ee02437d8d83814282c700ede5633030e4d9f7ebdaf3b9d075b0cbdb(
2463
2867
  *,
2464
2868
  on_event_handler: _IFunction_6adb0ab8,
2869
+ disable_waiter_state_machine_logging: typing.Optional[builtins.bool] = None,
2465
2870
  is_complete_handler: typing.Optional[_IFunction_6adb0ab8] = None,
2466
2871
  log_group: typing.Optional[_ILogGroup_3c4fa718] = None,
2467
2872
  log_retention: typing.Optional[_RetentionDays_070f99f0] = None,
@@ -2473,6 +2878,7 @@ def _typecheckingstub__32b03803ee02437d8d83814282c700ede5633030e4d9f7ebdaf3b9d07
2473
2878
  total_timeout: typing.Optional[_Duration_4839e8c3] = None,
2474
2879
  vpc: typing.Optional[_IVpc_f30d5663] = None,
2475
2880
  vpc_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
2881
+ waiter_state_machine_log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2476
2882
  ) -> None:
2477
2883
  """Type checking stubs"""
2478
2884
  pass
@@ -2483,3 +2889,37 @@ def _typecheckingstub__0cd00e8add38e42b6c4d7db0390a899ccaf5bbe0367bfb387986125da
2483
2889
  ) -> None:
2484
2890
  """Type checking stubs"""
2485
2891
  pass
2892
+
2893
+ def _typecheckingstub__12427b739f326cdb535d2aaf4a70f10977eec5711902d4e5e395f0b8c9bb184e(
2894
+ scope: _constructs_77d1e7e8.Construct,
2895
+ id: builtins.str,
2896
+ *,
2897
+ backoff_rate: jsii.Number,
2898
+ interval: _Duration_4839e8c3,
2899
+ is_complete_handler: _IFunction_6adb0ab8,
2900
+ max_attempts: jsii.Number,
2901
+ timeout_handler: _IFunction_6adb0ab8,
2902
+ disable_logging: typing.Optional[builtins.bool] = None,
2903
+ log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2904
+ ) -> None:
2905
+ """Type checking stubs"""
2906
+ pass
2907
+
2908
+ def _typecheckingstub__2c3d1c306ca04ebd1194ce4f97bed6aa9510a02067654b39f43a1ecef601e3db(
2909
+ identity: _IGrantable_71c4f5de,
2910
+ ) -> None:
2911
+ """Type checking stubs"""
2912
+ pass
2913
+
2914
+ def _typecheckingstub__569ff1333551048ad82f7261bcf43cbefe118e974cba179165c355fc9347fc13(
2915
+ *,
2916
+ backoff_rate: jsii.Number,
2917
+ interval: _Duration_4839e8c3,
2918
+ is_complete_handler: _IFunction_6adb0ab8,
2919
+ max_attempts: jsii.Number,
2920
+ timeout_handler: _IFunction_6adb0ab8,
2921
+ disable_logging: typing.Optional[builtins.bool] = None,
2922
+ log_options: typing.Optional[typing.Union[LogOptions, typing.Dict[builtins.str, typing.Any]]] = None,
2923
+ ) -> None:
2924
+ """Type checking stubs"""
2925
+ pass
@@ -310,6 +310,23 @@ When this feature flag is enabled and calling KMS key grant method, the created
310
310
  }
311
311
  }
312
312
  ```
313
+
314
+ * `@aws-cdk/aws-eks:nodegroupNameAttribute`
315
+
316
+ When enabled, nodegroupName attribute of the provisioned EKS NodeGroup will not have the cluster name prefix.
317
+
318
+ When this feature flag is enabled, the nodegroupName attribute will be exactly the name of the nodegroup
319
+ without any prefix.
320
+
321
+ *cdk.json*
322
+
323
+ ```json
324
+ {
325
+ "context": {
326
+ "@aws-cdk/aws-eks:nodegroupNameAttribute": true
327
+ }
328
+ }
329
+ ```
313
330
  '''
314
331
  from pkgutil import extend_path
315
332
  __path__ = extend_path(__path__, __name__)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aws-cdk-lib
3
- Version: 2.138.0
3
+ Version: 2.139.1
4
4
  Summary: Version 2 of the AWS Cloud Development Kit library
5
5
  Home-page: https://github.com/aws/aws-cdk
6
6
  Author: Amazon Web Services