aws-cdk-lib 2.185.0__py3-none-any.whl → 2.187.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 (87) hide show
  1. aws_cdk/__init__.py +383 -145
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.185.0.jsii.tgz → aws-cdk-lib@2.187.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +3 -2
  5. aws_cdk/aws_amplify/__init__.py +124 -0
  6. aws_cdk/aws_apigateway/__init__.py +48 -2
  7. aws_cdk/aws_apigatewayv2/__init__.py +9 -0
  8. aws_cdk/aws_appconfig/__init__.py +3 -3
  9. aws_cdk/aws_applicationsignals/__init__.py +363 -3
  10. aws_cdk/aws_appsync/__init__.py +74 -3
  11. aws_cdk/aws_bedrock/__init__.py +395 -14
  12. aws_cdk/aws_cassandra/__init__.py +2 -2
  13. aws_cdk/aws_cleanrooms/__init__.py +21 -9
  14. aws_cdk/aws_cloudformation/__init__.py +1 -5
  15. aws_cdk/aws_cloudfront/__init__.py +15 -1
  16. aws_cdk/aws_cloudfront_origins/__init__.py +4 -2
  17. aws_cdk/aws_cloudtrail/__init__.py +4 -18
  18. aws_cdk/aws_cloudwatch/__init__.py +50 -50
  19. aws_cdk/aws_codeartifact/__init__.py +20 -33
  20. aws_cdk/aws_codebuild/__init__.py +9 -0
  21. aws_cdk/aws_codepipeline/__init__.py +1328 -120
  22. aws_cdk/aws_cognito/__init__.py +1 -1
  23. aws_cdk/aws_cognito_identitypool/__init__.py +2303 -0
  24. aws_cdk/aws_config/__init__.py +2 -5
  25. aws_cdk/aws_connect/__init__.py +3 -7
  26. aws_cdk/aws_controltower/__init__.py +18 -26
  27. aws_cdk/aws_datazone/__init__.py +3540 -10
  28. aws_cdk/aws_detective/__init__.py +3 -3
  29. aws_cdk/aws_dynamodb/__init__.py +37 -0
  30. aws_cdk/aws_ec2/__init__.py +714 -37
  31. aws_cdk/aws_ecr/__init__.py +143 -0
  32. aws_cdk/aws_ecr_assets/__init__.py +115 -4
  33. aws_cdk/aws_ecs/__init__.py +66 -20
  34. aws_cdk/aws_eks/__init__.py +114 -0
  35. aws_cdk/aws_events/__init__.py +26 -6
  36. aws_cdk/aws_forecast/__init__.py +1 -1
  37. aws_cdk/aws_fsx/__init__.py +2 -2
  38. aws_cdk/aws_gamelift/__init__.py +11 -11
  39. aws_cdk/aws_iam/__init__.py +264 -0
  40. aws_cdk/aws_identitystore/__init__.py +16 -16
  41. aws_cdk/aws_imagebuilder/__init__.py +3 -27
  42. aws_cdk/aws_iotsitewise/__init__.py +623 -0
  43. aws_cdk/aws_kinesisfirehose/__init__.py +2 -3
  44. aws_cdk/aws_kms/__init__.py +10 -11
  45. aws_cdk/aws_lakeformation/__init__.py +3 -3
  46. aws_cdk/aws_lambda/__init__.py +112 -5
  47. aws_cdk/aws_lambda_event_sources/__init__.py +65 -3
  48. aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
  49. aws_cdk/aws_lex/__init__.py +981 -5
  50. aws_cdk/aws_location/__init__.py +24 -7
  51. aws_cdk/aws_mediaconnect/__init__.py +714 -290
  52. aws_cdk/aws_msk/__init__.py +8 -2
  53. aws_cdk/aws_mwaa/__init__.py +9 -9
  54. aws_cdk/aws_networkfirewall/__init__.py +60 -12
  55. aws_cdk/aws_oam/__init__.py +8 -37
  56. aws_cdk/aws_omics/__init__.py +216 -0
  57. aws_cdk/aws_quicksight/__init__.py +250 -108
  58. aws_cdk/aws_rds/__init__.py +102 -10
  59. aws_cdk/aws_redshiftserverless/__init__.py +192 -15
  60. aws_cdk/aws_route53/__init__.py +2 -2
  61. aws_cdk/aws_route53recoverycontrol/__init__.py +43 -2
  62. aws_cdk/aws_rum/__init__.py +315 -52
  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 +6 -4
  66. aws_cdk/aws_scheduler/__init__.py +3944 -121
  67. aws_cdk/aws_scheduler_targets/__init__.py +4460 -0
  68. aws_cdk/aws_securitylake/__init__.py +2 -2
  69. aws_cdk/aws_servicecatalog/__init__.py +4 -0
  70. aws_cdk/aws_sns/__init__.py +1 -1
  71. aws_cdk/aws_ssmquicksetup/__init__.py +5 -3
  72. aws_cdk/aws_stepfunctions/__init__.py +8 -0
  73. aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
  74. aws_cdk/aws_synthetics/__init__.py +9 -0
  75. aws_cdk/aws_systemsmanagersap/__init__.py +150 -0
  76. aws_cdk/aws_timestream/__init__.py +4 -4
  77. aws_cdk/aws_wafv2/__init__.py +1117 -1446
  78. aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
  79. aws_cdk/cloud_assembly_schema/__init__.py +60 -10
  80. aws_cdk/cx_api/__init__.py +38 -0
  81. aws_cdk/pipelines/__init__.py +20 -2
  82. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/METADATA +4 -4
  83. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/RECORD +87 -85
  84. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/WHEEL +1 -1
  85. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/LICENSE +0 -0
  86. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/NOTICE +0 -0
  87. {aws_cdk_lib-2.185.0.dist-info → aws_cdk_lib-2.187.0.dist-info}/top_level.txt +0 -0
@@ -3977,6 +3977,7 @@ class AsgCapacityProviderProps(AddAutoScalingGroupCapacityOptions):
3977
3977
  "cache_disabled": "cacheDisabled",
3978
3978
  "cache_from": "cacheFrom",
3979
3979
  "cache_to": "cacheTo",
3980
+ "display_name": "displayName",
3980
3981
  "file": "file",
3981
3982
  "invalidation": "invalidation",
3982
3983
  "network_mode": "networkMode",
@@ -4000,6 +4001,7 @@ class AssetImageProps(_DockerImageAssetOptions_9580cd76):
4000
4001
  cache_disabled: typing.Optional[builtins.bool] = None,
4001
4002
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
4002
4003
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
4004
+ display_name: typing.Optional[builtins.str] = None,
4003
4005
  file: typing.Optional[builtins.str] = None,
4004
4006
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
4005
4007
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -4020,6 +4022,7 @@ class AssetImageProps(_DockerImageAssetOptions_9580cd76):
4020
4022
  :param cache_disabled: Disable the cache and pass ``--no-cache`` to the ``docker build`` command. Default: - cache is used
4021
4023
  :param cache_from: Cache from options to pass to the ``docker build`` command. Default: - no cache from options are passed to the build command
4022
4024
  :param cache_to: Cache to options to pass to the ``docker build`` command. Default: - no cache to options are passed to the build command
4025
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. If ``assetName`` is given, it will also be used as the default ``displayName``. Otherwise, the default is the construct path of the ImageAsset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAssetImage()``), this will look like ``MyFunction/AssetImage``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
4023
4026
  :param file: Path to the Dockerfile (relative to the directory). Default: 'Dockerfile'
4024
4027
  :param invalidation: Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
4025
4028
  :param network_mode: Networking mode for the RUN commands during build. Support docker API 1.25+. Default: - no networking mode specified (the default networking mode ``NetworkMode.DEFAULT`` will be used)
@@ -4066,6 +4069,7 @@ class AssetImageProps(_DockerImageAssetOptions_9580cd76):
4066
4069
  "params_key": "params"
4067
4070
  }
4068
4071
  ),
4072
+ display_name="displayName",
4069
4073
  exclude=["exclude"],
4070
4074
  extra_hash="extraHash",
4071
4075
  file="file",
@@ -4106,6 +4110,7 @@ class AssetImageProps(_DockerImageAssetOptions_9580cd76):
4106
4110
  check_type(argname="argument cache_disabled", value=cache_disabled, expected_type=type_hints["cache_disabled"])
4107
4111
  check_type(argname="argument cache_from", value=cache_from, expected_type=type_hints["cache_from"])
4108
4112
  check_type(argname="argument cache_to", value=cache_to, expected_type=type_hints["cache_to"])
4113
+ check_type(argname="argument display_name", value=display_name, expected_type=type_hints["display_name"])
4109
4114
  check_type(argname="argument file", value=file, expected_type=type_hints["file"])
4110
4115
  check_type(argname="argument invalidation", value=invalidation, expected_type=type_hints["invalidation"])
4111
4116
  check_type(argname="argument network_mode", value=network_mode, expected_type=type_hints["network_mode"])
@@ -4135,6 +4140,8 @@ class AssetImageProps(_DockerImageAssetOptions_9580cd76):
4135
4140
  self._values["cache_from"] = cache_from
4136
4141
  if cache_to is not None:
4137
4142
  self._values["cache_to"] = cache_to
4143
+ if display_name is not None:
4144
+ self._values["display_name"] = display_name
4138
4145
  if file is not None:
4139
4146
  self._values["file"] = file
4140
4147
  if invalidation is not None:
@@ -4279,6 +4286,31 @@ class AssetImageProps(_DockerImageAssetOptions_9580cd76):
4279
4286
  result = self._values.get("cache_to")
4280
4287
  return typing.cast(typing.Optional[_DockerCacheOption_58ef18ca], result)
4281
4288
 
4289
+ @builtins.property
4290
+ def display_name(self) -> typing.Optional[builtins.str]:
4291
+ '''A display name for this asset.
4292
+
4293
+ If supplied, the display name will be used in locations where the asset
4294
+ identifier is printed, like in the CLI progress information. If the same
4295
+ asset is added multiple times, the display name of the first occurrence is
4296
+ used.
4297
+
4298
+ If ``assetName`` is given, it will also be used as the default ``displayName``.
4299
+ Otherwise, the default is the construct path of the ImageAsset construct,
4300
+ with respect to the enclosing stack. If the asset is produced by a
4301
+ construct helper function (such as ``lambda.Code.fromAssetImage()``), this
4302
+ will look like ``MyFunction/AssetImage``.
4303
+
4304
+ We use the stack-relative construct path so that in the common case where
4305
+ you have multiple stacks with the same asset, we won't show something like
4306
+ ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to
4307
+ production.
4308
+
4309
+ :default: - Stack-relative construct path
4310
+ '''
4311
+ result = self._values.get("display_name")
4312
+ return typing.cast(typing.Optional[builtins.str], result)
4313
+
4282
4314
  @builtins.property
4283
4315
  def file(self) -> typing.Optional[builtins.str]:
4284
4316
  '''Path to the Dockerfile (relative to the directory).
@@ -22687,6 +22719,7 @@ class ContainerImage(
22687
22719
  cache_disabled: typing.Optional[builtins.bool] = None,
22688
22720
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
22689
22721
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
22722
+ display_name: typing.Optional[builtins.str] = None,
22690
22723
  file: typing.Optional[builtins.str] = None,
22691
22724
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
22692
22725
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -22711,6 +22744,7 @@ class ContainerImage(
22711
22744
  :param cache_disabled: Disable the cache and pass ``--no-cache`` to the ``docker build`` command. Default: - cache is used
22712
22745
  :param cache_from: Cache from options to pass to the ``docker build`` command. Default: - no cache from options are passed to the build command
22713
22746
  :param cache_to: Cache to options to pass to the ``docker build`` command. Default: - no cache to options are passed to the build command
22747
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. If ``assetName`` is given, it will also be used as the default ``displayName``. Otherwise, the default is the construct path of the ImageAsset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAssetImage()``), this will look like ``MyFunction/AssetImage``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
22714
22748
  :param file: Path to the Dockerfile (relative to the directory). Default: 'Dockerfile'
22715
22749
  :param invalidation: Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
22716
22750
  :param network_mode: Networking mode for the RUN commands during build. Support docker API 1.25+. Default: - no networking mode specified (the default networking mode ``NetworkMode.DEFAULT`` will be used)
@@ -22733,6 +22767,7 @@ class ContainerImage(
22733
22767
  cache_disabled=cache_disabled,
22734
22768
  cache_from=cache_from,
22735
22769
  cache_to=cache_to,
22770
+ display_name=display_name,
22736
22771
  file=file,
22737
22772
  invalidation=invalidation,
22738
22773
  network_mode=network_mode,
@@ -25639,6 +25674,7 @@ class EnvironmentFile(
25639
25674
  path: builtins.str,
25640
25675
  *,
25641
25676
  deploy_time: typing.Optional[builtins.bool] = None,
25677
+ display_name: typing.Optional[builtins.str] = None,
25642
25678
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
25643
25679
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
25644
25680
  asset_hash: typing.Optional[builtins.str] = None,
@@ -25652,6 +25688,7 @@ class EnvironmentFile(
25652
25688
 
25653
25689
  :param path: Local disk path.
25654
25690
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
25691
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. The default is the construct path of the Asset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAsset()``), this will look like ``MyFunction/Code``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
25655
25692
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
25656
25693
  :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
25657
25694
  :param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
@@ -25666,6 +25703,7 @@ class EnvironmentFile(
25666
25703
  check_type(argname="argument path", value=path, expected_type=type_hints["path"])
25667
25704
  options = _AssetOptions_2aa69621(
25668
25705
  deploy_time=deploy_time,
25706
+ display_name=display_name,
25669
25707
  readers=readers,
25670
25708
  source_kms_key=source_kms_key,
25671
25709
  asset_hash=asset_hash,
@@ -37170,33 +37208,28 @@ class TaskDefinition(
37170
37208
 
37171
37209
  Example::
37172
37210
 
37173
- # task_definition: ecs.TaskDefinition
37211
+ import aws_cdk.aws_cloudwatch as cw
37212
+
37174
37213
  # cluster: ecs.Cluster
37214
+ # task_definition: ecs.TaskDefinition
37175
37215
 
37176
37216
 
37177
- # Add a container to the task definition
37178
- specific_container = task_definition.add_container("Container",
37179
- image=ecs.ContainerImage.from_registry("/aws/aws-example-app"),
37180
- memory_limit_mi_b=2048
37217
+ service = ecs.FargateService(self, "Service",
37218
+ cluster=cluster,
37219
+ task_definition=task_definition
37181
37220
  )
37182
37221
 
37183
- # Add a port mapping
37184
- specific_container.add_port_mappings(
37185
- container_port=7600,
37186
- protocol=ecs.Protocol.TCP
37222
+ cpu_alarm_name = "MyCpuMetricAlarm"
37223
+ my_alarm = cw.Alarm(self, "CPUAlarm",
37224
+ alarm_name=cpu_alarm_name,
37225
+ metric=service.metric_cpu_utilization(),
37226
+ evaluation_periods=2,
37227
+ threshold=80
37187
37228
  )
37188
37229
 
37189
- ecs.Ec2Service(self, "Service",
37190
- cluster=cluster,
37191
- task_definition=task_definition,
37192
- min_healthy_percent=100,
37193
- cloud_map_options=ecs.CloudMapOptions(
37194
- # Create SRV records - useful for bridge networking
37195
- dns_record_type=cloudmap.DnsRecordType.SRV,
37196
- # Targets port TCP port 7600 `specificContainer`
37197
- container=specific_container,
37198
- container_port=7600
37199
- )
37230
+ # Using `myAlarm.alarmName` here will cause a circular dependency
37231
+ service.enable_deployment_alarms([cpu_alarm_name],
37232
+ behavior=ecs.AlarmBehavior.FAIL_ON_ALARM
37200
37233
  )
37201
37234
  '''
37202
37235
 
@@ -39236,6 +39269,7 @@ class AssetEnvironmentFile(
39236
39269
  working_directory="workingDirectory"
39237
39270
  ),
39238
39271
  deploy_time=False,
39272
+ display_name="displayName",
39239
39273
  exclude=["exclude"],
39240
39274
  follow_symlinks=cdk.SymlinkFollowMode.NEVER,
39241
39275
  ignore_mode=cdk.IgnoreMode.GLOB,
@@ -39249,6 +39283,7 @@ class AssetEnvironmentFile(
39249
39283
  path: builtins.str,
39250
39284
  *,
39251
39285
  deploy_time: typing.Optional[builtins.bool] = None,
39286
+ display_name: typing.Optional[builtins.str] = None,
39252
39287
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
39253
39288
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
39254
39289
  asset_hash: typing.Optional[builtins.str] = None,
@@ -39261,6 +39296,7 @@ class AssetEnvironmentFile(
39261
39296
  '''
39262
39297
  :param path: The path to the asset file or directory.
39263
39298
  :param deploy_time: Whether or not the asset needs to exist beyond deployment time; i.e. are copied over to a different location and not needed afterwards. Setting this property to true has an impact on the lifecycle of the asset, because we will assume that it is safe to delete after the CloudFormation deployment succeeds. For example, Lambda Function assets are copied over to Lambda during deployment. Therefore, it is not necessary to store the asset in S3, so we consider those deployTime assets. Default: false
39299
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. The default is the construct path of the Asset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAsset()``), this will look like ``MyFunction/Code``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
39264
39300
  :param readers: A list of principals that should be able to read this asset from S3. You can use ``asset.grantRead(principal)`` to grant read permissions later. Default: - No principals that can read file asset.
39265
39301
  :param source_kms_key: The ARN of the KMS key used to encrypt the handler code. Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
39266
39302
  :param asset_hash: Specify a custom hash for this asset. If ``assetHashType`` is set it must be set to ``AssetHashType.CUSTOM``. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash. NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated. Default: - based on ``assetHashType``
@@ -39275,6 +39311,7 @@ class AssetEnvironmentFile(
39275
39311
  check_type(argname="argument path", value=path, expected_type=type_hints["path"])
39276
39312
  options = _AssetOptions_2aa69621(
39277
39313
  deploy_time=deploy_time,
39314
+ display_name=display_name,
39278
39315
  readers=readers,
39279
39316
  source_kms_key=source_kms_key,
39280
39317
  asset_hash=asset_hash,
@@ -39351,6 +39388,7 @@ class AssetImage(
39351
39388
  "params_key": "params"
39352
39389
  }
39353
39390
  ),
39391
+ display_name="displayName",
39354
39392
  exclude=["exclude"],
39355
39393
  extra_hash="extraHash",
39356
39394
  file="file",
@@ -39386,6 +39424,7 @@ class AssetImage(
39386
39424
  cache_disabled: typing.Optional[builtins.bool] = None,
39387
39425
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
39388
39426
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
39427
+ display_name: typing.Optional[builtins.str] = None,
39389
39428
  file: typing.Optional[builtins.str] = None,
39390
39429
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
39391
39430
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -39407,6 +39446,7 @@ class AssetImage(
39407
39446
  :param cache_disabled: Disable the cache and pass ``--no-cache`` to the ``docker build`` command. Default: - cache is used
39408
39447
  :param cache_from: Cache from options to pass to the ``docker build`` command. Default: - no cache from options are passed to the build command
39409
39448
  :param cache_to: Cache to options to pass to the ``docker build`` command. Default: - no cache to options are passed to the build command
39449
+ :param display_name: A display name for this asset. If supplied, the display name will be used in locations where the asset identifier is printed, like in the CLI progress information. If the same asset is added multiple times, the display name of the first occurrence is used. If ``assetName`` is given, it will also be used as the default ``displayName``. Otherwise, the default is the construct path of the ImageAsset construct, with respect to the enclosing stack. If the asset is produced by a construct helper function (such as ``lambda.Code.fromAssetImage()``), this will look like ``MyFunction/AssetImage``. We use the stack-relative construct path so that in the common case where you have multiple stacks with the same asset, we won't show something like ``/MyBetaStack/MyFunction/Code`` when you are actually deploying to production. Default: - Stack-relative construct path
39410
39450
  :param file: Path to the Dockerfile (relative to the directory). Default: 'Dockerfile'
39411
39451
  :param invalidation: Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
39412
39452
  :param network_mode: Networking mode for the RUN commands during build. Support docker API 1.25+. Default: - no networking mode specified (the default networking mode ``NetworkMode.DEFAULT`` will be used)
@@ -39429,6 +39469,7 @@ class AssetImage(
39429
39469
  cache_disabled=cache_disabled,
39430
39470
  cache_from=cache_from,
39431
39471
  cache_to=cache_to,
39472
+ display_name=display_name,
39432
39473
  file=file,
39433
39474
  invalidation=invalidation,
39434
39475
  network_mode=network_mode,
@@ -43232,6 +43273,7 @@ def _typecheckingstub__6e2e094929b9952c79f2d2f10cac8da6c1f6dad2f0e50e17e639ed016
43232
43273
  cache_disabled: typing.Optional[builtins.bool] = None,
43233
43274
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
43234
43275
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
43276
+ display_name: typing.Optional[builtins.str] = None,
43235
43277
  file: typing.Optional[builtins.str] = None,
43236
43278
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
43237
43279
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -45118,6 +45160,7 @@ def _typecheckingstub__a3b74ad5b0ef573de8f4998ac2c10294ecc205320b367ba59d13b865f
45118
45160
  cache_disabled: typing.Optional[builtins.bool] = None,
45119
45161
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
45120
45162
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
45163
+ display_name: typing.Optional[builtins.str] = None,
45121
45164
  file: typing.Optional[builtins.str] = None,
45122
45165
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
45123
45166
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,
@@ -45459,6 +45502,7 @@ def _typecheckingstub__984c009064fe3ececa2babfa7da070310c1a07aad5d8719d7817aacaf
45459
45502
  path: builtins.str,
45460
45503
  *,
45461
45504
  deploy_time: typing.Optional[builtins.bool] = None,
45505
+ display_name: typing.Optional[builtins.str] = None,
45462
45506
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
45463
45507
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
45464
45508
  asset_hash: typing.Optional[builtins.str] = None,
@@ -46759,6 +46803,7 @@ def _typecheckingstub__0c2450ee3cfe92be6dcc8ab1f8c7f9bc88382905f44289ab29eb782fb
46759
46803
  path: builtins.str,
46760
46804
  *,
46761
46805
  deploy_time: typing.Optional[builtins.bool] = None,
46806
+ display_name: typing.Optional[builtins.str] = None,
46762
46807
  readers: typing.Optional[typing.Sequence[_IGrantable_71c4f5de]] = None,
46763
46808
  source_kms_key: typing.Optional[_IKey_5f11635f] = None,
46764
46809
  asset_hash: typing.Optional[builtins.str] = None,
@@ -46787,6 +46832,7 @@ def _typecheckingstub__4d3698baaf6e6b1c9fc983c7a139e8426df4d121c2e7cd948722f7942
46787
46832
  cache_disabled: typing.Optional[builtins.bool] = None,
46788
46833
  cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
46789
46834
  cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
46835
+ display_name: typing.Optional[builtins.str] = None,
46790
46836
  file: typing.Optional[builtins.str] = None,
46791
46837
  invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
46792
46838
  network_mode: typing.Optional[_NetworkMode_897e5081] = None,