aws-cdk-lib 2.186.0__py3-none-any.whl → 2.188.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 (85) hide show
  1. aws_cdk/__init__.py +303 -119
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.186.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +136 -0
  5. aws_cdk/aws_apigateway/__init__.py +69 -17
  6. aws_cdk/aws_apigatewayv2/__init__.py +88 -0
  7. aws_cdk/aws_appconfig/__init__.py +30 -14
  8. aws_cdk/aws_appsync/__init__.py +14 -5
  9. aws_cdk/aws_arczonalshift/__init__.py +4 -4
  10. aws_cdk/aws_bedrock/__init__.py +637 -32
  11. aws_cdk/aws_budgets/__init__.py +8 -8
  12. aws_cdk/aws_cassandra/__init__.py +4 -2
  13. aws_cdk/aws_ce/__init__.py +2 -2
  14. aws_cdk/aws_cloudformation/__init__.py +3 -3
  15. aws_cdk/aws_cloudfront/__init__.py +11 -0
  16. aws_cdk/aws_cloudtrail/__init__.py +4 -18
  17. aws_cdk/aws_cloudwatch/__init__.py +50 -50
  18. aws_cdk/aws_codebuild/__init__.py +32 -1
  19. aws_cdk/aws_codepipeline/__init__.py +47 -32
  20. aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
  21. aws_cdk/aws_codestarnotifications/__init__.py +16 -16
  22. aws_cdk/aws_cognito/__init__.py +8 -2
  23. aws_cdk/aws_config/__init__.py +2 -5
  24. aws_cdk/aws_datazone/__init__.py +287 -226
  25. aws_cdk/aws_detective/__init__.py +3 -3
  26. aws_cdk/aws_dynamodb/__init__.py +37 -0
  27. aws_cdk/aws_ec2/__init__.py +2448 -442
  28. aws_cdk/aws_ecr/__init__.py +143 -0
  29. aws_cdk/aws_ecr_assets/__init__.py +115 -4
  30. aws_cdk/aws_ecs/__init__.py +51 -0
  31. aws_cdk/aws_eks/__init__.py +222 -6
  32. aws_cdk/aws_events/__init__.py +8 -11
  33. aws_cdk/aws_events_targets/__init__.py +136 -0
  34. aws_cdk/aws_forecast/__init__.py +1 -1
  35. aws_cdk/aws_fsx/__init__.py +2 -2
  36. aws_cdk/aws_gamelift/__init__.py +11 -11
  37. aws_cdk/aws_iam/__init__.py +6 -4
  38. aws_cdk/aws_identitystore/__init__.py +6 -4
  39. aws_cdk/aws_iotsitewise/__init__.py +623 -0
  40. aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
  41. aws_cdk/aws_kms/__init__.py +10 -11
  42. aws_cdk/aws_lakeformation/__init__.py +3 -3
  43. aws_cdk/aws_lambda/__init__.py +105 -4
  44. aws_cdk/aws_lambda_event_sources/__init__.py +87 -25
  45. aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
  46. aws_cdk/aws_lex/__init__.py +985 -5
  47. aws_cdk/aws_logs/__init__.py +18 -0
  48. aws_cdk/aws_logs_destinations/__init__.py +146 -0
  49. aws_cdk/aws_mediaconnect/__init__.py +714 -290
  50. aws_cdk/aws_mwaa/__init__.py +9 -9
  51. aws_cdk/aws_networkfirewall/__init__.py +44 -0
  52. aws_cdk/aws_notifications/__init__.py +4 -4
  53. aws_cdk/aws_omics/__init__.py +225 -1
  54. aws_cdk/aws_opensearchserverless/__init__.py +31 -23
  55. aws_cdk/aws_organizations/__init__.py +1 -1
  56. aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
  57. aws_cdk/aws_quicksight/__init__.py +268 -50
  58. aws_cdk/aws_rds/__init__.py +186 -10
  59. aws_cdk/aws_route53/__init__.py +5 -5
  60. aws_cdk/aws_route53recoverycontrol/__init__.py +41 -2
  61. aws_cdk/aws_rum/__init__.py +13 -10
  62. aws_cdk/aws_s3/__init__.py +3 -6
  63. aws_cdk/aws_s3_assets/__init__.py +70 -1
  64. aws_cdk/aws_s3_deployment/__init__.py +4 -0
  65. aws_cdk/aws_sagemaker/__init__.py +47 -4
  66. aws_cdk/aws_scheduler_targets/__init__.py +4 -16
  67. aws_cdk/aws_securitylake/__init__.py +2 -2
  68. aws_cdk/aws_servicecatalog/__init__.py +4 -0
  69. aws_cdk/aws_sns/__init__.py +1 -1
  70. aws_cdk/aws_ssmincidents/__init__.py +10 -10
  71. aws_cdk/aws_stepfunctions/__init__.py +23 -17
  72. aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
  73. aws_cdk/aws_synthetics/__init__.py +9 -0
  74. aws_cdk/aws_systemsmanagersap/__init__.py +160 -0
  75. aws_cdk/aws_transfer/__init__.py +19 -10
  76. aws_cdk/aws_wafv2/__init__.py +512 -1141
  77. aws_cdk/cloud_assembly_schema/__init__.py +60 -10
  78. aws_cdk/cx_api/__init__.py +38 -2
  79. aws_cdk/pipelines/__init__.py +52 -2
  80. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +4 -4
  81. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +85 -85
  82. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +1 -1
  83. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
  84. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
  85. {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
aws_cdk/_jsii/__init__.py CHANGED
@@ -34,7 +34,7 @@ import aws_cdk.cloud_assembly_schema._jsii
34
34
  import constructs._jsii
35
35
 
36
36
  __jsii_assembly__ = jsii.JSIIAssembly.load(
37
- "aws-cdk-lib", "2.186.0", __name__[0:-6], "aws-cdk-lib@2.186.0.jsii.tgz"
37
+ "aws-cdk-lib", "2.188.0", __name__[0:-6], "aws-cdk-lib@2.188.0.jsii.tgz"
38
38
  )
39
39
 
40
40
  __all__ = [
@@ -128,6 +128,7 @@ class CfnApp(
128
128
  cache_config=amplify.CfnApp.CacheConfigProperty(
129
129
  type="type"
130
130
  ),
131
+ compute_role_arn="computeRoleArn",
131
132
  custom_headers="customHeaders",
132
133
  custom_rules=[amplify.CfnApp.CustomRuleProperty(
133
134
  source="source",
@@ -165,6 +166,7 @@ class CfnApp(
165
166
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnApp.BasicAuthConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
166
167
  build_spec: typing.Optional[builtins.str] = None,
167
168
  cache_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnApp.CacheConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
169
+ compute_role_arn: typing.Optional[builtins.str] = None,
168
170
  custom_headers: typing.Optional[builtins.str] = None,
169
171
  custom_rules: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnApp.CustomRuleProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
170
172
  description: typing.Optional[builtins.str] = None,
@@ -185,6 +187,7 @@ class CfnApp(
185
187
  :param basic_auth_config: The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format ``user:password`` .
186
188
  :param build_spec: The build specification (build spec) for an Amplify app.
187
189
  :param cache_config: The cache configuration for the Amplify app. If you don't specify the cache configuration ``type`` , Amplify uses the default ``AMPLIFY_MANAGED`` setting.
190
+ :param compute_role_arn: The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific AWS resources based on the role's permissions. For more information about the SSR Compute role, see `Adding an SSR Compute role <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html>`_ in the *Amplify User Guide* .
188
191
  :param custom_headers: The custom HTTP headers for an Amplify app.
189
192
  :param custom_rules: The custom rewrite and redirect rules for an Amplify app.
190
193
  :param description: The description of the Amplify app.
@@ -207,6 +210,7 @@ class CfnApp(
207
210
  basic_auth_config=basic_auth_config,
208
211
  build_spec=build_spec,
209
212
  cache_config=cache_config,
213
+ compute_role_arn=compute_role_arn,
210
214
  custom_headers=custom_headers,
211
215
  custom_rules=custom_rules,
212
216
  description=description,
@@ -391,6 +395,19 @@ class CfnApp(
391
395
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
392
396
  jsii.set(self, "cacheConfig", value) # pyright: ignore[reportArgumentType]
393
397
 
398
+ @builtins.property
399
+ @jsii.member(jsii_name="computeRoleArn")
400
+ def compute_role_arn(self) -> typing.Optional[builtins.str]:
401
+ '''The Amazon Resource Name (ARN) of the IAM role for an SSR app.'''
402
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "computeRoleArn"))
403
+
404
+ @compute_role_arn.setter
405
+ def compute_role_arn(self, value: typing.Optional[builtins.str]) -> None:
406
+ if __debug__:
407
+ type_hints = typing.get_type_hints(_typecheckingstub__d55f0c87bc50af5a1e7d9bf3f8fca41d5e5a849cb69dbf43ca51f24872058be8)
408
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
409
+ jsii.set(self, "computeRoleArn", value) # pyright: ignore[reportArgumentType]
410
+
394
411
  @builtins.property
395
412
  @jsii.member(jsii_name="customHeaders")
396
413
  def custom_headers(self) -> typing.Optional[builtins.str]:
@@ -1133,6 +1150,7 @@ class CfnApp(
1133
1150
  "basic_auth_config": "basicAuthConfig",
1134
1151
  "build_spec": "buildSpec",
1135
1152
  "cache_config": "cacheConfig",
1153
+ "compute_role_arn": "computeRoleArn",
1136
1154
  "custom_headers": "customHeaders",
1137
1155
  "custom_rules": "customRules",
1138
1156
  "description": "description",
@@ -1155,6 +1173,7 @@ class CfnAppProps:
1155
1173
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.BasicAuthConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1156
1174
  build_spec: typing.Optional[builtins.str] = None,
1157
1175
  cache_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.CacheConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1176
+ compute_role_arn: typing.Optional[builtins.str] = None,
1158
1177
  custom_headers: typing.Optional[builtins.str] = None,
1159
1178
  custom_rules: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.CustomRuleProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
1160
1179
  description: typing.Optional[builtins.str] = None,
@@ -1174,6 +1193,7 @@ class CfnAppProps:
1174
1193
  :param basic_auth_config: The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format ``user:password`` .
1175
1194
  :param build_spec: The build specification (build spec) for an Amplify app.
1176
1195
  :param cache_config: The cache configuration for the Amplify app. If you don't specify the cache configuration ``type`` , Amplify uses the default ``AMPLIFY_MANAGED`` setting.
1196
+ :param compute_role_arn: The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific AWS resources based on the role's permissions. For more information about the SSR Compute role, see `Adding an SSR Compute role <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html>`_ in the *Amplify User Guide* .
1177
1197
  :param custom_headers: The custom HTTP headers for an Amplify app.
1178
1198
  :param custom_rules: The custom rewrite and redirect rules for an Amplify app.
1179
1199
  :param description: The description of the Amplify app.
@@ -1228,6 +1248,7 @@ class CfnAppProps:
1228
1248
  cache_config=amplify.CfnApp.CacheConfigProperty(
1229
1249
  type="type"
1230
1250
  ),
1251
+ compute_role_arn="computeRoleArn",
1231
1252
  custom_headers="customHeaders",
1232
1253
  custom_rules=[amplify.CfnApp.CustomRuleProperty(
1233
1254
  source="source",
@@ -1261,6 +1282,7 @@ class CfnAppProps:
1261
1282
  check_type(argname="argument basic_auth_config", value=basic_auth_config, expected_type=type_hints["basic_auth_config"])
1262
1283
  check_type(argname="argument build_spec", value=build_spec, expected_type=type_hints["build_spec"])
1263
1284
  check_type(argname="argument cache_config", value=cache_config, expected_type=type_hints["cache_config"])
1285
+ check_type(argname="argument compute_role_arn", value=compute_role_arn, expected_type=type_hints["compute_role_arn"])
1264
1286
  check_type(argname="argument custom_headers", value=custom_headers, expected_type=type_hints["custom_headers"])
1265
1287
  check_type(argname="argument custom_rules", value=custom_rules, expected_type=type_hints["custom_rules"])
1266
1288
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
@@ -1284,6 +1306,8 @@ class CfnAppProps:
1284
1306
  self._values["build_spec"] = build_spec
1285
1307
  if cache_config is not None:
1286
1308
  self._values["cache_config"] = cache_config
1309
+ if compute_role_arn is not None:
1310
+ self._values["compute_role_arn"] = compute_role_arn
1287
1311
  if custom_headers is not None:
1288
1312
  self._values["custom_headers"] = custom_headers
1289
1313
  if custom_rules is not None:
@@ -1378,6 +1402,17 @@ class CfnAppProps:
1378
1402
  result = self._values.get("cache_config")
1379
1403
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnApp.CacheConfigProperty]], result)
1380
1404
 
1405
+ @builtins.property
1406
+ def compute_role_arn(self) -> typing.Optional[builtins.str]:
1407
+ '''The Amazon Resource Name (ARN) of the IAM role for an SSR app.
1408
+
1409
+ The Compute role allows the Amplify Hosting compute service to securely access specific AWS resources based on the role's permissions. For more information about the SSR Compute role, see `Adding an SSR Compute role <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html>`_ in the *Amplify User Guide* .
1410
+
1411
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-app.html#cfn-amplify-app-computerolearn
1412
+ '''
1413
+ result = self._values.get("compute_role_arn")
1414
+ return typing.cast(typing.Optional[builtins.str], result)
1415
+
1381
1416
  @builtins.property
1382
1417
  def custom_headers(self) -> typing.Optional[builtins.str]:
1383
1418
  '''The custom HTTP headers for an Amplify app.
@@ -1534,10 +1569,12 @@ class CfnBranch(
1534
1569
  enable_basic_auth=False
1535
1570
  ),
1536
1571
  build_spec="buildSpec",
1572
+ compute_role_arn="computeRoleArn",
1537
1573
  description="description",
1538
1574
  enable_auto_build=False,
1539
1575
  enable_performance_mode=False,
1540
1576
  enable_pull_request_preview=False,
1577
+ enable_skew_protection=False,
1541
1578
  environment_variables=[amplify.CfnBranch.EnvironmentVariableProperty(
1542
1579
  name="name",
1543
1580
  value="value"
@@ -1562,10 +1599,12 @@ class CfnBranch(
1562
1599
  backend: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBranch.BackendProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1563
1600
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBranch.BasicAuthConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1564
1601
  build_spec: typing.Optional[builtins.str] = None,
1602
+ compute_role_arn: typing.Optional[builtins.str] = None,
1565
1603
  description: typing.Optional[builtins.str] = None,
1566
1604
  enable_auto_build: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1567
1605
  enable_performance_mode: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1568
1606
  enable_pull_request_preview: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1607
+ enable_skew_protection: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
1569
1608
  environment_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnBranch.EnvironmentVariableProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
1570
1609
  framework: typing.Optional[builtins.str] = None,
1571
1610
  pull_request_environment_name: typing.Optional[builtins.str] = None,
@@ -1580,10 +1619,12 @@ class CfnBranch(
1580
1619
  :param backend: The backend for a ``Branch`` of an Amplify app. Use for a backend created from an AWS CloudFormation stack. This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
1581
1620
  :param basic_auth_config: The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format ``user:password`` .
1582
1621
  :param build_spec: The build specification (build spec) for the branch.
1622
+ :param compute_role_arn: The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific AWS resources based on the role's permissions. For more information about the SSR Compute role, see `Adding an SSR Compute role <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html>`_ in the *Amplify User Guide* .
1583
1623
  :param description: The description for the branch that is part of an Amplify app.
1584
1624
  :param enable_auto_build: Enables auto building for the branch.
1585
1625
  :param enable_performance_mode: Enables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
1586
1626
  :param enable_pull_request_preview: Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the ``PullRequestEnvironmentName`` property. For more information, see `Web Previews <https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html>`_ in the *AWS Amplify Hosting User Guide* .
1627
+ :param enable_skew_protection: Specifies whether the skew protection feature is enabled for the branch. Deployment skew protection is available to Amplify applications to eliminate version skew issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see `Skew protection for Amplify deployments <https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html>`_ in the *Amplify User Guide* .
1587
1628
  :param environment_variables: The environment variables for the branch.
1588
1629
  :param framework: The framework for the branch.
1589
1630
  :param pull_request_environment_name: If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named ``prod`` , ``test`` , or ``dev`` that you initialized with the Amplify CLI and mapped to this branch. To enable pull request previews, set the ``EnablePullRequestPreview`` property to ``true`` . If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. For more information about creating backend environments, see `Feature Branch Deployments and Team Workflows <https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html>`_ in the *AWS Amplify Hosting User Guide* .
@@ -1600,10 +1641,12 @@ class CfnBranch(
1600
1641
  backend=backend,
1601
1642
  basic_auth_config=basic_auth_config,
1602
1643
  build_spec=build_spec,
1644
+ compute_role_arn=compute_role_arn,
1603
1645
  description=description,
1604
1646
  enable_auto_build=enable_auto_build,
1605
1647
  enable_performance_mode=enable_performance_mode,
1606
1648
  enable_pull_request_preview=enable_pull_request_preview,
1649
+ enable_skew_protection=enable_skew_protection,
1607
1650
  environment_variables=environment_variables,
1608
1651
  framework=framework,
1609
1652
  pull_request_environment_name=pull_request_environment_name,
@@ -1750,6 +1793,19 @@ class CfnBranch(
1750
1793
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1751
1794
  jsii.set(self, "buildSpec", value) # pyright: ignore[reportArgumentType]
1752
1795
 
1796
+ @builtins.property
1797
+ @jsii.member(jsii_name="computeRoleArn")
1798
+ def compute_role_arn(self) -> typing.Optional[builtins.str]:
1799
+ '''The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app.'''
1800
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "computeRoleArn"))
1801
+
1802
+ @compute_role_arn.setter
1803
+ def compute_role_arn(self, value: typing.Optional[builtins.str]) -> None:
1804
+ if __debug__:
1805
+ type_hints = typing.get_type_hints(_typecheckingstub__50c29bd1063cbc0e1fa76d9721d838c59c46a84f1257f3ced31f3d727d6f9e36)
1806
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1807
+ jsii.set(self, "computeRoleArn", value) # pyright: ignore[reportArgumentType]
1808
+
1753
1809
  @builtins.property
1754
1810
  @jsii.member(jsii_name="description")
1755
1811
  def description(self) -> typing.Optional[builtins.str]:
@@ -1817,6 +1873,24 @@ class CfnBranch(
1817
1873
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1818
1874
  jsii.set(self, "enablePullRequestPreview", value) # pyright: ignore[reportArgumentType]
1819
1875
 
1876
+ @builtins.property
1877
+ @jsii.member(jsii_name="enableSkewProtection")
1878
+ def enable_skew_protection(
1879
+ self,
1880
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
1881
+ '''Specifies whether the skew protection feature is enabled for the branch.'''
1882
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], jsii.get(self, "enableSkewProtection"))
1883
+
1884
+ @enable_skew_protection.setter
1885
+ def enable_skew_protection(
1886
+ self,
1887
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
1888
+ ) -> None:
1889
+ if __debug__:
1890
+ type_hints = typing.get_type_hints(_typecheckingstub__432a4942ceb7d62c4b8b4afa118592daeb5e524bc422ad19ea2bc1d797199dac)
1891
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1892
+ jsii.set(self, "enableSkewProtection", value) # pyright: ignore[reportArgumentType]
1893
+
1820
1894
  @builtins.property
1821
1895
  @jsii.member(jsii_name="environmentVariables")
1822
1896
  def environment_variables(
@@ -2114,10 +2188,12 @@ class CfnBranch(
2114
2188
  "backend": "backend",
2115
2189
  "basic_auth_config": "basicAuthConfig",
2116
2190
  "build_spec": "buildSpec",
2191
+ "compute_role_arn": "computeRoleArn",
2117
2192
  "description": "description",
2118
2193
  "enable_auto_build": "enableAutoBuild",
2119
2194
  "enable_performance_mode": "enablePerformanceMode",
2120
2195
  "enable_pull_request_preview": "enablePullRequestPreview",
2196
+ "enable_skew_protection": "enableSkewProtection",
2121
2197
  "environment_variables": "environmentVariables",
2122
2198
  "framework": "framework",
2123
2199
  "pull_request_environment_name": "pullRequestEnvironmentName",
@@ -2134,10 +2210,12 @@ class CfnBranchProps:
2134
2210
  backend: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.BackendProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
2135
2211
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.BasicAuthConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
2136
2212
  build_spec: typing.Optional[builtins.str] = None,
2213
+ compute_role_arn: typing.Optional[builtins.str] = None,
2137
2214
  description: typing.Optional[builtins.str] = None,
2138
2215
  enable_auto_build: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2139
2216
  enable_performance_mode: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2140
2217
  enable_pull_request_preview: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2218
+ enable_skew_protection: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
2141
2219
  environment_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.EnvironmentVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2142
2220
  framework: typing.Optional[builtins.str] = None,
2143
2221
  pull_request_environment_name: typing.Optional[builtins.str] = None,
@@ -2151,10 +2229,12 @@ class CfnBranchProps:
2151
2229
  :param backend: The backend for a ``Branch`` of an Amplify app. Use for a backend created from an AWS CloudFormation stack. This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
2152
2230
  :param basic_auth_config: The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format ``user:password`` .
2153
2231
  :param build_spec: The build specification (build spec) for the branch.
2232
+ :param compute_role_arn: The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific AWS resources based on the role's permissions. For more information about the SSR Compute role, see `Adding an SSR Compute role <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html>`_ in the *Amplify User Guide* .
2154
2233
  :param description: The description for the branch that is part of an Amplify app.
2155
2234
  :param enable_auto_build: Enables auto building for the branch.
2156
2235
  :param enable_performance_mode: Enables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.
2157
2236
  :param enable_pull_request_preview: Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the ``PullRequestEnvironmentName`` property. For more information, see `Web Previews <https://docs.aws.amazon.com/amplify/latest/userguide/pr-previews.html>`_ in the *AWS Amplify Hosting User Guide* .
2237
+ :param enable_skew_protection: Specifies whether the skew protection feature is enabled for the branch. Deployment skew protection is available to Amplify applications to eliminate version skew issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see `Skew protection for Amplify deployments <https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html>`_ in the *Amplify User Guide* .
2158
2238
  :param environment_variables: The environment variables for the branch.
2159
2239
  :param framework: The framework for the branch.
2160
2240
  :param pull_request_environment_name: If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named ``prod`` , ``test`` , or ``dev`` that you initialized with the Amplify CLI and mapped to this branch. To enable pull request previews, set the ``EnablePullRequestPreview`` property to ``true`` . If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. For more information about creating backend environments, see `Feature Branch Deployments and Team Workflows <https://docs.aws.amazon.com/amplify/latest/userguide/multi-environments.html>`_ in the *AWS Amplify Hosting User Guide* .
@@ -2186,10 +2266,12 @@ class CfnBranchProps:
2186
2266
  enable_basic_auth=False
2187
2267
  ),
2188
2268
  build_spec="buildSpec",
2269
+ compute_role_arn="computeRoleArn",
2189
2270
  description="description",
2190
2271
  enable_auto_build=False,
2191
2272
  enable_performance_mode=False,
2192
2273
  enable_pull_request_preview=False,
2274
+ enable_skew_protection=False,
2193
2275
  environment_variables=[amplify.CfnBranch.EnvironmentVariableProperty(
2194
2276
  name="name",
2195
2277
  value="value"
@@ -2210,10 +2292,12 @@ class CfnBranchProps:
2210
2292
  check_type(argname="argument backend", value=backend, expected_type=type_hints["backend"])
2211
2293
  check_type(argname="argument basic_auth_config", value=basic_auth_config, expected_type=type_hints["basic_auth_config"])
2212
2294
  check_type(argname="argument build_spec", value=build_spec, expected_type=type_hints["build_spec"])
2295
+ check_type(argname="argument compute_role_arn", value=compute_role_arn, expected_type=type_hints["compute_role_arn"])
2213
2296
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
2214
2297
  check_type(argname="argument enable_auto_build", value=enable_auto_build, expected_type=type_hints["enable_auto_build"])
2215
2298
  check_type(argname="argument enable_performance_mode", value=enable_performance_mode, expected_type=type_hints["enable_performance_mode"])
2216
2299
  check_type(argname="argument enable_pull_request_preview", value=enable_pull_request_preview, expected_type=type_hints["enable_pull_request_preview"])
2300
+ check_type(argname="argument enable_skew_protection", value=enable_skew_protection, expected_type=type_hints["enable_skew_protection"])
2217
2301
  check_type(argname="argument environment_variables", value=environment_variables, expected_type=type_hints["environment_variables"])
2218
2302
  check_type(argname="argument framework", value=framework, expected_type=type_hints["framework"])
2219
2303
  check_type(argname="argument pull_request_environment_name", value=pull_request_environment_name, expected_type=type_hints["pull_request_environment_name"])
@@ -2229,6 +2313,8 @@ class CfnBranchProps:
2229
2313
  self._values["basic_auth_config"] = basic_auth_config
2230
2314
  if build_spec is not None:
2231
2315
  self._values["build_spec"] = build_spec
2316
+ if compute_role_arn is not None:
2317
+ self._values["compute_role_arn"] = compute_role_arn
2232
2318
  if description is not None:
2233
2319
  self._values["description"] = description
2234
2320
  if enable_auto_build is not None:
@@ -2237,6 +2323,8 @@ class CfnBranchProps:
2237
2323
  self._values["enable_performance_mode"] = enable_performance_mode
2238
2324
  if enable_pull_request_preview is not None:
2239
2325
  self._values["enable_pull_request_preview"] = enable_pull_request_preview
2326
+ if enable_skew_protection is not None:
2327
+ self._values["enable_skew_protection"] = enable_skew_protection
2240
2328
  if environment_variables is not None:
2241
2329
  self._values["environment_variables"] = environment_variables
2242
2330
  if framework is not None:
@@ -2303,6 +2391,17 @@ class CfnBranchProps:
2303
2391
  result = self._values.get("build_spec")
2304
2392
  return typing.cast(typing.Optional[builtins.str], result)
2305
2393
 
2394
+ @builtins.property
2395
+ def compute_role_arn(self) -> typing.Optional[builtins.str]:
2396
+ '''The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app.
2397
+
2398
+ The SSR Compute role allows the Amplify Hosting compute service to securely access specific AWS resources based on the role's permissions. For more information about the SSR Compute role, see `Adding an SSR Compute role <https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html>`_ in the *Amplify User Guide* .
2399
+
2400
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-computerolearn
2401
+ '''
2402
+ result = self._values.get("compute_role_arn")
2403
+ return typing.cast(typing.Optional[builtins.str], result)
2404
+
2306
2405
  @builtins.property
2307
2406
  def description(self) -> typing.Optional[builtins.str]:
2308
2407
  '''The description for the branch that is part of an Amplify app.
@@ -2353,6 +2452,19 @@ class CfnBranchProps:
2353
2452
  result = self._values.get("enable_pull_request_preview")
2354
2453
  return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
2355
2454
 
2455
+ @builtins.property
2456
+ def enable_skew_protection(
2457
+ self,
2458
+ ) -> typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]]:
2459
+ '''Specifies whether the skew protection feature is enabled for the branch.
2460
+
2461
+ Deployment skew protection is available to Amplify applications to eliminate version skew issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see `Skew protection for Amplify deployments <https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html>`_ in the *Amplify User Guide* .
2462
+
2463
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplify-branch.html#cfn-amplify-branch-enableskewprotection
2464
+ '''
2465
+ result = self._values.get("enable_skew_protection")
2466
+ return typing.cast(typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]], result)
2467
+
2356
2468
  @builtins.property
2357
2469
  def environment_variables(
2358
2470
  self,
@@ -3187,6 +3299,7 @@ def _typecheckingstub__8dc8d772047a068d22a76d907b344356448c6a26d23e419ed69cc622d
3187
3299
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.BasicAuthConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3188
3300
  build_spec: typing.Optional[builtins.str] = None,
3189
3301
  cache_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.CacheConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3302
+ compute_role_arn: typing.Optional[builtins.str] = None,
3190
3303
  custom_headers: typing.Optional[builtins.str] = None,
3191
3304
  custom_rules: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.CustomRuleProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3192
3305
  description: typing.Optional[builtins.str] = None,
@@ -3249,6 +3362,12 @@ def _typecheckingstub__1e0b47cf174f09e141957cc84bc0f442ba70bbfa96a59aad74b66dab1
3249
3362
  """Type checking stubs"""
3250
3363
  pass
3251
3364
 
3365
+ def _typecheckingstub__d55f0c87bc50af5a1e7d9bf3f8fca41d5e5a849cb69dbf43ca51f24872058be8(
3366
+ value: typing.Optional[builtins.str],
3367
+ ) -> None:
3368
+ """Type checking stubs"""
3369
+ pass
3370
+
3252
3371
  def _typecheckingstub__623b6d97b6b1967c76a0782c9ba61b276ee5ff570dad9ab0003baf0626317805(
3253
3372
  value: typing.Optional[builtins.str],
3254
3373
  ) -> None:
@@ -3368,6 +3487,7 @@ def _typecheckingstub__cfa8f09e6d42b5d6d1122d3e9214ec780302e9c3fda48d7ca044dd076
3368
3487
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.BasicAuthConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3369
3488
  build_spec: typing.Optional[builtins.str] = None,
3370
3489
  cache_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.CacheConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3490
+ compute_role_arn: typing.Optional[builtins.str] = None,
3371
3491
  custom_headers: typing.Optional[builtins.str] = None,
3372
3492
  custom_rules: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnApp.CustomRuleProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3373
3493
  description: typing.Optional[builtins.str] = None,
@@ -3391,10 +3511,12 @@ def _typecheckingstub__859cd0a15aef1449f80ffe32589fdb895b13f3510c6905791c3eea033
3391
3511
  backend: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.BackendProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3392
3512
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.BasicAuthConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3393
3513
  build_spec: typing.Optional[builtins.str] = None,
3514
+ compute_role_arn: typing.Optional[builtins.str] = None,
3394
3515
  description: typing.Optional[builtins.str] = None,
3395
3516
  enable_auto_build: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3396
3517
  enable_performance_mode: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3397
3518
  enable_pull_request_preview: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3519
+ enable_skew_protection: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3398
3520
  environment_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.EnvironmentVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3399
3521
  framework: typing.Optional[builtins.str] = None,
3400
3522
  pull_request_environment_name: typing.Optional[builtins.str] = None,
@@ -3446,6 +3568,12 @@ def _typecheckingstub__ae472a508b2b0e4a122ae35d93c8733d00df3680d8823bd2ad857acc2
3446
3568
  """Type checking stubs"""
3447
3569
  pass
3448
3570
 
3571
+ def _typecheckingstub__50c29bd1063cbc0e1fa76d9721d838c59c46a84f1257f3ced31f3d727d6f9e36(
3572
+ value: typing.Optional[builtins.str],
3573
+ ) -> None:
3574
+ """Type checking stubs"""
3575
+ pass
3576
+
3449
3577
  def _typecheckingstub__a71cabeaa4605532f47314006f7075821b92f53c6bdb0be7bbb3c0f09ff70ea2(
3450
3578
  value: typing.Optional[builtins.str],
3451
3579
  ) -> None:
@@ -3470,6 +3598,12 @@ def _typecheckingstub__6c8216d12e1375a7227a3e83088f390c0e7d3575f804bea24c90bc6e4
3470
3598
  """Type checking stubs"""
3471
3599
  pass
3472
3600
 
3601
+ def _typecheckingstub__432a4942ceb7d62c4b8b4afa118592daeb5e524bc422ad19ea2bc1d797199dac(
3602
+ value: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]],
3603
+ ) -> None:
3604
+ """Type checking stubs"""
3605
+ pass
3606
+
3473
3607
  def _typecheckingstub__8ff5456e47cd7b5d2fb38bcf736c28804423dcef024c2d036243fc28345dd532(
3474
3608
  value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnBranch.EnvironmentVariableProperty]]]],
3475
3609
  ) -> None:
@@ -3531,10 +3665,12 @@ def _typecheckingstub__57c0d80a85d344dca51e3abe3e5e1ee9fff906ef48fa3809bec9a68a3
3531
3665
  backend: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.BackendProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3532
3666
  basic_auth_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.BasicAuthConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3533
3667
  build_spec: typing.Optional[builtins.str] = None,
3668
+ compute_role_arn: typing.Optional[builtins.str] = None,
3534
3669
  description: typing.Optional[builtins.str] = None,
3535
3670
  enable_auto_build: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3536
3671
  enable_performance_mode: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3537
3672
  enable_pull_request_preview: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3673
+ enable_skew_protection: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
3538
3674
  environment_variables: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnBranch.EnvironmentVariableProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
3539
3675
  framework: typing.Optional[builtins.str] = None,
3540
3676
  pull_request_environment_name: typing.Optional[builtins.str] = None,