aws-cdk-lib 2.115.0__py3-none-any.whl → 2.116.1__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/__init__.py +801 -356
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.115.0.jsii.tgz → aws-cdk-lib@2.116.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +3 -1
- aws_cdk/aws_apigatewayv2/__init__.py +595 -222
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +4 -5
- aws_cdk/aws_applicationautoscaling/__init__.py +51 -15
- aws_cdk/aws_appsync/__init__.py +14 -3
- aws_cdk/aws_autoscaling/__init__.py +6 -0
- aws_cdk/aws_b2bi/__init__.py +2445 -0
- aws_cdk/aws_cloud9/__init__.py +63 -63
- aws_cdk/aws_cloudfront/__init__.py +394 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -2
- aws_cdk/aws_cloudtrail/__init__.py +90 -11
- aws_cdk/aws_cloudwatch/__init__.py +6 -6
- aws_cdk/aws_codedeploy/__init__.py +88 -15
- aws_cdk/aws_codepipeline/__init__.py +645 -0
- aws_cdk/aws_cognito/__init__.py +13 -26
- aws_cdk/aws_config/__init__.py +315 -1
- aws_cdk/aws_connect/__init__.py +532 -37
- aws_cdk/aws_controltower/__init__.py +4 -4
- aws_cdk/aws_datasync/__init__.py +6 -4
- aws_cdk/aws_dms/__init__.py +241 -131
- aws_cdk/aws_dynamodb/__init__.py +8 -0
- aws_cdk/aws_ec2/__init__.py +1030 -45
- aws_cdk/aws_ecr/__init__.py +78 -10
- aws_cdk/aws_ecs/__init__.py +210 -2
- aws_cdk/aws_ecs_patterns/__init__.py +77 -62
- aws_cdk/aws_eks/__init__.py +8 -1
- aws_cdk/aws_elasticache/__init__.py +136 -10
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +10 -13
- aws_cdk/aws_emr/__init__.py +234 -17
- aws_cdk/aws_eventschemas/__init__.py +15 -13
- aws_cdk/aws_fis/__init__.py +33 -13
- aws_cdk/aws_gamelift/__init__.py +47 -0
- aws_cdk/aws_imagebuilder/__init__.py +922 -84
- aws_cdk/aws_internetmonitor/__init__.py +12 -10
- aws_cdk/aws_iot/__init__.py +26 -46
- aws_cdk/aws_iottwinmaker/__init__.py +36 -34
- aws_cdk/aws_lambda/__init__.py +19 -15
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -2
- aws_cdk/aws_logs/__init__.py +6 -6
- aws_cdk/aws_opensearchservice/__init__.py +5 -3
- aws_cdk/aws_organizations/__init__.py +3 -3
- aws_cdk/aws_osis/__init__.py +17 -13
- aws_cdk/aws_rds/__init__.py +6 -0
- aws_cdk/aws_s3/__init__.py +4 -2
- aws_cdk/aws_s3outposts/__init__.py +8 -8
- aws_cdk/aws_sagemaker/__init__.py +17 -94
- aws_cdk/aws_secretsmanager/__init__.py +9 -7
- aws_cdk/aws_securityhub/__init__.py +18 -0
- aws_cdk/aws_servicecatalogappregistry/__init__.py +31 -0
- aws_cdk/aws_ses/__init__.py +58 -11
- aws_cdk/aws_sns/__init__.py +309 -10
- aws_cdk/aws_ssm/__init__.py +3 -5
- aws_cdk/aws_stepfunctions/__init__.py +335 -19
- aws_cdk/aws_stepfunctions_tasks/__init__.py +388 -38
- aws_cdk/aws_transfer/__init__.py +37 -10
- aws_cdk/custom_resources/__init__.py +443 -1
- aws_cdk/triggers/__init__.py +5 -2
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/RECORD +66 -65
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/top_level.txt +0 -0
aws_cdk/aws_cloud9/__init__.py
CHANGED
|
@@ -77,13 +77,13 @@ class CfnEnvironmentEC2(
|
|
|
77
77
|
from aws_cdk import aws_cloud9 as cloud9
|
|
78
78
|
|
|
79
79
|
cfn_environment_eC2 = cloud9.CfnEnvironmentEC2(self, "MyCfnEnvironmentEC2",
|
|
80
|
+
image_id="imageId",
|
|
80
81
|
instance_type="instanceType",
|
|
81
82
|
|
|
82
83
|
# the properties below are optional
|
|
83
84
|
automatic_stop_time_minutes=123,
|
|
84
85
|
connection_type="connectionType",
|
|
85
86
|
description="description",
|
|
86
|
-
image_id="imageId",
|
|
87
87
|
name="name",
|
|
88
88
|
owner_arn="ownerArn",
|
|
89
89
|
repositories=[cloud9.CfnEnvironmentEC2.RepositoryProperty(
|
|
@@ -103,11 +103,11 @@ class CfnEnvironmentEC2(
|
|
|
103
103
|
scope: _constructs_77d1e7e8.Construct,
|
|
104
104
|
id: builtins.str,
|
|
105
105
|
*,
|
|
106
|
+
image_id: builtins.str,
|
|
106
107
|
instance_type: builtins.str,
|
|
107
108
|
automatic_stop_time_minutes: typing.Optional[jsii.Number] = None,
|
|
108
109
|
connection_type: typing.Optional[builtins.str] = None,
|
|
109
110
|
description: typing.Optional[builtins.str] = None,
|
|
110
|
-
image_id: typing.Optional[builtins.str] = None,
|
|
111
111
|
name: typing.Optional[builtins.str] = None,
|
|
112
112
|
owner_arn: typing.Optional[builtins.str] = None,
|
|
113
113
|
repositories: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnEnvironmentEC2.RepositoryProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
@@ -117,11 +117,11 @@ class CfnEnvironmentEC2(
|
|
|
117
117
|
'''
|
|
118
118
|
:param scope: Scope in which this resource is defined.
|
|
119
119
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
120
|
+
:param image_id: The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path. From December 04, 2023, you will be required to include the ``imageId`` parameter for the ``CreateEnvironmentEC2`` action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users. From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux 2 as the new AMI to create your environment as it is fully supported. This change will only affect direct API consumers, and not AWS Cloud9 console users. Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *AMI aliases* - Amazon Linux (default): ``amazonlinux-1-x86_64`` - Amazon Linux 2: ``amazonlinux-2-x86_64`` - Ubuntu 18.04: ``ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``ubuntu-22.04-x86_64`` *SSM paths* - Amazon Linux (default): ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`` - Amazon Linux 2: ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`` - Ubuntu 18.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64``
|
|
120
121
|
:param instance_type: The type of instance to connect to the environment (for example, ``t2.micro`` ).
|
|
121
122
|
:param automatic_stop_time_minutes: The number of minutes until the running instance is shut down after the environment was last used.
|
|
122
123
|
:param connection_type: The connection type used for connecting to an Amazon EC2 environment. Valid values are ``CONNECT_SSH`` (default) and ``CONNECT_SSM`` (connected through AWS Systems Manager ).
|
|
123
124
|
:param description: The description of the environment to create.
|
|
124
|
-
:param image_id: The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path. From December 04, 2023, you will be required to include the ``imageId`` parameter for the ``CreateEnvironmentEC2`` action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users. From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux 2 as the new AMI to create your environment as it is fully supported. This change will only affect direct API consumers, and not AWS Cloud9 console users. Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *AMI aliases* - Amazon Linux (default): ``amazonlinux-1-x86_64`` - Amazon Linux 2: ``amazonlinux-2-x86_64`` - Ubuntu 18.04: ``ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``ubuntu-22.04-x86_64`` *SSM paths* - Amazon Linux (default): ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`` - Amazon Linux 2: ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`` - Ubuntu 18.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64``
|
|
125
125
|
:param name: The name of the environment.
|
|
126
126
|
:param owner_arn: The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS Identity and Access Management principal. If this value is not specified, the ARN defaults to this environment's creator.
|
|
127
127
|
:param repositories: Any AWS CodeCommit source code repositories to be cloned into the development environment.
|
|
@@ -133,11 +133,11 @@ class CfnEnvironmentEC2(
|
|
|
133
133
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
134
134
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
135
135
|
props = CfnEnvironmentEC2Props(
|
|
136
|
+
image_id=image_id,
|
|
136
137
|
instance_type=instance_type,
|
|
137
138
|
automatic_stop_time_minutes=automatic_stop_time_minutes,
|
|
138
139
|
connection_type=connection_type,
|
|
139
140
|
description=description,
|
|
140
|
-
image_id=image_id,
|
|
141
141
|
name=name,
|
|
142
142
|
owner_arn=owner_arn,
|
|
143
143
|
repositories=repositories,
|
|
@@ -214,6 +214,19 @@ class CfnEnvironmentEC2(
|
|
|
214
214
|
'''Tag Manager which manages the tags for this resource.'''
|
|
215
215
|
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "tags"))
|
|
216
216
|
|
|
217
|
+
@builtins.property
|
|
218
|
+
@jsii.member(jsii_name="imageId")
|
|
219
|
+
def image_id(self) -> builtins.str:
|
|
220
|
+
'''The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.'''
|
|
221
|
+
return typing.cast(builtins.str, jsii.get(self, "imageId"))
|
|
222
|
+
|
|
223
|
+
@image_id.setter
|
|
224
|
+
def image_id(self, value: builtins.str) -> None:
|
|
225
|
+
if __debug__:
|
|
226
|
+
type_hints = typing.get_type_hints(_typecheckingstub__adbcdde537aa596dafe80b35956e811f7c14d4ec15e787a1f841bf8b0759fd7b)
|
|
227
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
228
|
+
jsii.set(self, "imageId", value)
|
|
229
|
+
|
|
217
230
|
@builtins.property
|
|
218
231
|
@jsii.member(jsii_name="instanceType")
|
|
219
232
|
def instance_type(self) -> builtins.str:
|
|
@@ -266,19 +279,6 @@ class CfnEnvironmentEC2(
|
|
|
266
279
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
267
280
|
jsii.set(self, "description", value)
|
|
268
281
|
|
|
269
|
-
@builtins.property
|
|
270
|
-
@jsii.member(jsii_name="imageId")
|
|
271
|
-
def image_id(self) -> typing.Optional[builtins.str]:
|
|
272
|
-
'''The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.'''
|
|
273
|
-
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "imageId"))
|
|
274
|
-
|
|
275
|
-
@image_id.setter
|
|
276
|
-
def image_id(self, value: typing.Optional[builtins.str]) -> None:
|
|
277
|
-
if __debug__:
|
|
278
|
-
type_hints = typing.get_type_hints(_typecheckingstub__adbcdde537aa596dafe80b35956e811f7c14d4ec15e787a1f841bf8b0759fd7b)
|
|
279
|
-
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
280
|
-
jsii.set(self, "imageId", value)
|
|
281
|
-
|
|
282
282
|
@builtins.property
|
|
283
283
|
@jsii.member(jsii_name="name")
|
|
284
284
|
def name(self) -> typing.Optional[builtins.str]:
|
|
@@ -432,11 +432,11 @@ class CfnEnvironmentEC2(
|
|
|
432
432
|
jsii_type="aws-cdk-lib.aws_cloud9.CfnEnvironmentEC2Props",
|
|
433
433
|
jsii_struct_bases=[],
|
|
434
434
|
name_mapping={
|
|
435
|
+
"image_id": "imageId",
|
|
435
436
|
"instance_type": "instanceType",
|
|
436
437
|
"automatic_stop_time_minutes": "automaticStopTimeMinutes",
|
|
437
438
|
"connection_type": "connectionType",
|
|
438
439
|
"description": "description",
|
|
439
|
-
"image_id": "imageId",
|
|
440
440
|
"name": "name",
|
|
441
441
|
"owner_arn": "ownerArn",
|
|
442
442
|
"repositories": "repositories",
|
|
@@ -448,11 +448,11 @@ class CfnEnvironmentEC2Props:
|
|
|
448
448
|
def __init__(
|
|
449
449
|
self,
|
|
450
450
|
*,
|
|
451
|
+
image_id: builtins.str,
|
|
451
452
|
instance_type: builtins.str,
|
|
452
453
|
automatic_stop_time_minutes: typing.Optional[jsii.Number] = None,
|
|
453
454
|
connection_type: typing.Optional[builtins.str] = None,
|
|
454
455
|
description: typing.Optional[builtins.str] = None,
|
|
455
|
-
image_id: typing.Optional[builtins.str] = None,
|
|
456
456
|
name: typing.Optional[builtins.str] = None,
|
|
457
457
|
owner_arn: typing.Optional[builtins.str] = None,
|
|
458
458
|
repositories: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEnvironmentEC2.RepositoryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
@@ -461,11 +461,11 @@ class CfnEnvironmentEC2Props:
|
|
|
461
461
|
) -> None:
|
|
462
462
|
'''Properties for defining a ``CfnEnvironmentEC2``.
|
|
463
463
|
|
|
464
|
+
:param image_id: The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path. From December 04, 2023, you will be required to include the ``imageId`` parameter for the ``CreateEnvironmentEC2`` action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users. From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux 2 as the new AMI to create your environment as it is fully supported. This change will only affect direct API consumers, and not AWS Cloud9 console users. Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *AMI aliases* - Amazon Linux (default): ``amazonlinux-1-x86_64`` - Amazon Linux 2: ``amazonlinux-2-x86_64`` - Ubuntu 18.04: ``ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``ubuntu-22.04-x86_64`` *SSM paths* - Amazon Linux (default): ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`` - Amazon Linux 2: ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`` - Ubuntu 18.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64``
|
|
464
465
|
:param instance_type: The type of instance to connect to the environment (for example, ``t2.micro`` ).
|
|
465
466
|
:param automatic_stop_time_minutes: The number of minutes until the running instance is shut down after the environment was last used.
|
|
466
467
|
:param connection_type: The connection type used for connecting to an Amazon EC2 environment. Valid values are ``CONNECT_SSH`` (default) and ``CONNECT_SSM`` (connected through AWS Systems Manager ).
|
|
467
468
|
:param description: The description of the environment to create.
|
|
468
|
-
:param image_id: The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance. To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path. From December 04, 2023, you will be required to include the ``imageId`` parameter for the ``CreateEnvironmentEC2`` action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users. From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux 2 as the new AMI to create your environment as it is fully supported. This change will only affect direct API consumers, and not AWS Cloud9 console users. Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04. *AMI aliases* - Amazon Linux (default): ``amazonlinux-1-x86_64`` - Amazon Linux 2: ``amazonlinux-2-x86_64`` - Ubuntu 18.04: ``ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``ubuntu-22.04-x86_64`` *SSM paths* - Amazon Linux (default): ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64`` - Amazon Linux 2: ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64`` - Ubuntu 18.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64`` - Ubuntu 22.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64``
|
|
469
469
|
:param name: The name of the environment.
|
|
470
470
|
:param owner_arn: The Amazon Resource Name (ARN) of the environment owner. This ARN can be the ARN of any AWS Identity and Access Management principal. If this value is not specified, the ARN defaults to this environment's creator.
|
|
471
471
|
:param repositories: Any AWS CodeCommit source code repositories to be cloned into the development environment.
|
|
@@ -482,13 +482,13 @@ class CfnEnvironmentEC2Props:
|
|
|
482
482
|
from aws_cdk import aws_cloud9 as cloud9
|
|
483
483
|
|
|
484
484
|
cfn_environment_eC2_props = cloud9.CfnEnvironmentEC2Props(
|
|
485
|
+
image_id="imageId",
|
|
485
486
|
instance_type="instanceType",
|
|
486
487
|
|
|
487
488
|
# the properties below are optional
|
|
488
489
|
automatic_stop_time_minutes=123,
|
|
489
490
|
connection_type="connectionType",
|
|
490
491
|
description="description",
|
|
491
|
-
image_id="imageId",
|
|
492
492
|
name="name",
|
|
493
493
|
owner_arn="ownerArn",
|
|
494
494
|
repositories=[cloud9.CfnEnvironmentEC2.RepositoryProperty(
|
|
@@ -504,17 +504,18 @@ class CfnEnvironmentEC2Props:
|
|
|
504
504
|
'''
|
|
505
505
|
if __debug__:
|
|
506
506
|
type_hints = typing.get_type_hints(_typecheckingstub__403dfb9cb8cd675259c0bc90a981409f45ae842c0991cd0ff175e88f5bd60fca)
|
|
507
|
+
check_type(argname="argument image_id", value=image_id, expected_type=type_hints["image_id"])
|
|
507
508
|
check_type(argname="argument instance_type", value=instance_type, expected_type=type_hints["instance_type"])
|
|
508
509
|
check_type(argname="argument automatic_stop_time_minutes", value=automatic_stop_time_minutes, expected_type=type_hints["automatic_stop_time_minutes"])
|
|
509
510
|
check_type(argname="argument connection_type", value=connection_type, expected_type=type_hints["connection_type"])
|
|
510
511
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
511
|
-
check_type(argname="argument image_id", value=image_id, expected_type=type_hints["image_id"])
|
|
512
512
|
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
513
513
|
check_type(argname="argument owner_arn", value=owner_arn, expected_type=type_hints["owner_arn"])
|
|
514
514
|
check_type(argname="argument repositories", value=repositories, expected_type=type_hints["repositories"])
|
|
515
515
|
check_type(argname="argument subnet_id", value=subnet_id, expected_type=type_hints["subnet_id"])
|
|
516
516
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
517
517
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
518
|
+
"image_id": image_id,
|
|
518
519
|
"instance_type": instance_type,
|
|
519
520
|
}
|
|
520
521
|
if automatic_stop_time_minutes is not None:
|
|
@@ -523,8 +524,6 @@ class CfnEnvironmentEC2Props:
|
|
|
523
524
|
self._values["connection_type"] = connection_type
|
|
524
525
|
if description is not None:
|
|
525
526
|
self._values["description"] = description
|
|
526
|
-
if image_id is not None:
|
|
527
|
-
self._values["image_id"] = image_id
|
|
528
527
|
if name is not None:
|
|
529
528
|
self._values["name"] = name
|
|
530
529
|
if owner_arn is not None:
|
|
@@ -536,6 +535,38 @@ class CfnEnvironmentEC2Props:
|
|
|
536
535
|
if tags is not None:
|
|
537
536
|
self._values["tags"] = tags
|
|
538
537
|
|
|
538
|
+
@builtins.property
|
|
539
|
+
def image_id(self) -> builtins.str:
|
|
540
|
+
'''The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
|
|
541
|
+
|
|
542
|
+
To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path.
|
|
543
|
+
|
|
544
|
+
From December 04, 2023, you will be required to include the ``imageId`` parameter for the ``CreateEnvironmentEC2`` action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users.
|
|
545
|
+
|
|
546
|
+
From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux 2 as the new AMI to create your environment as it is fully supported. This change will only affect direct API consumers, and not AWS Cloud9 console users.
|
|
547
|
+
|
|
548
|
+
Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.
|
|
549
|
+
|
|
550
|
+
*AMI aliases*
|
|
551
|
+
|
|
552
|
+
- Amazon Linux (default): ``amazonlinux-1-x86_64``
|
|
553
|
+
- Amazon Linux 2: ``amazonlinux-2-x86_64``
|
|
554
|
+
- Ubuntu 18.04: ``ubuntu-18.04-x86_64``
|
|
555
|
+
- Ubuntu 22.04: ``ubuntu-22.04-x86_64``
|
|
556
|
+
|
|
557
|
+
*SSM paths*
|
|
558
|
+
|
|
559
|
+
- Amazon Linux (default): ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64``
|
|
560
|
+
- Amazon Linux 2: ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64``
|
|
561
|
+
- Ubuntu 18.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64``
|
|
562
|
+
- Ubuntu 22.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64``
|
|
563
|
+
|
|
564
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-imageid
|
|
565
|
+
'''
|
|
566
|
+
result = self._values.get("image_id")
|
|
567
|
+
assert result is not None, "Required property 'image_id' is missing"
|
|
568
|
+
return typing.cast(builtins.str, result)
|
|
569
|
+
|
|
539
570
|
@builtins.property
|
|
540
571
|
def instance_type(self) -> builtins.str:
|
|
541
572
|
'''The type of instance to connect to the environment (for example, ``t2.micro`` ).
|
|
@@ -575,37 +606,6 @@ class CfnEnvironmentEC2Props:
|
|
|
575
606
|
result = self._values.get("description")
|
|
576
607
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
577
608
|
|
|
578
|
-
@builtins.property
|
|
579
|
-
def image_id(self) -> typing.Optional[builtins.str]:
|
|
580
|
-
'''The identifier for the Amazon Machine Image (AMI) that's used to create the EC2 instance.
|
|
581
|
-
|
|
582
|
-
To choose an AMI for the instance, you must specify a valid AMI alias or a valid AWS Systems Manager path.
|
|
583
|
-
|
|
584
|
-
From December 04, 2023, you will be required to include the ``imageId`` parameter for the ``CreateEnvironmentEC2`` action. This change will be reflected across all direct methods of communicating with the API, such as AWS SDK, AWS CLI and AWS CloudFormation. This change will only affect direct API consumers, and not AWS Cloud9 console users.
|
|
585
|
-
|
|
586
|
-
From January 22, 2024, Amazon Linux (AL1) will be removed from the list of available image IDs for Cloud9. This is necessary as AL1 will reach the end of maintenance support in December 2023, and as a result will no longer receive security updates. We recommend using Amazon Linux 2 as the new AMI to create your environment as it is fully supported. This change will only affect direct API consumers, and not AWS Cloud9 console users.
|
|
587
|
-
|
|
588
|
-
Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.
|
|
589
|
-
|
|
590
|
-
*AMI aliases*
|
|
591
|
-
|
|
592
|
-
- Amazon Linux (default): ``amazonlinux-1-x86_64``
|
|
593
|
-
- Amazon Linux 2: ``amazonlinux-2-x86_64``
|
|
594
|
-
- Ubuntu 18.04: ``ubuntu-18.04-x86_64``
|
|
595
|
-
- Ubuntu 22.04: ``ubuntu-22.04-x86_64``
|
|
596
|
-
|
|
597
|
-
*SSM paths*
|
|
598
|
-
|
|
599
|
-
- Amazon Linux (default): ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-1-x86_64``
|
|
600
|
-
- Amazon Linux 2: ``resolve:ssm:/aws/service/cloud9/amis/amazonlinux-2-x86_64``
|
|
601
|
-
- Ubuntu 18.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-18.04-x86_64``
|
|
602
|
-
- Ubuntu 22.04: ``resolve:ssm:/aws/service/cloud9/amis/ubuntu-22.04-x86_64``
|
|
603
|
-
|
|
604
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloud9-environmentec2.html#cfn-cloud9-environmentec2-imageid
|
|
605
|
-
'''
|
|
606
|
-
result = self._values.get("image_id")
|
|
607
|
-
return typing.cast(typing.Optional[builtins.str], result)
|
|
608
|
-
|
|
609
609
|
@builtins.property
|
|
610
610
|
def name(self) -> typing.Optional[builtins.str]:
|
|
611
611
|
'''The name of the environment.
|
|
@@ -678,11 +678,11 @@ def _typecheckingstub__f20e60d53a3580dabcd8f88a1195a515fcbefe92a9ea846ab6ed1b1bc
|
|
|
678
678
|
scope: _constructs_77d1e7e8.Construct,
|
|
679
679
|
id: builtins.str,
|
|
680
680
|
*,
|
|
681
|
+
image_id: builtins.str,
|
|
681
682
|
instance_type: builtins.str,
|
|
682
683
|
automatic_stop_time_minutes: typing.Optional[jsii.Number] = None,
|
|
683
684
|
connection_type: typing.Optional[builtins.str] = None,
|
|
684
685
|
description: typing.Optional[builtins.str] = None,
|
|
685
|
-
image_id: typing.Optional[builtins.str] = None,
|
|
686
686
|
name: typing.Optional[builtins.str] = None,
|
|
687
687
|
owner_arn: typing.Optional[builtins.str] = None,
|
|
688
688
|
repositories: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEnvironmentEC2.RepositoryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
@@ -704,6 +704,12 @@ def _typecheckingstub__63d75ed9eee88e5c262f2f922913144295062e6e1adb8a8b0bfbf3a91
|
|
|
704
704
|
"""Type checking stubs"""
|
|
705
705
|
pass
|
|
706
706
|
|
|
707
|
+
def _typecheckingstub__adbcdde537aa596dafe80b35956e811f7c14d4ec15e787a1f841bf8b0759fd7b(
|
|
708
|
+
value: builtins.str,
|
|
709
|
+
) -> None:
|
|
710
|
+
"""Type checking stubs"""
|
|
711
|
+
pass
|
|
712
|
+
|
|
707
713
|
def _typecheckingstub__295c6c669e47da477e140f2fa3b417bf9d56edb0457b5c81c67e548bac5e583b(
|
|
708
714
|
value: builtins.str,
|
|
709
715
|
) -> None:
|
|
@@ -728,12 +734,6 @@ def _typecheckingstub__ccf8f26efd4e6d0e3ba3ed8bbaa9a66f737394e715521e96209b513a2
|
|
|
728
734
|
"""Type checking stubs"""
|
|
729
735
|
pass
|
|
730
736
|
|
|
731
|
-
def _typecheckingstub__adbcdde537aa596dafe80b35956e811f7c14d4ec15e787a1f841bf8b0759fd7b(
|
|
732
|
-
value: typing.Optional[builtins.str],
|
|
733
|
-
) -> None:
|
|
734
|
-
"""Type checking stubs"""
|
|
735
|
-
pass
|
|
736
|
-
|
|
737
737
|
def _typecheckingstub__76adb15f6285c07cc9dbfcdd9c2db131f58b9629fa95eb0dfba0864178a1e3a0(
|
|
738
738
|
value: typing.Optional[builtins.str],
|
|
739
739
|
) -> None:
|
|
@@ -774,11 +774,11 @@ def _typecheckingstub__1f170b124bae07e704d39551c1b3c66810f3a968e777ec40f4c806bb7
|
|
|
774
774
|
|
|
775
775
|
def _typecheckingstub__403dfb9cb8cd675259c0bc90a981409f45ae842c0991cd0ff175e88f5bd60fca(
|
|
776
776
|
*,
|
|
777
|
+
image_id: builtins.str,
|
|
777
778
|
instance_type: builtins.str,
|
|
778
779
|
automatic_stop_time_minutes: typing.Optional[jsii.Number] = None,
|
|
779
780
|
connection_type: typing.Optional[builtins.str] = None,
|
|
780
781
|
description: typing.Optional[builtins.str] = None,
|
|
781
|
-
image_id: typing.Optional[builtins.str] = None,
|
|
782
782
|
name: typing.Optional[builtins.str] = None,
|
|
783
783
|
owner_arn: typing.Optional[builtins.str] = None,
|
|
784
784
|
repositories: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnEnvironmentEC2.RepositoryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|