aws-cdk-lib 2.193.0__py3-none-any.whl → 2.194.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 (35) hide show
  1. aws_cdk/_jsii/__init__.py +1 -1
  2. aws_cdk/_jsii/{aws-cdk-lib@2.193.0.jsii.tgz → aws-cdk-lib@2.194.0.jsii.tgz} +0 -0
  3. aws_cdk/aws_apigateway/__init__.py +3 -1
  4. aws_cdk/aws_aps/__init__.py +34 -22
  5. aws_cdk/aws_autoscaling/__init__.py +8 -0
  6. aws_cdk/aws_batch/__init__.py +2 -2
  7. aws_cdk/aws_bedrock/__init__.py +6 -4
  8. aws_cdk/aws_ce/__init__.py +34 -22
  9. aws_cdk/aws_cloudfront/__init__.py +3019 -971
  10. aws_cdk/aws_codebuild/__init__.py +19 -10
  11. aws_cdk/aws_dlm/__init__.py +2 -2
  12. aws_cdk/aws_ec2/__init__.py +6 -3
  13. aws_cdk/aws_ecr/__init__.py +417 -0
  14. aws_cdk/aws_ecs/__init__.py +18 -10
  15. aws_cdk/aws_entityresolution/__init__.py +7 -2
  16. aws_cdk/aws_events/__init__.py +41 -8
  17. aws_cdk/aws_lambda/__init__.py +1 -1
  18. aws_cdk/aws_mediapackagev2/__init__.py +50 -6
  19. aws_cdk/aws_memorydb/__init__.py +21 -11
  20. aws_cdk/aws_omics/__init__.py +5 -5
  21. aws_cdk/aws_qbusiness/__init__.py +2 -2
  22. aws_cdk/aws_quicksight/__init__.py +1 -1
  23. aws_cdk/aws_rds/__init__.py +46 -2
  24. aws_cdk/aws_redshiftserverless/__init__.py +20 -0
  25. aws_cdk/aws_route53resolver/__init__.py +41 -0
  26. aws_cdk/aws_s3/__init__.py +2 -4
  27. aws_cdk/aws_sagemaker/__init__.py +2 -4
  28. aws_cdk/aws_vpclattice/__init__.py +6 -2
  29. aws_cdk/aws_wisdom/__init__.py +25 -6
  30. {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/METADATA +1 -1
  31. {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/RECORD +35 -35
  32. {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/LICENSE +0 -0
  33. {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/NOTICE +0 -0
  34. {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/WHEEL +0 -0
  35. {aws_cdk_lib-2.193.0.dist-info → aws_cdk_lib-2.194.0.dist-info}/top_level.txt +0 -0
@@ -2255,7 +2255,7 @@ class CfnFleet(
2255
2255
  :param scope: Scope in which this resource is defined.
2256
2256
  :param id: Construct identifier for this resource (unique in its scope).
2257
2257
  :param base_capacity: The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.
2258
- :param compute_configuration: The compute configuration of the compute fleet. This is only required if ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` .
2258
+ :param compute_configuration: The compute configuration of the compute fleet. This is only required if ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` or ``CUSTOM_INSTANCE_TYPE`` .
2259
2259
  :param compute_type: Information about the compute resources the compute fleet uses. Available values include:. - ``ATTRIBUTE_BASED_COMPUTE`` : Specify the amount of vCPUs, memory, disk space, and the type of machine. .. epigraph:: If you use ``ATTRIBUTE_BASED_COMPUTE`` , you must define your attributes by using ``computeConfiguration`` . AWS CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see `Reserved capacity environment types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types>`_ in the *AWS CodeBuild User Guide* . - ``BUILD_GENERAL1_SMALL`` : Use up to 4 GiB memory and 2 vCPUs for builds. - ``BUILD_GENERAL1_MEDIUM`` : Use up to 8 GiB memory and 4 vCPUs for builds. - ``BUILD_GENERAL1_LARGE`` : Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_XLARGE`` : Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_2XLARGE`` : Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed. - ``BUILD_LAMBDA_1GB`` : Use up to 1 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_2GB`` : Use up to 2 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_4GB`` : Use up to 4 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_8GB`` : Use up to 8 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_10GB`` : Use up to 10 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . If you use ``BUILD_GENERAL1_SMALL`` : - For environment type ``LINUX_CONTAINER`` , you can use up to 4 GiB memory and 2 vCPUs for builds. - For environment type ``LINUX_GPU_CONTAINER`` , you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds. - For environment type ``ARM_CONTAINER`` , you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds. If you use ``BUILD_GENERAL1_LARGE`` : - For environment type ``LINUX_CONTAINER`` , you can use up to 16 GiB memory and 8 vCPUs for builds. - For environment type ``LINUX_GPU_CONTAINER`` , you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds. - For environment type ``ARM_CONTAINER`` , you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds. For more information, see `On-demand environment types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types>`_ in the *AWS CodeBuild User Guide.*
2260
2260
  :param environment_type: The environment type of the compute fleet. - The environment type ``ARM_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). - The environment type ``ARM_EC2`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``LINUX_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``LINUX_EC2`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``LINUX_GPU_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). - The environment type ``MAC_ARM`` is available only in regions US East (Ohio), US East (N. Virginia), US West (Oregon), Europe (Frankfurt), and Asia Pacific (Sydney). - The environment type ``WINDOWS_EC2`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``WINDOWS_SERVER_2019_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). - The environment type ``WINDOWS_SERVER_2022_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). For more information, see `Build environment compute types <https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-compute-types.html>`_ in the *AWS CodeBuild user guide* .
2261
2261
  :param fleet_proxy_configuration: Information about the proxy configurations that apply network access control to your reserved capacity instances.
@@ -2538,7 +2538,7 @@ class CfnFleet(
2538
2538
  ) -> None:
2539
2539
  '''Contains compute attributes.
2540
2540
 
2541
- These attributes only need be specified when your project's or fleet's ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` .
2541
+ These attributes only need be specified when your project's or fleet's ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` or ``CUSTOM_INSTANCE_TYPE`` .
2542
2542
 
2543
2543
  :param disk: The amount of disk space of the instance type included in your fleet.
2544
2544
  :param machine_type: The machine type of the instance type included in your fleet.
@@ -3080,7 +3080,7 @@ class CfnFleetProps:
3080
3080
  '''Properties for defining a ``CfnFleet``.
3081
3081
 
3082
3082
  :param base_capacity: The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.
3083
- :param compute_configuration: The compute configuration of the compute fleet. This is only required if ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` .
3083
+ :param compute_configuration: The compute configuration of the compute fleet. This is only required if ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` or ``CUSTOM_INSTANCE_TYPE`` .
3084
3084
  :param compute_type: Information about the compute resources the compute fleet uses. Available values include:. - ``ATTRIBUTE_BASED_COMPUTE`` : Specify the amount of vCPUs, memory, disk space, and the type of machine. .. epigraph:: If you use ``ATTRIBUTE_BASED_COMPUTE`` , you must define your attributes by using ``computeConfiguration`` . AWS CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see `Reserved capacity environment types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types>`_ in the *AWS CodeBuild User Guide* . - ``BUILD_GENERAL1_SMALL`` : Use up to 4 GiB memory and 2 vCPUs for builds. - ``BUILD_GENERAL1_MEDIUM`` : Use up to 8 GiB memory and 4 vCPUs for builds. - ``BUILD_GENERAL1_LARGE`` : Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_XLARGE`` : Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_2XLARGE`` : Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed. - ``BUILD_LAMBDA_1GB`` : Use up to 1 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_2GB`` : Use up to 2 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_4GB`` : Use up to 4 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_8GB`` : Use up to 8 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_10GB`` : Use up to 10 GiB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . If you use ``BUILD_GENERAL1_SMALL`` : - For environment type ``LINUX_CONTAINER`` , you can use up to 4 GiB memory and 2 vCPUs for builds. - For environment type ``LINUX_GPU_CONTAINER`` , you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds. - For environment type ``ARM_CONTAINER`` , you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds. If you use ``BUILD_GENERAL1_LARGE`` : - For environment type ``LINUX_CONTAINER`` , you can use up to 16 GiB memory and 8 vCPUs for builds. - For environment type ``LINUX_GPU_CONTAINER`` , you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds. - For environment type ``ARM_CONTAINER`` , you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds. For more information, see `On-demand environment types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types>`_ in the *AWS CodeBuild User Guide.*
3085
3085
  :param environment_type: The environment type of the compute fleet. - The environment type ``ARM_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo). - The environment type ``ARM_EC2`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``LINUX_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``LINUX_EC2`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``LINUX_GPU_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney). - The environment type ``MAC_ARM`` is available only in regions US East (Ohio), US East (N. Virginia), US West (Oregon), Europe (Frankfurt), and Asia Pacific (Sydney). - The environment type ``WINDOWS_EC2`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai). - The environment type ``WINDOWS_SERVER_2019_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland). - The environment type ``WINDOWS_SERVER_2022_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai). For more information, see `Build environment compute types <https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-compute-types.html>`_ in the *AWS CodeBuild user guide* .
3086
3086
  :param fleet_proxy_configuration: Information about the proxy configurations that apply network access control to your reserved capacity instances.
@@ -3197,7 +3197,7 @@ class CfnFleetProps:
3197
3197
  ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFleet.ComputeConfigurationProperty]]:
3198
3198
  '''The compute configuration of the compute fleet.
3199
3199
 
3200
- This is only required if ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` .
3200
+ This is only required if ``computeType`` is set to ``ATTRIBUTE_BASED_COMPUTE`` or ``CUSTOM_INSTANCE_TYPE`` .
3201
3201
 
3202
3202
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-computeconfiguration
3203
3203
  '''
@@ -5300,7 +5300,7 @@ class CfnProject(
5300
5300
  '''``ProjectCache`` is a property of the `AWS CodeBuild Project <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html>`_ resource that specifies information about the cache for the build project. If ``ProjectCache`` is not specified, then both of its properties default to ``NO_CACHE`` .
5301
5301
 
5302
5302
  :param type: The type of cache used by the build project. Valid values include:. - ``NO_CACHE`` : The build project does not use any cache. - ``S3`` : The build project reads and writes from and to S3. - ``LOCAL`` : The build project stores a cache locally on a build host that is only available to that build host.
5303
- :param cache_namespace:
5303
+ :param cache_namespace: Defines the scope of the cache. You can use this namespace to share a cache across multiple projects. For more information, see `Cache sharing between projects <https://docs.aws.amazon.com/codebuild/latest/userguide/caching-s3.html#caching-s3-sharing>`_ in the *AWS CodeBuild User Guide* .
5304
5304
  :param location: Information about the cache location:. - ``NO_CACHE`` or ``LOCAL`` : This value is ignored. - ``S3`` : This is the S3 bucket name/prefix.
5305
5305
  :param modes: An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for ``LOCAL`` cache types. Possible values are: - **LOCAL_SOURCE_CACHE** - Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored. - **LOCAL_DOCKER_LAYER_CACHE** - Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network. .. epigraph:: - You can use a Docker layer cache in the Linux environment only. - The ``privileged`` flag must be set so that your project has the required Docker permissions. - You should consider the security implications before you use a Docker layer cache. - **LOCAL_CUSTOM_CACHE** - Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache: - Only directories can be specified for caching. You cannot specify individual files. - Symlinks are used to reference cached directories. - Cached directories are linked to your build before it downloads its project sources. Cached items are overridden if a source item has the same name. Directories are specified using cache paths in the buildspec file.
5306
5306
 
@@ -5354,7 +5354,10 @@ class CfnProject(
5354
5354
 
5355
5355
  @builtins.property
5356
5356
  def cache_namespace(self) -> typing.Optional[builtins.str]:
5357
- '''
5357
+ '''Defines the scope of the cache.
5358
+
5359
+ You can use this namespace to share a cache across multiple projects. For more information, see `Cache sharing between projects <https://docs.aws.amazon.com/codebuild/latest/userguide/caching-s3.html#caching-s3-sharing>`_ in the *AWS CodeBuild User Guide* .
5360
+
5358
5361
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-cachenamespace
5359
5362
  '''
5360
5363
  result = self._values.get("cache_namespace")
@@ -6021,8 +6024,8 @@ class CfnProject(
6021
6024
  '''Contains configuration information about the scope for a webhook.
6022
6025
 
6023
6026
  :param name: The name of either the enterprise or organization that will send webhook events to CodeBuild , depending on if the webhook is a global or organization webhook respectively.
6024
- :param domain:
6025
- :param scope:
6027
+ :param domain: The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.
6028
+ :param scope: The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION.
6026
6029
 
6027
6030
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html
6028
6031
  :exampleMetadata: fixture=_generated
@@ -6066,7 +6069,10 @@ class CfnProject(
6066
6069
 
6067
6070
  @builtins.property
6068
6071
  def domain(self) -> typing.Optional[builtins.str]:
6069
- '''
6072
+ '''The domain of the GitHub Enterprise organization or the GitLab Self Managed group.
6073
+
6074
+ Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.
6075
+
6070
6076
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-domain
6071
6077
  '''
6072
6078
  result = self._values.get("domain")
@@ -6074,7 +6080,10 @@ class CfnProject(
6074
6080
 
6075
6081
  @builtins.property
6076
6082
  def scope(self) -> typing.Optional[builtins.str]:
6077
- '''
6083
+ '''The type of scope for a GitHub or GitLab webhook.
6084
+
6085
+ The scope default is GITHUB_ORGANIZATION.
6086
+
6078
6087
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-scopeconfiguration.html#cfn-codebuild-project-scopeconfiguration-scope
6079
6088
  '''
6080
6089
  result = self._values.get("scope")
@@ -782,7 +782,7 @@ class CfnLifecyclePolicy(
782
782
  - You must specify either *CronExpression* , or *Interval* , *IntervalUnit* , and *Times* .
783
783
  - If you need to specify an `ArchiveRule <https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html>`_ for the schedule, then you must specify a creation frequency of at least 28 days.
784
784
 
785
- :param cron_expression: The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see the `Cron expressions reference <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html>`_ in the *Amazon EventBridge User Guide* .
785
+ :param cron_expression: The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see the `Cron and rate expressions <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html>`_ in the *Amazon EventBridge User Guide* .
786
786
  :param interval: The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
787
787
  :param interval_unit: The interval unit.
788
788
  :param location: *[Custom snapshot policies only]* Specifies the destination for snapshots created by the policy. The allowed destinations depend on the location of the targeted resources. - If the policy targets resources in a Region, then you must create snapshots in the same Region as the source resource. - If the policy targets resources in a Local Zone, you can create snapshots in the same Local Zone or in its parent Region. - If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost or in its parent Region. Specify one of the following values: - To create snapshots in the same Region as the source resource, specify ``CLOUD`` . - To create snapshots in the same Local Zone as the source resource, specify ``LOCAL_ZONE`` . - To create snapshots on the same Outpost as the source resource, specify ``OUTPOST_LOCAL`` . Default: ``CLOUD``
@@ -840,7 +840,7 @@ class CfnLifecyclePolicy(
840
840
  def cron_expression(self) -> typing.Optional[builtins.str]:
841
841
  '''The schedule, as a Cron expression.
842
842
 
843
- The schedule interval must be between 1 hour and 1 year. For more information, see the `Cron expressions reference <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html>`_ in the *Amazon EventBridge User Guide* .
843
+ The schedule interval must be between 1 hour and 1 year. For more information, see the `Cron and rate expressions <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-scheduled-rule-pattern.html>`_ in the *Amazon EventBridge User Guide* .
844
844
 
845
845
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-cronexpression
846
846
  '''
@@ -12470,7 +12470,7 @@ class CfnEC2Fleet(
12470
12470
  :param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
12471
12471
  :param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
12472
12472
  :param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
12473
- :param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . Default: Any accelerator type
12473
+ :param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
12474
12474
  :param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
12475
12475
  :param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
12476
12476
  :param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
@@ -12718,6 +12718,7 @@ class CfnEC2Fleet(
12718
12718
 
12719
12719
  - For instance types with FPGA accelerators, specify ``fpga`` .
12720
12720
  - For instance types with GPU accelerators, specify ``gpu`` .
12721
+ - For instance types with Inference accelerators, specify ``inference`` .
12721
12722
 
12722
12723
  Default: Any accelerator type
12723
12724
 
@@ -27086,7 +27087,7 @@ class CfnLaunchTemplate(
27086
27087
  :param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
27087
27088
  :param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
27088
27089
  :param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
27089
- :param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . Default: Any accelerator type
27090
+ :param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
27090
27091
  :param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
27091
27092
  :param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
27092
27093
  :param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
@@ -27334,6 +27335,7 @@ class CfnLaunchTemplate(
27334
27335
 
27335
27336
  - For instance types with FPGA accelerators, specify ``fpga`` .
27336
27337
  - For instance types with GPU accelerators, specify ``gpu`` .
27338
+ - For instance types with Inference accelerators, specify ``inference`` .
27337
27339
 
27338
27340
  Default: Any accelerator type
27339
27341
 
@@ -47893,7 +47895,7 @@ class CfnSpotFleet(
47893
47895
  :param accelerator_manufacturers: Indicates whether instance types must have accelerators by specific manufacturers. - For instance types with AWS devices, specify ``amazon-web-services`` . - For instance types with AMD devices, specify ``amd`` . - For instance types with Habana devices, specify ``habana`` . - For instance types with NVIDIA devices, specify ``nvidia`` . - For instance types with Xilinx devices, specify ``xilinx`` . Default: Any manufacturer
47894
47896
  :param accelerator_names: The accelerators that must be on the instance type. - For instance types with NVIDIA A10G GPUs, specify ``a10g`` . - For instance types with NVIDIA A100 GPUs, specify ``a100`` . - For instance types with NVIDIA H100 GPUs, specify ``h100`` . - For instance types with AWS Inferentia chips, specify ``inferentia`` . - For instance types with NVIDIA GRID K520 GPUs, specify ``k520`` . - For instance types with NVIDIA K80 GPUs, specify ``k80`` . - For instance types with NVIDIA M60 GPUs, specify ``m60`` . - For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520`` . - For instance types with NVIDIA T4 GPUs, specify ``t4`` . - For instance types with NVIDIA T4G GPUs, specify ``t4g`` . - For instance types with Xilinx VU9P FPGAs, specify ``vu9p`` . - For instance types with NVIDIA V100 GPUs, specify ``v100`` . Default: Any accelerator
47895
47897
  :param accelerator_total_memory_mib: The minimum and maximum amount of total accelerator memory, in MiB. Default: No minimum or maximum limits
47896
- :param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . Default: Any accelerator type
47898
+ :param accelerator_types: The accelerator types that must be on the instance type. - For instance types with FPGA accelerators, specify ``fpga`` . - For instance types with GPU accelerators, specify ``gpu`` . - For instance types with Inference accelerators, specify ``inference`` . Default: Any accelerator type
47897
47899
  :param allowed_instance_types: The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk ( ``*`` ), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge`` , ``c5*.*`` , ``m5a.*`` , ``r*`` , ``*3*`` . For example, if you specify ``c5*`` ,Amazon EC2 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*`` , Amazon EC2 will allow all the M5a instance types, but not the M5n instance types. .. epigraph:: If you specify ``AllowedInstanceTypes`` , you can't specify ``ExcludedInstanceTypes`` . Default: All instance types
47898
47900
  :param bare_metal: Indicates whether bare metal instance types must be included, excluded, or required. - To include bare metal instance types, specify ``included`` . - To require only bare metal instance types, specify ``required`` . - To exclude bare metal instance types, specify ``excluded`` . Default: ``excluded``
47899
47901
  :param baseline_ebs_bandwidth_mbps: The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see `Amazon EBS–optimized instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html>`_ in the *Amazon EC2 User Guide* . Default: No minimum or maximum limits
@@ -48141,6 +48143,7 @@ class CfnSpotFleet(
48141
48143
 
48142
48144
  - For instance types with FPGA accelerators, specify ``fpga`` .
48143
48145
  - For instance types with GPU accelerators, specify ``gpu`` .
48146
+ - For instance types with Inference accelerators, specify ``inference`` .
48144
48147
 
48145
48148
  Default: Any accelerator type
48146
48149
 
@@ -1248,6 +1248,363 @@ class CfnRegistryPolicyProps:
1248
1248
  )
1249
1249
 
1250
1250
 
1251
+ @jsii.implements(_IInspectable_c2943556)
1252
+ class CfnRegistryScanningConfiguration(
1253
+ _CfnResource_9df397a6,
1254
+ metaclass=jsii.JSIIMeta,
1255
+ jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration",
1256
+ ):
1257
+ '''The AWS::ECR::RegistryScanningConfiguration controls the scanning configuration for an Amazon Elastic Container Registry (Amazon Private ECR).
1258
+
1259
+ For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
1260
+
1261
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
1262
+ :cloudformationResource: AWS::ECR::RegistryScanningConfiguration
1263
+ :exampleMetadata: fixture=_generated
1264
+
1265
+ Example::
1266
+
1267
+ # The code below shows an example of how to instantiate this type.
1268
+ # The values are placeholders you should change.
1269
+ from aws_cdk import aws_ecr as ecr
1270
+
1271
+ cfn_registry_scanning_configuration = ecr.CfnRegistryScanningConfiguration(self, "MyCfnRegistryScanningConfiguration",
1272
+ rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
1273
+ repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
1274
+ filter="filter",
1275
+ filter_type="filterType"
1276
+ )],
1277
+ scan_frequency="scanFrequency"
1278
+ )],
1279
+ scan_type="scanType"
1280
+ )
1281
+ '''
1282
+
1283
+ def __init__(
1284
+ self,
1285
+ scope: _constructs_77d1e7e8.Construct,
1286
+ id: builtins.str,
1287
+ *,
1288
+ rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRegistryScanningConfiguration.ScanningRuleProperty", typing.Dict[builtins.str, typing.Any]]]]],
1289
+ scan_type: builtins.str,
1290
+ ) -> None:
1291
+ '''
1292
+ :param scope: Scope in which this resource is defined.
1293
+ :param id: Construct identifier for this resource (unique in its scope).
1294
+ :param rules: The scanning rules associated with the registry. A registry scanning configuration may contain a maximum of 2 rules.
1295
+ :param scan_type: The type of scanning configured for the registry.
1296
+ '''
1297
+ if __debug__:
1298
+ type_hints = typing.get_type_hints(_typecheckingstub__6b68a41065b53c404ecfbf77d1c1dca4759228bec8020c901ec850026c1f0f7f)
1299
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
1300
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
1301
+ props = CfnRegistryScanningConfigurationProps(rules=rules, scan_type=scan_type)
1302
+
1303
+ jsii.create(self.__class__, self, [scope, id, props])
1304
+
1305
+ @jsii.member(jsii_name="inspect")
1306
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
1307
+ '''Examines the CloudFormation resource and discloses attributes.
1308
+
1309
+ :param inspector: tree inspector to collect and process attributes.
1310
+ '''
1311
+ if __debug__:
1312
+ type_hints = typing.get_type_hints(_typecheckingstub__c4d08cae9fcc3be8b1528f23c35bc9a22ca0fba2fab068fc08b75c1cfe389e24)
1313
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
1314
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
1315
+
1316
+ @jsii.member(jsii_name="renderProperties")
1317
+ def _render_properties(
1318
+ self,
1319
+ props: typing.Mapping[builtins.str, typing.Any],
1320
+ ) -> typing.Mapping[builtins.str, typing.Any]:
1321
+ '''
1322
+ :param props: -
1323
+ '''
1324
+ if __debug__:
1325
+ type_hints = typing.get_type_hints(_typecheckingstub__fcd0a067b02317e542152310e0b6796223c0fe4536450fbf2cdfa3673b5fac6f)
1326
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
1327
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
1328
+
1329
+ @jsii.python.classproperty
1330
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
1331
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
1332
+ '''The CloudFormation resource type name for this resource class.'''
1333
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
1334
+
1335
+ @builtins.property
1336
+ @jsii.member(jsii_name="attrRegistryId")
1337
+ def attr_registry_id(self) -> builtins.str:
1338
+ '''The registry id.
1339
+
1340
+ :cloudformationAttribute: RegistryId
1341
+ '''
1342
+ return typing.cast(builtins.str, jsii.get(self, "attrRegistryId"))
1343
+
1344
+ @builtins.property
1345
+ @jsii.member(jsii_name="cfnProperties")
1346
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
1347
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
1348
+
1349
+ @builtins.property
1350
+ @jsii.member(jsii_name="rules")
1351
+ def rules(
1352
+ self,
1353
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]]:
1354
+ '''The scanning rules associated with the registry.'''
1355
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]], jsii.get(self, "rules"))
1356
+
1357
+ @rules.setter
1358
+ def rules(
1359
+ self,
1360
+ value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.ScanningRuleProperty"]]],
1361
+ ) -> None:
1362
+ if __debug__:
1363
+ type_hints = typing.get_type_hints(_typecheckingstub__921150d6d5faa8474ec7f3be3b2d6d58c6eb0b5024b547f0c929470055982457)
1364
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1365
+ jsii.set(self, "rules", value) # pyright: ignore[reportArgumentType]
1366
+
1367
+ @builtins.property
1368
+ @jsii.member(jsii_name="scanType")
1369
+ def scan_type(self) -> builtins.str:
1370
+ '''The type of scanning configured for the registry.'''
1371
+ return typing.cast(builtins.str, jsii.get(self, "scanType"))
1372
+
1373
+ @scan_type.setter
1374
+ def scan_type(self, value: builtins.str) -> None:
1375
+ if __debug__:
1376
+ type_hints = typing.get_type_hints(_typecheckingstub__94a43f834f1cd998ab3369a817b4af2fe53258974556dc78b9e2c75aaeaaa5ac)
1377
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1378
+ jsii.set(self, "scanType", value) # pyright: ignore[reportArgumentType]
1379
+
1380
+ @jsii.data_type(
1381
+ jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty",
1382
+ jsii_struct_bases=[],
1383
+ name_mapping={"filter": "filter", "filter_type": "filterType"},
1384
+ )
1385
+ class RepositoryFilterProperty:
1386
+ def __init__(self, *, filter: builtins.str, filter_type: builtins.str) -> None:
1387
+ '''The details of a scanning repository filter.
1388
+
1389
+ :param filter: The filter to use when scanning.
1390
+ :param filter_type: The type associated with the filter.
1391
+
1392
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-repositoryfilter.html
1393
+ :exampleMetadata: fixture=_generated
1394
+
1395
+ Example::
1396
+
1397
+ # The code below shows an example of how to instantiate this type.
1398
+ # The values are placeholders you should change.
1399
+ from aws_cdk import aws_ecr as ecr
1400
+
1401
+ repository_filter_property = ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
1402
+ filter="filter",
1403
+ filter_type="filterType"
1404
+ )
1405
+ '''
1406
+ if __debug__:
1407
+ type_hints = typing.get_type_hints(_typecheckingstub__9ff81a98ae71376276df972cda0909207513e4f0b7a1f6fea94a077f86e2b2f5)
1408
+ check_type(argname="argument filter", value=filter, expected_type=type_hints["filter"])
1409
+ check_type(argname="argument filter_type", value=filter_type, expected_type=type_hints["filter_type"])
1410
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1411
+ "filter": filter,
1412
+ "filter_type": filter_type,
1413
+ }
1414
+
1415
+ @builtins.property
1416
+ def filter(self) -> builtins.str:
1417
+ '''The filter to use when scanning.
1418
+
1419
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-repositoryfilter.html#cfn-ecr-registryscanningconfiguration-repositoryfilter-filter
1420
+ '''
1421
+ result = self._values.get("filter")
1422
+ assert result is not None, "Required property 'filter' is missing"
1423
+ return typing.cast(builtins.str, result)
1424
+
1425
+ @builtins.property
1426
+ def filter_type(self) -> builtins.str:
1427
+ '''The type associated with the filter.
1428
+
1429
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-repositoryfilter.html#cfn-ecr-registryscanningconfiguration-repositoryfilter-filtertype
1430
+ '''
1431
+ result = self._values.get("filter_type")
1432
+ assert result is not None, "Required property 'filter_type' is missing"
1433
+ return typing.cast(builtins.str, result)
1434
+
1435
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1436
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1437
+
1438
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1439
+ return not (rhs == self)
1440
+
1441
+ def __repr__(self) -> str:
1442
+ return "RepositoryFilterProperty(%s)" % ", ".join(
1443
+ k + "=" + repr(v) for k, v in self._values.items()
1444
+ )
1445
+
1446
+ @jsii.data_type(
1447
+ jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty",
1448
+ jsii_struct_bases=[],
1449
+ name_mapping={
1450
+ "repository_filters": "repositoryFilters",
1451
+ "scan_frequency": "scanFrequency",
1452
+ },
1453
+ )
1454
+ class ScanningRuleProperty:
1455
+ def __init__(
1456
+ self,
1457
+ *,
1458
+ repository_filters: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnRegistryScanningConfiguration.RepositoryFilterProperty", typing.Dict[builtins.str, typing.Any]]]]],
1459
+ scan_frequency: builtins.str,
1460
+ ) -> None:
1461
+ '''A rule representing the details of a scanning configuration.
1462
+
1463
+ :param repository_filters: The repository filters associated with the scanning configuration for a private registry.
1464
+ :param scan_frequency: The frequency that scans are performed.
1465
+
1466
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html
1467
+ :exampleMetadata: fixture=_generated
1468
+
1469
+ Example::
1470
+
1471
+ # The code below shows an example of how to instantiate this type.
1472
+ # The values are placeholders you should change.
1473
+ from aws_cdk import aws_ecr as ecr
1474
+
1475
+ scanning_rule_property = ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
1476
+ repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
1477
+ filter="filter",
1478
+ filter_type="filterType"
1479
+ )],
1480
+ scan_frequency="scanFrequency"
1481
+ )
1482
+ '''
1483
+ if __debug__:
1484
+ type_hints = typing.get_type_hints(_typecheckingstub__a5764ae58f5a18a9eb6b651d412c176771cb3de37bf83810ee9cf74fbb8950bd)
1485
+ check_type(argname="argument repository_filters", value=repository_filters, expected_type=type_hints["repository_filters"])
1486
+ check_type(argname="argument scan_frequency", value=scan_frequency, expected_type=type_hints["scan_frequency"])
1487
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1488
+ "repository_filters": repository_filters,
1489
+ "scan_frequency": scan_frequency,
1490
+ }
1491
+
1492
+ @builtins.property
1493
+ def repository_filters(
1494
+ self,
1495
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.RepositoryFilterProperty"]]]:
1496
+ '''The repository filters associated with the scanning configuration for a private registry.
1497
+
1498
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-repositoryfilters
1499
+ '''
1500
+ result = self._values.get("repository_filters")
1501
+ assert result is not None, "Required property 'repository_filters' is missing"
1502
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnRegistryScanningConfiguration.RepositoryFilterProperty"]]], result)
1503
+
1504
+ @builtins.property
1505
+ def scan_frequency(self) -> builtins.str:
1506
+ '''The frequency that scans are performed.
1507
+
1508
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecr-registryscanningconfiguration-scanningrule.html#cfn-ecr-registryscanningconfiguration-scanningrule-scanfrequency
1509
+ '''
1510
+ result = self._values.get("scan_frequency")
1511
+ assert result is not None, "Required property 'scan_frequency' is missing"
1512
+ return typing.cast(builtins.str, result)
1513
+
1514
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1515
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1516
+
1517
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1518
+ return not (rhs == self)
1519
+
1520
+ def __repr__(self) -> str:
1521
+ return "ScanningRuleProperty(%s)" % ", ".join(
1522
+ k + "=" + repr(v) for k, v in self._values.items()
1523
+ )
1524
+
1525
+
1526
+ @jsii.data_type(
1527
+ jsii_type="aws-cdk-lib.aws_ecr.CfnRegistryScanningConfigurationProps",
1528
+ jsii_struct_bases=[],
1529
+ name_mapping={"rules": "rules", "scan_type": "scanType"},
1530
+ )
1531
+ class CfnRegistryScanningConfigurationProps:
1532
+ def __init__(
1533
+ self,
1534
+ *,
1535
+ rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
1536
+ scan_type: builtins.str,
1537
+ ) -> None:
1538
+ '''Properties for defining a ``CfnRegistryScanningConfiguration``.
1539
+
1540
+ :param rules: The scanning rules associated with the registry. A registry scanning configuration may contain a maximum of 2 rules.
1541
+ :param scan_type: The type of scanning configured for the registry.
1542
+
1543
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html
1544
+ :exampleMetadata: fixture=_generated
1545
+
1546
+ Example::
1547
+
1548
+ # The code below shows an example of how to instantiate this type.
1549
+ # The values are placeholders you should change.
1550
+ from aws_cdk import aws_ecr as ecr
1551
+
1552
+ cfn_registry_scanning_configuration_props = ecr.CfnRegistryScanningConfigurationProps(
1553
+ rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
1554
+ repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
1555
+ filter="filter",
1556
+ filter_type="filterType"
1557
+ )],
1558
+ scan_frequency="scanFrequency"
1559
+ )],
1560
+ scan_type="scanType"
1561
+ )
1562
+ '''
1563
+ if __debug__:
1564
+ type_hints = typing.get_type_hints(_typecheckingstub__c0cb9229bec3c4ef027deaf853b1b19296c230ef0a56be8bdbedc54630c259c5)
1565
+ check_type(argname="argument rules", value=rules, expected_type=type_hints["rules"])
1566
+ check_type(argname="argument scan_type", value=scan_type, expected_type=type_hints["scan_type"])
1567
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1568
+ "rules": rules,
1569
+ "scan_type": scan_type,
1570
+ }
1571
+
1572
+ @builtins.property
1573
+ def rules(
1574
+ self,
1575
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]]:
1576
+ '''The scanning rules associated with the registry.
1577
+
1578
+ A registry scanning configuration may contain a maximum of 2 rules.
1579
+
1580
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-rules
1581
+ '''
1582
+ result = self._values.get("rules")
1583
+ assert result is not None, "Required property 'rules' is missing"
1584
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]], result)
1585
+
1586
+ @builtins.property
1587
+ def scan_type(self) -> builtins.str:
1588
+ '''The type of scanning configured for the registry.
1589
+
1590
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecr-registryscanningconfiguration.html#cfn-ecr-registryscanningconfiguration-scantype
1591
+ '''
1592
+ result = self._values.get("scan_type")
1593
+ assert result is not None, "Required property 'scan_type' is missing"
1594
+ return typing.cast(builtins.str, result)
1595
+
1596
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1597
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1598
+
1599
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1600
+ return not (rhs == self)
1601
+
1602
+ def __repr__(self) -> str:
1603
+ return "CfnRegistryScanningConfigurationProps(%s)" % ", ".join(
1604
+ k + "=" + repr(v) for k, v in self._values.items()
1605
+ )
1606
+
1607
+
1251
1608
  @jsii.implements(_IInspectable_c2943556)
1252
1609
  class CfnReplicationConfiguration(
1253
1610
  _CfnResource_9df397a6,
@@ -5196,6 +5553,8 @@ __all__ = [
5196
5553
  "CfnPullThroughCacheRuleProps",
5197
5554
  "CfnRegistryPolicy",
5198
5555
  "CfnRegistryPolicyProps",
5556
+ "CfnRegistryScanningConfiguration",
5557
+ "CfnRegistryScanningConfigurationProps",
5199
5558
  "CfnReplicationConfiguration",
5200
5559
  "CfnReplicationConfigurationProps",
5201
5560
  "CfnRepository",
@@ -5402,6 +5761,64 @@ def _typecheckingstub__61caec2d35981c77552d8e7762d2c96379773ad1cbd183c24427fd900
5402
5761
  """Type checking stubs"""
5403
5762
  pass
5404
5763
 
5764
+ def _typecheckingstub__6b68a41065b53c404ecfbf77d1c1dca4759228bec8020c901ec850026c1f0f7f(
5765
+ scope: _constructs_77d1e7e8.Construct,
5766
+ id: builtins.str,
5767
+ *,
5768
+ rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
5769
+ scan_type: builtins.str,
5770
+ ) -> None:
5771
+ """Type checking stubs"""
5772
+ pass
5773
+
5774
+ def _typecheckingstub__c4d08cae9fcc3be8b1528f23c35bc9a22ca0fba2fab068fc08b75c1cfe389e24(
5775
+ inspector: _TreeInspector_488e0dd5,
5776
+ ) -> None:
5777
+ """Type checking stubs"""
5778
+ pass
5779
+
5780
+ def _typecheckingstub__fcd0a067b02317e542152310e0b6796223c0fe4536450fbf2cdfa3673b5fac6f(
5781
+ props: typing.Mapping[builtins.str, typing.Any],
5782
+ ) -> None:
5783
+ """Type checking stubs"""
5784
+ pass
5785
+
5786
+ def _typecheckingstub__921150d6d5faa8474ec7f3be3b2d6d58c6eb0b5024b547f0c929470055982457(
5787
+ value: typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnRegistryScanningConfiguration.ScanningRuleProperty]]],
5788
+ ) -> None:
5789
+ """Type checking stubs"""
5790
+ pass
5791
+
5792
+ def _typecheckingstub__94a43f834f1cd998ab3369a817b4af2fe53258974556dc78b9e2c75aaeaaa5ac(
5793
+ value: builtins.str,
5794
+ ) -> None:
5795
+ """Type checking stubs"""
5796
+ pass
5797
+
5798
+ def _typecheckingstub__9ff81a98ae71376276df972cda0909207513e4f0b7a1f6fea94a077f86e2b2f5(
5799
+ *,
5800
+ filter: builtins.str,
5801
+ filter_type: builtins.str,
5802
+ ) -> None:
5803
+ """Type checking stubs"""
5804
+ pass
5805
+
5806
+ def _typecheckingstub__a5764ae58f5a18a9eb6b651d412c176771cb3de37bf83810ee9cf74fbb8950bd(
5807
+ *,
5808
+ repository_filters: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.RepositoryFilterProperty, typing.Dict[builtins.str, typing.Any]]]]],
5809
+ scan_frequency: builtins.str,
5810
+ ) -> None:
5811
+ """Type checking stubs"""
5812
+ pass
5813
+
5814
+ def _typecheckingstub__c0cb9229bec3c4ef027deaf853b1b19296c230ef0a56be8bdbedc54630c259c5(
5815
+ *,
5816
+ rules: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnRegistryScanningConfiguration.ScanningRuleProperty, typing.Dict[builtins.str, typing.Any]]]]],
5817
+ scan_type: builtins.str,
5818
+ ) -> None:
5819
+ """Type checking stubs"""
5820
+ pass
5821
+
5405
5822
  def _typecheckingstub__9ec8853622a7046906439da72fd8cf7dc34848650d739a637e7ae30cf30d26db(
5406
5823
  scope: _constructs_77d1e7e8.Construct,
5407
5824
  id: builtins.str,