aws-cdk-lib 2.154.0__py3-none-any.whl → 2.155.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.
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.154.0.jsii.tgz → aws-cdk-lib@2.155.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +17 -17
- aws_cdk/aws_apigatewayv2/__init__.py +13 -14
- aws_cdk/aws_bedrock/__init__.py +2672 -306
- aws_cdk/aws_cloudfront/__init__.py +20 -5
- aws_cdk/aws_codebuild/__init__.py +384 -4
- aws_cdk/aws_ec2/__init__.py +246 -47
- aws_cdk/aws_ecs/__init__.py +5 -3
- aws_cdk/aws_eks/__init__.py +34 -4
- aws_cdk/aws_gamelift/__init__.py +52 -40
- aws_cdk/aws_glue/__init__.py +55 -4
- aws_cdk/aws_imagebuilder/__init__.py +6 -6
- aws_cdk/aws_ivs/__init__.py +460 -2
- aws_cdk/aws_kms/__init__.py +36 -0
- aws_cdk/aws_lambda/__init__.py +38 -23
- aws_cdk/aws_lambda_event_sources/__init__.py +27 -0
- aws_cdk/aws_medialive/__init__.py +41 -0
- aws_cdk/aws_msk/__init__.py +88 -0
- aws_cdk/aws_rds/__init__.py +6 -0
- aws_cdk/aws_sagemaker/__init__.py +2 -2
- aws_cdk/aws_secretsmanager/__init__.py +3 -2
- aws_cdk/aws_ses/__init__.py +7 -7
- aws_cdk/aws_ssm/__init__.py +5 -5
- aws_cdk/aws_ssmcontacts/__init__.py +12 -0
- aws_cdk/aws_stepfunctions/__init__.py +12 -14
- aws_cdk/aws_stepfunctions_tasks/__init__.py +76 -0
- aws_cdk/aws_synthetics/__init__.py +13 -0
- aws_cdk/custom_resources/__init__.py +113 -2
- {aws_cdk_lib-2.154.0.dist-info → aws_cdk_lib-2.155.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.154.0.dist-info → aws_cdk_lib-2.155.0.dist-info}/RECORD +35 -35
- {aws_cdk_lib-2.154.0.dist-info → aws_cdk_lib-2.155.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.154.0.dist-info → aws_cdk_lib-2.155.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.154.0.dist-info → aws_cdk_lib-2.155.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.154.0.dist-info → aws_cdk_lib-2.155.0.dist-info}/top_level.txt +0 -0
|
@@ -118,6 +118,16 @@ cloudfront.Distribution(self, "myDist",
|
|
|
118
118
|
)
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
#### Moving an alternate domain name to a different distribution
|
|
122
|
+
|
|
123
|
+
When you try to add an alternate domain name to a distribution but the alternate domain name is already in use on a different distribution, you get a `CNAMEAlreadyExists` error (One or more of the CNAMEs you provided are already associated with a different resource).
|
|
124
|
+
|
|
125
|
+
In that case, you might want to move the existing alternate domain name from one distribution (the source distribution) to another (the target distribution). The following steps are an overview of the process. For more information, see [Moving an alternate domain name to a different distribution](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/alternate-domain-names-move.html).
|
|
126
|
+
|
|
127
|
+
1. Deploy the stack with the target distribution. The `certificate` property must be specified but the `domainNames` should be absent.
|
|
128
|
+
2. Move the alternate domain name by running CloudFront `associate-alias` command. For the example and preconditions, see the AWS documentation above.
|
|
129
|
+
3. Specify the `domainNames` property with the alternative domain name, then deploy the stack again to resolve the drift at the alternative domain name.
|
|
130
|
+
|
|
121
131
|
#### Cross Region Certificates
|
|
122
132
|
|
|
123
133
|
> **This feature is currently experimental**
|
|
@@ -2311,7 +2321,7 @@ class CachePolicyProps:
|
|
|
2311
2321
|
'''Properties for creating a Cache Policy.
|
|
2312
2322
|
|
|
2313
2323
|
:param cache_policy_name: A unique name to identify the cache policy. The name must only include '-', '_', or alphanumeric characters. Default: - generated from the ``id``
|
|
2314
|
-
:param comment: A comment to describe the cache policy. Default: - no comment
|
|
2324
|
+
:param comment: A comment to describe the cache policy. The comment cannot be longer than 128 characters. Default: - no comment
|
|
2315
2325
|
:param cookie_behavior: Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Default: CacheCookieBehavior.none()
|
|
2316
2326
|
:param default_ttl: The default amount of time for objects to stay in the CloudFront cache. Only used when the origin does not send Cache-Control or Expires headers with the object. Default: - The greater of 1 day and ``minTtl``
|
|
2317
2327
|
:param enable_accept_encoding_brotli: Whether to normalize and include the ``Accept-Encoding`` header in the cache key when the ``Accept-Encoding`` header is 'br'. Default: false
|
|
@@ -2396,6 +2406,8 @@ class CachePolicyProps:
|
|
|
2396
2406
|
def comment(self) -> typing.Optional[builtins.str]:
|
|
2397
2407
|
'''A comment to describe the cache policy.
|
|
2398
2408
|
|
|
2409
|
+
The comment cannot be longer than 128 characters.
|
|
2410
|
+
|
|
2399
2411
|
:default: - no comment
|
|
2400
2412
|
'''
|
|
2401
2413
|
result = self._values.get("comment")
|
|
@@ -15677,7 +15689,7 @@ class DistributionProps:
|
|
|
15677
15689
|
:param certificate: A certificate to associate with the distribution. The certificate must be located in N. Virginia (us-east-1). Default: - the CloudFront wildcard certificate (*.cloudfront.net) will be used.
|
|
15678
15690
|
:param comment: Any comments you want to include about the distribution. Default: - no comment
|
|
15679
15691
|
:param default_root_object: The object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution. If no default object is set, the request goes to the origin's root (e.g., example.com/). Default: - no default root object
|
|
15680
|
-
:param domain_names: Alternative domain names for this distribution. If you want to use your own domain name, such as www.example.com, instead of the cloudfront.net domain name, you can add an alternate domain name to your distribution. If you attach a certificate to the distribution, you
|
|
15692
|
+
:param domain_names: Alternative domain names for this distribution. If you want to use your own domain name, such as www.example.com, instead of the cloudfront.net domain name, you can add an alternate domain name to your distribution. If you attach a certificate to the distribution, you should add (at least one of) the domain names of the certificate to this list. When you want to move a domain name between distributions, you can associate a certificate without specifying any domain names. For more information, see the *Moving an alternate domain name to a different distribution* section in the README. Default: - The distribution will only support the default generated name (e.g., d111111abcdef8.cloudfront.net)
|
|
15681
15693
|
:param enabled: Enable or disable the distribution. Default: true
|
|
15682
15694
|
:param enable_ipv6: Whether CloudFront will respond to IPv6 DNS requests with an IPv6 address. If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution. Default: true
|
|
15683
15695
|
:param enable_logging: Enable access logging for the distribution. Default: - false, unless ``logBucket`` is specified.
|
|
@@ -15833,7 +15845,10 @@ class DistributionProps:
|
|
|
15833
15845
|
|
|
15834
15846
|
If you want to use your own domain name, such as www.example.com, instead of the cloudfront.net domain name,
|
|
15835
15847
|
you can add an alternate domain name to your distribution. If you attach a certificate to the distribution,
|
|
15836
|
-
you
|
|
15848
|
+
you should add (at least one of) the domain names of the certificate to this list.
|
|
15849
|
+
|
|
15850
|
+
When you want to move a domain name between distributions, you can associate a certificate without specifying any domain names.
|
|
15851
|
+
For more information, see the *Moving an alternate domain name to a different distribution* section in the README.
|
|
15837
15852
|
|
|
15838
15853
|
:default: - The distribution will only support the default generated name (e.g., d111111abcdef8.cloudfront.net)
|
|
15839
15854
|
'''
|
|
@@ -22678,7 +22693,7 @@ class CachePolicy(
|
|
|
22678
22693
|
:param scope: -
|
|
22679
22694
|
:param id: -
|
|
22680
22695
|
:param cache_policy_name: A unique name to identify the cache policy. The name must only include '-', '_', or alphanumeric characters. Default: - generated from the ``id``
|
|
22681
|
-
:param comment: A comment to describe the cache policy. Default: - no comment
|
|
22696
|
+
:param comment: A comment to describe the cache policy. The comment cannot be longer than 128 characters. Default: - no comment
|
|
22682
22697
|
:param cookie_behavior: Determines whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Default: CacheCookieBehavior.none()
|
|
22683
22698
|
:param default_ttl: The default amount of time for objects to stay in the CloudFront cache. Only used when the origin does not send Cache-Control or Expires headers with the object. Default: - The greater of 1 day and ``minTtl``
|
|
22684
22699
|
:param enable_accept_encoding_brotli: Whether to normalize and include the ``Accept-Encoding`` header in the cache key when the ``Accept-Encoding`` header is 'br'. Default: false
|
|
@@ -23044,7 +23059,7 @@ class Distribution(
|
|
|
23044
23059
|
:param certificate: A certificate to associate with the distribution. The certificate must be located in N. Virginia (us-east-1). Default: - the CloudFront wildcard certificate (*.cloudfront.net) will be used.
|
|
23045
23060
|
:param comment: Any comments you want to include about the distribution. Default: - no comment
|
|
23046
23061
|
:param default_root_object: The object that you want CloudFront to request from your origin (for example, index.html) when a viewer requests the root URL for your distribution. If no default object is set, the request goes to the origin's root (e.g., example.com/). Default: - no default root object
|
|
23047
|
-
:param domain_names: Alternative domain names for this distribution. If you want to use your own domain name, such as www.example.com, instead of the cloudfront.net domain name, you can add an alternate domain name to your distribution. If you attach a certificate to the distribution, you
|
|
23062
|
+
:param domain_names: Alternative domain names for this distribution. If you want to use your own domain name, such as www.example.com, instead of the cloudfront.net domain name, you can add an alternate domain name to your distribution. If you attach a certificate to the distribution, you should add (at least one of) the domain names of the certificate to this list. When you want to move a domain name between distributions, you can associate a certificate without specifying any domain names. For more information, see the *Moving an alternate domain name to a different distribution* section in the README. Default: - The distribution will only support the default generated name (e.g., d111111abcdef8.cloudfront.net)
|
|
23048
23063
|
:param enabled: Enable or disable the distribution. Default: true
|
|
23049
23064
|
:param enable_ipv6: Whether CloudFront will respond to IPv6 DNS requests with an IPv6 address. If you specify false, CloudFront responds to IPv6 DNS requests with the DNS response code NOERROR and with no IP addresses. This allows viewers to submit a second request, for an IPv4 address for your distribution. Default: true
|
|
23050
23065
|
:param enable_logging: Enable access logging for the distribution. Default: - false, unless ``logBucket`` is specified.
|
|
@@ -309,15 +309,15 @@ a reserved capacity project. See [Fleet](#fleet) for more information.
|
|
|
309
309
|
|
|
310
310
|
## Images
|
|
311
311
|
|
|
312
|
-
The CodeBuild library supports
|
|
313
|
-
`LinuxBuildImage` (or `LinuxArmBuildImage`), and `
|
|
312
|
+
The CodeBuild library supports Linux, Windows, and Mac images via the
|
|
313
|
+
`LinuxBuildImage` (or `LinuxArmBuildImage`), `WindowsBuildImage`, and `MacBuildImage` classes, respectively.
|
|
314
314
|
With the introduction of Lambda compute support, the `LinuxLambdaBuildImage ` (or `LinuxArmLambdaBuildImage`) class
|
|
315
315
|
is available for specifying Lambda-compatible images.
|
|
316
316
|
|
|
317
317
|
You can specify one of the predefined Windows/Linux images by using one
|
|
318
318
|
of the constants such as `WindowsBuildImage.WIN_SERVER_CORE_2019_BASE`,
|
|
319
319
|
`WindowsBuildImage.WINDOWS_BASE_2_0`, `LinuxBuildImage.STANDARD_2_0`,
|
|
320
|
-
`LinuxBuildImage.AMAZON_LINUX_2_5`, `LinuxArmBuildImage.AMAZON_LINUX_2_ARM`,
|
|
320
|
+
`LinuxBuildImage.AMAZON_LINUX_2_5`, `MacBuildImage.BASE_14`, `LinuxArmBuildImage.AMAZON_LINUX_2_ARM`,
|
|
321
321
|
`LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18` or `LinuxArmLambdaBuildImage.AMAZON_LINUX_2_NODE_18`.
|
|
322
322
|
|
|
323
323
|
Alternatively, you can specify a custom image using one of the static methods on
|
|
@@ -336,6 +336,12 @@ or one of the corresponding methods on `WindowsBuildImage`:
|
|
|
336
336
|
* `WindowsBuildImage.fromEcrRepository(repo[, tag, imageType])`
|
|
337
337
|
* `WindowsBuildImage.fromAsset(parent, id, props, [, imageType])`
|
|
338
338
|
|
|
339
|
+
or one of the corresponding methods on `MacBuildImage`:
|
|
340
|
+
|
|
341
|
+
* `MacBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }, imageType])`
|
|
342
|
+
* `MacBuildImage.fromEcrRepository(repo[, tag, imageType])`
|
|
343
|
+
* `MacBuildImage.fromAsset(parent, id, props, [, imageType])`
|
|
344
|
+
|
|
339
345
|
or one of the corresponding methods on `LinuxArmBuildImage`:
|
|
340
346
|
|
|
341
347
|
* `LinuxArmBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }])`
|
|
@@ -2129,6 +2135,7 @@ class CfnFleet(
|
|
|
2129
2135
|
subnets=["subnets"],
|
|
2130
2136
|
vpc_id="vpcId"
|
|
2131
2137
|
),
|
|
2138
|
+
image_id="imageId",
|
|
2132
2139
|
name="name",
|
|
2133
2140
|
overflow_behavior="overflowBehavior",
|
|
2134
2141
|
tags=[CfnTag(
|
|
@@ -2148,6 +2155,7 @@ class CfnFleet(
|
|
|
2148
2155
|
environment_type: typing.Optional[builtins.str] = None,
|
|
2149
2156
|
fleet_service_role: typing.Optional[builtins.str] = None,
|
|
2150
2157
|
fleet_vpc_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFleet.VpcConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2158
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
2151
2159
|
name: typing.Optional[builtins.str] = None,
|
|
2152
2160
|
overflow_behavior: typing.Optional[builtins.str] = None,
|
|
2153
2161
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2160,6 +2168,7 @@ class CfnFleet(
|
|
|
2160
2168
|
: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 ``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_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 ``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* .
|
|
2161
2169
|
:param fleet_service_role: The service role associated with the compute fleet. For more information, see `Allow a user to add a permission policy for a fleet service role <https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html>`_ in the *AWS CodeBuild User Guide* .
|
|
2162
2170
|
:param fleet_vpc_config: Information about the VPC configuration that AWS CodeBuild accesses.
|
|
2171
|
+
:param image_id: The Amazon Machine Image (AMI) of the compute fleet.
|
|
2163
2172
|
:param name: The name of the compute fleet.
|
|
2164
2173
|
:param overflow_behavior: The compute fleet overflow behavior. - For overflow behavior ``QUEUE`` , your overflow builds need to wait on the existing fleet instance to become available. - For overflow behavior ``ON_DEMAND`` , your overflow builds run on CodeBuild on-demand. .. epigraph:: If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see `Example policy statement to allow CodeBuild access to AWS services required to create a VPC network interface <https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface>`_ .
|
|
2165
2174
|
:param tags: A list of tag key and value pairs associated with this compute fleet. These tags are available for use by AWS services that support AWS CodeBuild compute fleet tags.
|
|
@@ -2174,6 +2183,7 @@ class CfnFleet(
|
|
|
2174
2183
|
environment_type=environment_type,
|
|
2175
2184
|
fleet_service_role=fleet_service_role,
|
|
2176
2185
|
fleet_vpc_config=fleet_vpc_config,
|
|
2186
|
+
image_id=image_id,
|
|
2177
2187
|
name=name,
|
|
2178
2188
|
overflow_behavior=overflow_behavior,
|
|
2179
2189
|
tags=tags,
|
|
@@ -2304,6 +2314,19 @@ class CfnFleet(
|
|
|
2304
2314
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2305
2315
|
jsii.set(self, "fleetVpcConfig", value) # pyright: ignore[reportArgumentType]
|
|
2306
2316
|
|
|
2317
|
+
@builtins.property
|
|
2318
|
+
@jsii.member(jsii_name="imageId")
|
|
2319
|
+
def image_id(self) -> typing.Optional[builtins.str]:
|
|
2320
|
+
'''The Amazon Machine Image (AMI) of the compute fleet.'''
|
|
2321
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "imageId"))
|
|
2322
|
+
|
|
2323
|
+
@image_id.setter
|
|
2324
|
+
def image_id(self, value: typing.Optional[builtins.str]) -> None:
|
|
2325
|
+
if __debug__:
|
|
2326
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a33f552a37e35f306dfe760e51f68c6ca42ccd6b0ff4f2384f78f2d64f098f01)
|
|
2327
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2328
|
+
jsii.set(self, "imageId", value) # pyright: ignore[reportArgumentType]
|
|
2329
|
+
|
|
2307
2330
|
@builtins.property
|
|
2308
2331
|
@jsii.member(jsii_name="name")
|
|
2309
2332
|
def name(self) -> typing.Optional[builtins.str]:
|
|
@@ -2442,6 +2465,7 @@ class CfnFleet(
|
|
|
2442
2465
|
"environment_type": "environmentType",
|
|
2443
2466
|
"fleet_service_role": "fleetServiceRole",
|
|
2444
2467
|
"fleet_vpc_config": "fleetVpcConfig",
|
|
2468
|
+
"image_id": "imageId",
|
|
2445
2469
|
"name": "name",
|
|
2446
2470
|
"overflow_behavior": "overflowBehavior",
|
|
2447
2471
|
"tags": "tags",
|
|
@@ -2456,6 +2480,7 @@ class CfnFleetProps:
|
|
|
2456
2480
|
environment_type: typing.Optional[builtins.str] = None,
|
|
2457
2481
|
fleet_service_role: typing.Optional[builtins.str] = None,
|
|
2458
2482
|
fleet_vpc_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.VpcConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2483
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
2459
2484
|
name: typing.Optional[builtins.str] = None,
|
|
2460
2485
|
overflow_behavior: typing.Optional[builtins.str] = None,
|
|
2461
2486
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -2467,6 +2492,7 @@ class CfnFleetProps:
|
|
|
2467
2492
|
: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 ``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_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 ``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* .
|
|
2468
2493
|
:param fleet_service_role: The service role associated with the compute fleet. For more information, see `Allow a user to add a permission policy for a fleet service role <https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html>`_ in the *AWS CodeBuild User Guide* .
|
|
2469
2494
|
:param fleet_vpc_config: Information about the VPC configuration that AWS CodeBuild accesses.
|
|
2495
|
+
:param image_id: The Amazon Machine Image (AMI) of the compute fleet.
|
|
2470
2496
|
:param name: The name of the compute fleet.
|
|
2471
2497
|
:param overflow_behavior: The compute fleet overflow behavior. - For overflow behavior ``QUEUE`` , your overflow builds need to wait on the existing fleet instance to become available. - For overflow behavior ``ON_DEMAND`` , your overflow builds run on CodeBuild on-demand. .. epigraph:: If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see `Example policy statement to allow CodeBuild access to AWS services required to create a VPC network interface <https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface>`_ .
|
|
2472
2498
|
:param tags: A list of tag key and value pairs associated with this compute fleet. These tags are available for use by AWS services that support AWS CodeBuild compute fleet tags.
|
|
@@ -2490,6 +2516,7 @@ class CfnFleetProps:
|
|
|
2490
2516
|
subnets=["subnets"],
|
|
2491
2517
|
vpc_id="vpcId"
|
|
2492
2518
|
),
|
|
2519
|
+
image_id="imageId",
|
|
2493
2520
|
name="name",
|
|
2494
2521
|
overflow_behavior="overflowBehavior",
|
|
2495
2522
|
tags=[CfnTag(
|
|
@@ -2505,6 +2532,7 @@ class CfnFleetProps:
|
|
|
2505
2532
|
check_type(argname="argument environment_type", value=environment_type, expected_type=type_hints["environment_type"])
|
|
2506
2533
|
check_type(argname="argument fleet_service_role", value=fleet_service_role, expected_type=type_hints["fleet_service_role"])
|
|
2507
2534
|
check_type(argname="argument fleet_vpc_config", value=fleet_vpc_config, expected_type=type_hints["fleet_vpc_config"])
|
|
2535
|
+
check_type(argname="argument image_id", value=image_id, expected_type=type_hints["image_id"])
|
|
2508
2536
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
2509
2537
|
check_type(argname="argument overflow_behavior", value=overflow_behavior, expected_type=type_hints["overflow_behavior"])
|
|
2510
2538
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
@@ -2519,6 +2547,8 @@ class CfnFleetProps:
|
|
|
2519
2547
|
self._values["fleet_service_role"] = fleet_service_role
|
|
2520
2548
|
if fleet_vpc_config is not None:
|
|
2521
2549
|
self._values["fleet_vpc_config"] = fleet_vpc_config
|
|
2550
|
+
if image_id is not None:
|
|
2551
|
+
self._values["image_id"] = image_id
|
|
2522
2552
|
if name is not None:
|
|
2523
2553
|
self._values["name"] = name
|
|
2524
2554
|
if overflow_behavior is not None:
|
|
@@ -2603,6 +2633,15 @@ class CfnFleetProps:
|
|
|
2603
2633
|
result = self._values.get("fleet_vpc_config")
|
|
2604
2634
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFleet.VpcConfigProperty]], result)
|
|
2605
2635
|
|
|
2636
|
+
@builtins.property
|
|
2637
|
+
def image_id(self) -> typing.Optional[builtins.str]:
|
|
2638
|
+
'''The Amazon Machine Image (AMI) of the compute fleet.
|
|
2639
|
+
|
|
2640
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-fleet.html#cfn-codebuild-fleet-imageid
|
|
2641
|
+
'''
|
|
2642
|
+
result = self._values.get("image_id")
|
|
2643
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2644
|
+
|
|
2606
2645
|
@builtins.property
|
|
2607
2646
|
def name(self) -> typing.Optional[builtins.str]:
|
|
2608
2647
|
'''The name of the compute fleet.
|
|
@@ -8123,7 +8162,7 @@ class DockerImageOptions:
|
|
|
8123
8162
|
*,
|
|
8124
8163
|
secrets_manager_credentials: typing.Optional[_ISecret_6e020e6a] = None,
|
|
8125
8164
|
) -> None:
|
|
8126
|
-
'''The options when creating a CodeBuild Docker build image using ``LinuxBuildImage.fromDockerRegistry`` or ``
|
|
8165
|
+
'''The options when creating a CodeBuild Docker build image using ``LinuxBuildImage.fromDockerRegistry``, ``WindowsBuildImage.fromDockerRegistry``, or ``MacBuildImage.fromDockerRegistry``.
|
|
8127
8166
|
|
|
8128
8167
|
:param secrets_manager_credentials: The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private. Default: no credentials will be used (we assume the repository is public)
|
|
8129
8168
|
|
|
@@ -8301,6 +8340,8 @@ class EnvironmentType(enum.Enum):
|
|
|
8301
8340
|
'''Windows Server 2019 container.'''
|
|
8302
8341
|
WINDOWS_SERVER_2022_CONTAINER = "WINDOWS_SERVER_2022_CONTAINER"
|
|
8303
8342
|
'''Windows Server 2022 container.'''
|
|
8343
|
+
MAC_ARM = "MAC_ARM"
|
|
8344
|
+
'''MacOS ARM container.'''
|
|
8304
8345
|
|
|
8305
8346
|
|
|
8306
8347
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_codebuild.EventAction")
|
|
@@ -11699,6 +11740,289 @@ class LoggingOptions:
|
|
|
11699
11740
|
)
|
|
11700
11741
|
|
|
11701
11742
|
|
|
11743
|
+
@jsii.implements(IBuildImage)
|
|
11744
|
+
class MacBuildImage(
|
|
11745
|
+
metaclass=jsii.JSIIMeta,
|
|
11746
|
+
jsii_type="aws-cdk-lib.aws_codebuild.MacBuildImage",
|
|
11747
|
+
):
|
|
11748
|
+
'''A CodeBuild image running ARM MacOS.
|
|
11749
|
+
|
|
11750
|
+
This class has a bunch of public constants that represent the most popular images.
|
|
11751
|
+
|
|
11752
|
+
You can also specify a custom image using one of the static methods:
|
|
11753
|
+
|
|
11754
|
+
- MacBuildImage.fromDockerRegistry(image[, { secretsManagerCredentials }])
|
|
11755
|
+
- MacBuildImage.fromEcrRepository(repo[, tag])
|
|
11756
|
+
- MacBuildImage.fromAsset(parent, id, props)
|
|
11757
|
+
|
|
11758
|
+
:see: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
|
|
11759
|
+
:exampleMetadata: fixture=_generated
|
|
11760
|
+
|
|
11761
|
+
Example::
|
|
11762
|
+
|
|
11763
|
+
# The code below shows an example of how to instantiate this type.
|
|
11764
|
+
# The values are placeholders you should change.
|
|
11765
|
+
import aws_cdk as cdk
|
|
11766
|
+
from aws_cdk import aws_codebuild as codebuild
|
|
11767
|
+
from aws_cdk import aws_ecr_assets as ecr_assets
|
|
11768
|
+
|
|
11769
|
+
# network_mode: ecr_assets.NetworkMode
|
|
11770
|
+
# platform: ecr_assets.Platform
|
|
11771
|
+
|
|
11772
|
+
mac_build_image = codebuild.MacBuildImage.from_asset(self, "MyMacBuildImage",
|
|
11773
|
+
directory="directory",
|
|
11774
|
+
|
|
11775
|
+
# the properties below are optional
|
|
11776
|
+
asset_name="assetName",
|
|
11777
|
+
build_args={
|
|
11778
|
+
"build_args_key": "buildArgs"
|
|
11779
|
+
},
|
|
11780
|
+
build_secrets={
|
|
11781
|
+
"build_secrets_key": "buildSecrets"
|
|
11782
|
+
},
|
|
11783
|
+
build_ssh="buildSsh",
|
|
11784
|
+
cache_disabled=False,
|
|
11785
|
+
cache_from=[ecr_assets.DockerCacheOption(
|
|
11786
|
+
type="type",
|
|
11787
|
+
|
|
11788
|
+
# the properties below are optional
|
|
11789
|
+
params={
|
|
11790
|
+
"params_key": "params"
|
|
11791
|
+
}
|
|
11792
|
+
)],
|
|
11793
|
+
cache_to=ecr_assets.DockerCacheOption(
|
|
11794
|
+
type="type",
|
|
11795
|
+
|
|
11796
|
+
# the properties below are optional
|
|
11797
|
+
params={
|
|
11798
|
+
"params_key": "params"
|
|
11799
|
+
}
|
|
11800
|
+
),
|
|
11801
|
+
exclude=["exclude"],
|
|
11802
|
+
extra_hash="extraHash",
|
|
11803
|
+
file="file",
|
|
11804
|
+
follow_symlinks=cdk.SymlinkFollowMode.NEVER,
|
|
11805
|
+
ignore_mode=cdk.IgnoreMode.GLOB,
|
|
11806
|
+
invalidation=ecr_assets.DockerImageAssetInvalidationOptions(
|
|
11807
|
+
build_args=False,
|
|
11808
|
+
build_secrets=False,
|
|
11809
|
+
build_ssh=False,
|
|
11810
|
+
extra_hash=False,
|
|
11811
|
+
file=False,
|
|
11812
|
+
network_mode=False,
|
|
11813
|
+
outputs=False,
|
|
11814
|
+
platform=False,
|
|
11815
|
+
repository_name=False,
|
|
11816
|
+
target=False
|
|
11817
|
+
),
|
|
11818
|
+
network_mode=network_mode,
|
|
11819
|
+
outputs=["outputs"],
|
|
11820
|
+
platform=platform,
|
|
11821
|
+
target="target"
|
|
11822
|
+
)
|
|
11823
|
+
'''
|
|
11824
|
+
|
|
11825
|
+
@jsii.member(jsii_name="fromAsset")
|
|
11826
|
+
@builtins.classmethod
|
|
11827
|
+
def from_asset(
|
|
11828
|
+
cls,
|
|
11829
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
11830
|
+
id: builtins.str,
|
|
11831
|
+
*,
|
|
11832
|
+
directory: builtins.str,
|
|
11833
|
+
asset_name: typing.Optional[builtins.str] = None,
|
|
11834
|
+
build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11835
|
+
build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
11836
|
+
build_ssh: typing.Optional[builtins.str] = None,
|
|
11837
|
+
cache_disabled: typing.Optional[builtins.bool] = None,
|
|
11838
|
+
cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11839
|
+
cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11840
|
+
file: typing.Optional[builtins.str] = None,
|
|
11841
|
+
invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11842
|
+
network_mode: typing.Optional[_NetworkMode_897e5081] = None,
|
|
11843
|
+
outputs: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
11844
|
+
platform: typing.Optional[_Platform_d16f3cf1] = None,
|
|
11845
|
+
target: typing.Optional[builtins.str] = None,
|
|
11846
|
+
extra_hash: typing.Optional[builtins.str] = None,
|
|
11847
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
11848
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
11849
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
11850
|
+
) -> IBuildImage:
|
|
11851
|
+
'''Uses an Docker image asset as a ARM MacOS build image.
|
|
11852
|
+
|
|
11853
|
+
:param scope: -
|
|
11854
|
+
:param id: -
|
|
11855
|
+
:param directory: The directory where the Dockerfile is stored. Any directory inside with a name that matches the CDK output folder (cdk.out by default) will be excluded from the asset
|
|
11856
|
+
:param asset_name: Unique identifier of the docker image asset and its potential revisions. Required if using AppScopedStagingSynthesizer. Default: - no asset name
|
|
11857
|
+
:param build_args: Build args to pass to the ``docker build`` command. Since Docker build arguments are resolved before deployment, keys and values cannot refer to unresolved tokens (such as ``lambda.functionArn`` or ``queue.queueUrl``). Default: - no build args are passed
|
|
11858
|
+
:param build_secrets: Build secrets. Docker BuildKit must be enabled to use build secrets. Default: - no build secrets
|
|
11859
|
+
:param build_ssh: SSH agent socket or keys to pass to the ``docker build`` command. Docker BuildKit must be enabled to use the ssh flag Default: - no --ssh flag
|
|
11860
|
+
:param cache_disabled: Disable the cache and pass ``--no-cache`` to the ``docker build`` command. Default: - cache is used
|
|
11861
|
+
:param cache_from: Cache from options to pass to the ``docker build`` command. Default: - no cache from options are passed to the build command
|
|
11862
|
+
:param cache_to: Cache to options to pass to the ``docker build`` command. Default: - no cache to options are passed to the build command
|
|
11863
|
+
:param file: Path to the Dockerfile (relative to the directory). Default: 'Dockerfile'
|
|
11864
|
+
:param invalidation: Options to control which parameters are used to invalidate the asset hash. Default: - hash all parameters
|
|
11865
|
+
:param network_mode: Networking mode for the RUN commands during build. Support docker API 1.25+. Default: - no networking mode specified (the default networking mode ``NetworkMode.DEFAULT`` will be used)
|
|
11866
|
+
:param outputs: Outputs to pass to the ``docker build`` command. Default: - no outputs are passed to the build command (default outputs are used)
|
|
11867
|
+
:param platform: Platform to build for. *Requires Docker Buildx*. Default: - no platform specified (the current machine architecture will be used)
|
|
11868
|
+
:param target: Docker target to build to. Default: - no target
|
|
11869
|
+
:param extra_hash: Extra information to encode into the fingerprint (e.g. build instructions and other inputs). Default: - hash is only based on source content
|
|
11870
|
+
:param exclude: File paths matching the patterns will be excluded. See ``ignoreMode`` to set the matching behavior. Has no effect on Assets bundled using the ``bundling`` property. Default: - nothing is excluded
|
|
11871
|
+
:param follow_symlinks: A strategy for how to handle symlinks. Default: SymlinkFollowMode.NEVER
|
|
11872
|
+
:param ignore_mode: The ignore behavior to use for ``exclude`` patterns. Default: IgnoreMode.GLOB
|
|
11873
|
+
'''
|
|
11874
|
+
if __debug__:
|
|
11875
|
+
type_hints = typing.get_type_hints(_typecheckingstub__aa924aa0600b9706b95a62c612f337f8dde0f0df7d5d3b8c5b48b72793d2f035)
|
|
11876
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
11877
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
11878
|
+
props = _DockerImageAssetProps_6897287d(
|
|
11879
|
+
directory=directory,
|
|
11880
|
+
asset_name=asset_name,
|
|
11881
|
+
build_args=build_args,
|
|
11882
|
+
build_secrets=build_secrets,
|
|
11883
|
+
build_ssh=build_ssh,
|
|
11884
|
+
cache_disabled=cache_disabled,
|
|
11885
|
+
cache_from=cache_from,
|
|
11886
|
+
cache_to=cache_to,
|
|
11887
|
+
file=file,
|
|
11888
|
+
invalidation=invalidation,
|
|
11889
|
+
network_mode=network_mode,
|
|
11890
|
+
outputs=outputs,
|
|
11891
|
+
platform=platform,
|
|
11892
|
+
target=target,
|
|
11893
|
+
extra_hash=extra_hash,
|
|
11894
|
+
exclude=exclude,
|
|
11895
|
+
follow_symlinks=follow_symlinks,
|
|
11896
|
+
ignore_mode=ignore_mode,
|
|
11897
|
+
)
|
|
11898
|
+
|
|
11899
|
+
return typing.cast(IBuildImage, jsii.sinvoke(cls, "fromAsset", [scope, id, props]))
|
|
11900
|
+
|
|
11901
|
+
@jsii.member(jsii_name="fromDockerRegistry")
|
|
11902
|
+
@builtins.classmethod
|
|
11903
|
+
def from_docker_registry(
|
|
11904
|
+
cls,
|
|
11905
|
+
name: builtins.str,
|
|
11906
|
+
*,
|
|
11907
|
+
secrets_manager_credentials: typing.Optional[_ISecret_6e020e6a] = None,
|
|
11908
|
+
) -> IBuildImage:
|
|
11909
|
+
'''Makes an ARM MacOS build image from a Docker Hub image.
|
|
11910
|
+
|
|
11911
|
+
:param name: -
|
|
11912
|
+
:param secrets_manager_credentials: The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private. Default: no credentials will be used (we assume the repository is public)
|
|
11913
|
+
'''
|
|
11914
|
+
if __debug__:
|
|
11915
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3ced24ed51e6d3d02f373fa149177eaedab74dee6bcfb75fb774dc8c44de1400)
|
|
11916
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
11917
|
+
options = DockerImageOptions(
|
|
11918
|
+
secrets_manager_credentials=secrets_manager_credentials
|
|
11919
|
+
)
|
|
11920
|
+
|
|
11921
|
+
return typing.cast(IBuildImage, jsii.sinvoke(cls, "fromDockerRegistry", [name, options]))
|
|
11922
|
+
|
|
11923
|
+
@jsii.member(jsii_name="fromEcrRepository")
|
|
11924
|
+
@builtins.classmethod
|
|
11925
|
+
def from_ecr_repository(
|
|
11926
|
+
cls,
|
|
11927
|
+
repository: _IRepository_e6004aa6,
|
|
11928
|
+
tag_or_digest: typing.Optional[builtins.str] = None,
|
|
11929
|
+
) -> IBuildImage:
|
|
11930
|
+
'''Makes an ARM MacOS build image from an ECR repository.
|
|
11931
|
+
|
|
11932
|
+
:param repository: -
|
|
11933
|
+
:param tag_or_digest: -
|
|
11934
|
+
'''
|
|
11935
|
+
if __debug__:
|
|
11936
|
+
type_hints = typing.get_type_hints(_typecheckingstub__86c63517f15ffab752d46ab62cdbf8292d45fa89a328c7481f83993a790eb5ee)
|
|
11937
|
+
check_type(argname="argument repository", value=repository, expected_type=type_hints["repository"])
|
|
11938
|
+
check_type(argname="argument tag_or_digest", value=tag_or_digest, expected_type=type_hints["tag_or_digest"])
|
|
11939
|
+
return typing.cast(IBuildImage, jsii.sinvoke(cls, "fromEcrRepository", [repository, tag_or_digest]))
|
|
11940
|
+
|
|
11941
|
+
@jsii.member(jsii_name="runScriptBuildspec")
|
|
11942
|
+
def run_script_buildspec(self, entrypoint: builtins.str) -> BuildSpec:
|
|
11943
|
+
'''Make a buildspec to run the indicated script.
|
|
11944
|
+
|
|
11945
|
+
:param entrypoint: -
|
|
11946
|
+
'''
|
|
11947
|
+
if __debug__:
|
|
11948
|
+
type_hints = typing.get_type_hints(_typecheckingstub__088f043d10fcd15701414055dc0a14f58d71044ecaba5c848f1c97225e6000fe)
|
|
11949
|
+
check_type(argname="argument entrypoint", value=entrypoint, expected_type=type_hints["entrypoint"])
|
|
11950
|
+
return typing.cast(BuildSpec, jsii.invoke(self, "runScriptBuildspec", [entrypoint]))
|
|
11951
|
+
|
|
11952
|
+
@jsii.member(jsii_name="validate")
|
|
11953
|
+
def validate(
|
|
11954
|
+
self,
|
|
11955
|
+
*,
|
|
11956
|
+
build_image: typing.Optional[IBuildImage] = None,
|
|
11957
|
+
certificate: typing.Optional[typing.Union[BuildEnvironmentCertificate, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11958
|
+
compute_type: typing.Optional[ComputeType] = None,
|
|
11959
|
+
environment_variables: typing.Optional[typing.Mapping[builtins.str, typing.Union[BuildEnvironmentVariable, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11960
|
+
fleet: typing.Optional[IFleet] = None,
|
|
11961
|
+
privileged: typing.Optional[builtins.bool] = None,
|
|
11962
|
+
) -> typing.List[builtins.str]:
|
|
11963
|
+
'''Allows the image a chance to validate whether the passed configuration is correct.
|
|
11964
|
+
|
|
11965
|
+
:param build_image: The image used for the builds. Default: LinuxBuildImage.STANDARD_1_0
|
|
11966
|
+
:param certificate: The location of the PEM-encoded certificate for the build project. Default: - No external certificate is added to the project
|
|
11967
|
+
:param compute_type: The type of compute to use for this build. See the ``ComputeType`` enum for the possible values. Default: taken from ``#buildImage#defaultComputeType``
|
|
11968
|
+
:param environment_variables: The environment variables that your builds can use.
|
|
11969
|
+
:param fleet: Fleet resource for a reserved capacity CodeBuild project. Fleets allow for process builds or tests to run immediately and reduces build durations, by reserving compute resources for your projects. You will be charged for the resources in the fleet, even if they are idle. Default: - No fleet will be attached to the project, which will remain on-demand.
|
|
11970
|
+
:param privileged: Indicates how the project builds Docker images. Specify true to enable running the Docker daemon inside a Docker container. This value must be set to true only if this build project will be used to build Docker images, and the specified build environment image is not one provided by AWS CodeBuild with Docker support. Otherwise, all associated builds that attempt to interact with the Docker daemon will fail. Default: false
|
|
11971
|
+
'''
|
|
11972
|
+
build_environment = BuildEnvironment(
|
|
11973
|
+
build_image=build_image,
|
|
11974
|
+
certificate=certificate,
|
|
11975
|
+
compute_type=compute_type,
|
|
11976
|
+
environment_variables=environment_variables,
|
|
11977
|
+
fleet=fleet,
|
|
11978
|
+
privileged=privileged,
|
|
11979
|
+
)
|
|
11980
|
+
|
|
11981
|
+
return typing.cast(typing.List[builtins.str], jsii.invoke(self, "validate", [build_environment]))
|
|
11982
|
+
|
|
11983
|
+
@jsii.python.classproperty
|
|
11984
|
+
@jsii.member(jsii_name="BASE_14")
|
|
11985
|
+
def BASE_14(cls) -> IBuildImage:
|
|
11986
|
+
'''Corresponds to the standard CodeBuild image ``aws/codebuild/macos-arm-base:14``.'''
|
|
11987
|
+
return typing.cast(IBuildImage, jsii.sget(cls, "BASE_14"))
|
|
11988
|
+
|
|
11989
|
+
@builtins.property
|
|
11990
|
+
@jsii.member(jsii_name="defaultComputeType")
|
|
11991
|
+
def default_compute_type(self) -> ComputeType:
|
|
11992
|
+
'''The default ``ComputeType`` to use with this image, if one was not specified in ``BuildEnvironment#computeType`` explicitly.'''
|
|
11993
|
+
return typing.cast(ComputeType, jsii.get(self, "defaultComputeType"))
|
|
11994
|
+
|
|
11995
|
+
@builtins.property
|
|
11996
|
+
@jsii.member(jsii_name="imageId")
|
|
11997
|
+
def image_id(self) -> builtins.str:
|
|
11998
|
+
'''The Docker image identifier that the build environment uses.'''
|
|
11999
|
+
return typing.cast(builtins.str, jsii.get(self, "imageId"))
|
|
12000
|
+
|
|
12001
|
+
@builtins.property
|
|
12002
|
+
@jsii.member(jsii_name="type")
|
|
12003
|
+
def type(self) -> builtins.str:
|
|
12004
|
+
'''The type of build environment.'''
|
|
12005
|
+
return typing.cast(builtins.str, jsii.get(self, "type"))
|
|
12006
|
+
|
|
12007
|
+
@builtins.property
|
|
12008
|
+
@jsii.member(jsii_name="imagePullPrincipalType")
|
|
12009
|
+
def image_pull_principal_type(self) -> typing.Optional[ImagePullPrincipalType]:
|
|
12010
|
+
'''The type of principal that CodeBuild will use to pull this build Docker image.'''
|
|
12011
|
+
return typing.cast(typing.Optional[ImagePullPrincipalType], jsii.get(self, "imagePullPrincipalType"))
|
|
12012
|
+
|
|
12013
|
+
@builtins.property
|
|
12014
|
+
@jsii.member(jsii_name="repository")
|
|
12015
|
+
def repository(self) -> typing.Optional[_IRepository_e6004aa6]:
|
|
12016
|
+
'''An optional ECR repository that the image is hosted in.'''
|
|
12017
|
+
return typing.cast(typing.Optional[_IRepository_e6004aa6], jsii.get(self, "repository"))
|
|
12018
|
+
|
|
12019
|
+
@builtins.property
|
|
12020
|
+
@jsii.member(jsii_name="secretsManagerCredentials")
|
|
12021
|
+
def secrets_manager_credentials(self) -> typing.Optional[_ISecret_6e020e6a]:
|
|
12022
|
+
'''The secretsManagerCredentials for access to a private registry.'''
|
|
12023
|
+
return typing.cast(typing.Optional[_ISecret_6e020e6a], jsii.get(self, "secretsManagerCredentials"))
|
|
12024
|
+
|
|
12025
|
+
|
|
11702
12026
|
class PhaseChangeEvent(
|
|
11703
12027
|
metaclass=jsii.JSIIMeta,
|
|
11704
12028
|
jsii_type="aws-cdk-lib.aws_codebuild.PhaseChangeEvent",
|
|
@@ -17020,6 +17344,7 @@ __all__ = [
|
|
|
17020
17344
|
"LinuxLambdaBuildImage",
|
|
17021
17345
|
"LocalCacheMode",
|
|
17022
17346
|
"LoggingOptions",
|
|
17347
|
+
"MacBuildImage",
|
|
17023
17348
|
"PhaseChangeEvent",
|
|
17024
17349
|
"PipelineProject",
|
|
17025
17350
|
"PipelineProjectProps",
|
|
@@ -17180,6 +17505,7 @@ def _typecheckingstub__081dd1a893dcfd34d3fe760e75a2377d2c6fbce3f4d815a8e141bcdc0
|
|
|
17180
17505
|
environment_type: typing.Optional[builtins.str] = None,
|
|
17181
17506
|
fleet_service_role: typing.Optional[builtins.str] = None,
|
|
17182
17507
|
fleet_vpc_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.VpcConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
17508
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
17183
17509
|
name: typing.Optional[builtins.str] = None,
|
|
17184
17510
|
overflow_behavior: typing.Optional[builtins.str] = None,
|
|
17185
17511
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -17229,6 +17555,12 @@ def _typecheckingstub__c66d1798050c93d95746b1057fb5b75bf773869be3796e773defefc3a
|
|
|
17229
17555
|
"""Type checking stubs"""
|
|
17230
17556
|
pass
|
|
17231
17557
|
|
|
17558
|
+
def _typecheckingstub__a33f552a37e35f306dfe760e51f68c6ca42ccd6b0ff4f2384f78f2d64f098f01(
|
|
17559
|
+
value: typing.Optional[builtins.str],
|
|
17560
|
+
) -> None:
|
|
17561
|
+
"""Type checking stubs"""
|
|
17562
|
+
pass
|
|
17563
|
+
|
|
17232
17564
|
def _typecheckingstub__81a1c2090a083488d8e471132fa655912efe0a0fbc6ff93d4665fff305cc8b48(
|
|
17233
17565
|
value: typing.Optional[builtins.str],
|
|
17234
17566
|
) -> None:
|
|
@@ -17263,6 +17595,7 @@ def _typecheckingstub__0f3b2fbc34cebb084c954d70b833a508d545b12a4280ff0f8020065e7
|
|
|
17263
17595
|
environment_type: typing.Optional[builtins.str] = None,
|
|
17264
17596
|
fleet_service_role: typing.Optional[builtins.str] = None,
|
|
17265
17597
|
fleet_vpc_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFleet.VpcConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
17598
|
+
image_id: typing.Optional[builtins.str] = None,
|
|
17266
17599
|
name: typing.Optional[builtins.str] = None,
|
|
17267
17600
|
overflow_behavior: typing.Optional[builtins.str] = None,
|
|
17268
17601
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
@@ -18301,6 +18634,53 @@ def _typecheckingstub__8f582462b349e223e49bf3524c963794211ae94781bdfcfe2a00802c6
|
|
|
18301
18634
|
"""Type checking stubs"""
|
|
18302
18635
|
pass
|
|
18303
18636
|
|
|
18637
|
+
def _typecheckingstub__aa924aa0600b9706b95a62c612f337f8dde0f0df7d5d3b8c5b48b72793d2f035(
|
|
18638
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
18639
|
+
id: builtins.str,
|
|
18640
|
+
*,
|
|
18641
|
+
directory: builtins.str,
|
|
18642
|
+
asset_name: typing.Optional[builtins.str] = None,
|
|
18643
|
+
build_args: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
18644
|
+
build_secrets: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
18645
|
+
build_ssh: typing.Optional[builtins.str] = None,
|
|
18646
|
+
cache_disabled: typing.Optional[builtins.bool] = None,
|
|
18647
|
+
cache_from: typing.Optional[typing.Sequence[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
18648
|
+
cache_to: typing.Optional[typing.Union[_DockerCacheOption_58ef18ca, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18649
|
+
file: typing.Optional[builtins.str] = None,
|
|
18650
|
+
invalidation: typing.Optional[typing.Union[_DockerImageAssetInvalidationOptions_4deb8d45, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
18651
|
+
network_mode: typing.Optional[_NetworkMode_897e5081] = None,
|
|
18652
|
+
outputs: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
18653
|
+
platform: typing.Optional[_Platform_d16f3cf1] = None,
|
|
18654
|
+
target: typing.Optional[builtins.str] = None,
|
|
18655
|
+
extra_hash: typing.Optional[builtins.str] = None,
|
|
18656
|
+
exclude: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
18657
|
+
follow_symlinks: typing.Optional[_SymlinkFollowMode_047ec1f6] = None,
|
|
18658
|
+
ignore_mode: typing.Optional[_IgnoreMode_655a98e8] = None,
|
|
18659
|
+
) -> None:
|
|
18660
|
+
"""Type checking stubs"""
|
|
18661
|
+
pass
|
|
18662
|
+
|
|
18663
|
+
def _typecheckingstub__3ced24ed51e6d3d02f373fa149177eaedab74dee6bcfb75fb774dc8c44de1400(
|
|
18664
|
+
name: builtins.str,
|
|
18665
|
+
*,
|
|
18666
|
+
secrets_manager_credentials: typing.Optional[_ISecret_6e020e6a] = None,
|
|
18667
|
+
) -> None:
|
|
18668
|
+
"""Type checking stubs"""
|
|
18669
|
+
pass
|
|
18670
|
+
|
|
18671
|
+
def _typecheckingstub__86c63517f15ffab752d46ab62cdbf8292d45fa89a328c7481f83993a790eb5ee(
|
|
18672
|
+
repository: _IRepository_e6004aa6,
|
|
18673
|
+
tag_or_digest: typing.Optional[builtins.str] = None,
|
|
18674
|
+
) -> None:
|
|
18675
|
+
"""Type checking stubs"""
|
|
18676
|
+
pass
|
|
18677
|
+
|
|
18678
|
+
def _typecheckingstub__088f043d10fcd15701414055dc0a14f58d71044ecaba5c848f1c97225e6000fe(
|
|
18679
|
+
entrypoint: builtins.str,
|
|
18680
|
+
) -> None:
|
|
18681
|
+
"""Type checking stubs"""
|
|
18682
|
+
pass
|
|
18683
|
+
|
|
18304
18684
|
def _typecheckingstub__cad18ebbb1c05a6adb06360d9baca4a0658b2f85c2078bc257ed8d4f8467c35e(
|
|
18305
18685
|
*,
|
|
18306
18686
|
allow_all_outbound: typing.Optional[builtins.bool] = None,
|