aws-cdk-lib 2.156.0__py3-none-any.whl → 2.158.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/__init__.py +42 -23
- aws_cdk/_jsii/__init__.py +17 -2
- aws_cdk/_jsii/{aws-cdk-lib@2.156.0.jsii.tgz → aws-cdk-lib@2.158.0.jsii.tgz} +0 -0
- aws_cdk/alexa_ask/__init__.py +16 -1
- aws_cdk/assertions/__init__.py +16 -1
- aws_cdk/aws_accessanalyzer/__init__.py +16 -1
- aws_cdk/aws_acmpca/__init__.py +26 -76
- aws_cdk/aws_amazonmq/__init__.py +16 -1
- aws_cdk/aws_amplify/__init__.py +122 -1
- aws_cdk/aws_amplifyuibuilder/__init__.py +16 -1
- aws_cdk/aws_apigateway/__init__.py +16 -1
- aws_cdk/aws_apigatewayv2/__init__.py +97 -14
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +16 -1
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +16 -1
- aws_cdk/aws_appconfig/__init__.py +16 -1
- aws_cdk/aws_appflow/__init__.py +16 -1
- aws_cdk/aws_appintegrations/__init__.py +30 -15
- aws_cdk/aws_applicationautoscaling/__init__.py +16 -1
- aws_cdk/aws_applicationinsights/__init__.py +16 -1
- aws_cdk/aws_applicationsignals/__init__.py +766 -2
- aws_cdk/aws_appmesh/__init__.py +16 -1
- aws_cdk/aws_apprunner/__init__.py +16 -1
- aws_cdk/aws_appstream/__init__.py +16 -1
- aws_cdk/aws_appsync/__init__.py +66 -19
- aws_cdk/aws_apptest/__init__.py +16 -1
- aws_cdk/aws_aps/__init__.py +16 -1
- aws_cdk/aws_arczonalshift/__init__.py +16 -1
- aws_cdk/aws_athena/__init__.py +16 -1
- aws_cdk/aws_auditmanager/__init__.py +16 -1
- aws_cdk/aws_autoscaling/__init__.py +22 -7
- aws_cdk/aws_autoscaling_common/__init__.py +16 -1
- aws_cdk/aws_autoscaling_hooktargets/__init__.py +16 -1
- aws_cdk/aws_autoscalingplans/__init__.py +16 -1
- aws_cdk/aws_b2bi/__init__.py +16 -1
- aws_cdk/aws_backup/__init__.py +55 -1
- aws_cdk/aws_backupgateway/__init__.py +16 -1
- aws_cdk/aws_batch/__init__.py +57 -1
- aws_cdk/aws_bcmdataexports/__init__.py +16 -1
- aws_cdk/aws_bedrock/__init__.py +1529 -95
- aws_cdk/aws_billingconductor/__init__.py +16 -1
- aws_cdk/aws_budgets/__init__.py +16 -1
- aws_cdk/aws_cassandra/__init__.py +16 -1
- aws_cdk/aws_ce/__init__.py +16 -1
- aws_cdk/aws_certificatemanager/__init__.py +16 -1
- aws_cdk/aws_chatbot/__init__.py +22 -7
- aws_cdk/aws_cleanrooms/__init__.py +16 -1
- aws_cdk/aws_cleanroomsml/__init__.py +16 -1
- aws_cdk/aws_cloud9/__init__.py +16 -1
- aws_cdk/aws_cloudformation/__init__.py +38 -23
- aws_cdk/aws_cloudfront/__init__.py +16 -1
- aws_cdk/aws_cloudfront/experimental/__init__.py +46 -4
- aws_cdk/aws_cloudfront_origins/__init__.py +16 -1
- aws_cdk/aws_cloudtrail/__init__.py +16 -1
- aws_cdk/aws_cloudwatch/__init__.py +16 -1
- aws_cdk/aws_cloudwatch_actions/__init__.py +16 -1
- aws_cdk/aws_codeartifact/__init__.py +16 -1
- aws_cdk/aws_codebuild/__init__.py +16 -1
- aws_cdk/aws_codecommit/__init__.py +16 -1
- aws_cdk/aws_codeconnections/__init__.py +16 -1
- aws_cdk/aws_codedeploy/__init__.py +16 -1
- aws_cdk/aws_codeguruprofiler/__init__.py +16 -1
- aws_cdk/aws_codegurureviewer/__init__.py +16 -1
- aws_cdk/aws_codepipeline/__init__.py +16 -1
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -1
- aws_cdk/aws_codestar/__init__.py +16 -1
- aws_cdk/aws_codestarconnections/__init__.py +16 -1
- aws_cdk/aws_codestarnotifications/__init__.py +16 -1
- aws_cdk/aws_cognito/__init__.py +16 -1
- aws_cdk/aws_comprehend/__init__.py +16 -1
- aws_cdk/aws_config/__init__.py +16 -1
- aws_cdk/aws_connect/__init__.py +16 -1
- aws_cdk/aws_connectcampaigns/__init__.py +16 -1
- aws_cdk/aws_controltower/__init__.py +16 -1
- aws_cdk/aws_cur/__init__.py +16 -1
- aws_cdk/aws_customerprofiles/__init__.py +16 -1
- aws_cdk/aws_databrew/__init__.py +16 -1
- aws_cdk/aws_datapipeline/__init__.py +16 -1
- aws_cdk/aws_datasync/__init__.py +56 -30
- aws_cdk/aws_datazone/__init__.py +16 -1
- aws_cdk/aws_dax/__init__.py +16 -1
- aws_cdk/aws_deadline/__init__.py +16 -1
- aws_cdk/aws_detective/__init__.py +16 -1
- aws_cdk/aws_devicefarm/__init__.py +16 -1
- aws_cdk/aws_devopsguru/__init__.py +16 -1
- aws_cdk/aws_directoryservice/__init__.py +16 -1
- aws_cdk/aws_dlm/__init__.py +16 -1
- aws_cdk/aws_dms/__init__.py +16 -1
- aws_cdk/aws_docdb/__init__.py +16 -1
- aws_cdk/aws_docdbelastic/__init__.py +16 -1
- aws_cdk/aws_dynamodb/__init__.py +16 -1
- aws_cdk/aws_ec2/__init__.py +389 -50
- aws_cdk/aws_ecr/__init__.py +16 -1
- aws_cdk/aws_ecr_assets/__init__.py +16 -1
- aws_cdk/aws_ecs/__init__.py +269 -88
- aws_cdk/aws_ecs_patterns/__init__.py +16 -1
- aws_cdk/aws_efs/__init__.py +16 -1
- aws_cdk/aws_eks/__init__.py +16 -1
- aws_cdk/aws_elasticache/__init__.py +16 -1
- aws_cdk/aws_elasticbeanstalk/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +20 -5
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +16 -1
- aws_cdk/aws_elasticloadbalancingv2_targets/__init__.py +16 -1
- aws_cdk/aws_elasticsearch/__init__.py +16 -1
- aws_cdk/aws_emr/__init__.py +16 -1
- aws_cdk/aws_emrcontainers/__init__.py +16 -1
- aws_cdk/aws_emrserverless/__init__.py +16 -1
- aws_cdk/aws_entityresolution/__init__.py +133 -5
- aws_cdk/aws_events/__init__.py +16 -1
- aws_cdk/aws_events_targets/__init__.py +16 -1
- aws_cdk/aws_eventschemas/__init__.py +16 -1
- aws_cdk/aws_evidently/__init__.py +16 -1
- aws_cdk/aws_finspace/__init__.py +16 -1
- aws_cdk/aws_fis/__init__.py +16 -1
- aws_cdk/aws_fms/__init__.py +16 -1
- aws_cdk/aws_forecast/__init__.py +16 -1
- aws_cdk/aws_frauddetector/__init__.py +16 -1
- aws_cdk/aws_fsx/__init__.py +16 -1
- aws_cdk/aws_gamelift/__init__.py +16 -1
- aws_cdk/aws_globalaccelerator/__init__.py +16 -1
- aws_cdk/aws_globalaccelerator_endpoints/__init__.py +16 -1
- aws_cdk/aws_glue/__init__.py +16 -9
- aws_cdk/aws_grafana/__init__.py +16 -1
- aws_cdk/aws_greengrass/__init__.py +16 -1
- aws_cdk/aws_greengrassv2/__init__.py +16 -1
- aws_cdk/aws_groundstation/__init__.py +43 -17
- aws_cdk/aws_guardduty/__init__.py +42 -15
- aws_cdk/aws_healthimaging/__init__.py +16 -1
- aws_cdk/aws_healthlake/__init__.py +16 -1
- aws_cdk/aws_iam/__init__.py +16 -1
- aws_cdk/aws_identitystore/__init__.py +16 -1
- aws_cdk/aws_imagebuilder/__init__.py +16 -1
- aws_cdk/aws_inspector/__init__.py +16 -1
- aws_cdk/aws_inspectorv2/__init__.py +16 -1
- aws_cdk/aws_internetmonitor/__init__.py +16 -1
- aws_cdk/aws_iot/__init__.py +16 -1
- aws_cdk/aws_iot1click/__init__.py +16 -1
- aws_cdk/aws_iotanalytics/__init__.py +16 -1
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -1
- aws_cdk/aws_iotevents/__init__.py +16 -1
- aws_cdk/aws_iotfleethub/__init__.py +16 -1
- aws_cdk/aws_iotfleetwise/__init__.py +124 -1
- aws_cdk/aws_iotsitewise/__init__.py +16 -1
- aws_cdk/aws_iotthingsgraph/__init__.py +16 -1
- aws_cdk/aws_iottwinmaker/__init__.py +16 -1
- aws_cdk/aws_iotwireless/__init__.py +16 -1
- aws_cdk/aws_ivs/__init__.py +16 -1
- aws_cdk/aws_ivschat/__init__.py +16 -1
- aws_cdk/aws_kafkaconnect/__init__.py +16 -1
- aws_cdk/aws_kendra/__init__.py +16 -1
- aws_cdk/aws_kendraranking/__init__.py +16 -1
- aws_cdk/aws_kinesis/__init__.py +16 -1
- aws_cdk/aws_kinesisanalytics/__init__.py +16 -1
- aws_cdk/aws_kinesisanalyticsv2/__init__.py +16 -1
- aws_cdk/aws_kinesisfirehose/__init__.py +16 -1
- aws_cdk/aws_kinesisvideo/__init__.py +16 -1
- aws_cdk/aws_kms/__init__.py +16 -1
- aws_cdk/aws_lakeformation/__init__.py +16 -1
- aws_cdk/aws_lambda/__init__.py +163 -18
- aws_cdk/aws_lambda_destinations/__init__.py +16 -1
- aws_cdk/aws_lambda_event_sources/__init__.py +16 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +46 -4
- aws_cdk/aws_launchwizard/__init__.py +16 -1
- aws_cdk/aws_lex/__init__.py +16 -1
- aws_cdk/aws_licensemanager/__init__.py +16 -1
- aws_cdk/aws_lightsail/__init__.py +16 -1
- aws_cdk/aws_location/__init__.py +16 -1
- aws_cdk/aws_logs/__init__.py +16 -1
- aws_cdk/aws_logs_destinations/__init__.py +16 -1
- aws_cdk/aws_lookoutequipment/__init__.py +16 -1
- aws_cdk/aws_lookoutmetrics/__init__.py +16 -1
- aws_cdk/aws_lookoutvision/__init__.py +16 -1
- aws_cdk/aws_m2/__init__.py +16 -1
- aws_cdk/aws_macie/__init__.py +20 -5
- aws_cdk/aws_managedblockchain/__init__.py +16 -1
- aws_cdk/aws_mediaconnect/__init__.py +16 -1
- aws_cdk/aws_mediaconvert/__init__.py +16 -1
- aws_cdk/aws_medialive/__init__.py +364 -1
- aws_cdk/aws_mediapackage/__init__.py +16 -1
- aws_cdk/aws_mediapackagev2/__init__.py +54 -39
- aws_cdk/aws_mediastore/__init__.py +16 -1
- aws_cdk/aws_mediatailor/__init__.py +16 -1
- aws_cdk/aws_memorydb/__init__.py +16 -1
- aws_cdk/aws_msk/__init__.py +16 -1
- aws_cdk/aws_mwaa/__init__.py +16 -1
- aws_cdk/aws_neptune/__init__.py +30 -9
- aws_cdk/aws_neptunegraph/__init__.py +16 -1
- aws_cdk/aws_networkfirewall/__init__.py +16 -1
- aws_cdk/aws_networkmanager/__init__.py +16 -1
- aws_cdk/aws_nimblestudio/__init__.py +16 -1
- aws_cdk/aws_oam/__init__.py +16 -1
- aws_cdk/aws_omics/__init__.py +16 -1
- aws_cdk/aws_opensearchserverless/__init__.py +16 -1
- aws_cdk/aws_opensearchservice/__init__.py +210 -1
- aws_cdk/aws_opsworks/__init__.py +16 -1
- aws_cdk/aws_opsworkscm/__init__.py +16 -1
- aws_cdk/aws_organizations/__init__.py +16 -1
- aws_cdk/aws_osis/__init__.py +16 -1
- aws_cdk/aws_panorama/__init__.py +16 -1
- aws_cdk/aws_paymentcryptography/__init__.py +16 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +16 -1
- aws_cdk/aws_pcaconnectorscep/__init__.py +899 -0
- aws_cdk/aws_personalize/__init__.py +18 -3
- aws_cdk/aws_pinpoint/__init__.py +16 -1
- aws_cdk/aws_pinpointemail/__init__.py +16 -1
- aws_cdk/aws_pipes/__init__.py +38 -23
- aws_cdk/aws_proton/__init__.py +16 -1
- aws_cdk/aws_qbusiness/__init__.py +691 -7
- aws_cdk/aws_qldb/__init__.py +16 -1
- aws_cdk/aws_quicksight/__init__.py +3301 -1
- aws_cdk/aws_ram/__init__.py +16 -1
- aws_cdk/aws_rds/__init__.py +58 -5
- aws_cdk/aws_redshift/__init__.py +16 -1
- aws_cdk/aws_redshiftserverless/__init__.py +16 -1
- aws_cdk/aws_refactorspaces/__init__.py +16 -1
- aws_cdk/aws_rekognition/__init__.py +16 -1
- aws_cdk/aws_resiliencehub/__init__.py +16 -1
- aws_cdk/aws_resourceexplorer2/__init__.py +16 -1
- aws_cdk/aws_resourcegroups/__init__.py +16 -1
- aws_cdk/aws_robomaker/__init__.py +16 -1
- aws_cdk/aws_rolesanywhere/__init__.py +16 -1
- aws_cdk/aws_route53/__init__.py +16 -1
- aws_cdk/aws_route53_patterns/__init__.py +16 -1
- aws_cdk/aws_route53_targets/__init__.py +16 -1
- aws_cdk/aws_route53profiles/__init__.py +16 -1
- aws_cdk/aws_route53recoverycontrol/__init__.py +16 -1
- aws_cdk/aws_route53recoveryreadiness/__init__.py +16 -1
- aws_cdk/aws_route53resolver/__init__.py +16 -1
- aws_cdk/aws_rum/__init__.py +16 -1
- aws_cdk/aws_s3/__init__.py +16 -1
- aws_cdk/aws_s3_assets/__init__.py +16 -1
- aws_cdk/aws_s3_deployment/__init__.py +16 -1
- aws_cdk/aws_s3_notifications/__init__.py +16 -1
- aws_cdk/aws_s3express/__init__.py +16 -1
- aws_cdk/aws_s3objectlambda/__init__.py +16 -1
- aws_cdk/aws_s3outposts/__init__.py +16 -1
- aws_cdk/aws_sagemaker/__init__.py +1183 -1
- aws_cdk/aws_sam/__init__.py +16 -1
- aws_cdk/aws_scheduler/__init__.py +16 -1
- aws_cdk/aws_sdb/__init__.py +16 -1
- aws_cdk/aws_secretsmanager/__init__.py +18 -4
- aws_cdk/aws_securityhub/__init__.py +124 -104
- aws_cdk/aws_securitylake/__init__.py +16 -1
- aws_cdk/aws_servicecatalog/__init__.py +16 -1
- aws_cdk/aws_servicecatalogappregistry/__init__.py +16 -1
- aws_cdk/aws_servicediscovery/__init__.py +16 -1
- aws_cdk/aws_ses/__init__.py +47 -1
- aws_cdk/aws_ses_actions/__init__.py +16 -1
- aws_cdk/aws_shield/__init__.py +16 -1
- aws_cdk/aws_signer/__init__.py +16 -1
- aws_cdk/aws_simspaceweaver/__init__.py +16 -1
- aws_cdk/aws_sns/__init__.py +35 -14
- aws_cdk/aws_sns_subscriptions/__init__.py +16 -1
- aws_cdk/aws_sqs/__init__.py +16 -1
- aws_cdk/aws_ssm/__init__.py +26 -7
- aws_cdk/aws_ssmcontacts/__init__.py +16 -1
- aws_cdk/aws_ssmincidents/__init__.py +16 -1
- aws_cdk/aws_ssmquicksetup/__init__.py +982 -0
- aws_cdk/aws_sso/__init__.py +16 -1
- aws_cdk/aws_stepfunctions/__init__.py +16 -1
- aws_cdk/aws_stepfunctions_tasks/__init__.py +20 -5
- aws_cdk/aws_supportapp/__init__.py +16 -1
- aws_cdk/aws_synthetics/__init__.py +16 -1
- aws_cdk/aws_systemsmanagersap/__init__.py +16 -1
- aws_cdk/aws_timestream/__init__.py +16 -1
- aws_cdk/aws_transfer/__init__.py +16 -1
- aws_cdk/aws_verifiedpermissions/__init__.py +16 -1
- aws_cdk/aws_voiceid/__init__.py +16 -1
- aws_cdk/aws_vpclattice/__init__.py +16 -1
- aws_cdk/aws_waf/__init__.py +16 -1
- aws_cdk/aws_wafregional/__init__.py +16 -1
- aws_cdk/aws_wafv2/__init__.py +16 -1
- aws_cdk/aws_wisdom/__init__.py +16 -1
- aws_cdk/aws_workspaces/__init__.py +16 -1
- aws_cdk/aws_workspacesthinclient/__init__.py +16 -1
- aws_cdk/aws_workspacesweb/__init__.py +16 -1
- aws_cdk/aws_xray/__init__.py +16 -1
- aws_cdk/cloud_assembly_schema/__init__.py +16 -1
- aws_cdk/cloudformation_include/__init__.py +16 -1
- aws_cdk/custom_resources/__init__.py +16 -1
- aws_cdk/cx_api/__init__.py +16 -1
- aws_cdk/lambda_layer_awscli/__init__.py +16 -1
- aws_cdk/lambda_layer_kubectl/__init__.py +16 -1
- aws_cdk/lambda_layer_node_proxy_agent/__init__.py +16 -1
- aws_cdk/pipelines/__init__.py +16 -1
- aws_cdk/region_info/__init__.py +16 -1
- aws_cdk/triggers/__init__.py +46 -4
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.158.0.dist-info}/METADATA +5 -5
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.158.0.dist-info}/NOTICE +27 -8
- aws_cdk_lib-2.158.0.dist-info/RECORD +294 -0
- aws_cdk_lib-2.156.0.dist-info/RECORD +0 -292
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.158.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.158.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.158.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_backup/__init__.py
CHANGED
|
@@ -273,7 +273,22 @@ import jsii
|
|
|
273
273
|
import publication
|
|
274
274
|
import typing_extensions
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
import typeguard
|
|
277
|
+
from importlib.metadata import version as _metadata_package_version
|
|
278
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
279
|
+
|
|
280
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
281
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
282
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
283
|
+
else:
|
|
284
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
285
|
+
pass
|
|
286
|
+
else:
|
|
287
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
288
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
289
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
290
|
+
else:
|
|
291
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
277
292
|
|
|
278
293
|
from .._jsii import *
|
|
279
294
|
|
|
@@ -5215,6 +5230,7 @@ class CfnRestoreTestingPlan(
|
|
|
5215
5230
|
|
|
5216
5231
|
# the properties below are optional
|
|
5217
5232
|
schedule_expression_timezone="scheduleExpressionTimezone",
|
|
5233
|
+
schedule_status="scheduleStatus",
|
|
5218
5234
|
start_window_hours=123,
|
|
5219
5235
|
tags=[CfnTag(
|
|
5220
5236
|
key="key",
|
|
@@ -5232,6 +5248,7 @@ class CfnRestoreTestingPlan(
|
|
|
5232
5248
|
restore_testing_plan_name: builtins.str,
|
|
5233
5249
|
schedule_expression: builtins.str,
|
|
5234
5250
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
5251
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
5235
5252
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
5236
5253
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5237
5254
|
) -> None:
|
|
@@ -5242,6 +5259,7 @@ class CfnRestoreTestingPlan(
|
|
|
5242
5259
|
:param restore_testing_plan_name: The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
|
|
5243
5260
|
:param schedule_expression: A CRON expression in specified timezone when a restore testing plan is executed.
|
|
5244
5261
|
:param schedule_expression_timezone: Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
|
|
5262
|
+
:param schedule_status:
|
|
5245
5263
|
:param start_window_hours: Defaults to 24 hours. A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
|
|
5246
5264
|
:param tags: Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters,numbers, spaces, and the following characters: ``+ - = . _ : /.``
|
|
5247
5265
|
'''
|
|
@@ -5254,6 +5272,7 @@ class CfnRestoreTestingPlan(
|
|
|
5254
5272
|
restore_testing_plan_name=restore_testing_plan_name,
|
|
5255
5273
|
schedule_expression=schedule_expression,
|
|
5256
5274
|
schedule_expression_timezone=schedule_expression_timezone,
|
|
5275
|
+
schedule_status=schedule_status,
|
|
5257
5276
|
start_window_hours=start_window_hours,
|
|
5258
5277
|
tags=tags,
|
|
5259
5278
|
)
|
|
@@ -5370,6 +5389,18 @@ class CfnRestoreTestingPlan(
|
|
|
5370
5389
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5371
5390
|
jsii.set(self, "scheduleExpressionTimezone", value) # pyright: ignore[reportArgumentType]
|
|
5372
5391
|
|
|
5392
|
+
@builtins.property
|
|
5393
|
+
@jsii.member(jsii_name="scheduleStatus")
|
|
5394
|
+
def schedule_status(self) -> typing.Optional[builtins.str]:
|
|
5395
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "scheduleStatus"))
|
|
5396
|
+
|
|
5397
|
+
@schedule_status.setter
|
|
5398
|
+
def schedule_status(self, value: typing.Optional[builtins.str]) -> None:
|
|
5399
|
+
if __debug__:
|
|
5400
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cb0d6c12ebe5ab30da1683fa9c5b891023ce57e88de2c038f0c84c4ba2f02868)
|
|
5401
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5402
|
+
jsii.set(self, "scheduleStatus", value) # pyright: ignore[reportArgumentType]
|
|
5403
|
+
|
|
5373
5404
|
@builtins.property
|
|
5374
5405
|
@jsii.member(jsii_name="startWindowHours")
|
|
5375
5406
|
def start_window_hours(self) -> typing.Optional[jsii.Number]:
|
|
@@ -5545,6 +5576,7 @@ class CfnRestoreTestingPlan(
|
|
|
5545
5576
|
"restore_testing_plan_name": "restoreTestingPlanName",
|
|
5546
5577
|
"schedule_expression": "scheduleExpression",
|
|
5547
5578
|
"schedule_expression_timezone": "scheduleExpressionTimezone",
|
|
5579
|
+
"schedule_status": "scheduleStatus",
|
|
5548
5580
|
"start_window_hours": "startWindowHours",
|
|
5549
5581
|
"tags": "tags",
|
|
5550
5582
|
},
|
|
@@ -5557,6 +5589,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5557
5589
|
restore_testing_plan_name: builtins.str,
|
|
5558
5590
|
schedule_expression: builtins.str,
|
|
5559
5591
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
5592
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
5560
5593
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
5561
5594
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5562
5595
|
) -> None:
|
|
@@ -5566,6 +5599,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5566
5599
|
:param restore_testing_plan_name: The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
|
|
5567
5600
|
:param schedule_expression: A CRON expression in specified timezone when a restore testing plan is executed.
|
|
5568
5601
|
:param schedule_expression_timezone: Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
|
|
5602
|
+
:param schedule_status:
|
|
5569
5603
|
:param start_window_hours: Defaults to 24 hours. A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
|
|
5570
5604
|
:param tags: Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters,numbers, spaces, and the following characters: ``+ - = . _ : /.``
|
|
5571
5605
|
|
|
@@ -5593,6 +5627,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5593
5627
|
|
|
5594
5628
|
# the properties below are optional
|
|
5595
5629
|
schedule_expression_timezone="scheduleExpressionTimezone",
|
|
5630
|
+
schedule_status="scheduleStatus",
|
|
5596
5631
|
start_window_hours=123,
|
|
5597
5632
|
tags=[CfnTag(
|
|
5598
5633
|
key="key",
|
|
@@ -5606,6 +5641,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5606
5641
|
check_type(argname="argument restore_testing_plan_name", value=restore_testing_plan_name, expected_type=type_hints["restore_testing_plan_name"])
|
|
5607
5642
|
check_type(argname="argument schedule_expression", value=schedule_expression, expected_type=type_hints["schedule_expression"])
|
|
5608
5643
|
check_type(argname="argument schedule_expression_timezone", value=schedule_expression_timezone, expected_type=type_hints["schedule_expression_timezone"])
|
|
5644
|
+
check_type(argname="argument schedule_status", value=schedule_status, expected_type=type_hints["schedule_status"])
|
|
5609
5645
|
check_type(argname="argument start_window_hours", value=start_window_hours, expected_type=type_hints["start_window_hours"])
|
|
5610
5646
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
5611
5647
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -5615,6 +5651,8 @@ class CfnRestoreTestingPlanProps:
|
|
|
5615
5651
|
}
|
|
5616
5652
|
if schedule_expression_timezone is not None:
|
|
5617
5653
|
self._values["schedule_expression_timezone"] = schedule_expression_timezone
|
|
5654
|
+
if schedule_status is not None:
|
|
5655
|
+
self._values["schedule_status"] = schedule_status
|
|
5618
5656
|
if start_window_hours is not None:
|
|
5619
5657
|
self._values["start_window_hours"] = start_window_hours
|
|
5620
5658
|
if tags is not None:
|
|
@@ -5665,6 +5703,14 @@ class CfnRestoreTestingPlanProps:
|
|
|
5665
5703
|
result = self._values.get("schedule_expression_timezone")
|
|
5666
5704
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
5667
5705
|
|
|
5706
|
+
@builtins.property
|
|
5707
|
+
def schedule_status(self) -> typing.Optional[builtins.str]:
|
|
5708
|
+
'''
|
|
5709
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingplan.html#cfn-backup-restoretestingplan-schedulestatus
|
|
5710
|
+
'''
|
|
5711
|
+
result = self._values.get("schedule_status")
|
|
5712
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5713
|
+
|
|
5668
5714
|
@builtins.property
|
|
5669
5715
|
def start_window_hours(self) -> typing.Optional[jsii.Number]:
|
|
5670
5716
|
'''Defaults to 24 hours.
|
|
@@ -7665,6 +7711,7 @@ def _typecheckingstub__ce1d12683247bbd0bcd185e807f3b41b4b53ee7cfd847d57ecbf875d4
|
|
|
7665
7711
|
restore_testing_plan_name: builtins.str,
|
|
7666
7712
|
schedule_expression: builtins.str,
|
|
7667
7713
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
7714
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
7668
7715
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
7669
7716
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7670
7717
|
) -> None:
|
|
@@ -7707,6 +7754,12 @@ def _typecheckingstub__45df227f118297319531c266e28ed0c7920e380fc44ad9f041510f5e6
|
|
|
7707
7754
|
"""Type checking stubs"""
|
|
7708
7755
|
pass
|
|
7709
7756
|
|
|
7757
|
+
def _typecheckingstub__cb0d6c12ebe5ab30da1683fa9c5b891023ce57e88de2c038f0c84c4ba2f02868(
|
|
7758
|
+
value: typing.Optional[builtins.str],
|
|
7759
|
+
) -> None:
|
|
7760
|
+
"""Type checking stubs"""
|
|
7761
|
+
pass
|
|
7762
|
+
|
|
7710
7763
|
def _typecheckingstub__9df0eb1aaa95a7ca07b1c2dc88007e89e56d90a6006630d5680cdb415dd093f9(
|
|
7711
7764
|
value: typing.Optional[jsii.Number],
|
|
7712
7765
|
) -> None:
|
|
@@ -7736,6 +7789,7 @@ def _typecheckingstub__d65b2884e40d5939ab5441a32efe6879390155bd000dab9e921f71ac4
|
|
|
7736
7789
|
restore_testing_plan_name: builtins.str,
|
|
7737
7790
|
schedule_expression: builtins.str,
|
|
7738
7791
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
7792
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
7739
7793
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
7740
7794
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7741
7795
|
) -> None:
|
|
@@ -48,7 +48,22 @@ import jsii
|
|
|
48
48
|
import publication
|
|
49
49
|
import typing_extensions
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
import typeguard
|
|
52
|
+
from importlib.metadata import version as _metadata_package_version
|
|
53
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
54
|
+
|
|
55
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
56
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
57
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
58
|
+
else:
|
|
59
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
60
|
+
pass
|
|
61
|
+
else:
|
|
62
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
63
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
64
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
65
|
+
else:
|
|
66
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
52
67
|
|
|
53
68
|
from .._jsii import *
|
|
54
69
|
|
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -728,7 +728,22 @@ import jsii
|
|
|
728
728
|
import publication
|
|
729
729
|
import typing_extensions
|
|
730
730
|
|
|
731
|
-
|
|
731
|
+
import typeguard
|
|
732
|
+
from importlib.metadata import version as _metadata_package_version
|
|
733
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
734
|
+
|
|
735
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
736
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
737
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
738
|
+
else:
|
|
739
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
740
|
+
pass
|
|
741
|
+
else:
|
|
742
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
743
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
744
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
745
|
+
else:
|
|
746
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
732
747
|
|
|
733
748
|
from .._jsii import *
|
|
734
749
|
|
|
@@ -959,6 +974,7 @@ class CfnComputeEnvironment(
|
|
|
959
974
|
},
|
|
960
975
|
update_to_latest_image_version=False
|
|
961
976
|
),
|
|
977
|
+
context="context",
|
|
962
978
|
eks_configuration=batch.CfnComputeEnvironment.EksConfigurationProperty(
|
|
963
979
|
eks_cluster_arn="eksClusterArn",
|
|
964
980
|
kubernetes_namespace="kubernetesNamespace"
|
|
@@ -985,6 +1001,7 @@ class CfnComputeEnvironment(
|
|
|
985
1001
|
type: builtins.str,
|
|
986
1002
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
987
1003
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnComputeEnvironment.ComputeResourcesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
1004
|
+
context: typing.Optional[builtins.str] = None,
|
|
988
1005
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnComputeEnvironment.EksConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
989
1006
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
990
1007
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -999,6 +1016,7 @@ class CfnComputeEnvironment(
|
|
|
999
1016
|
:param type: The type of the compute environment: ``MANAGED`` or ``UNMANAGED`` . For more information, see `Compute Environments <https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html>`_ in the *AWS Batch User Guide* .
|
|
1000
1017
|
:param compute_environment_name: The name for your compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
|
|
1001
1018
|
:param compute_resources: The ComputeResources property type specifies details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see `Compute Environments <https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html>`_ in the ** .
|
|
1019
|
+
:param context: Reserved.
|
|
1002
1020
|
:param eks_configuration: The details for the Amazon EKS cluster that supports the compute environment.
|
|
1003
1021
|
:param replace_compute_environment: Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment. The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* . The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ . Default: - true
|
|
1004
1022
|
:param service_role: The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For more information, see `AWS Batch service IAM role <https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html>`_ in the *AWS Batch User Guide* . .. epigraph:: If your account already created the AWS Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the AWS Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the AWS Batch service-linked role in your account. If your specified role has a path other than ``/`` , then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name ``bar`` has a path of ``/foo/`` , specify ``/foo/bar`` as the role name. For more information, see `Friendly names and paths <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names>`_ in the *IAM User Guide* . .. epigraph:: Depending on how you created your AWS Batch service role, its ARN might contain the ``service-role`` path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the ``service-role`` path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
|
|
@@ -1015,6 +1033,7 @@ class CfnComputeEnvironment(
|
|
|
1015
1033
|
type=type,
|
|
1016
1034
|
compute_environment_name=compute_environment_name,
|
|
1017
1035
|
compute_resources=compute_resources,
|
|
1036
|
+
context=context,
|
|
1018
1037
|
eks_configuration=eks_configuration,
|
|
1019
1038
|
replace_compute_environment=replace_compute_environment,
|
|
1020
1039
|
service_role=service_role,
|
|
@@ -1120,6 +1139,19 @@ class CfnComputeEnvironment(
|
|
|
1120
1139
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1121
1140
|
jsii.set(self, "computeResources", value) # pyright: ignore[reportArgumentType]
|
|
1122
1141
|
|
|
1142
|
+
@builtins.property
|
|
1143
|
+
@jsii.member(jsii_name="context")
|
|
1144
|
+
def context(self) -> typing.Optional[builtins.str]:
|
|
1145
|
+
'''Reserved.'''
|
|
1146
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "context"))
|
|
1147
|
+
|
|
1148
|
+
@context.setter
|
|
1149
|
+
def context(self, value: typing.Optional[builtins.str]) -> None:
|
|
1150
|
+
if __debug__:
|
|
1151
|
+
type_hints = typing.get_type_hints(_typecheckingstub__da32f27a124e80b7835c8c0b9d4dd96db23a3745e9e3b0b4850f40ffa88e26fc)
|
|
1152
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1153
|
+
jsii.set(self, "context", value) # pyright: ignore[reportArgumentType]
|
|
1154
|
+
|
|
1123
1155
|
@builtins.property
|
|
1124
1156
|
@jsii.member(jsii_name="eksConfiguration")
|
|
1125
1157
|
def eks_configuration(
|
|
@@ -2110,6 +2142,7 @@ class CfnComputeEnvironment(
|
|
|
2110
2142
|
"type": "type",
|
|
2111
2143
|
"compute_environment_name": "computeEnvironmentName",
|
|
2112
2144
|
"compute_resources": "computeResources",
|
|
2145
|
+
"context": "context",
|
|
2113
2146
|
"eks_configuration": "eksConfiguration",
|
|
2114
2147
|
"replace_compute_environment": "replaceComputeEnvironment",
|
|
2115
2148
|
"service_role": "serviceRole",
|
|
@@ -2126,6 +2159,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2126
2159
|
type: builtins.str,
|
|
2127
2160
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
2128
2161
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.ComputeResourcesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2162
|
+
context: typing.Optional[builtins.str] = None,
|
|
2129
2163
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.EksConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2130
2164
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2131
2165
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -2139,6 +2173,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2139
2173
|
:param type: The type of the compute environment: ``MANAGED`` or ``UNMANAGED`` . For more information, see `Compute Environments <https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html>`_ in the *AWS Batch User Guide* .
|
|
2140
2174
|
:param compute_environment_name: The name for your compute environment. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
|
|
2141
2175
|
:param compute_resources: The ComputeResources property type specifies details of the compute resources managed by the compute environment. This parameter is required for managed compute environments. For more information, see `Compute Environments <https://docs.aws.amazon.com/batch/latest/userguide/compute_environments.html>`_ in the ** .
|
|
2176
|
+
:param context: Reserved.
|
|
2142
2177
|
:param eks_configuration: The details for the Amazon EKS cluster that supports the compute environment.
|
|
2143
2178
|
:param replace_compute_environment: Specifies whether the compute environment is replaced if an update is made that requires replacing the instances in the compute environment. The default value is ``true`` . To enable more properties to be updated, set this property to ``false`` . When changing the value of this property to ``false`` , do not change any other properties at the same time. If other properties are changed at the same time, and the change needs to be rolled back but it can't, it's possible for the stack to go into the ``UPDATE_ROLLBACK_FAILED`` state. You can't update a stack that is in the ``UPDATE_ROLLBACK_FAILED`` state. However, if you can continue to roll it back, you can return the stack to its original settings and then try to update it again. For more information, see `Continue rolling back an update <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html>`_ in the *AWS CloudFormation User Guide* . The properties that can't be changed without replacing the compute environment are in the ```ComputeResources`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html>`_ property type: ```AllocationStrategy`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-allocationstrategy>`_ , ```BidPercentage`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-bidpercentage>`_ , ```Ec2Configuration`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2configuration>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```Ec2KeyPair`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-ec2keypair>`_ , ```ImageId`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-imageid>`_ , ```InstanceRole`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancerole>`_ , ```InstanceTypes`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-instancetypes>`_ , ```LaunchTemplate`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-launchtemplate>`_ , ```MaxvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-maxvcpus>`_ , ```MinvCpus`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-minvcpus>`_ , ```PlacementGroup`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-placementgroup>`_ , ```SecurityGroupIds`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-securitygroupids>`_ , ```Subnets`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-subnets>`_ , `Tags <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-tags>`_ , ```Type`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-type>`_ , and ```UpdateToLatestImageVersion`` <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-computeenvironment-computeresources.html#cfn-batch-computeenvironment-computeresources-updatetolatestimageversion>`_ . Default: - true
|
|
2144
2179
|
:param service_role: The full Amazon Resource Name (ARN) of the IAM role that allows AWS Batch to make calls to other AWS services on your behalf. For more information, see `AWS Batch service IAM role <https://docs.aws.amazon.com/batch/latest/userguide/service_IAM_role.html>`_ in the *AWS Batch User Guide* . .. epigraph:: If your account already created the AWS Batch service-linked role, that role is used by default for your compute environment unless you specify a different role here. If the AWS Batch service-linked role doesn't exist in your account, and no role is specified here, the service attempts to create the AWS Batch service-linked role in your account. If your specified role has a path other than ``/`` , then you must specify either the full role ARN (recommended) or prefix the role name with the path. For example, if a role with the name ``bar`` has a path of ``/foo/`` , specify ``/foo/bar`` as the role name. For more information, see `Friendly names and paths <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names>`_ in the *IAM User Guide* . .. epigraph:: Depending on how you created your AWS Batch service role, its ARN might contain the ``service-role`` path prefix. When you only specify the name of the service role, AWS Batch assumes that your ARN doesn't use the ``service-role`` path prefix. Because of this, we recommend that you specify the full ARN of your service role when you create compute environments.
|
|
@@ -2195,6 +2230,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2195
2230
|
},
|
|
2196
2231
|
update_to_latest_image_version=False
|
|
2197
2232
|
),
|
|
2233
|
+
context="context",
|
|
2198
2234
|
eks_configuration=batch.CfnComputeEnvironment.EksConfigurationProperty(
|
|
2199
2235
|
eks_cluster_arn="eksClusterArn",
|
|
2200
2236
|
kubernetes_namespace="kubernetesNamespace"
|
|
@@ -2217,6 +2253,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2217
2253
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
2218
2254
|
check_type(argname="argument compute_environment_name", value=compute_environment_name, expected_type=type_hints["compute_environment_name"])
|
|
2219
2255
|
check_type(argname="argument compute_resources", value=compute_resources, expected_type=type_hints["compute_resources"])
|
|
2256
|
+
check_type(argname="argument context", value=context, expected_type=type_hints["context"])
|
|
2220
2257
|
check_type(argname="argument eks_configuration", value=eks_configuration, expected_type=type_hints["eks_configuration"])
|
|
2221
2258
|
check_type(argname="argument replace_compute_environment", value=replace_compute_environment, expected_type=type_hints["replace_compute_environment"])
|
|
2222
2259
|
check_type(argname="argument service_role", value=service_role, expected_type=type_hints["service_role"])
|
|
@@ -2231,6 +2268,8 @@ class CfnComputeEnvironmentProps:
|
|
|
2231
2268
|
self._values["compute_environment_name"] = compute_environment_name
|
|
2232
2269
|
if compute_resources is not None:
|
|
2233
2270
|
self._values["compute_resources"] = compute_resources
|
|
2271
|
+
if context is not None:
|
|
2272
|
+
self._values["context"] = context
|
|
2234
2273
|
if eks_configuration is not None:
|
|
2235
2274
|
self._values["eks_configuration"] = eks_configuration
|
|
2236
2275
|
if replace_compute_environment is not None:
|
|
@@ -2282,6 +2321,15 @@ class CfnComputeEnvironmentProps:
|
|
|
2282
2321
|
result = self._values.get("compute_resources")
|
|
2283
2322
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnComputeEnvironment.ComputeResourcesProperty]], result)
|
|
2284
2323
|
|
|
2324
|
+
@builtins.property
|
|
2325
|
+
def context(self) -> typing.Optional[builtins.str]:
|
|
2326
|
+
'''Reserved.
|
|
2327
|
+
|
|
2328
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-context
|
|
2329
|
+
'''
|
|
2330
|
+
result = self._values.get("context")
|
|
2331
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2332
|
+
|
|
2285
2333
|
@builtins.property
|
|
2286
2334
|
def eks_configuration(
|
|
2287
2335
|
self,
|
|
@@ -23244,6 +23292,7 @@ def _typecheckingstub__b3892141757a3fffc40366f3b0a3472c965c97710a96f3bb61a3618dd
|
|
|
23244
23292
|
type: builtins.str,
|
|
23245
23293
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
23246
23294
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.ComputeResourcesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23295
|
+
context: typing.Optional[builtins.str] = None,
|
|
23247
23296
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.EksConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23248
23297
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23249
23298
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -23285,6 +23334,12 @@ def _typecheckingstub__aa0f8cbb024617b335ccf7af8884568ad91340203512578a8d682adfd
|
|
|
23285
23334
|
"""Type checking stubs"""
|
|
23286
23335
|
pass
|
|
23287
23336
|
|
|
23337
|
+
def _typecheckingstub__da32f27a124e80b7835c8c0b9d4dd96db23a3745e9e3b0b4850f40ffa88e26fc(
|
|
23338
|
+
value: typing.Optional[builtins.str],
|
|
23339
|
+
) -> None:
|
|
23340
|
+
"""Type checking stubs"""
|
|
23341
|
+
pass
|
|
23342
|
+
|
|
23288
23343
|
def _typecheckingstub__896771848c9977e1ce30b550c3e02c1b1e7e047a645b3eb92c3d6d3bcf2ef1cf(
|
|
23289
23344
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnComputeEnvironment.EksConfigurationProperty]],
|
|
23290
23345
|
) -> None:
|
|
@@ -23390,6 +23445,7 @@ def _typecheckingstub__a81ed1de03c840384ae49a0a4dbeb244507d2327c304fc093af8d7209
|
|
|
23390
23445
|
type: builtins.str,
|
|
23391
23446
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
23392
23447
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.ComputeResourcesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23448
|
+
context: typing.Optional[builtins.str] = None,
|
|
23393
23449
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.EksConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23394
23450
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23395
23451
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -48,7 +48,22 @@ import jsii
|
|
|
48
48
|
import publication
|
|
49
49
|
import typing_extensions
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
import typeguard
|
|
52
|
+
from importlib.metadata import version as _metadata_package_version
|
|
53
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
54
|
+
|
|
55
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
56
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
57
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
58
|
+
else:
|
|
59
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
60
|
+
pass
|
|
61
|
+
else:
|
|
62
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
63
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
64
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
65
|
+
else:
|
|
66
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
52
67
|
|
|
53
68
|
from .._jsii import *
|
|
54
69
|
|