aws-cdk-lib 2.75.1__py3-none-any.whl → 2.76.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 (98) hide show
  1. aws_cdk/__init__.py +245 -259
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.75.1.jsii.tgz → aws-cdk-lib@2.76.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplifyuibuilder/__init__.py +184 -216
  5. aws_cdk/aws_apigateway/__init__.py +95 -148
  6. aws_cdk/aws_appconfig/__init__.py +8 -4
  7. aws_cdk/aws_appflow/__init__.py +27 -52
  8. aws_cdk/aws_appmesh/__init__.py +91 -200
  9. aws_cdk/aws_apprunner/__init__.py +4 -16
  10. aws_cdk/aws_appstream/__init__.py +18 -82
  11. aws_cdk/aws_athena/__init__.py +18 -32
  12. aws_cdk/aws_backup/__init__.py +48 -86
  13. aws_cdk/aws_billingconductor/__init__.py +12 -7
  14. aws_cdk/aws_budgets/__init__.py +8 -17
  15. aws_cdk/aws_certificatemanager/__init__.py +7 -4
  16. aws_cdk/aws_cloudfront/__init__.py +14 -11
  17. aws_cdk/aws_cloudfront_origins/__init__.py +18 -8
  18. aws_cdk/aws_cloudtrail/__init__.py +7 -10
  19. aws_cdk/aws_cloudwatch/__init__.py +63 -35
  20. aws_cdk/aws_codebuild/__init__.py +10 -13
  21. aws_cdk/aws_codecommit/__init__.py +0 -1
  22. aws_cdk/aws_codedeploy/__init__.py +165 -162
  23. aws_cdk/aws_codepipeline/__init__.py +0 -4
  24. aws_cdk/aws_codepipeline_actions/__init__.py +16 -164
  25. aws_cdk/aws_cognito/__init__.py +195 -100
  26. aws_cdk/aws_config/__init__.py +28 -51
  27. aws_cdk/aws_connectcampaigns/__init__.py +5 -6
  28. aws_cdk/aws_databrew/__init__.py +5 -6
  29. aws_cdk/aws_dlm/__init__.py +33 -71
  30. aws_cdk/aws_docdb/__init__.py +20 -76
  31. aws_cdk/aws_dynamodb/__init__.py +7 -14
  32. aws_cdk/aws_ec2/__init__.py +1846 -421
  33. aws_cdk/aws_ecr/__init__.py +1 -2
  34. aws_cdk/aws_ecr_assets/__init__.py +27 -14
  35. aws_cdk/aws_ecs/__init__.py +241 -111
  36. aws_cdk/aws_ecs_patterns/__init__.py +13 -11
  37. aws_cdk/aws_eks/__init__.py +13 -8
  38. aws_cdk/aws_elasticloadbalancing/__init__.py +16 -9
  39. aws_cdk/aws_elasticloadbalancingv2/__init__.py +142 -82
  40. aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +126 -61
  41. aws_cdk/aws_elasticsearch/__init__.py +0 -7
  42. aws_cdk/aws_emr/__init__.py +7 -16
  43. aws_cdk/aws_emrserverless/__init__.py +14 -18
  44. aws_cdk/aws_events/__init__.py +33 -29
  45. aws_cdk/aws_events_targets/__init__.py +248 -89
  46. aws_cdk/aws_frauddetector/__init__.py +3 -4
  47. aws_cdk/aws_fsx/__init__.py +13 -7
  48. aws_cdk/aws_gamelift/__init__.py +11 -20
  49. aws_cdk/aws_iam/__init__.py +21 -25
  50. aws_cdk/aws_imagebuilder/__init__.py +58 -80
  51. aws_cdk/aws_iot/__init__.py +16 -10
  52. aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -26
  53. aws_cdk/aws_iotevents/__init__.py +6 -4
  54. aws_cdk/aws_iotfleetwise/__init__.py +27 -40
  55. aws_cdk/aws_iotsitewise/__init__.py +8 -5
  56. aws_cdk/aws_kinesisfirehose/__init__.py +21 -38
  57. aws_cdk/aws_lambda/__init__.py +59 -48
  58. aws_cdk/aws_lambda_event_sources/__init__.py +6 -21
  59. aws_cdk/aws_logs/__init__.py +5 -7
  60. aws_cdk/aws_macie/__init__.py +22 -15
  61. aws_cdk/aws_mediaconnect/__init__.py +5 -8
  62. aws_cdk/aws_medialive/__init__.py +2 -4
  63. aws_cdk/aws_mediapackage/__init__.py +9 -18
  64. aws_cdk/aws_memorydb/__init__.py +5 -10
  65. aws_cdk/aws_mwaa/__init__.py +8 -4
  66. aws_cdk/aws_nimblestudio/__init__.py +25 -45
  67. aws_cdk/aws_opensearchservice/__init__.py +0 -1
  68. aws_cdk/aws_panorama/__init__.py +11 -12
  69. aws_cdk/aws_personalize/__init__.py +46 -72
  70. aws_cdk/aws_pinpoint/__init__.py +36 -65
  71. aws_cdk/aws_quicksight/__init__.py +9972 -13374
  72. aws_cdk/aws_rds/__init__.py +23 -22
  73. aws_cdk/aws_route53/__init__.py +8 -16
  74. aws_cdk/aws_route53_targets/__init__.py +2 -4
  75. aws_cdk/aws_s3/__init__.py +25 -85
  76. aws_cdk/aws_s3_notifications/__init__.py +0 -3
  77. aws_cdk/aws_sagemaker/__init__.py +6 -2
  78. aws_cdk/aws_secretsmanager/__init__.py +17 -14
  79. aws_cdk/aws_servicecatalog/__init__.py +58 -82
  80. aws_cdk/aws_servicediscovery/__init__.py +4 -6
  81. aws_cdk/aws_ses/__init__.py +21 -34
  82. aws_cdk/aws_sns/__init__.py +4 -8
  83. aws_cdk/aws_ssm/__init__.py +19 -23
  84. aws_cdk/aws_ssmcontacts/__init__.py +10 -6
  85. aws_cdk/aws_stepfunctions/__init__.py +3 -12
  86. aws_cdk/aws_stepfunctions_tasks/__init__.py +7 -12
  87. aws_cdk/aws_timestream/__init__.py +22 -28
  88. aws_cdk/aws_xray/__init__.py +15 -22
  89. aws_cdk/cloud_assembly_schema/__init__.py +14 -6
  90. aws_cdk/custom_resources/__init__.py +2 -3
  91. aws_cdk/pipelines/__init__.py +84 -134
  92. aws_cdk/triggers/__init__.py +46 -61
  93. {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/METADATA +47 -92
  94. {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/RECORD +98 -98
  95. {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/LICENSE +0 -0
  96. {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/NOTICE +0 -0
  97. {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/WHEEL +0 -0
  98. {aws_cdk_lib-2.75.1.dist-info → aws_cdk_lib-2.76.0.dist-info}/top_level.txt +0 -0
@@ -9,7 +9,8 @@ You can reference existing SSM Parameter Store values that you want to use in
9
9
  your CDK app by using `ssm.StringParameter.fromStringParameterAttributes`:
10
10
 
11
11
  ```python
12
- # Example automatically generated from non-compiling source. May contain errors.
12
+ parameter_version = Token.as_number({"Ref": "MyParameter"})
13
+
13
14
  # Retrieve the latest value of the non-secret parameter
14
15
  # with name "/My/String/Parameter".
15
16
  string_value = ssm.StringParameter.from_string_parameter_attributes(self, "MyValue",
@@ -38,15 +39,13 @@ You can also reference an existing SSM Parameter Store value that matches an
38
39
  [AWS specific parameter type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-specific-parameter-types):
39
40
 
40
41
  ```python
41
- # Example automatically generated from non-compiling source. May contain errors.
42
- ssm.StringParameter.value_for_typed_string_parameter_v2(stack, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
42
+ ssm.StringParameter.value_for_typed_string_parameter_v2(self, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
43
43
  ```
44
44
 
45
45
  To do the same for a SSM Parameter Store value that is stored as a list:
46
46
 
47
47
  ```python
48
- # Example automatically generated from non-compiling source. May contain errors.
49
- ssm.StringListParameter.value_for_typed_list_parameter(stack, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
48
+ ssm.StringListParameter.value_for_typed_list_parameter(self, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
50
49
  ```
51
50
 
52
51
  ### Lookup existing parameters
@@ -55,8 +54,7 @@ You can also use an existing parameter by looking up the parameter from the AWS
55
54
  This method uses AWS API calls to lookup the value from SSM during synthesis.
56
55
 
57
56
  ```python
58
- # Example automatically generated from non-compiling source. May contain errors.
59
- string_value = ssm.StringParameter.value_from_lookup(stack, "/My/Public/Parameter")
57
+ string_value = ssm.StringParameter.value_from_lookup(self, "/My/Public/Parameter")
60
58
  ```
61
59
 
62
60
  When using `valueFromLookup` an initial value of 'dummy-value-for-${parameterName}'
@@ -117,19 +115,18 @@ ssm.StringParameter(self, "Parameter",
117
115
  ```
118
116
 
119
117
  ```python
120
- # Example automatically generated from non-compiling source. May contain errors.
118
+ # Grant read access to some Role
119
+ # role: iam.IRole
121
120
  # Create a new SSM Parameter holding a String
122
- param = ssm.StringParameter(stack, "StringParameter",
121
+ param = ssm.StringParameter(self, "StringParameter",
123
122
  # description: 'Some user-friendly description',
124
123
  # name: 'ParameterName',
125
124
  string_value="Initial parameter value"
126
125
  )
127
-
128
- # Grant read access to some Role
129
126
  param.grant_read(role)
130
127
 
131
128
  # Create a new SSM Parameter holding a StringList
132
- list_parameter = ssm.StringListParameter(stack, "StringListParameter",
129
+ list_parameter = ssm.StringListParameter(self, "StringListParameter",
133
130
  # description: 'Some user-friendly description',
134
131
  # name: 'ParameterName',
135
132
  string_list_value=["Initial parameter value A", "Initial parameter value B"]
@@ -8226,8 +8223,7 @@ class ParameterValueType(enum.Enum):
8226
8223
 
8227
8224
  Example::
8228
8225
 
8229
- # Example automatically generated from non-compiling source. May contain errors.
8230
- ssm.StringParameter.value_for_typed_string_parameter_v2(stack, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
8226
+ ssm.StringParameter.value_for_typed_string_parameter_v2(self, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
8231
8227
  '''
8232
8228
 
8233
8229
  STRING = "STRING"
@@ -8284,7 +8280,8 @@ class SecureStringParameterAttributes(CommonStringParameterAttributes):
8284
8280
 
8285
8281
  Example::
8286
8282
 
8287
- # Example automatically generated from non-compiling source. May contain errors.
8283
+ parameter_version = Token.as_number({"Ref": "MyParameter"})
8284
+
8288
8285
  # Retrieve the latest value of the non-secret parameter
8289
8286
  # with name "/My/String/Parameter".
8290
8287
  string_value = ssm.StringParameter.from_string_parameter_attributes(self, "MyValue",
@@ -8395,8 +8392,7 @@ class StringListParameter(
8395
8392
 
8396
8393
  Example::
8397
8394
 
8398
- # Example automatically generated from non-compiling source. May contain errors.
8399
- ssm.StringListParameter.value_for_typed_list_parameter(stack, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
8395
+ ssm.StringListParameter.value_for_typed_list_parameter(self, "/My/Public/Parameter", ssm.ParameterValueType.AWS_EC2_IMAGE_ID)
8400
8396
  '''
8401
8397
 
8402
8398
  def __init__(
@@ -8613,19 +8609,18 @@ class StringListParameterProps(ParameterOptions):
8613
8609
 
8614
8610
  Example::
8615
8611
 
8616
- # Example automatically generated from non-compiling source. May contain errors.
8612
+ # Grant read access to some Role
8613
+ # role: iam.IRole
8617
8614
  # Create a new SSM Parameter holding a String
8618
- param = ssm.StringParameter(stack, "StringParameter",
8615
+ param = ssm.StringParameter(self, "StringParameter",
8619
8616
  # description: 'Some user-friendly description',
8620
8617
  # name: 'ParameterName',
8621
8618
  string_value="Initial parameter value"
8622
8619
  )
8623
-
8624
- # Grant read access to some Role
8625
8620
  param.grant_read(role)
8626
8621
 
8627
8622
  # Create a new SSM Parameter holding a StringList
8628
- list_parameter = ssm.StringListParameter(stack, "StringListParameter",
8623
+ list_parameter = ssm.StringListParameter(self, "StringListParameter",
8629
8624
  # description: 'Some user-friendly description',
8630
8625
  # name: 'ParameterName',
8631
8626
  string_list_value=["Initial parameter value A", "Initial parameter value B"]
@@ -9096,7 +9091,8 @@ class StringParameterAttributes(CommonStringParameterAttributes):
9096
9091
 
9097
9092
  Example::
9098
9093
 
9099
- # Example automatically generated from non-compiling source. May contain errors.
9094
+ parameter_version = Token.as_number({"Ref": "MyParameter"})
9095
+
9100
9096
  # Retrieve the latest value of the non-secret parameter
9101
9097
  # with name "/My/String/Parameter".
9102
9098
  string_value = ssm.StringParameter.from_string_parameter_attributes(self, "MyValue",
@@ -108,7 +108,7 @@ class CfnContact(
108
108
  :param id: - scoped id of the resource.
109
109
  :param alias: The unique and identifiable alias of the contact or escalation plan.
110
110
  :param display_name: The full name of the contact or escalation plan.
111
- :param type: Refers to the type of contact. A single contact is type ``PERSONAL`` and an escalation plan is type ``ESCALATION`` .
111
+ :param type: Refers to the type of contact:. - ``PERSONAL`` : A single, individual contact. - ``ESCALATION`` : An escalation plan. - ``ONCALL_SCHEDULE`` : An on-call schedule.
112
112
  :param plan: A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
113
113
  '''
114
114
  if __debug__:
@@ -200,9 +200,11 @@ class CfnContact(
200
200
  @builtins.property
201
201
  @jsii.member(jsii_name="type")
202
202
  def type(self) -> builtins.str:
203
- '''Refers to the type of contact.
203
+ '''Refers to the type of contact:.
204
204
 
205
- A single contact is type ``PERSONAL`` and an escalation plan is type ``ESCALATION`` .
205
+ - ``PERSONAL`` : A single, individual contact.
206
+ - ``ESCALATION`` : An escalation plan.
207
+ - ``ONCALL_SCHEDULE`` : An on-call schedule.
206
208
 
207
209
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html#cfn-ssmcontacts-contact-type
208
210
  '''
@@ -914,7 +916,7 @@ class CfnContactProps:
914
916
 
915
917
  :param alias: The unique and identifiable alias of the contact or escalation plan.
916
918
  :param display_name: The full name of the contact or escalation plan.
917
- :param type: Refers to the type of contact. A single contact is type ``PERSONAL`` and an escalation plan is type ``ESCALATION`` .
919
+ :param type: Refers to the type of contact:. - ``PERSONAL`` : A single, individual contact. - ``ESCALATION`` : An escalation plan. - ``ONCALL_SCHEDULE`` : An on-call schedule.
918
920
  :param plan: A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
919
921
 
920
922
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html
@@ -985,9 +987,11 @@ class CfnContactProps:
985
987
 
986
988
  @builtins.property
987
989
  def type(self) -> builtins.str:
988
- '''Refers to the type of contact.
990
+ '''Refers to the type of contact:.
989
991
 
990
- A single contact is type ``PERSONAL`` and an escalation plan is type ``ESCALATION`` .
992
+ - ``PERSONAL`` : A single, individual contact.
993
+ - ``ESCALATION`` : An escalation plan.
994
+ - ``ONCALL_SCHEDULE`` : An on-call schedule.
991
995
 
992
996
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssmcontacts-contact.html#cfn-ssmcontacts-contact-type
993
997
  '''
@@ -554,8 +554,6 @@ Tasks are executed using the State Machine's execution role. In some cases, e.g.
554
554
  This can be achieved by providing the optional `credentials` property which allows using a fixed role or a json expression to resolve the role at runtime from the task's inputs.
555
555
 
556
556
  ```python
557
- # Example automatically generated from non-compiling source. May contain errors.
558
- import aws_cdk.aws_iam as iam
559
557
  import aws_cdk.aws_lambda as lambda_
560
558
 
561
559
  # submit_lambda: lambda.Function
@@ -879,9 +877,9 @@ In addition, the StateMachine can be imported via the `StateMachine.fromStateMac
879
877
  ```python
880
878
  app = App()
881
879
  stack = Stack(app, "MyStack")
882
- sfn.StateMachine.from_state_machine_arn(stack, "ViaArnImportedStateMachine", "arn:aws:states:us-east-1:123456789012:stateMachine:StateMachine2E01A3A5-N5TJppzoevKQ")
880
+ sfn.StateMachine.from_state_machine_arn(self, "ViaArnImportedStateMachine", "arn:aws:states:us-east-1:123456789012:stateMachine:StateMachine2E01A3A5-N5TJppzoevKQ")
883
881
 
884
- sfn.StateMachine.from_state_machine_name(stack, "ViaResourceNameImportedStateMachine", "StateMachine2E01A3A5-N5TJppzoevKQ")
882
+ sfn.StateMachine.from_state_machine_name(self, "ViaResourceNameImportedStateMachine", "StateMachine2E01A3A5-N5TJppzoevKQ")
885
883
  ```
886
884
  '''
887
885
  import abc
@@ -3472,8 +3470,6 @@ class Credentials:
3472
3470
 
3473
3471
  Example::
3474
3472
 
3475
- # Example automatically generated from non-compiling source. May contain errors.
3476
- import aws_cdk.aws_iam as iam
3477
3473
  import aws_cdk.aws_lambda as lambda_
3478
3474
 
3479
3475
  # submit_lambda: lambda.Function
@@ -6813,7 +6809,6 @@ class StateMachine(
6813
6809
 
6814
6810
  Example::
6815
6811
 
6816
- # Example automatically generated from non-compiling source. May contain errors.
6817
6812
  import aws_cdk.aws_stepfunctions as stepfunctions
6818
6813
 
6819
6814
 
@@ -7566,7 +7561,6 @@ class StateMachineProps:
7566
7561
 
7567
7562
  Example::
7568
7563
 
7569
- # Example automatically generated from non-compiling source. May contain errors.
7570
7564
  import aws_cdk.aws_stepfunctions as stepfunctions
7571
7565
 
7572
7566
 
@@ -8455,8 +8449,6 @@ class TaskRole(
8455
8449
 
8456
8450
  Example::
8457
8451
 
8458
- # Example automatically generated from non-compiling source. May contain errors.
8459
- import aws_cdk.aws_iam as iam
8460
8452
  import aws_cdk.aws_lambda as lambda_
8461
8453
 
8462
8454
  # submit_lambda: lambda.Function
@@ -8500,8 +8492,7 @@ class TaskRole(
8500
8492
 
8501
8493
  Example::
8502
8494
 
8503
- # Example automatically generated from non-compiling source. May contain errors.
8504
- TaskRole.from_role_arn_json_path("$.RoleArn")
8495
+ sfn.TaskRole.from_role_arn_json_path("$.RoleArn")
8505
8496
  '''
8506
8497
  if __debug__:
8507
8498
  type_hints = typing.get_type_hints(_typecheckingstub__8f0576900770ad89340628b613309cb0873d7789836eb9f1f1a5eb5eea3129f9)
@@ -180,8 +180,7 @@ tasks.CallApiGatewayRestApiEndpoint(self, "Endpoint",
180
180
  The `CallApiGatewayHttpApiEndpoint` calls the HTTP API endpoint.
181
181
 
182
182
  ```python
183
- # Example automatically generated from non-compiling source. May contain errors.
184
- import aws_cdk.aws_apigatewayv2 as apigatewayv2
183
+ import aws_cdk.aws_apigatewayv2_alpha as apigatewayv2
185
184
 
186
185
  http_api = apigatewayv2.HttpApi(self, "MyHttpApi")
187
186
 
@@ -315,7 +314,7 @@ The [SubmitJob](https://docs.aws.amazon.com/batch/latest/APIReference/API_Submit
315
314
 
316
315
  ```python
317
316
  # Example automatically generated from non-compiling source. May contain errors.
318
- import aws_cdk.aws_batch as batch
317
+ import aws_cdk.aws_batch_alpha as batch
319
318
  # batch_job_definition: batch.JobDefinition
320
319
  # batch_queue: batch.JobQueue
321
320
 
@@ -3594,7 +3593,7 @@ class BatchSubmitJob(
3594
3593
  Example::
3595
3594
 
3596
3595
  # Example automatically generated from non-compiling source. May contain errors.
3597
- import aws_cdk.aws_batch as batch
3596
+ import aws_cdk.aws_batch_alpha as batch
3598
3597
  # batch_job_definition: batch.JobDefinition
3599
3598
  # batch_queue: batch.JobQueue
3600
3599
 
@@ -3769,7 +3768,7 @@ class BatchSubmitJobProps(_TaskStateBaseProps_3a62b6d0):
3769
3768
  Example::
3770
3769
 
3771
3770
  # Example automatically generated from non-compiling source. May contain errors.
3772
- import aws_cdk.aws_batch as batch
3771
+ import aws_cdk.aws_batch_alpha as batch
3773
3772
  # batch_job_definition: batch.JobDefinition
3774
3773
  # batch_queue: batch.JobQueue
3775
3774
 
@@ -4465,8 +4464,7 @@ class CallApiGatewayHttpApiEndpoint(
4465
4464
 
4466
4465
  Example::
4467
4466
 
4468
- # Example automatically generated from non-compiling source. May contain errors.
4469
- import aws_cdk.aws_apigatewayv2 as apigatewayv2
4467
+ import aws_cdk.aws_apigatewayv2_alpha as apigatewayv2
4470
4468
 
4471
4469
  http_api = apigatewayv2.HttpApi(self, "MyHttpApi")
4472
4470
 
@@ -4664,8 +4662,7 @@ class CallApiGatewayHttpApiEndpointProps(CallApiGatewayEndpointBaseProps):
4664
4662
 
4665
4663
  Example::
4666
4664
 
4667
- # Example automatically generated from non-compiling source. May contain errors.
4668
- import aws_cdk.aws_apigatewayv2 as apigatewayv2
4665
+ import aws_cdk.aws_apigatewayv2_alpha as apigatewayv2
4669
4666
 
4670
4667
  http_api = apigatewayv2.HttpApi(self, "MyHttpApi")
4671
4668
 
@@ -4981,7 +4978,6 @@ class CallApiGatewayRestApiEndpoint(
4981
4978
  in the headers field ``WAIT_FOR_TASK_TOKEN`` integration, use
4982
4979
  ``JsonPath.array()`` to wrap the token in an array::
4983
4980
 
4984
- # Example automatically generated from non-compiling source. May contain errors.
4985
4981
  import aws_cdk.aws_apigateway as apigateway
4986
4982
  # api: apigateway.RestApi
4987
4983
 
@@ -20731,8 +20727,7 @@ class HttpMethod(enum.Enum):
20731
20727
 
20732
20728
  Example::
20733
20729
 
20734
- # Example automatically generated from non-compiling source. May contain errors.
20735
- import aws_cdk.aws_apigatewayv2 as apigatewayv2
20730
+ import aws_cdk.aws_apigatewayv2_alpha as apigatewayv2
20736
20731
 
20737
20732
  http_api = apigatewayv2.HttpApi(self, "MyHttpApi")
20738
20733
 
@@ -2302,9 +2302,8 @@ class CfnTable(
2302
2302
  *,
2303
2303
  s3_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnTable.S3ConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2304
2304
  ) -> None:
2305
- '''The location to write error reports for records rejected, asynchronously, during magnetic store writes.
2306
-
2307
- :param s3_configuration: Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.
2305
+ '''
2306
+ :param s3_configuration: ``CfnTable.MagneticStoreRejectedDataLocationProperty.S3Configuration``.
2308
2307
 
2309
2308
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-magneticstorerejecteddatalocation.html
2310
2309
  :exampleMetadata: fixture=_generated
@@ -2337,7 +2336,7 @@ class CfnTable(
2337
2336
  def s3_configuration(
2338
2337
  self,
2339
2338
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTable.S3ConfigurationProperty"]]:
2340
- '''Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.
2339
+ '''``CfnTable.MagneticStoreRejectedDataLocationProperty.S3Configuration``.
2341
2340
 
2342
2341
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-magneticstorerejecteddatalocation.html#cfn-timestream-table-magneticstorerejecteddatalocation-s3configuration
2343
2342
  '''
@@ -2370,10 +2369,9 @@ class CfnTable(
2370
2369
  enable_magnetic_store_writes: typing.Union[builtins.bool, _IResolvable_da3f097b],
2371
2370
  magnetic_store_rejected_data_location: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnTable.MagneticStoreRejectedDataLocationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2372
2371
  ) -> None:
2373
- '''The set of properties on a table for configuring magnetic store writes.
2374
-
2375
- :param enable_magnetic_store_writes: A flag to enable magnetic store writes.
2376
- :param magnetic_store_rejected_data_location: The location to write error reports for records rejected asynchronously during magnetic store writes.
2372
+ '''
2373
+ :param enable_magnetic_store_writes: ``CfnTable.MagneticStoreWritePropertiesProperty.EnableMagneticStoreWrites``.
2374
+ :param magnetic_store_rejected_data_location: ``CfnTable.MagneticStoreWritePropertiesProperty.MagneticStoreRejectedDataLocation``.
2377
2375
 
2378
2376
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-magneticstorewriteproperties.html
2379
2377
  :exampleMetadata: fixture=_generated
@@ -2414,7 +2412,7 @@ class CfnTable(
2414
2412
  def enable_magnetic_store_writes(
2415
2413
  self,
2416
2414
  ) -> typing.Union[builtins.bool, _IResolvable_da3f097b]:
2417
- '''A flag to enable magnetic store writes.
2415
+ '''``CfnTable.MagneticStoreWritePropertiesProperty.EnableMagneticStoreWrites``.
2418
2416
 
2419
2417
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-magneticstorewriteproperties.html#cfn-timestream-table-magneticstorewriteproperties-enablemagneticstorewrites
2420
2418
  '''
@@ -2426,7 +2424,7 @@ class CfnTable(
2426
2424
  def magnetic_store_rejected_data_location(
2427
2425
  self,
2428
2426
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnTable.MagneticStoreRejectedDataLocationProperty"]]:
2429
- '''The location to write error reports for records rejected asynchronously during magnetic store writes.
2427
+ '''``CfnTable.MagneticStoreWritePropertiesProperty.MagneticStoreRejectedDataLocation``.
2430
2428
 
2431
2429
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-magneticstorewriteproperties.html#cfn-timestream-table-magneticstorewriteproperties-magneticstorerejecteddatalocation
2432
2430
  '''
@@ -2459,10 +2457,9 @@ class CfnTable(
2459
2457
  magnetic_store_retention_period_in_days: typing.Optional[builtins.str] = None,
2460
2458
  memory_store_retention_period_in_hours: typing.Optional[builtins.str] = None,
2461
2459
  ) -> None:
2462
- '''Retention properties contain the duration for which your time-series data must be stored in the magnetic store and the memory store.
2463
-
2464
- :param magnetic_store_retention_period_in_days: The duration for which data must be stored in the magnetic store.
2465
- :param memory_store_retention_period_in_hours: The duration for which data must be stored in the memory store.
2460
+ '''
2461
+ :param magnetic_store_retention_period_in_days: ``CfnTable.RetentionPropertiesProperty.MagneticStoreRetentionPeriodInDays``.
2462
+ :param memory_store_retention_period_in_hours: ``CfnTable.RetentionPropertiesProperty.MemoryStoreRetentionPeriodInHours``.
2466
2463
 
2467
2464
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-retentionproperties.html
2468
2465
  :exampleMetadata: fixture=_generated
@@ -2492,7 +2489,7 @@ class CfnTable(
2492
2489
  def magnetic_store_retention_period_in_days(
2493
2490
  self,
2494
2491
  ) -> typing.Optional[builtins.str]:
2495
- '''The duration for which data must be stored in the magnetic store.
2492
+ '''``CfnTable.RetentionPropertiesProperty.MagneticStoreRetentionPeriodInDays``.
2496
2493
 
2497
2494
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-retentionproperties.html#cfn-timestream-table-retentionproperties-magneticstoreretentionperiodindays
2498
2495
  '''
@@ -2503,7 +2500,7 @@ class CfnTable(
2503
2500
  def memory_store_retention_period_in_hours(
2504
2501
  self,
2505
2502
  ) -> typing.Optional[builtins.str]:
2506
- '''The duration for which data must be stored in the memory store.
2503
+ '''``CfnTable.RetentionPropertiesProperty.MemoryStoreRetentionPeriodInHours``.
2507
2504
 
2508
2505
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-retentionproperties.html#cfn-timestream-table-retentionproperties-memorystoreretentionperiodinhours
2509
2506
  '''
@@ -2540,12 +2537,11 @@ class CfnTable(
2540
2537
  kms_key_id: typing.Optional[builtins.str] = None,
2541
2538
  object_key_prefix: typing.Optional[builtins.str] = None,
2542
2539
  ) -> None:
2543
- '''The configuration that specifies an S3 location.
2544
-
2545
- :param bucket_name: The bucket name of the customer S3 bucket.
2546
- :param encryption_option: The encryption option for the customer S3 location. Options are S3 server-side encryption with an S3 managed key or AWS managed key.
2547
- :param kms_key_id: The AWS KMS key ID for the customer S3 location when encrypting with an AWS managed key.
2548
- :param object_key_prefix: The object key preview for the customer S3 location.
2540
+ '''
2541
+ :param bucket_name: ``CfnTable.S3ConfigurationProperty.BucketName``.
2542
+ :param encryption_option: ``CfnTable.S3ConfigurationProperty.EncryptionOption``.
2543
+ :param kms_key_id: ``CfnTable.S3ConfigurationProperty.KmsKeyId``.
2544
+ :param object_key_prefix: ``CfnTable.S3ConfigurationProperty.ObjectKeyPrefix``.
2549
2545
 
2550
2546
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-s3configuration.html
2551
2547
  :exampleMetadata: fixture=_generated
@@ -2582,7 +2578,7 @@ class CfnTable(
2582
2578
 
2583
2579
  @builtins.property
2584
2580
  def bucket_name(self) -> builtins.str:
2585
- '''The bucket name of the customer S3 bucket.
2581
+ '''``CfnTable.S3ConfigurationProperty.BucketName``.
2586
2582
 
2587
2583
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-s3configuration.html#cfn-timestream-table-s3configuration-bucketname
2588
2584
  '''
@@ -2592,9 +2588,7 @@ class CfnTable(
2592
2588
 
2593
2589
  @builtins.property
2594
2590
  def encryption_option(self) -> builtins.str:
2595
- '''The encryption option for the customer S3 location.
2596
-
2597
- Options are S3 server-side encryption with an S3 managed key or AWS managed key.
2591
+ '''``CfnTable.S3ConfigurationProperty.EncryptionOption``.
2598
2592
 
2599
2593
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-s3configuration.html#cfn-timestream-table-s3configuration-encryptionoption
2600
2594
  '''
@@ -2604,7 +2598,7 @@ class CfnTable(
2604
2598
 
2605
2599
  @builtins.property
2606
2600
  def kms_key_id(self) -> typing.Optional[builtins.str]:
2607
- '''The AWS KMS key ID for the customer S3 location when encrypting with an AWS managed key.
2601
+ '''``CfnTable.S3ConfigurationProperty.KmsKeyId``.
2608
2602
 
2609
2603
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-s3configuration.html#cfn-timestream-table-s3configuration-kmskeyid
2610
2604
  '''
@@ -2613,7 +2607,7 @@ class CfnTable(
2613
2607
 
2614
2608
  @builtins.property
2615
2609
  def object_key_prefix(self) -> typing.Optional[builtins.str]:
2616
- '''The object key preview for the customer S3 location.
2610
+ '''``CfnTable.S3ConfigurationProperty.ObjectKeyPrefix``.
2617
2611
 
2618
2612
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-timestream-table-s3configuration.html#cfn-timestream-table-s3configuration-objectkeyprefix
2619
2613
  '''
@@ -502,8 +502,6 @@ class CfnResourcePolicy(
502
502
  ):
503
503
  '''A CloudFormation ``AWS::XRay::ResourcePolicy``.
504
504
 
505
- Sets the resource policy to grant one or more AWS services and accounts permissions to access X-Ray. Each resource policy will be associated with a specific AWS account. Each AWS account can have a maximum of 5 resource policies, and each policy name must be unique within that account. The maximum size of each resource policy is 5KB.
506
-
507
505
  :cloudformationResource: AWS::XRay::ResourcePolicy
508
506
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html
509
507
  :exampleMetadata: fixture=_generated
@@ -536,8 +534,8 @@ class CfnResourcePolicy(
536
534
 
537
535
  :param scope: - scope in which this resource is defined.
538
536
  :param id: - scoped id of the resource.
539
- :param policy_document: The resource policy document, which can be up to 5kb in size.
540
- :param policy_name: The name of the resource policy. Must be unique within a specific AWS account.
537
+ :param policy_document: ``AWS::XRay::ResourcePolicy.PolicyDocument``.
538
+ :param policy_name: ``AWS::XRay::ResourcePolicy.PolicyName``.
541
539
  :param bypass_policy_lockout_check: ``AWS::XRay::ResourcePolicy.BypassPolicyLockoutCheck``.
542
540
  '''
543
541
  if __debug__:
@@ -590,7 +588,7 @@ class CfnResourcePolicy(
590
588
  @builtins.property
591
589
  @jsii.member(jsii_name="policyDocument")
592
590
  def policy_document(self) -> builtins.str:
593
- '''The resource policy document, which can be up to 5kb in size.
591
+ '''``AWS::XRay::ResourcePolicy.PolicyDocument``.
594
592
 
595
593
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html#cfn-xray-resourcepolicy-policydocument
596
594
  '''
@@ -606,9 +604,7 @@ class CfnResourcePolicy(
606
604
  @builtins.property
607
605
  @jsii.member(jsii_name="policyName")
608
606
  def policy_name(self) -> builtins.str:
609
- '''The name of the resource policy.
610
-
611
- Must be unique within a specific AWS account.
607
+ '''``AWS::XRay::ResourcePolicy.PolicyName``.
612
608
 
613
609
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html#cfn-xray-resourcepolicy-policyname
614
610
  '''
@@ -662,8 +658,8 @@ class CfnResourcePolicyProps:
662
658
  ) -> None:
663
659
  '''Properties for defining a ``CfnResourcePolicy``.
664
660
 
665
- :param policy_document: The resource policy document, which can be up to 5kb in size.
666
- :param policy_name: The name of the resource policy. Must be unique within a specific AWS account.
661
+ :param policy_document: ``AWS::XRay::ResourcePolicy.PolicyDocument``.
662
+ :param policy_name: ``AWS::XRay::ResourcePolicy.PolicyName``.
667
663
  :param bypass_policy_lockout_check: ``AWS::XRay::ResourcePolicy.BypassPolicyLockoutCheck``.
668
664
 
669
665
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html
@@ -697,7 +693,7 @@ class CfnResourcePolicyProps:
697
693
 
698
694
  @builtins.property
699
695
  def policy_document(self) -> builtins.str:
700
- '''The resource policy document, which can be up to 5kb in size.
696
+ '''``AWS::XRay::ResourcePolicy.PolicyDocument``.
701
697
 
702
698
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html#cfn-xray-resourcepolicy-policydocument
703
699
  '''
@@ -707,9 +703,7 @@ class CfnResourcePolicyProps:
707
703
 
708
704
  @builtins.property
709
705
  def policy_name(self) -> builtins.str:
710
- '''The name of the resource policy.
711
-
712
- Must be unique within a specific AWS account.
706
+ '''``AWS::XRay::ResourcePolicy.PolicyName``.
713
707
 
714
708
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-xray-resourcepolicy.html#cfn-xray-resourcepolicy-policyname
715
709
  '''
@@ -1293,11 +1287,10 @@ class CfnSamplingRule(
1293
1287
  modified_at: typing.Optional[builtins.str] = None,
1294
1288
  sampling_rule: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnSamplingRule.SamplingRuleProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1295
1289
  ) -> None:
1296
- '''A `SamplingRule <https://docs.aws.amazon.com//xray/latest/api/API_SamplingRule.html>`_ and its metadata.
1297
-
1298
- :param created_at: When the rule was created, in Unix time seconds.
1299
- :param modified_at: When the rule was last modified, in Unix time seconds.
1300
- :param sampling_rule: The sampling rule.
1290
+ '''
1291
+ :param created_at: ``CfnSamplingRule.SamplingRuleRecordProperty.CreatedAt``.
1292
+ :param modified_at: ``CfnSamplingRule.SamplingRuleRecordProperty.ModifiedAt``.
1293
+ :param sampling_rule: ``CfnSamplingRule.SamplingRuleRecordProperty.SamplingRule``.
1301
1294
 
1302
1295
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingrulerecord.html
1303
1296
  :exampleMetadata: fixture=_generated
@@ -1345,7 +1338,7 @@ class CfnSamplingRule(
1345
1338
 
1346
1339
  @builtins.property
1347
1340
  def created_at(self) -> typing.Optional[builtins.str]:
1348
- '''When the rule was created, in Unix time seconds.
1341
+ '''``CfnSamplingRule.SamplingRuleRecordProperty.CreatedAt``.
1349
1342
 
1350
1343
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingrulerecord.html#cfn-xray-samplingrule-samplingrulerecord-createdat
1351
1344
  '''
@@ -1354,7 +1347,7 @@ class CfnSamplingRule(
1354
1347
 
1355
1348
  @builtins.property
1356
1349
  def modified_at(self) -> typing.Optional[builtins.str]:
1357
- '''When the rule was last modified, in Unix time seconds.
1350
+ '''``CfnSamplingRule.SamplingRuleRecordProperty.ModifiedAt``.
1358
1351
 
1359
1352
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingrulerecord.html#cfn-xray-samplingrule-samplingrulerecord-modifiedat
1360
1353
  '''
@@ -1365,7 +1358,7 @@ class CfnSamplingRule(
1365
1358
  def sampling_rule(
1366
1359
  self,
1367
1360
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnSamplingRule.SamplingRuleProperty"]]:
1368
- '''The sampling rule.
1361
+ '''``CfnSamplingRule.SamplingRuleRecordProperty.SamplingRule``.
1369
1362
 
1370
1363
  :link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-xray-samplingrule-samplingrulerecord.html#cfn-xray-samplingrule-samplingrulerecord-samplingrule
1371
1364
  '''
@@ -1686,7 +1686,6 @@ class ContainerImageAssetCacheOption:
1686
1686
 
1687
1687
  Example::
1688
1688
 
1689
- # Example automatically generated from non-compiling source. May contain errors.
1690
1689
  "registry"
1691
1690
  '''
1692
1691
  result = self._values.get("type")
@@ -1703,8 +1702,13 @@ class ContainerImageAssetCacheOption:
1703
1702
 
1704
1703
  Example::
1705
1704
 
1706
- # Example automatically generated from non-compiling source. May contain errors.
1707
- ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`, mode"max"
1705
+ # branch: str
1706
+
1707
+
1708
+ params = {
1709
+ "ref": f"12345678.dkr.ecr.us-west-2.amazonaws.com/cache:{branch}",
1710
+ "mode": "max"
1711
+ }
1708
1712
  '''
1709
1713
  result = self._values.get("params")
1710
1714
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
@@ -3842,7 +3846,6 @@ class DockerCacheOption:
3842
3846
 
3843
3847
  Example::
3844
3848
 
3845
- # Example automatically generated from non-compiling source. May contain errors.
3846
3849
  "registry"
3847
3850
  '''
3848
3851
  result = self._values.get("type")
@@ -3859,8 +3862,13 @@ class DockerCacheOption:
3859
3862
 
3860
3863
  Example::
3861
3864
 
3862
- # Example automatically generated from non-compiling source. May contain errors.
3863
- ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`, mode"max"
3865
+ # branch: str
3866
+
3867
+
3868
+ params = {
3869
+ "ref": f"12345678.dkr.ecr.us-west-2.amazonaws.com/cache:{branch}",
3870
+ "mode": "max"
3871
+ }
3864
3872
  '''
3865
3873
  result = self._values.get("params")
3866
3874
  return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
@@ -535,12 +535,11 @@ Additionally, the Lambda function can be placed in a private VPC by using the `v
535
535
  and `vpcSubnets` properties.
536
536
 
537
537
  ```python
538
- # Example automatically generated from non-compiling source. May contain errors.
539
- # my_vpc: ec2.Vpc
538
+ # vpc: ec2.Vpc
540
539
 
541
540
  cr.AwsCustomResource(self, "CustomizedInVpc",
542
541
  vpc=vpc,
543
- vpc_subnets=SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_NAT),
542
+ vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS),
544
543
  policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
545
544
  resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
546
545
  )