aws-cdk-lib 2.97.0__py3-none-any.whl → 2.98.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.

Files changed (237) hide show
  1. aws_cdk/__init__.py +18 -309
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.97.0.jsii.tgz → aws-cdk-lib@2.98.0.jsii.tgz} +0 -0
  4. aws_cdk/alexa_ask/__init__.py +1 -0
  5. aws_cdk/aws_accessanalyzer/__init__.py +1 -0
  6. aws_cdk/aws_acmpca/__init__.py +4 -0
  7. aws_cdk/aws_amazonmq/__init__.py +3 -0
  8. aws_cdk/aws_amplify/__init__.py +3 -0
  9. aws_cdk/aws_amplifyuibuilder/__init__.py +3 -0
  10. aws_cdk/aws_apigateway/__init__.py +19 -0
  11. aws_cdk/aws_apigatewayv2/__init__.py +13 -0
  12. aws_cdk/aws_appconfig/__init__.py +8 -0
  13. aws_cdk/aws_appflow/__init__.py +3 -0
  14. aws_cdk/aws_appintegrations/__init__.py +2 -0
  15. aws_cdk/aws_applicationautoscaling/__init__.py +47 -69
  16. aws_cdk/aws_applicationinsights/__init__.py +1 -0
  17. aws_cdk/aws_appmesh/__init__.py +7 -0
  18. aws_cdk/aws_apprunner/__init__.py +5 -0
  19. aws_cdk/aws_appstream/__init__.py +31 -26
  20. aws_cdk/aws_appsync/__init__.py +10 -0
  21. aws_cdk/aws_aps/__init__.py +2 -0
  22. aws_cdk/aws_athena/__init__.py +5 -0
  23. aws_cdk/aws_auditmanager/__init__.py +1 -0
  24. aws_cdk/aws_autoscaling/__init__.py +44 -98
  25. aws_cdk/aws_autoscalingplans/__init__.py +1 -0
  26. aws_cdk/aws_backup/__init__.py +9 -128
  27. aws_cdk/aws_backupgateway/__init__.py +1 -0
  28. aws_cdk/aws_batch/__init__.py +8 -2
  29. aws_cdk/aws_billingconductor/__init__.py +4 -0
  30. aws_cdk/aws_budgets/__init__.py +2 -0
  31. aws_cdk/aws_cassandra/__init__.py +2 -0
  32. aws_cdk/aws_ce/__init__.py +3 -0
  33. aws_cdk/aws_certificatemanager/__init__.py +2 -0
  34. aws_cdk/aws_chatbot/__init__.py +2 -0
  35. aws_cdk/aws_cleanrooms/__init__.py +5 -0
  36. aws_cdk/aws_cloud9/__init__.py +1 -0
  37. aws_cdk/aws_cloudformation/__init__.py +16 -0
  38. aws_cdk/aws_cloudfront/__init__.py +13 -0
  39. aws_cdk/aws_cloudtrail/__init__.py +7 -3
  40. aws_cdk/aws_cloudwatch/__init__.py +6 -0
  41. aws_cdk/aws_codeartifact/__init__.py +2 -0
  42. aws_cdk/aws_codebuild/__init__.py +3 -0
  43. aws_cdk/aws_codecommit/__init__.py +1 -0
  44. aws_cdk/aws_codedeploy/__init__.py +3 -0
  45. aws_cdk/aws_codeguruprofiler/__init__.py +1 -0
  46. aws_cdk/aws_codegurureviewer/__init__.py +1 -0
  47. aws_cdk/aws_codepipeline/__init__.py +3 -0
  48. aws_cdk/aws_codestar/__init__.py +1 -0
  49. aws_cdk/aws_codestarconnections/__init__.py +1 -0
  50. aws_cdk/aws_codestarnotifications/__init__.py +1 -0
  51. aws_cdk/aws_cognito/__init__.py +42 -18
  52. aws_cdk/aws_comprehend/__init__.py +2 -0
  53. aws_cdk/aws_config/__init__.py +10 -0
  54. aws_cdk/aws_connect/__init__.py +491 -0
  55. aws_cdk/aws_connectcampaigns/__init__.py +1 -0
  56. aws_cdk/aws_controltower/__init__.py +1 -0
  57. aws_cdk/aws_cur/__init__.py +1 -0
  58. aws_cdk/aws_customerprofiles/__init__.py +5 -0
  59. aws_cdk/aws_databrew/__init__.py +6 -0
  60. aws_cdk/aws_datapipeline/__init__.py +1 -0
  61. aws_cdk/aws_datasync/__init__.py +14 -0
  62. aws_cdk/aws_dax/__init__.py +3 -0
  63. aws_cdk/aws_detective/__init__.py +3 -0
  64. aws_cdk/aws_devicefarm/__init__.py +6 -0
  65. aws_cdk/aws_devopsguru/__init__.py +3 -0
  66. aws_cdk/aws_directoryservice/__init__.py +2 -0
  67. aws_cdk/aws_dlm/__init__.py +1 -0
  68. aws_cdk/aws_dms/__init__.py +7 -0
  69. aws_cdk/aws_docdb/__init__.py +4 -0
  70. aws_cdk/aws_docdbelastic/__init__.py +1 -0
  71. aws_cdk/aws_dynamodb/__init__.py +2 -0
  72. aws_cdk/aws_ec2/__init__.py +109 -14
  73. aws_cdk/aws_ecr/__init__.py +5 -0
  74. aws_cdk/aws_ecs/__init__.py +7 -0
  75. aws_cdk/aws_efs/__init__.py +3 -0
  76. aws_cdk/aws_eks/__init__.py +5 -0
  77. aws_cdk/aws_elasticache/__init__.py +9 -0
  78. aws_cdk/aws_elasticbeanstalk/__init__.py +4 -0
  79. aws_cdk/aws_elasticloadbalancing/__init__.py +1 -0
  80. aws_cdk/aws_elasticloadbalancingv2/__init__.py +5 -0
  81. aws_cdk/aws_elasticsearch/__init__.py +1 -0
  82. aws_cdk/aws_emr/__init__.py +8 -0
  83. aws_cdk/aws_emrcontainers/__init__.py +1 -0
  84. aws_cdk/aws_emrserverless/__init__.py +1 -0
  85. aws_cdk/aws_entityresolution/__init__.py +2 -0
  86. aws_cdk/aws_events/__init__.py +37 -32
  87. aws_cdk/aws_eventschemas/__init__.py +4 -0
  88. aws_cdk/aws_evidently/__init__.py +5 -0
  89. aws_cdk/aws_finspace/__init__.py +1 -0
  90. aws_cdk/aws_fis/__init__.py +1 -0
  91. aws_cdk/aws_fms/__init__.py +3 -0
  92. aws_cdk/aws_forecast/__init__.py +2 -0
  93. aws_cdk/aws_frauddetector/__init__.py +7 -0
  94. aws_cdk/aws_fsx/__init__.py +5 -0
  95. aws_cdk/aws_gamelift/__init__.py +9 -0
  96. aws_cdk/aws_globalaccelerator/__init__.py +3 -0
  97. aws_cdk/aws_glue/__init__.py +18 -0
  98. aws_cdk/aws_grafana/__init__.py +1 -0
  99. aws_cdk/aws_greengrass/__init__.py +16 -0
  100. aws_cdk/aws_greengrassv2/__init__.py +2 -0
  101. aws_cdk/aws_groundstation/__init__.py +3 -0
  102. aws_cdk/aws_guardduty/__init__.py +6 -0
  103. aws_cdk/aws_healthimaging/__init__.py +382 -0
  104. aws_cdk/aws_healthlake/__init__.py +1 -0
  105. aws_cdk/aws_iam/__init__.py +16 -0
  106. aws_cdk/aws_identitystore/__init__.py +2 -0
  107. aws_cdk/aws_imagebuilder/__init__.py +7 -0
  108. aws_cdk/aws_inspector/__init__.py +3 -0
  109. aws_cdk/aws_inspectorv2/__init__.py +1 -0
  110. aws_cdk/aws_internetmonitor/__init__.py +1 -0
  111. aws_cdk/aws_iot/__init__.py +25 -0
  112. aws_cdk/aws_iot1click/__init__.py +3 -0
  113. aws_cdk/aws_iotanalytics/__init__.py +4 -0
  114. aws_cdk/aws_iotcoredeviceadvisor/__init__.py +1 -0
  115. aws_cdk/aws_iotevents/__init__.py +3 -0
  116. aws_cdk/aws_iotfleethub/__init__.py +1 -0
  117. aws_cdk/aws_iotfleetwise/__init__.py +6 -0
  118. aws_cdk/aws_iotsitewise/__init__.py +7 -0
  119. aws_cdk/aws_iotthingsgraph/__init__.py +1 -0
  120. aws_cdk/aws_iottwinmaker/__init__.py +5 -0
  121. aws_cdk/aws_iotwireless/__init__.py +11 -0
  122. aws_cdk/aws_ivs/__init__.py +4 -0
  123. aws_cdk/aws_ivschat/__init__.py +2 -0
  124. aws_cdk/aws_kafkaconnect/__init__.py +1 -0
  125. aws_cdk/aws_kendra/__init__.py +3 -0
  126. aws_cdk/aws_kendraranking/__init__.py +1 -0
  127. aws_cdk/aws_kinesis/__init__.py +2 -0
  128. aws_cdk/aws_kinesisanalytics/__init__.py +7 -0
  129. aws_cdk/aws_kinesisanalyticsv2/__init__.py +4 -0
  130. aws_cdk/aws_kinesisfirehose/__init__.py +1 -0
  131. aws_cdk/aws_kinesisvideo/__init__.py +2 -0
  132. aws_cdk/aws_kms/__init__.py +3 -0
  133. aws_cdk/aws_lakeformation/__init__.py +7 -0
  134. aws_cdk/aws_lambda/__init__.py +10 -0
  135. aws_cdk/aws_lex/__init__.py +4 -0
  136. aws_cdk/aws_licensemanager/__init__.py +2 -0
  137. aws_cdk/aws_lightsail/__init__.py +11 -0
  138. aws_cdk/aws_location/__init__.py +6 -0
  139. aws_cdk/aws_logs/__init__.py +8 -0
  140. aws_cdk/aws_lookoutequipment/__init__.py +1 -0
  141. aws_cdk/aws_lookoutmetrics/__init__.py +2 -0
  142. aws_cdk/aws_lookoutvision/__init__.py +1 -0
  143. aws_cdk/aws_m2/__init__.py +2 -0
  144. aws_cdk/aws_macie/__init__.py +53 -2
  145. aws_cdk/aws_managedblockchain/__init__.py +3 -0
  146. aws_cdk/aws_mediaconnect/__init__.py +9 -0
  147. aws_cdk/aws_mediaconvert/__init__.py +3 -0
  148. aws_cdk/aws_medialive/__init__.py +3 -0
  149. aws_cdk/aws_mediapackage/__init__.py +5 -0
  150. aws_cdk/aws_mediapackagev2/__init__.py +5 -0
  151. aws_cdk/aws_mediastore/__init__.py +1 -0
  152. aws_cdk/aws_mediatailor/__init__.py +6 -0
  153. aws_cdk/aws_memorydb/__init__.py +5 -0
  154. aws_cdk/aws_msk/__init__.py +180 -2
  155. aws_cdk/aws_mwaa/__init__.py +1 -0
  156. aws_cdk/aws_neptune/__init__.py +5 -0
  157. aws_cdk/aws_networkfirewall/__init__.py +4 -0
  158. aws_cdk/aws_networkmanager/__init__.py +14 -0
  159. aws_cdk/aws_nimblestudio/__init__.py +4 -0
  160. aws_cdk/aws_oam/__init__.py +2 -0
  161. aws_cdk/aws_omics/__init__.py +6 -0
  162. aws_cdk/aws_opensearchserverless/__init__.py +5 -0
  163. aws_cdk/aws_opensearchservice/__init__.py +1 -0
  164. aws_cdk/aws_opsworks/__init__.py +7 -0
  165. aws_cdk/aws_opsworkscm/__init__.py +1 -0
  166. aws_cdk/aws_organizations/__init__.py +5 -0
  167. aws_cdk/aws_osis/__init__.py +1 -0
  168. aws_cdk/aws_panorama/__init__.py +3 -0
  169. aws_cdk/aws_pcaconnectorad/__init__.py +5 -0
  170. aws_cdk/aws_personalize/__init__.py +4 -0
  171. aws_cdk/aws_pinpoint/__init__.py +19 -0
  172. aws_cdk/aws_pinpointemail/__init__.py +4 -0
  173. aws_cdk/aws_pipes/__init__.py +1 -0
  174. aws_cdk/aws_proton/__init__.py +3 -0
  175. aws_cdk/aws_qldb/__init__.py +2 -0
  176. aws_cdk/aws_quicksight/__init__.py +473 -464
  177. aws_cdk/aws_ram/__init__.py +2 -0
  178. aws_cdk/aws_rds/__init__.py +14 -0
  179. aws_cdk/aws_redshift/__init__.py +9 -0
  180. aws_cdk/aws_redshiftserverless/__init__.py +2 -0
  181. aws_cdk/aws_refactorspaces/__init__.py +4 -0
  182. aws_cdk/aws_rekognition/__init__.py +3 -0
  183. aws_cdk/aws_resiliencehub/__init__.py +2 -0
  184. aws_cdk/aws_resourceexplorer2/__init__.py +3 -0
  185. aws_cdk/aws_resourcegroups/__init__.py +1 -0
  186. aws_cdk/aws_robomaker/__init__.py +6 -0
  187. aws_cdk/aws_rolesanywhere/__init__.py +77 -58
  188. aws_cdk/aws_route53/__init__.py +7 -0
  189. aws_cdk/aws_route53recoverycontrol/__init__.py +4 -0
  190. aws_cdk/aws_route53recoveryreadiness/__init__.py +4 -0
  191. aws_cdk/aws_route53resolver/__init__.py +11 -0
  192. aws_cdk/aws_rum/__init__.py +1 -0
  193. aws_cdk/aws_s3/__init__.py +6 -0
  194. aws_cdk/aws_s3objectlambda/__init__.py +2 -0
  195. aws_cdk/aws_s3outposts/__init__.py +4 -0
  196. aws_cdk/aws_sagemaker/__init__.py +37 -3
  197. aws_cdk/aws_sam/__init__.py +7 -0
  198. aws_cdk/aws_scheduler/__init__.py +2 -0
  199. aws_cdk/aws_sdb/__init__.py +1 -0
  200. aws_cdk/aws_secretsmanager/__init__.py +4 -0
  201. aws_cdk/aws_securityhub/__init__.py +3 -0
  202. aws_cdk/aws_servicecatalog/__init__.py +16 -0
  203. aws_cdk/aws_servicecatalogappregistry/__init__.py +4 -0
  204. aws_cdk/aws_servicediscovery/__init__.py +5 -0
  205. aws_cdk/aws_ses/__init__.py +10 -0
  206. aws_cdk/aws_shield/__init__.py +30 -11
  207. aws_cdk/aws_signer/__init__.py +2 -0
  208. aws_cdk/aws_simspaceweaver/__init__.py +1 -0
  209. aws_cdk/aws_sns/__init__.py +9 -5
  210. aws_cdk/aws_sqs/__init__.py +3 -0
  211. aws_cdk/aws_ssm/__init__.py +9 -0
  212. aws_cdk/aws_ssmcontacts/__init__.py +4 -0
  213. aws_cdk/aws_ssmincidents/__init__.py +2 -0
  214. aws_cdk/aws_sso/__init__.py +3 -0
  215. aws_cdk/aws_stepfunctions/__init__.py +4 -0
  216. aws_cdk/aws_supportapp/__init__.py +3 -0
  217. aws_cdk/aws_synthetics/__init__.py +2 -0
  218. aws_cdk/aws_systemsmanagersap/__init__.py +1 -0
  219. aws_cdk/aws_timestream/__init__.py +3 -0
  220. aws_cdk/aws_transfer/__init__.py +7 -0
  221. aws_cdk/aws_verifiedpermissions/__init__.py +4 -0
  222. aws_cdk/aws_voiceid/__init__.py +1 -0
  223. aws_cdk/aws_vpclattice/__init__.py +10 -0
  224. aws_cdk/aws_waf/__init__.py +7 -0
  225. aws_cdk/aws_wafregional/__init__.py +11 -0
  226. aws_cdk/aws_wafv2/__init__.py +6 -0
  227. aws_cdk/aws_wisdom/__init__.py +3 -0
  228. aws_cdk/aws_workspaces/__init__.py +2 -0
  229. aws_cdk/aws_workspacesweb/__init__.py +8 -0
  230. aws_cdk/aws_xray/__init__.py +3 -0
  231. {aws_cdk_lib-2.97.0.dist-info → aws_cdk_lib-2.98.0.dist-info}/METADATA +1 -1
  232. aws_cdk_lib-2.98.0.dist-info/RECORD +272 -0
  233. aws_cdk_lib-2.97.0.dist-info/RECORD +0 -271
  234. {aws_cdk_lib-2.97.0.dist-info → aws_cdk_lib-2.98.0.dist-info}/LICENSE +0 -0
  235. {aws_cdk_lib-2.97.0.dist-info → aws_cdk_lib-2.98.0.dist-info}/NOTICE +0 -0
  236. {aws_cdk_lib-2.97.0.dist-info → aws_cdk_lib-2.98.0.dist-info}/WHEEL +0 -0
  237. {aws_cdk_lib-2.97.0.dist-info → aws_cdk_lib-2.98.0.dist-info}/top_level.txt +0 -0
@@ -703,7 +703,6 @@ import constructs as _constructs_77d1e7e8
703
703
  from .. import (
704
704
  CfnCreationPolicy as _CfnCreationPolicy_d904f690,
705
705
  CfnResource as _CfnResource_9df397a6,
706
- CronOptions as _CronOptions_dd1ff9ac,
707
706
  Duration as _Duration_4839e8c3,
708
707
  IAspect as _IAspect_118c810a,
709
708
  IInspectable as _IInspectable_c2943556,
@@ -711,9 +710,7 @@ from .. import (
711
710
  IResource as _IResource_c80c4260,
712
711
  ITaggable as _ITaggable_36806126,
713
712
  Resource as _Resource_45bc6135,
714
- Schedule as _Schedule_e7f843a1,
715
713
  TagManager as _TagManager_0a598cb3,
716
- TimeZone as _TimeZone_cdd72ac9,
717
714
  TreeInspector as _TreeInspector_488e0dd5,
718
715
  )
719
716
  from ..aws_cloudwatch import Alarm as _Alarm_9fbab1f1, IMetric as _IMetric_c7fd29de
@@ -1400,7 +1397,7 @@ class BasicScheduledActionProps:
1400
1397
  :param max_capacity: The new maximum capacity. At the scheduled time, set the maximum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new maximum capacity.
1401
1398
  :param min_capacity: The new minimum capacity. At the scheduled time, set the minimum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new minimum capacity.
1402
1399
  :param start_time: When this scheduled action becomes active. Default: - The rule is activate immediately.
1403
- :param time_zone: (deprecated) Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
1400
+ :param time_zone: Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
1404
1401
 
1405
1402
  :exampleMetadata: infused
1406
1403
 
@@ -1515,7 +1512,7 @@ class BasicScheduledActionProps:
1515
1512
 
1516
1513
  @builtins.property
1517
1514
  def time_zone(self) -> typing.Optional[builtins.str]:
1518
- '''(deprecated) Specifies the time zone for a cron expression.
1515
+ '''Specifies the time zone for a cron expression.
1519
1516
 
1520
1517
  If a time zone is not provided, UTC is used by default.
1521
1518
 
@@ -1524,10 +1521,6 @@ class BasicScheduledActionProps:
1524
1521
  For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
1525
1522
 
1526
1523
  :default: - UTC
1527
-
1528
- :deprecated: use time zones as part of the schedule prop
1529
-
1530
- :stability: deprecated
1531
1524
  '''
1532
1525
  result = self._values.get("time_zone")
1533
1526
  return typing.cast(typing.Optional[builtins.str], result)
@@ -2216,6 +2209,7 @@ class CfnAutoScalingGroup(
2216
2209
  Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a `launch template <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html>`_ or a launch configuration. We strongly recommend that you do not use launch configurations. They do not provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2. For more information, see `Launch configurations <https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html>`_ and `Migrate AWS CloudFormation stacks from launch configurations to launch templates <https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
2217
2210
 
2218
2211
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html
2212
+ :cloudformationResource: AWS::AutoScaling::AutoScalingGroup
2219
2213
  :exampleMetadata: fixture=_generated
2220
2214
 
2221
2215
  Example::
@@ -6176,6 +6170,7 @@ class CfnLaunchConfiguration(
6176
6170
  Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group using either a `launch template <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html>`_ or a launch configuration. We strongly recommend that you do not use launch configurations. They do not provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2. For more information, see `Launch configurations <https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-configurations.html>`_ and `Migrate AWS CloudFormation stacks from launch configurations to launch templates <https://docs.aws.amazon.com/autoscaling/ec2/userguide/migrate-launch-configurations-with-cloudformation.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
6177
6171
 
6178
6172
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-launchconfiguration.html
6173
+ :cloudformationResource: AWS::AutoScaling::LaunchConfiguration
6179
6174
  :exampleMetadata: fixture=_generated
6180
6175
 
6181
6176
  Example::
@@ -7508,6 +7503,7 @@ class CfnLifecycleHook(
7508
7503
  For more information, see `Amazon EC2 Auto Scaling lifecycle hooks <https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
7509
7504
 
7510
7505
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-lifecyclehook.html
7506
+ :cloudformationResource: AWS::AutoScaling::LifecycleHook
7511
7507
  :exampleMetadata: fixture=_generated
7512
7508
 
7513
7509
  Example::
@@ -7915,6 +7911,7 @@ class CfnScalingPolicy(
7915
7911
  For more information about using scaling policies to scale your Auto Scaling group automatically, see `Dynamic scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scale-based-on-demand.html>`_ and `Predictive scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
7916
7912
 
7917
7913
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-scalingpolicy.html
7914
+ :cloudformationResource: AWS::AutoScaling::ScalingPolicy
7918
7915
  :exampleMetadata: fixture=_generated
7919
7916
 
7920
7917
  Example::
@@ -10780,6 +10777,7 @@ class CfnScheduledAction(
10780
10777
  For more information, see `Scheduled scaling <https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html>`_ and `Suspending and resuming scaling processes <https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
10781
10778
 
10782
10779
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-scheduledaction.html
10780
+ :cloudformationResource: AWS::AutoScaling::ScheduledAction
10783
10781
  :exampleMetadata: fixture=_generated
10784
10782
 
10785
10783
  Example::
@@ -11204,6 +11202,7 @@ class CfnWarmPool(
11204
11202
  CloudFormation supports the ``UpdatePolicy`` attribute for Auto Scaling groups. During an update, if ``UpdatePolicy`` is set to ``AutoScalingRollingUpdate`` , CloudFormation replaces ``InService`` instances only. Instances in the warm pool are not replaced. The difference in which instances are replaced can potentially result in different instance configurations after the stack update completes. If ``UpdatePolicy`` is set to ``AutoScalingReplacingUpdate`` , you do not encounter this issue because CloudFormation replaces both the Auto Scaling group and the warm pool.
11205
11203
 
11206
11204
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-warmpool.html
11205
+ :cloudformationResource: AWS::AutoScaling::WarmPool
11207
11206
  :exampleMetadata: fixture=_generated
11208
11207
 
11209
11208
  Example::
@@ -12248,18 +12247,16 @@ class CpuUtilizationScalingProps(BaseTargetTrackingProps):
12248
12247
 
12249
12248
  @jsii.data_type(
12250
12249
  jsii_type="aws-cdk-lib.aws_autoscaling.CronOptions",
12251
- jsii_struct_bases=[_CronOptions_dd1ff9ac],
12250
+ jsii_struct_bases=[],
12252
12251
  name_mapping={
12253
12252
  "day": "day",
12254
12253
  "hour": "hour",
12255
12254
  "minute": "minute",
12256
12255
  "month": "month",
12257
- "time_zone": "timeZone",
12258
12256
  "week_day": "weekDay",
12259
- "year": "year",
12260
12257
  },
12261
12258
  )
12262
- class CronOptions(_CronOptions_dd1ff9ac):
12259
+ class CronOptions:
12263
12260
  def __init__(
12264
12261
  self,
12265
12262
  *,
@@ -12267,11 +12264,9 @@ class CronOptions(_CronOptions_dd1ff9ac):
12267
12264
  hour: typing.Optional[builtins.str] = None,
12268
12265
  minute: typing.Optional[builtins.str] = None,
12269
12266
  month: typing.Optional[builtins.str] = None,
12270
- time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
12271
12267
  week_day: typing.Optional[builtins.str] = None,
12272
- year: typing.Optional[builtins.str] = None,
12273
12268
  ) -> None:
12274
- '''(deprecated) Options to configure a cron expression.
12269
+ '''Options to configure a cron expression.
12275
12270
 
12276
12271
  All fields are strings so you can use complex expressions. Absence of
12277
12272
  a field implies '*' or '?', whichever one is appropriate.
@@ -12280,33 +12275,24 @@ class CronOptions(_CronOptions_dd1ff9ac):
12280
12275
  :param hour: The hour to run this rule at. Default: - Every hour
12281
12276
  :param minute: The minute to run this rule at. Default: - Every minute
12282
12277
  :param month: The month to run this rule at. Default: - Every month
12283
- :param time_zone: Retrieve the expression for this schedule. Default: TimeZone.ETC_UTC
12284
12278
  :param week_day: The day of the week to run this rule at. Default: - Any day of the week
12285
- :param year: The year to run this rule at. Default: - Every year
12286
-
12287
- :deprecated: use core.CronOptions
12288
12279
 
12289
12280
  :see: http://crontab.org/
12290
- :stability: deprecated
12291
- :exampleMetadata: fixture=_generated
12281
+ :exampleMetadata: infused
12292
12282
 
12293
12283
  Example::
12294
12284
 
12295
- # The code below shows an example of how to instantiate this type.
12296
- # The values are placeholders you should change.
12297
- import aws_cdk as cdk
12298
- from aws_cdk import aws_autoscaling as autoscaling
12285
+ # auto_scaling_group: autoscaling.AutoScalingGroup
12286
+
12299
12287
 
12300
- # time_zone: cdk.TimeZone
12288
+ auto_scaling_group.scale_on_schedule("PrescaleInTheMorning",
12289
+ schedule=autoscaling.Schedule.cron(hour="8", minute="0"),
12290
+ min_capacity=20
12291
+ )
12301
12292
 
12302
- cron_options = autoscaling.CronOptions(
12303
- day="day",
12304
- hour="hour",
12305
- minute="minute",
12306
- month="month",
12307
- time_zone=time_zone,
12308
- week_day="weekDay",
12309
- year="year"
12293
+ auto_scaling_group.scale_on_schedule("AllowDownscalingAtNight",
12294
+ schedule=autoscaling.Schedule.cron(hour="20", minute="0"),
12295
+ min_capacity=1
12310
12296
  )
12311
12297
  '''
12312
12298
  if __debug__:
@@ -12315,9 +12301,7 @@ class CronOptions(_CronOptions_dd1ff9ac):
12315
12301
  check_type(argname="argument hour", value=hour, expected_type=type_hints["hour"])
12316
12302
  check_type(argname="argument minute", value=minute, expected_type=type_hints["minute"])
12317
12303
  check_type(argname="argument month", value=month, expected_type=type_hints["month"])
12318
- check_type(argname="argument time_zone", value=time_zone, expected_type=type_hints["time_zone"])
12319
12304
  check_type(argname="argument week_day", value=week_day, expected_type=type_hints["week_day"])
12320
- check_type(argname="argument year", value=year, expected_type=type_hints["year"])
12321
12305
  self._values: typing.Dict[builtins.str, typing.Any] = {}
12322
12306
  if day is not None:
12323
12307
  self._values["day"] = day
@@ -12327,12 +12311,8 @@ class CronOptions(_CronOptions_dd1ff9ac):
12327
12311
  self._values["minute"] = minute
12328
12312
  if month is not None:
12329
12313
  self._values["month"] = month
12330
- if time_zone is not None:
12331
- self._values["time_zone"] = time_zone
12332
12314
  if week_day is not None:
12333
12315
  self._values["week_day"] = week_day
12334
- if year is not None:
12335
- self._values["year"] = year
12336
12316
 
12337
12317
  @builtins.property
12338
12318
  def day(self) -> typing.Optional[builtins.str]:
@@ -12370,15 +12350,6 @@ class CronOptions(_CronOptions_dd1ff9ac):
12370
12350
  result = self._values.get("month")
12371
12351
  return typing.cast(typing.Optional[builtins.str], result)
12372
12352
 
12373
- @builtins.property
12374
- def time_zone(self) -> typing.Optional[_TimeZone_cdd72ac9]:
12375
- '''Retrieve the expression for this schedule.
12376
-
12377
- :default: TimeZone.ETC_UTC
12378
- '''
12379
- result = self._values.get("time_zone")
12380
- return typing.cast(typing.Optional[_TimeZone_cdd72ac9], result)
12381
-
12382
12353
  @builtins.property
12383
12354
  def week_day(self) -> typing.Optional[builtins.str]:
12384
12355
  '''The day of the week to run this rule at.
@@ -12388,15 +12359,6 @@ class CronOptions(_CronOptions_dd1ff9ac):
12388
12359
  result = self._values.get("week_day")
12389
12360
  return typing.cast(typing.Optional[builtins.str], result)
12390
12361
 
12391
- @builtins.property
12392
- def year(self) -> typing.Optional[builtins.str]:
12393
- '''The year to run this rule at.
12394
-
12395
- :default: - Every year
12396
- '''
12397
- result = self._values.get("year")
12398
- return typing.cast(typing.Optional[builtins.str], result)
12399
-
12400
12362
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
12401
12363
  return isinstance(rhs, self.__class__) and rhs._values == self._values
12402
12364
 
@@ -13223,7 +13185,7 @@ class IAutoScalingGroup(
13223
13185
  :param max_capacity: The new maximum capacity. At the scheduled time, set the maximum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new maximum capacity.
13224
13186
  :param min_capacity: The new minimum capacity. At the scheduled time, set the minimum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new minimum capacity.
13225
13187
  :param start_time: When this scheduled action becomes active. Default: - The rule is activate immediately.
13226
- :param time_zone: (deprecated) Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
13188
+ :param time_zone: Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
13227
13189
  '''
13228
13190
  ...
13229
13191
 
@@ -13517,7 +13479,7 @@ class _IAutoScalingGroupProxy(
13517
13479
  :param max_capacity: The new maximum capacity. At the scheduled time, set the maximum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new maximum capacity.
13518
13480
  :param min_capacity: The new minimum capacity. At the scheduled time, set the minimum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new minimum capacity.
13519
13481
  :param start_time: When this scheduled action becomes active. Default: - The rule is activate immediately.
13520
- :param time_zone: (deprecated) Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
13482
+ :param time_zone: Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
13521
13483
  '''
13522
13484
  if __debug__:
13523
13485
  type_hints = typing.get_type_hints(_typecheckingstub__fb399691f6facd38db7c6fafc541af1753d52ff948133ce68b6da663ac0cee9d)
@@ -15301,7 +15263,6 @@ class ScalingProcess(enum.Enum):
15301
15263
 
15302
15264
 
15303
15265
  class Schedule(
15304
- _Schedule_e7f843a1,
15305
15266
  metaclass=jsii.JSIIAbstractClass,
15306
15267
  jsii_type="aws-cdk-lib.aws_autoscaling.Schedule",
15307
15268
  ):
@@ -15337,9 +15298,7 @@ class Schedule(
15337
15298
  hour: typing.Optional[builtins.str] = None,
15338
15299
  minute: typing.Optional[builtins.str] = None,
15339
15300
  month: typing.Optional[builtins.str] = None,
15340
- time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
15341
15301
  week_day: typing.Optional[builtins.str] = None,
15342
- year: typing.Optional[builtins.str] = None,
15343
15302
  ) -> "Schedule":
15344
15303
  '''Create a schedule from a set of cron fields.
15345
15304
 
@@ -15347,48 +15306,42 @@ class Schedule(
15347
15306
  :param hour: The hour to run this rule at. Default: - Every hour
15348
15307
  :param minute: The minute to run this rule at. Default: - Every minute
15349
15308
  :param month: The month to run this rule at. Default: - Every month
15350
- :param time_zone: Retrieve the expression for this schedule. Default: TimeZone.ETC_UTC
15351
15309
  :param week_day: The day of the week to run this rule at. Default: - Any day of the week
15352
- :param year: The year to run this rule at. Default: - Every year
15353
15310
  '''
15354
- options = _CronOptions_dd1ff9ac(
15355
- day=day,
15356
- hour=hour,
15357
- minute=minute,
15358
- month=month,
15359
- time_zone=time_zone,
15360
- week_day=week_day,
15361
- year=year,
15311
+ options = CronOptions(
15312
+ day=day, hour=hour, minute=minute, month=month, week_day=week_day
15362
15313
  )
15363
15314
 
15364
15315
  return typing.cast("Schedule", jsii.sinvoke(cls, "cron", [options]))
15365
15316
 
15366
15317
  @jsii.member(jsii_name="expression")
15367
15318
  @builtins.classmethod
15368
- def expression(
15369
- cls,
15370
- expression: builtins.str,
15371
- time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
15372
- ) -> "Schedule":
15319
+ def expression(cls, expression: builtins.str) -> "Schedule":
15373
15320
  '''Construct a schedule from a literal schedule expression.
15374
15321
 
15375
15322
  :param expression: The expression to use. Must be in a format that AutoScaling will recognize
15376
- :param time_zone: -
15377
15323
 
15378
15324
  :see: http://crontab.org/
15379
15325
  '''
15380
15326
  if __debug__:
15381
15327
  type_hints = typing.get_type_hints(_typecheckingstub__a472ca2650776afb4c410eee0e25a484de0070b51e7dfc154b5506f87b8a6994)
15382
15328
  check_type(argname="argument expression", value=expression, expected_type=type_hints["expression"])
15383
- check_type(argname="argument time_zone", value=time_zone, expected_type=type_hints["time_zone"])
15384
- return typing.cast("Schedule", jsii.sinvoke(cls, "expression", [expression, time_zone]))
15329
+ return typing.cast("Schedule", jsii.sinvoke(cls, "expression", [expression]))
15385
15330
 
15331
+ @builtins.property
15332
+ @jsii.member(jsii_name="expressionString")
15333
+ @abc.abstractmethod
15334
+ def expression_string(self) -> builtins.str:
15335
+ '''Retrieve the expression for this schedule.'''
15336
+ ...
15386
15337
 
15387
- class _ScheduleProxy(
15388
- Schedule,
15389
- jsii.proxy_for(_Schedule_e7f843a1), # type: ignore[misc]
15390
- ):
15391
- pass
15338
+
15339
+ class _ScheduleProxy(Schedule):
15340
+ @builtins.property
15341
+ @jsii.member(jsii_name="expressionString")
15342
+ def expression_string(self) -> builtins.str:
15343
+ '''Retrieve the expression for this schedule.'''
15344
+ return typing.cast(builtins.str, jsii.get(self, "expressionString"))
15392
15345
 
15393
15346
  # Adding a "__jsii_proxy_class__(): typing.Type" function to the abstract class
15394
15347
  typing.cast(typing.Any, Schedule).__jsii_proxy_class__ = lambda : _ScheduleProxy
@@ -15450,7 +15403,7 @@ class ScheduledAction(
15450
15403
  :param max_capacity: The new maximum capacity. At the scheduled time, set the maximum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new maximum capacity.
15451
15404
  :param min_capacity: The new minimum capacity. At the scheduled time, set the minimum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new minimum capacity.
15452
15405
  :param start_time: When this scheduled action becomes active. Default: - The rule is activate immediately.
15453
- :param time_zone: (deprecated) Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
15406
+ :param time_zone: Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
15454
15407
  '''
15455
15408
  if __debug__:
15456
15409
  type_hints = typing.get_type_hints(_typecheckingstub__74b3b8cb09553edb86fdacb4ea37f2427f0041f519ffb8025514989ca3a7ea4c)
@@ -15514,7 +15467,7 @@ class ScheduledActionProps(BasicScheduledActionProps):
15514
15467
  :param max_capacity: The new maximum capacity. At the scheduled time, set the maximum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new maximum capacity.
15515
15468
  :param min_capacity: The new minimum capacity. At the scheduled time, set the minimum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new minimum capacity.
15516
15469
  :param start_time: When this scheduled action becomes active. Default: - The rule is activate immediately.
15517
- :param time_zone: (deprecated) Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
15470
+ :param time_zone: Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
15518
15471
  :param auto_scaling_group: The AutoScalingGroup to apply the scheduled actions to.
15519
15472
 
15520
15473
  :exampleMetadata: fixture=_generated
@@ -15639,7 +15592,7 @@ class ScheduledActionProps(BasicScheduledActionProps):
15639
15592
 
15640
15593
  @builtins.property
15641
15594
  def time_zone(self) -> typing.Optional[builtins.str]:
15642
- '''(deprecated) Specifies the time zone for a cron expression.
15595
+ '''Specifies the time zone for a cron expression.
15643
15596
 
15644
15597
  If a time zone is not provided, UTC is used by default.
15645
15598
 
@@ -15648,10 +15601,6 @@ class ScheduledActionProps(BasicScheduledActionProps):
15648
15601
  For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
15649
15602
 
15650
15603
  :default: - UTC
15651
-
15652
- :deprecated: use time zones as part of the schedule prop
15653
-
15654
- :stability: deprecated
15655
15604
  '''
15656
15605
  result = self._values.get("time_zone")
15657
15606
  return typing.cast(typing.Optional[builtins.str], result)
@@ -17759,7 +17708,7 @@ class AutoScalingGroup(
17759
17708
  :param max_capacity: The new maximum capacity. At the scheduled time, set the maximum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new maximum capacity.
17760
17709
  :param min_capacity: The new minimum capacity. At the scheduled time, set the minimum capacity to the given capacity. At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied. Default: - No new minimum capacity.
17761
17710
  :param start_time: When this scheduled action becomes active. Default: - The rule is activate immediately.
17762
- :param time_zone: (deprecated) Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
17711
+ :param time_zone: Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Default: - UTC
17763
17712
  '''
17764
17713
  if __debug__:
17765
17714
  type_hints = typing.get_type_hints(_typecheckingstub__182512f6d585e187d1c3b075cba4994f259ac9adb6292cfbe68f8a73530920ad)
@@ -20379,9 +20328,7 @@ def _typecheckingstub__ff2ba980d042c09d15d4b7c8a2897accea72726b7fd7c61c4e35722c4
20379
20328
  hour: typing.Optional[builtins.str] = None,
20380
20329
  minute: typing.Optional[builtins.str] = None,
20381
20330
  month: typing.Optional[builtins.str] = None,
20382
- time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
20383
20331
  week_day: typing.Optional[builtins.str] = None,
20384
- year: typing.Optional[builtins.str] = None,
20385
20332
  ) -> None:
20386
20333
  """Type checking stubs"""
20387
20334
  pass
@@ -20680,7 +20627,6 @@ def _typecheckingstub__b560eae9332d2a2b0774bea52aea5a16c19db15d41968c9f1bcfba58f
20680
20627
 
20681
20628
  def _typecheckingstub__a472ca2650776afb4c410eee0e25a484de0070b51e7dfc154b5506f87b8a6994(
20682
20629
  expression: builtins.str,
20683
- time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
20684
20630
  ) -> None:
20685
20631
  """Type checking stubs"""
20686
20632
  pass
@@ -67,6 +67,7 @@ class CfnScalingPlan(
67
67
  For more information, see the `AWS Auto Scaling User Guide <https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html>`_ .
68
68
 
69
69
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscalingplans-scalingplan.html
70
+ :cloudformationResource: AWS::AutoScalingPlans::ScalingPlan
70
71
  :exampleMetadata: fixture=_generated
71
72
 
72
73
  Example::