aws-cdk-lib 2.137.0__py3-none-any.whl → 2.139.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 (73) hide show
  1. aws_cdk/__init__.py +8 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.137.0.jsii.tgz → aws-cdk-lib@2.139.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_amplify/__init__.py +29 -113
  5. aws_cdk/aws_apigateway/__init__.py +29 -16
  6. aws_cdk/aws_appconfig/__init__.py +315 -77
  7. aws_cdk/aws_appintegrations/__init__.py +55 -6
  8. aws_cdk/aws_apprunner/__init__.py +5 -2
  9. aws_cdk/aws_appsync/__init__.py +400 -13
  10. aws_cdk/aws_aps/__init__.py +64 -47
  11. aws_cdk/aws_autoscaling/__init__.py +62 -60
  12. aws_cdk/aws_b2bi/__init__.py +2 -6
  13. aws_cdk/aws_backup/__init__.py +53 -57
  14. aws_cdk/aws_batch/__init__.py +109 -0
  15. aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
  16. aws_cdk/aws_bedrock/__init__.py +4144 -0
  17. aws_cdk/aws_chatbot/__init__.py +6 -4
  18. aws_cdk/aws_cleanrooms/__init__.py +526 -3
  19. aws_cdk/aws_cleanroomsml/__init__.py +960 -0
  20. aws_cdk/aws_cloudtrail/__init__.py +10 -10
  21. aws_cdk/aws_cloudwatch/__init__.py +244 -8
  22. aws_cdk/aws_codebuild/__init__.py +27 -22
  23. aws_cdk/aws_codeconnections/__init__.py +435 -0
  24. aws_cdk/aws_cognito/__init__.py +175 -79
  25. aws_cdk/aws_datazone/__init__.py +22 -0
  26. aws_cdk/aws_deadline/__init__.py +5394 -0
  27. aws_cdk/aws_dms/__init__.py +2 -4
  28. aws_cdk/aws_ec2/__init__.py +402 -247
  29. aws_cdk/aws_ecr/__init__.py +630 -0
  30. aws_cdk/aws_ecs/__init__.py +361 -20
  31. aws_cdk/aws_efs/__init__.py +594 -2
  32. aws_cdk/aws_elasticache/__init__.py +86 -32
  33. aws_cdk/aws_elasticloadbalancingv2/__init__.py +75 -10
  34. aws_cdk/aws_emr/__init__.py +2 -2
  35. aws_cdk/aws_entityresolution/__init__.py +1982 -773
  36. aws_cdk/aws_events_targets/__init__.py +17 -4
  37. aws_cdk/aws_globalaccelerator/__init__.py +443 -0
  38. aws_cdk/aws_iam/__init__.py +1 -2
  39. aws_cdk/aws_internetmonitor/__init__.py +14 -6
  40. aws_cdk/aws_ivs/__init__.py +1273 -71
  41. aws_cdk/aws_kms/__init__.py +44 -0
  42. aws_cdk/aws_lambda/__init__.py +9 -0
  43. aws_cdk/aws_mediatailor/__init__.py +41 -0
  44. aws_cdk/aws_oam/__init__.py +204 -0
  45. aws_cdk/aws_personalize/__init__.py +8 -6
  46. aws_cdk/aws_pinpoint/__init__.py +5 -3
  47. aws_cdk/aws_pipes/__init__.py +5 -1
  48. aws_cdk/aws_quicksight/__init__.py +12 -6
  49. aws_cdk/aws_rds/__init__.py +370 -96
  50. aws_cdk/aws_redshiftserverless/__init__.py +157 -0
  51. aws_cdk/aws_route53/__init__.py +587 -14
  52. aws_cdk/aws_sagemaker/__init__.py +233 -2
  53. aws_cdk/aws_securityhub/__init__.py +4940 -102
  54. aws_cdk/aws_securitylake/__init__.py +1326 -89
  55. aws_cdk/aws_ses_actions/__init__.py +155 -0
  56. aws_cdk/aws_sns/__init__.py +61 -4
  57. aws_cdk/aws_ssm/__init__.py +5 -2
  58. aws_cdk/aws_ssmcontacts/__init__.py +11 -4
  59. aws_cdk/aws_stepfunctions/__init__.py +8 -16
  60. aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
  61. aws_cdk/aws_timestream/__init__.py +1045 -0
  62. aws_cdk/aws_transfer/__init__.py +19 -10
  63. aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
  64. aws_cdk/aws_wisdom/__init__.py +2 -2
  65. aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
  66. aws_cdk/custom_resources/__init__.py +688 -26
  67. aws_cdk/cx_api/__init__.py +17 -0
  68. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/METADATA +3 -3
  69. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/RECORD +73 -69
  70. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/LICENSE +0 -0
  71. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/NOTICE +0 -0
  72. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/WHEEL +0 -0
  73. {aws_cdk_lib-2.137.0.dist-info → aws_cdk_lib-2.139.0.dist-info}/top_level.txt +0 -0
@@ -3597,7 +3597,7 @@ class CfnProject(
3597
3597
  ) -> None:
3598
3598
  '''``Environment`` is a property of the `AWS::CodeBuild::Project <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html>`_ resource that specifies the environment for an AWS CodeBuild project.
3599
3599
 
3600
- :param compute_type: The type of compute environment. This determines the number of CPU cores and memory the build environment uses. Available values include: - ``BUILD_GENERAL1_SMALL`` : Use up to 3 GB memory and 2 vCPUs for builds. - ``BUILD_GENERAL1_MEDIUM`` : Use up to 7 GB memory and 4 vCPUs for builds. - ``BUILD_GENERAL1_LARGE`` : Use up to 15 GB memory and 8 vCPUs for builds. 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.*
3600
+ :param compute_type: The type of compute environment. This determines the number of CPU cores and memory the build environment uses. Available values include: - ``BUILD_GENERAL1_SMALL`` : Use up to 3 GB memory and 2 vCPUs for builds. - ``BUILD_GENERAL1_MEDIUM`` : Use up to 7 GB memory and 4 vCPUs for builds. - ``BUILD_GENERAL1_LARGE`` : Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_XLARGE`` : Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_2XLARGE`` : Use up to 145 GB 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 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_2GB`` : Use up to 2 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_4GB`` : Use up to 4 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_8GB`` : Use up to 8 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_10GB`` : Use up to 10 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . 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.*
3601
3601
  :param image: The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats: - For an image tag: ``<registry>/<repository>:<tag>`` . For example, in the Docker repository that CodeBuild uses to manage its Docker images, this would be ``aws/codebuild/standard:4.0`` . - For an image digest: ``<registry>/<repository>@<digest>`` . For example, to specify an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use ``<registry>/<repository>@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf`` . For more information, see `Docker images provided by CodeBuild <https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-available.html>`_ in the *AWS CodeBuild user guide* .
3602
3602
  :param type: The type of build environment to use for related builds. - 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 (Sydney), and EU (Frankfurt). - The environment type ``LINUX_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia). - The environment type ``LINUX_GPU_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia). - The environment types ``ARM_LAMBDA_CONTAINER`` and ``LINUX_LAMBDA_CONTAINER`` are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo). - The environment types ``WINDOWS_CONTAINER`` and ``WINDOWS_SERVER_2019_CONTAINER`` are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland). .. epigraph:: If you're using compute fleets during project creation, ``type`` will be ignored. 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* .
3603
3603
  :param certificate: The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see `certificate <https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate>`_ in the *AWS CodeBuild User Guide* .
@@ -3678,7 +3678,14 @@ class CfnProject(
3678
3678
 
3679
3679
  - ``BUILD_GENERAL1_SMALL`` : Use up to 3 GB memory and 2 vCPUs for builds.
3680
3680
  - ``BUILD_GENERAL1_MEDIUM`` : Use up to 7 GB memory and 4 vCPUs for builds.
3681
- - ``BUILD_GENERAL1_LARGE`` : Use up to 15 GB memory and 8 vCPUs for builds.
3681
+ - ``BUILD_GENERAL1_LARGE`` : Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
3682
+ - ``BUILD_GENERAL1_XLARGE`` : Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
3683
+ - ``BUILD_GENERAL1_2XLARGE`` : Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
3684
+ - ``BUILD_LAMBDA_1GB`` : Use up to 1 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3685
+ - ``BUILD_LAMBDA_2GB`` : Use up to 2 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3686
+ - ``BUILD_LAMBDA_4GB`` : Use up to 4 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3687
+ - ``BUILD_LAMBDA_8GB`` : Use up to 8 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3688
+ - ``BUILD_LAMBDA_10GB`` : Use up to 10 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3682
3689
 
3683
3690
  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.*
3684
3691
 
@@ -5008,7 +5015,7 @@ class CfnProject(
5008
5015
  :param git_clone_depth: The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build project. If your source type is Amazon S3, this value is not supported.
5009
5016
  :param git_submodules_config: Information about the Git submodules configuration for the build project.
5010
5017
  :param insecure_ssl: This is used with GitHub Enterprise only. Set to true to ignore SSL warnings while connecting to your GitHub Enterprise project repository. The default value is ``false`` . ``InsecureSsl`` should be used for testing purposes only. It should not be used in a production environment.
5011
- :param location: Information about the location of the source code to be built. Valid values include:. - For source code settings that are specified in the source action of a pipeline in CodePipeline, ``location`` should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value. - For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, ``https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>`` ). - For source code in an Amazon S3 input bucket, one of the following. - The path to the ZIP file that contains the source code (for example, ``<bucket-name>/<path>/<object-name>.zip`` ). - The path to the folder that contains the source code (for example, ``<bucket-name>/<path-to-source-code>/<folder>/`` ). - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeStar Connections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object. - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . If you specify ``CODEPIPELINE`` for the ``Type`` property, don't specify this property. For all of the other types, you must specify ``Location`` .
5018
+ :param location: Information about the location of the source code to be built. Valid values include:. - For source code settings that are specified in the source action of a pipeline in CodePipeline, ``location`` should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value. - For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, ``https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>`` ). - For source code in an Amazon S3 input bucket, one of the following. - The path to the ZIP file that contains the source code (for example, ``<bucket-name>/<path>/<object-name>.zip`` ). - The path to the folder that contains the source code (for example, ``<bucket-name>/<path-to-source-code>/<folder>/`` ). - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeConnections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object. - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . If you specify ``CODEPIPELINE`` for the ``Type`` property, don't specify this property. For all of the other types, you must specify ``Location`` .
5012
5019
  :param report_build_status: Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different source provider, an ``invalidInputException`` is thrown.
5013
5020
  :param source_identifier: An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.
5014
5021
 
@@ -5182,7 +5189,7 @@ class CfnProject(
5182
5189
  - The path to the ZIP file that contains the source code (for example, ``<bucket-name>/<path>/<object-name>.zip`` ).
5183
5190
  - The path to the folder that contains the source code (for example, ``<bucket-name>/<path-to-source-code>/<folder>/`` ).
5184
5191
  - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` .
5185
- - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeStar Connections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object.
5192
+ - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeConnections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object.
5186
5193
  - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` .
5187
5194
 
5188
5195
  If you specify ``CODEPIPELINE`` for the ``Type`` property, don't specify this property. For all of the other types, you must specify ``Location`` .
@@ -5344,7 +5351,7 @@ class CfnProject(
5344
5351
  The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.
5345
5352
 
5346
5353
  :param pattern: For a ``WebHookFilter`` that uses ``EVENT`` type, a comma-separated string that specifies one or more events. For example, the webhook filter ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` allows all push, pull request created, and pull request updated events to trigger a build. For a ``WebHookFilter`` that uses any of the other filter types, a regular expression pattern. For example, a ``WebHookFilter`` that uses ``HEAD_REF`` for its ``type`` and the pattern ``^refs/heads/`` triggers a build when the head reference is a branch with a reference name ``refs/heads/branch-name`` .
5347
- :param type: The type of webhook filter. There are eight webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , and ``RELEASE_NAME`` . - EVENT - A webhook event triggers a build when the provided ``pattern`` matches one of eight event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , and ``PRERELEASED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events. .. epigraph:: The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` and ``PRERELEASED`` work with GitHub only. - ACTOR_ACCOUNT_ID - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` . - HEAD_REF - A webhook event triggers a build when the head reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` and ``refs/tags/tag-name`` . .. epigraph:: Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. - BASE_REF - A webhook event triggers a build when the base reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` . .. epigraph:: Works with pull request events only. - FILE_PATH - A webhook triggers a build when the path of a changed file matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - COMMIT_MESSAGE - A webhook triggers a build when the head commit message matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - TAG_NAME - A webhook triggers a build when the tag name of the release matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - RELEASE_NAME - A webhook triggers a build when the release name matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only.
5354
+ :param type: The type of webhook filter. There are nine webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , ``RELEASE_NAME`` , and ``WORKFLOW_NAME`` . - EVENT - A webhook event triggers a build when the provided ``pattern`` matches one of nine event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events. .. epigraph:: The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` work with GitHub only. - ACTOR_ACCOUNT_ID - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` . - HEAD_REF - A webhook event triggers a build when the head reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` and ``refs/tags/tag-name`` . .. epigraph:: Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. - BASE_REF - A webhook event triggers a build when the base reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` . .. epigraph:: Works with pull request events only. - FILE_PATH - A webhook triggers a build when the path of a changed file matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - COMMIT_MESSAGE - A webhook triggers a build when the head commit message matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - TAG_NAME - A webhook triggers a build when the tag name of the release matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - RELEASE_NAME - A webhook triggers a build when the release name matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - WORKFLOW_NAME - A webhook triggers a build when the workflow name matches the regular expression ``pattern`` . .. epigraph:: Works with ``WORKFLOW_JOB_QUEUED`` events only.
5348
5355
  :param exclude_matched_pattern: Used to indicate that the ``pattern`` determines which webhook events do not trigger a build. If true, then a webhook event that does not match the ``pattern`` triggers a build. If false, then a webhook event that matches the ``pattern`` triggers a build.
5349
5356
 
5350
5357
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html
@@ -5394,14 +5401,14 @@ class CfnProject(
5394
5401
  def type(self) -> builtins.str:
5395
5402
  '''The type of webhook filter.
5396
5403
 
5397
- There are eight webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , and ``RELEASE_NAME`` .
5404
+ There are nine webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , ``RELEASE_NAME`` , and ``WORKFLOW_NAME`` .
5398
5405
 
5399
5406
  - EVENT
5400
- - A webhook event triggers a build when the provided ``pattern`` matches one of eight event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , and ``PRERELEASED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events.
5407
+ - A webhook event triggers a build when the provided ``pattern`` matches one of nine event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events.
5401
5408
 
5402
5409
  .. epigraph::
5403
5410
 
5404
- The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` and ``PRERELEASED`` work with GitHub only.
5411
+ The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` work with GitHub only.
5405
5412
 
5406
5413
  - ACTOR_ACCOUNT_ID
5407
5414
  - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` .
@@ -5447,6 +5454,13 @@ class CfnProject(
5447
5454
 
5448
5455
  Works with ``RELEASED`` and ``PRERELEASED`` events only.
5449
5456
 
5457
+ - WORKFLOW_NAME
5458
+ - A webhook triggers a build when the workflow name matches the regular expression ``pattern`` .
5459
+
5460
+ .. epigraph::
5461
+
5462
+ Works with ``WORKFLOW_JOB_QUEUED`` events only.
5463
+
5450
5464
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-type
5451
5465
  '''
5452
5466
  result = self._values.get("type")
@@ -6785,7 +6799,7 @@ class CfnSourceCredential(
6785
6799
  :param id: Construct identifier for this resource (unique in its scope).
6786
6800
  :param auth_type: The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
6787
6801
  :param server_type: The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
6788
- :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
6802
+ :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password.
6789
6803
  :param username: The Bitbucket username when the ``authType`` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
6790
6804
  '''
6791
6805
  if __debug__:
@@ -6920,7 +6934,7 @@ class CfnSourceCredentialProps:
6920
6934
 
6921
6935
  :param auth_type: The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
6922
6936
  :param server_type: The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
6923
- :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
6937
+ :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password.
6924
6938
  :param username: The Bitbucket username when the ``authType`` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
6925
6939
 
6926
6940
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html
@@ -6983,7 +6997,7 @@ class CfnSourceCredentialProps:
6983
6997
  def token(self) -> builtins.str:
6984
6998
  '''For GitHub or GitHub Enterprise, this is the personal access token.
6985
6999
 
6986
- For Bitbucket, this is the app password.
7000
+ For Bitbucket, this is either the access token or the app password.
6987
7001
 
6988
7002
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token
6989
7003
  '''
@@ -10545,22 +10559,13 @@ class LinuxBuildImage(
10545
10559
  @jsii.python.classproperty
10546
10560
  @jsii.member(jsii_name="AMAZON_LINUX_2_ARM_2")
10547
10561
  def AMAZON_LINUX_2_ARM_2(cls) -> IBuildImage:
10548
- '''(deprecated) Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0".
10549
-
10550
- :deprecated: Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead.
10551
-
10552
- :stability: deprecated
10553
- '''
10562
+ '''The ``aws/codebuild/amazonlinux2-aarch64-standard:2.0`` build image.'''
10554
10563
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2_ARM_2"))
10555
10564
 
10556
10565
  @jsii.python.classproperty
10557
10566
  @jsii.member(jsii_name="AMAZON_LINUX_2_ARM_3")
10558
10567
  def AMAZON_LINUX_2_ARM_3(cls) -> IBuildImage:
10559
- '''
10560
- :deprecated: Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead.
10561
-
10562
- :stability: deprecated
10563
- '''
10568
+ '''The ``aws/codebuild/amazonlinux2-aarch64-standard:3.0`` build image.'''
10564
10569
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2_ARM_3"))
10565
10570
 
10566
10571
  @jsii.python.classproperty
@@ -0,0 +1,435 @@
1
+ '''
2
+ # AWS::CodeConnections Construct Library
3
+
4
+ <!--BEGIN STABILITY BANNER-->---
5
+
6
+
7
+ ![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
8
+
9
+ > All classes with the `Cfn` prefix in this module ([CFN Resources](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) are always stable and safe to use.
10
+
11
+ ---
12
+ <!--END STABILITY BANNER-->
13
+
14
+ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.
15
+
16
+ ```python
17
+ import aws_cdk.aws_codeconnections as codeconnections
18
+ ```
19
+
20
+ <!--BEGIN CFNONLY DISCLAIMER-->
21
+
22
+ There are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:
23
+
24
+ * Search [Construct Hub for CodeConnections construct libraries](https://constructs.dev/search?q=codeconnections)
25
+ * Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::CodeConnections resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeConnections.html) directly.
26
+
27
+ <!--BEGIN CFNONLY DISCLAIMER-->
28
+
29
+ There are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.
30
+ However, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.
31
+
32
+ For more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::CodeConnections](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_CodeConnections.html).
33
+
34
+ (Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)
35
+
36
+ <!--END CFNONLY DISCLAIMER-->
37
+ '''
38
+ from pkgutil import extend_path
39
+ __path__ = extend_path(__path__, __name__)
40
+
41
+ import abc
42
+ import builtins
43
+ import datetime
44
+ import enum
45
+ import typing
46
+
47
+ import jsii
48
+ import publication
49
+ import typing_extensions
50
+
51
+ from typeguard import check_type
52
+
53
+ from .._jsii import *
54
+
55
+ import constructs as _constructs_77d1e7e8
56
+ from .. import (
57
+ CfnResource as _CfnResource_9df397a6,
58
+ CfnTag as _CfnTag_f6864754,
59
+ IInspectable as _IInspectable_c2943556,
60
+ ITaggableV2 as _ITaggableV2_4e6798f8,
61
+ TagManager as _TagManager_0a598cb3,
62
+ TreeInspector as _TreeInspector_488e0dd5,
63
+ )
64
+
65
+
66
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
67
+ class CfnConnection(
68
+ _CfnResource_9df397a6,
69
+ metaclass=jsii.JSIIMeta,
70
+ jsii_type="aws-cdk-lib.aws_codeconnections.CfnConnection",
71
+ ):
72
+ '''A resource that is used to connect third-party source providers with services like CodePipeline.
73
+
74
+ Note: A connection created through AWS CloudFormation , the CLI, or the SDK is in ``PENDING`` status by default. You can make its status ``AVAILABLE`` by updating the connection in the console.
75
+
76
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html
77
+ :cloudformationResource: AWS::CodeConnections::Connection
78
+ :exampleMetadata: fixture=_generated
79
+
80
+ Example::
81
+
82
+ # The code below shows an example of how to instantiate this type.
83
+ # The values are placeholders you should change.
84
+ from aws_cdk import aws_codeconnections as codeconnections
85
+
86
+ cfn_connection = codeconnections.CfnConnection(self, "MyCfnConnection",
87
+ connection_name="connectionName",
88
+
89
+ # the properties below are optional
90
+ host_arn="hostArn",
91
+ provider_type="providerType",
92
+ tags=[CfnTag(
93
+ key="key",
94
+ value="value"
95
+ )]
96
+ )
97
+ '''
98
+
99
+ def __init__(
100
+ self,
101
+ scope: _constructs_77d1e7e8.Construct,
102
+ id: builtins.str,
103
+ *,
104
+ connection_name: builtins.str,
105
+ host_arn: typing.Optional[builtins.str] = None,
106
+ provider_type: typing.Optional[builtins.str] = None,
107
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
108
+ ) -> None:
109
+ '''
110
+ :param scope: Scope in which this resource is defined.
111
+ :param id: Construct identifier for this resource (unique in its scope).
112
+ :param connection_name: The name of the connection. Connection names must be unique in an AWS account .
113
+ :param host_arn: The Amazon Resource Name (ARN) of the host associated with the connection.
114
+ :param provider_type: The name of the external provider where your third-party code repository is configured.
115
+ :param tags: Specifies the tags applied to a connection.
116
+ '''
117
+ if __debug__:
118
+ type_hints = typing.get_type_hints(_typecheckingstub__da00c1ce515c51afa7843809dadd2cb48a76e0e91dd2a8096cc430768e89a815)
119
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
120
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
121
+ props = CfnConnectionProps(
122
+ connection_name=connection_name,
123
+ host_arn=host_arn,
124
+ provider_type=provider_type,
125
+ tags=tags,
126
+ )
127
+
128
+ jsii.create(self.__class__, self, [scope, id, props])
129
+
130
+ @jsii.member(jsii_name="inspect")
131
+ def inspect(self, inspector: _TreeInspector_488e0dd5) -> None:
132
+ '''Examines the CloudFormation resource and discloses attributes.
133
+
134
+ :param inspector: tree inspector to collect and process attributes.
135
+ '''
136
+ if __debug__:
137
+ type_hints = typing.get_type_hints(_typecheckingstub__78744497e1b5bae3f2ea20b9d3496e178855aef0e29d2de71777b026a6d27a1a)
138
+ check_type(argname="argument inspector", value=inspector, expected_type=type_hints["inspector"])
139
+ return typing.cast(None, jsii.invoke(self, "inspect", [inspector]))
140
+
141
+ @jsii.member(jsii_name="renderProperties")
142
+ def _render_properties(
143
+ self,
144
+ props: typing.Mapping[builtins.str, typing.Any],
145
+ ) -> typing.Mapping[builtins.str, typing.Any]:
146
+ '''
147
+ :param props: -
148
+ '''
149
+ if __debug__:
150
+ type_hints = typing.get_type_hints(_typecheckingstub__440f5e3662e5ab05ab71cf41aafae8bf45c3a11a457c7bbc13517a3eb9e7278e)
151
+ check_type(argname="argument props", value=props, expected_type=type_hints["props"])
152
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
153
+
154
+ @jsii.python.classproperty
155
+ @jsii.member(jsii_name="CFN_RESOURCE_TYPE_NAME")
156
+ def CFN_RESOURCE_TYPE_NAME(cls) -> builtins.str:
157
+ '''The CloudFormation resource type name for this resource class.'''
158
+ return typing.cast(builtins.str, jsii.sget(cls, "CFN_RESOURCE_TYPE_NAME"))
159
+
160
+ @builtins.property
161
+ @jsii.member(jsii_name="attrConnectionArn")
162
+ def attr_connection_arn(self) -> builtins.str:
163
+ '''The Amazon Resource Name (ARN) of the connection.
164
+
165
+ The ARN is used as the connection reference when the connection is shared between AWS services .
166
+ .. epigraph::
167
+
168
+ The ARN is never reused if the connection is deleted.
169
+
170
+ :cloudformationAttribute: ConnectionArn
171
+ '''
172
+ return typing.cast(builtins.str, jsii.get(self, "attrConnectionArn"))
173
+
174
+ @builtins.property
175
+ @jsii.member(jsii_name="attrConnectionStatus")
176
+ def attr_connection_status(self) -> builtins.str:
177
+ '''The current status of the connection.
178
+
179
+ :cloudformationAttribute: ConnectionStatus
180
+ '''
181
+ return typing.cast(builtins.str, jsii.get(self, "attrConnectionStatus"))
182
+
183
+ @builtins.property
184
+ @jsii.member(jsii_name="attrOwnerAccountId")
185
+ def attr_owner_account_id(self) -> builtins.str:
186
+ '''The identifier of the external provider where your third-party code repository is configured.
187
+
188
+ For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
189
+
190
+ :cloudformationAttribute: OwnerAccountId
191
+ '''
192
+ return typing.cast(builtins.str, jsii.get(self, "attrOwnerAccountId"))
193
+
194
+ @builtins.property
195
+ @jsii.member(jsii_name="cdkTagManager")
196
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
197
+ '''Tag Manager which manages the tags for this resource.'''
198
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
199
+
200
+ @builtins.property
201
+ @jsii.member(jsii_name="cfnProperties")
202
+ def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
203
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "cfnProperties"))
204
+
205
+ @builtins.property
206
+ @jsii.member(jsii_name="connectionName")
207
+ def connection_name(self) -> builtins.str:
208
+ '''The name of the connection.'''
209
+ return typing.cast(builtins.str, jsii.get(self, "connectionName"))
210
+
211
+ @connection_name.setter
212
+ def connection_name(self, value: builtins.str) -> None:
213
+ if __debug__:
214
+ type_hints = typing.get_type_hints(_typecheckingstub__7d759fec9e0861542e9267cd70eacda49ebbb2a1399fb2f36364a2a01d38cdc0)
215
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
216
+ jsii.set(self, "connectionName", value)
217
+
218
+ @builtins.property
219
+ @jsii.member(jsii_name="hostArn")
220
+ def host_arn(self) -> typing.Optional[builtins.str]:
221
+ '''The Amazon Resource Name (ARN) of the host associated with the connection.'''
222
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "hostArn"))
223
+
224
+ @host_arn.setter
225
+ def host_arn(self, value: typing.Optional[builtins.str]) -> None:
226
+ if __debug__:
227
+ type_hints = typing.get_type_hints(_typecheckingstub__6c6c22c4d5132fe518d2a74aed1b6d9c89f7a2fbb163195a459d8af8791cf1c9)
228
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
229
+ jsii.set(self, "hostArn", value)
230
+
231
+ @builtins.property
232
+ @jsii.member(jsii_name="providerType")
233
+ def provider_type(self) -> typing.Optional[builtins.str]:
234
+ '''The name of the external provider where your third-party code repository is configured.'''
235
+ return typing.cast(typing.Optional[builtins.str], jsii.get(self, "providerType"))
236
+
237
+ @provider_type.setter
238
+ def provider_type(self, value: typing.Optional[builtins.str]) -> None:
239
+ if __debug__:
240
+ type_hints = typing.get_type_hints(_typecheckingstub__2ec396e84dc4ee92669ed87aa685780cf9af74b974c8d0d7f12b0c1196dc17d6)
241
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
242
+ jsii.set(self, "providerType", value)
243
+
244
+ @builtins.property
245
+ @jsii.member(jsii_name="tags")
246
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
247
+ '''Specifies the tags applied to a connection.'''
248
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
249
+
250
+ @tags.setter
251
+ def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
252
+ if __debug__:
253
+ type_hints = typing.get_type_hints(_typecheckingstub__cd277a1214d747c2b8b1a0998909d0fe0edc54719c5d7b8ae3621585dbf60405)
254
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
255
+ jsii.set(self, "tags", value)
256
+
257
+
258
+ @jsii.data_type(
259
+ jsii_type="aws-cdk-lib.aws_codeconnections.CfnConnectionProps",
260
+ jsii_struct_bases=[],
261
+ name_mapping={
262
+ "connection_name": "connectionName",
263
+ "host_arn": "hostArn",
264
+ "provider_type": "providerType",
265
+ "tags": "tags",
266
+ },
267
+ )
268
+ class CfnConnectionProps:
269
+ def __init__(
270
+ self,
271
+ *,
272
+ connection_name: builtins.str,
273
+ host_arn: typing.Optional[builtins.str] = None,
274
+ provider_type: typing.Optional[builtins.str] = None,
275
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
276
+ ) -> None:
277
+ '''Properties for defining a ``CfnConnection``.
278
+
279
+ :param connection_name: The name of the connection. Connection names must be unique in an AWS account .
280
+ :param host_arn: The Amazon Resource Name (ARN) of the host associated with the connection.
281
+ :param provider_type: The name of the external provider where your third-party code repository is configured.
282
+ :param tags: Specifies the tags applied to a connection.
283
+
284
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html
285
+ :exampleMetadata: fixture=_generated
286
+
287
+ Example::
288
+
289
+ # The code below shows an example of how to instantiate this type.
290
+ # The values are placeholders you should change.
291
+ from aws_cdk import aws_codeconnections as codeconnections
292
+
293
+ cfn_connection_props = codeconnections.CfnConnectionProps(
294
+ connection_name="connectionName",
295
+
296
+ # the properties below are optional
297
+ host_arn="hostArn",
298
+ provider_type="providerType",
299
+ tags=[CfnTag(
300
+ key="key",
301
+ value="value"
302
+ )]
303
+ )
304
+ '''
305
+ if __debug__:
306
+ type_hints = typing.get_type_hints(_typecheckingstub__4ac62d1262e0fc9d7647548096d4e83c0367271b1f1be70c2119c14ec99b3dde)
307
+ check_type(argname="argument connection_name", value=connection_name, expected_type=type_hints["connection_name"])
308
+ check_type(argname="argument host_arn", value=host_arn, expected_type=type_hints["host_arn"])
309
+ check_type(argname="argument provider_type", value=provider_type, expected_type=type_hints["provider_type"])
310
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
311
+ self._values: typing.Dict[builtins.str, typing.Any] = {
312
+ "connection_name": connection_name,
313
+ }
314
+ if host_arn is not None:
315
+ self._values["host_arn"] = host_arn
316
+ if provider_type is not None:
317
+ self._values["provider_type"] = provider_type
318
+ if tags is not None:
319
+ self._values["tags"] = tags
320
+
321
+ @builtins.property
322
+ def connection_name(self) -> builtins.str:
323
+ '''The name of the connection.
324
+
325
+ Connection names must be unique in an AWS account .
326
+
327
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-connectionname
328
+ '''
329
+ result = self._values.get("connection_name")
330
+ assert result is not None, "Required property 'connection_name' is missing"
331
+ return typing.cast(builtins.str, result)
332
+
333
+ @builtins.property
334
+ def host_arn(self) -> typing.Optional[builtins.str]:
335
+ '''The Amazon Resource Name (ARN) of the host associated with the connection.
336
+
337
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-hostarn
338
+ '''
339
+ result = self._values.get("host_arn")
340
+ return typing.cast(typing.Optional[builtins.str], result)
341
+
342
+ @builtins.property
343
+ def provider_type(self) -> typing.Optional[builtins.str]:
344
+ '''The name of the external provider where your third-party code repository is configured.
345
+
346
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-providertype
347
+ '''
348
+ result = self._values.get("provider_type")
349
+ return typing.cast(typing.Optional[builtins.str], result)
350
+
351
+ @builtins.property
352
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
353
+ '''Specifies the tags applied to a connection.
354
+
355
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeconnections-connection.html#cfn-codeconnections-connection-tags
356
+ '''
357
+ result = self._values.get("tags")
358
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
359
+
360
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
361
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
362
+
363
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
364
+ return not (rhs == self)
365
+
366
+ def __repr__(self) -> str:
367
+ return "CfnConnectionProps(%s)" % ", ".join(
368
+ k + "=" + repr(v) for k, v in self._values.items()
369
+ )
370
+
371
+
372
+ __all__ = [
373
+ "CfnConnection",
374
+ "CfnConnectionProps",
375
+ ]
376
+
377
+ publication.publish()
378
+
379
+ def _typecheckingstub__da00c1ce515c51afa7843809dadd2cb48a76e0e91dd2a8096cc430768e89a815(
380
+ scope: _constructs_77d1e7e8.Construct,
381
+ id: builtins.str,
382
+ *,
383
+ connection_name: builtins.str,
384
+ host_arn: typing.Optional[builtins.str] = None,
385
+ provider_type: typing.Optional[builtins.str] = None,
386
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
387
+ ) -> None:
388
+ """Type checking stubs"""
389
+ pass
390
+
391
+ def _typecheckingstub__78744497e1b5bae3f2ea20b9d3496e178855aef0e29d2de71777b026a6d27a1a(
392
+ inspector: _TreeInspector_488e0dd5,
393
+ ) -> None:
394
+ """Type checking stubs"""
395
+ pass
396
+
397
+ def _typecheckingstub__440f5e3662e5ab05ab71cf41aafae8bf45c3a11a457c7bbc13517a3eb9e7278e(
398
+ props: typing.Mapping[builtins.str, typing.Any],
399
+ ) -> None:
400
+ """Type checking stubs"""
401
+ pass
402
+
403
+ def _typecheckingstub__7d759fec9e0861542e9267cd70eacda49ebbb2a1399fb2f36364a2a01d38cdc0(
404
+ value: builtins.str,
405
+ ) -> None:
406
+ """Type checking stubs"""
407
+ pass
408
+
409
+ def _typecheckingstub__6c6c22c4d5132fe518d2a74aed1b6d9c89f7a2fbb163195a459d8af8791cf1c9(
410
+ value: typing.Optional[builtins.str],
411
+ ) -> None:
412
+ """Type checking stubs"""
413
+ pass
414
+
415
+ def _typecheckingstub__2ec396e84dc4ee92669ed87aa685780cf9af74b974c8d0d7f12b0c1196dc17d6(
416
+ value: typing.Optional[builtins.str],
417
+ ) -> None:
418
+ """Type checking stubs"""
419
+ pass
420
+
421
+ def _typecheckingstub__cd277a1214d747c2b8b1a0998909d0fe0edc54719c5d7b8ae3621585dbf60405(
422
+ value: typing.Optional[typing.List[_CfnTag_f6864754]],
423
+ ) -> None:
424
+ """Type checking stubs"""
425
+ pass
426
+
427
+ def _typecheckingstub__4ac62d1262e0fc9d7647548096d4e83c0367271b1f1be70c2119c14ec99b3dde(
428
+ *,
429
+ connection_name: builtins.str,
430
+ host_arn: typing.Optional[builtins.str] = None,
431
+ provider_type: typing.Optional[builtins.str] = None,
432
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
433
+ ) -> None:
434
+ """Type checking stubs"""
435
+ pass