aws-cdk-lib 2.156.0__py3-none-any.whl → 2.157.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 +26 -22
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.156.0.jsii.tgz → aws-cdk-lib@2.157.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +10 -75
- aws_cdk/aws_amplify/__init__.py +106 -0
- aws_cdk/aws_apigatewayv2/__init__.py +81 -13
- aws_cdk/aws_appintegrations/__init__.py +14 -14
- aws_cdk/aws_applicationsignals/__init__.py +750 -1
- aws_cdk/aws_appsync/__init__.py +50 -18
- aws_cdk/aws_autoscaling/__init__.py +6 -6
- aws_cdk/aws_backup/__init__.py +39 -0
- aws_cdk/aws_batch/__init__.py +41 -0
- aws_cdk/aws_bedrock/__init__.py +1513 -94
- aws_cdk/aws_chatbot/__init__.py +6 -6
- aws_cdk/aws_cloudformation/__init__.py +22 -22
- aws_cdk/aws_cloudfront/experimental/__init__.py +30 -3
- aws_cdk/aws_datasync/__init__.py +40 -29
- aws_cdk/aws_ec2/__init__.py +373 -49
- aws_cdk/aws_ecs/__init__.py +253 -87
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +4 -4
- aws_cdk/aws_entityresolution/__init__.py +117 -4
- aws_cdk/aws_glue/__init__.py +0 -8
- aws_cdk/aws_groundstation/__init__.py +27 -16
- aws_cdk/aws_guardduty/__init__.py +26 -14
- aws_cdk/aws_iotfleetwise/__init__.py +108 -0
- aws_cdk/aws_lambda/__init__.py +147 -17
- aws_cdk/aws_lambda_nodejs/__init__.py +30 -3
- aws_cdk/aws_macie/__init__.py +4 -4
- aws_cdk/aws_medialive/__init__.py +348 -0
- aws_cdk/aws_mediapackagev2/__init__.py +38 -38
- aws_cdk/aws_neptune/__init__.py +14 -8
- aws_cdk/aws_opensearchservice/__init__.py +194 -0
- aws_cdk/aws_pcaconnectorscep/__init__.py +884 -0
- aws_cdk/aws_personalize/__init__.py +2 -2
- aws_cdk/aws_pipes/__init__.py +22 -22
- aws_cdk/aws_qbusiness/__init__.py +675 -6
- aws_cdk/aws_quicksight/__init__.py +3285 -0
- aws_cdk/aws_rds/__init__.py +18 -0
- aws_cdk/aws_sagemaker/__init__.py +1167 -0
- aws_cdk/aws_secretsmanager/__init__.py +2 -3
- aws_cdk/aws_securityhub/__init__.py +108 -103
- aws_cdk/aws_ses/__init__.py +31 -0
- aws_cdk/aws_sns/__init__.py +19 -13
- aws_cdk/aws_ssm/__init__.py +10 -6
- aws_cdk/aws_ssmquicksetup/__init__.py +967 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -4
- aws_cdk/triggers/__init__.py +30 -3
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/RECORD +53 -51
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.156.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_appsync/__init__.py
CHANGED
|
@@ -540,6 +540,10 @@ route53.CnameRecord(self, "CnameApiRecord",
|
|
|
540
540
|
AppSync automatically create a log group with the name `/aws/appsync/apis/<graphql_api_id>` upon deployment with
|
|
541
541
|
log data set to never expire. If you want to set a different expiration period, use the `logConfig.retention` property.
|
|
542
542
|
|
|
543
|
+
Also you can choose the log level by setting the `logConfig.fieldLogLevel` property.
|
|
544
|
+
|
|
545
|
+
For more information, see [CloudWatch logs](https://docs.aws.amazon.com/en_us/appsync/latest/devguide/monitoring.html#cwl).
|
|
546
|
+
|
|
543
547
|
To obtain the GraphQL API's log group as a `logs.ILogGroup` use the `logGroup` property of the
|
|
544
548
|
`GraphqlApi` construct.
|
|
545
549
|
|
|
@@ -547,15 +551,14 @@ To obtain the GraphQL API's log group as a `logs.ILogGroup` use the `logGroup` p
|
|
|
547
551
|
import aws_cdk.aws_logs as logs
|
|
548
552
|
|
|
549
553
|
|
|
550
|
-
log_config = appsync.LogConfig(
|
|
551
|
-
retention=logs.RetentionDays.ONE_WEEK
|
|
552
|
-
)
|
|
553
|
-
|
|
554
554
|
appsync.GraphqlApi(self, "api",
|
|
555
555
|
authorization_config=appsync.AuthorizationConfig(),
|
|
556
556
|
name="myApi",
|
|
557
557
|
definition=appsync.Definition.from_file(path.join(__dirname, "myApi.graphql")),
|
|
558
|
-
log_config=
|
|
558
|
+
log_config=appsync.LogConfig(
|
|
559
|
+
field_log_level=appsync.FieldLogLevel.INFO,
|
|
560
|
+
retention=logs.RetentionDays.ONE_WEEK
|
|
561
|
+
)
|
|
559
562
|
)
|
|
560
563
|
```
|
|
561
564
|
|
|
@@ -7129,7 +7132,7 @@ class CfnGraphQLApi(
|
|
|
7129
7132
|
|
|
7130
7133
|
:param cloud_watch_logs_role_arn: The service role that AWS AppSync will assume to publish to Amazon CloudWatch Logs in your account.
|
|
7131
7134
|
:param exclude_verbose_content: Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
|
|
7132
|
-
:param field_log_level: The field logging level. Values can be NONE, ERROR, or ALL. - *NONE* : No field-level logs are captured. - *ERROR* : Logs the following information only for the fields that are in error: - The error section in the server response. - Field-level errors. - The generated request/response functions that got resolved for error fields. - *ALL* : The following information is logged for all fields in the query: - Field-level tracing information. - The generated request/response functions that
|
|
7135
|
+
:param field_log_level: The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL. - *NONE* : No field-level logs are captured. - *ERROR* : Logs the following information *only* for the fields that are in the error category: - The error section in the server response. - Field-level errors. - The generated request/response functions that got resolved for error fields. - *INFO* : Logs the following information *only* for the fields that are in the info and error categories: - Info-level messages. - The user messages sent through ``$util.log.info`` and ``console.log`` . - Field-level tracing and mapping logs are not shown. - *DEBUG* : Logs the following information *only* for the fields that are in the debug, info, and error categories: - Debug-level messages. - The user messages sent through ``$util.log.info`` , ``$util.log.debug`` , ``console.log`` , and ``console.debug`` . - Field-level tracing and mapping logs are not shown. - *ALL* : The following information is logged for all fields in the query: - Field-level tracing information. - The generated request/response functions that were resolved for each field.
|
|
7133
7136
|
|
|
7134
7137
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html
|
|
7135
7138
|
:exampleMetadata: fixture=_generated
|
|
@@ -7181,16 +7184,24 @@ class CfnGraphQLApi(
|
|
|
7181
7184
|
|
|
7182
7185
|
@builtins.property
|
|
7183
7186
|
def field_log_level(self) -> typing.Optional[builtins.str]:
|
|
7184
|
-
'''The field logging level. Values can be NONE, ERROR, or ALL.
|
|
7187
|
+
'''The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.
|
|
7185
7188
|
|
|
7186
7189
|
- *NONE* : No field-level logs are captured.
|
|
7187
|
-
- *ERROR* : Logs the following information only for the fields that are in error:
|
|
7190
|
+
- *ERROR* : Logs the following information *only* for the fields that are in the error category:
|
|
7188
7191
|
- The error section in the server response.
|
|
7189
7192
|
- Field-level errors.
|
|
7190
7193
|
- The generated request/response functions that got resolved for error fields.
|
|
7194
|
+
- *INFO* : Logs the following information *only* for the fields that are in the info and error categories:
|
|
7195
|
+
- Info-level messages.
|
|
7196
|
+
- The user messages sent through ``$util.log.info`` and ``console.log`` .
|
|
7197
|
+
- Field-level tracing and mapping logs are not shown.
|
|
7198
|
+
- *DEBUG* : Logs the following information *only* for the fields that are in the debug, info, and error categories:
|
|
7199
|
+
- Debug-level messages.
|
|
7200
|
+
- The user messages sent through ``$util.log.info`` , ``$util.log.debug`` , ``console.log`` , and ``console.debug`` .
|
|
7201
|
+
- Field-level tracing and mapping logs are not shown.
|
|
7191
7202
|
- *ALL* : The following information is logged for all fields in the query:
|
|
7192
7203
|
- Field-level tracing information.
|
|
7193
|
-
- The generated request/response functions that
|
|
7204
|
+
- The generated request/response functions that were resolved for each field.
|
|
7194
7205
|
|
|
7195
7206
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-graphqlapi-logconfig.html#cfn-appsync-graphqlapi-logconfig-fieldloglevel
|
|
7196
7207
|
'''
|
|
@@ -10608,14 +10619,36 @@ class ExtendedResolverProps(BaseResolverProps):
|
|
|
10608
10619
|
|
|
10609
10620
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_appsync.FieldLogLevel")
|
|
10610
10621
|
class FieldLogLevel(enum.Enum):
|
|
10611
|
-
'''log-level for fields in AppSync.
|
|
10622
|
+
'''log-level for fields in AppSync.
|
|
10623
|
+
|
|
10624
|
+
:exampleMetadata: infused
|
|
10625
|
+
|
|
10626
|
+
Example::
|
|
10627
|
+
|
|
10628
|
+
import aws_cdk.aws_logs as logs
|
|
10629
|
+
|
|
10630
|
+
|
|
10631
|
+
appsync.GraphqlApi(self, "api",
|
|
10632
|
+
authorization_config=appsync.AuthorizationConfig(),
|
|
10633
|
+
name="myApi",
|
|
10634
|
+
definition=appsync.Definition.from_file(path.join(__dirname, "myApi.graphql")),
|
|
10635
|
+
log_config=appsync.LogConfig(
|
|
10636
|
+
field_log_level=appsync.FieldLogLevel.INFO,
|
|
10637
|
+
retention=logs.RetentionDays.ONE_WEEK
|
|
10638
|
+
)
|
|
10639
|
+
)
|
|
10640
|
+
'''
|
|
10612
10641
|
|
|
10613
10642
|
NONE = "NONE"
|
|
10614
|
-
'''
|
|
10643
|
+
'''Resolver logging is disabled.'''
|
|
10615
10644
|
ERROR = "ERROR"
|
|
10616
|
-
'''Error
|
|
10645
|
+
'''Only Error messages appear in logs.'''
|
|
10646
|
+
INFO = "INFO"
|
|
10647
|
+
'''Info and Error messages appear in logs.'''
|
|
10648
|
+
DEBUG = "DEBUG"
|
|
10649
|
+
'''Debug, Info, and Error messages, appear in logs.'''
|
|
10617
10650
|
ALL = "ALL"
|
|
10618
|
-
'''All
|
|
10651
|
+
'''All messages (Debug, Error, Info, and Trace) appear in logs.'''
|
|
10619
10652
|
|
|
10620
10653
|
|
|
10621
10654
|
class FunctionRuntime(
|
|
@@ -12665,15 +12698,14 @@ class LogConfig:
|
|
|
12665
12698
|
import aws_cdk.aws_logs as logs
|
|
12666
12699
|
|
|
12667
12700
|
|
|
12668
|
-
log_config = appsync.LogConfig(
|
|
12669
|
-
retention=logs.RetentionDays.ONE_WEEK
|
|
12670
|
-
)
|
|
12671
|
-
|
|
12672
12701
|
appsync.GraphqlApi(self, "api",
|
|
12673
12702
|
authorization_config=appsync.AuthorizationConfig(),
|
|
12674
12703
|
name="myApi",
|
|
12675
12704
|
definition=appsync.Definition.from_file(path.join(__dirname, "myApi.graphql")),
|
|
12676
|
-
log_config=
|
|
12705
|
+
log_config=appsync.LogConfig(
|
|
12706
|
+
field_log_level=appsync.FieldLogLevel.INFO,
|
|
12707
|
+
retention=logs.RetentionDays.ONE_WEEK
|
|
12708
|
+
)
|
|
12677
12709
|
)
|
|
12678
12710
|
'''
|
|
12679
12711
|
if __debug__:
|
|
@@ -2563,7 +2563,7 @@ class CfnAutoScalingGroup(
|
|
|
2563
2563
|
:param desired_capacity: The desired capacity is the initial capacity of the Auto Scaling group at the time of its creation and the capacity it attempts to maintain. It can scale beyond this capacity if you configure automatic scaling. The number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group. If you do not specify a desired capacity when creating the stack, the default is the minimum size of the group. CloudFormation marks the Auto Scaling group as successful (by setting its status to CREATE_COMPLETE) when the desired capacity is reached. However, if a maximum Spot price is set in the launch template or launch configuration that you specified, then desired capacity is not used as a criteria for success. Whether your request is fulfilled depends on Spot Instance capacity and your maximum price.
|
|
2564
2564
|
:param desired_capacity_type: The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports ``DesiredCapacityType`` for attribute-based instance type selection only. For more information, see `Create a mixed instances group using attribute-based instance type selection <https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-mixed-instances-group-attribute-based-instance-type-selection.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . By default, Amazon EC2 Auto Scaling specifies ``units`` , which translates into number of instances. Valid values: ``units`` | ``vcpu`` | ``memory-mib``
|
|
2565
2565
|
:param health_check_grace_period: The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. This is useful if your instances do not immediately pass their health checks after they enter the ``InService`` state. For more information, see `Set the health check grace period for an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . Default: ``0`` seconds
|
|
2566
|
-
:param health_check_type: A comma-separated value string of one or more health check types. The valid values are ``EC2`` , ``ELB`` , and ``VPC_LATTICE`` . ``EC2`` is the default health check and cannot be disabled. For more information, see `Health checks for instances in an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . Only specify ``EC2`` if you must clear a value that was previously set.
|
|
2566
|
+
:param health_check_type: A comma-separated value string of one or more health check types. The valid values are ``EC2`` , ``EBS`` , ``ELB`` , and ``VPC_LATTICE`` . ``EC2`` is the default health check and cannot be disabled. For more information, see `Health checks for instances in an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . Only specify ``EC2`` if you must clear a value that was previously set.
|
|
2567
2567
|
:param instance_id: The ID of the instance used to base the launch configuration on. For more information, see `Create an Auto Scaling group using an EC2 instance <https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . If you specify ``LaunchTemplate`` , ``MixedInstancesPolicy`` , or ``LaunchConfigurationName`` , don't specify ``InstanceId`` .
|
|
2568
2568
|
:param instance_maintenance_policy: An instance maintenance policy. For more information, see `Set instance maintenance policy <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
2569
2569
|
:param launch_configuration_name: The name of the launch configuration to use to launch instances. Required only if you don't specify ``LaunchTemplate`` , ``MixedInstancesPolicy`` , or ``InstanceId`` .
|
|
@@ -5799,7 +5799,7 @@ class CfnAutoScalingGroupProps:
|
|
|
5799
5799
|
:param desired_capacity: The desired capacity is the initial capacity of the Auto Scaling group at the time of its creation and the capacity it attempts to maintain. It can scale beyond this capacity if you configure automatic scaling. The number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group. If you do not specify a desired capacity when creating the stack, the default is the minimum size of the group. CloudFormation marks the Auto Scaling group as successful (by setting its status to CREATE_COMPLETE) when the desired capacity is reached. However, if a maximum Spot price is set in the launch template or launch configuration that you specified, then desired capacity is not used as a criteria for success. Whether your request is fulfilled depends on Spot Instance capacity and your maximum price.
|
|
5800
5800
|
:param desired_capacity_type: The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports ``DesiredCapacityType`` for attribute-based instance type selection only. For more information, see `Create a mixed instances group using attribute-based instance type selection <https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-mixed-instances-group-attribute-based-instance-type-selection.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . By default, Amazon EC2 Auto Scaling specifies ``units`` , which translates into number of instances. Valid values: ``units`` | ``vcpu`` | ``memory-mib``
|
|
5801
5801
|
:param health_check_grace_period: The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. This is useful if your instances do not immediately pass their health checks after they enter the ``InService`` state. For more information, see `Set the health check grace period for an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . Default: ``0`` seconds
|
|
5802
|
-
:param health_check_type: A comma-separated value string of one or more health check types. The valid values are ``EC2`` , ``ELB`` , and ``VPC_LATTICE`` . ``EC2`` is the default health check and cannot be disabled. For more information, see `Health checks for instances in an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . Only specify ``EC2`` if you must clear a value that was previously set.
|
|
5802
|
+
:param health_check_type: A comma-separated value string of one or more health check types. The valid values are ``EC2`` , ``EBS`` , ``ELB`` , and ``VPC_LATTICE`` . ``EC2`` is the default health check and cannot be disabled. For more information, see `Health checks for instances in an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . Only specify ``EC2`` if you must clear a value that was previously set.
|
|
5803
5803
|
:param instance_id: The ID of the instance used to base the launch configuration on. For more information, see `Create an Auto Scaling group using an EC2 instance <https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-from-instance.html>`_ in the *Amazon EC2 Auto Scaling User Guide* . If you specify ``LaunchTemplate`` , ``MixedInstancesPolicy`` , or ``LaunchConfigurationName`` , don't specify ``InstanceId`` .
|
|
5804
5804
|
:param instance_maintenance_policy: An instance maintenance policy. For more information, see `Set instance maintenance policy <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-maintenance-policy.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
5805
5805
|
:param launch_configuration_name: The name of the launch configuration to use to launch instances. Required only if you don't specify ``LaunchTemplate`` , ``MixedInstancesPolicy`` , or ``InstanceId`` .
|
|
@@ -6229,7 +6229,7 @@ class CfnAutoScalingGroupProps:
|
|
|
6229
6229
|
def health_check_type(self) -> typing.Optional[builtins.str]:
|
|
6230
6230
|
'''A comma-separated value string of one or more health check types.
|
|
6231
6231
|
|
|
6232
|
-
The valid values are ``EC2`` , ``ELB`` , and ``VPC_LATTICE`` . ``EC2`` is the default health check and cannot be disabled. For more information, see `Health checks for instances in an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
6232
|
+
The valid values are ``EC2`` , ``EBS`` , ``ELB`` , and ``VPC_LATTICE`` . ``EC2`` is the default health check and cannot be disabled. For more information, see `Health checks for instances in an Auto Scaling group <https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html>`_ in the *Amazon EC2 Auto Scaling User Guide* .
|
|
6233
6233
|
|
|
6234
6234
|
Only specify ``EC2`` if you must clear a value that was previously set.
|
|
6235
6235
|
|
|
@@ -10781,7 +10781,7 @@ class CfnScalingPolicy(
|
|
|
10781
10781
|
|
|
10782
10782
|
Also defines whether this call is returning data for one metric only, or whether it is performing a math expression on the values of returned metric statistics to create a new time series. A time series is a series of data points, each of which is associated with a timestamp.
|
|
10783
10783
|
|
|
10784
|
-
``TargetTrackingMetricDataQuery``
|
|
10784
|
+
You can use ``TargetTrackingMetricDataQuery`` structures with a ``PutScalingPolicy`` operation when you specify a ``TargetTrackingConfiguration`` in the request.
|
|
10785
10785
|
|
|
10786
10786
|
You can call for a single metric or perform math expressions on multiple metrics. Any expressions used in a metric specification must eventually return a single time series.
|
|
10787
10787
|
|
|
@@ -10934,9 +10934,9 @@ class CfnScalingPolicy(
|
|
|
10934
10934
|
stat: builtins.str,
|
|
10935
10935
|
unit: typing.Optional[builtins.str] = None,
|
|
10936
10936
|
) -> None:
|
|
10937
|
-
'''
|
|
10937
|
+
'''This structure defines the CloudWatch metric to return, along with the statistic and unit.
|
|
10938
10938
|
|
|
10939
|
-
|
|
10939
|
+
``TargetTrackingMetricStat`` is a property of the ``TargetTrackingMetricDataQuery`` object.
|
|
10940
10940
|
|
|
10941
10941
|
For more information about the CloudWatch terminology below, see `Amazon CloudWatch concepts <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html>`_ in the *Amazon CloudWatch User Guide* .
|
|
10942
10942
|
|
aws_cdk/aws_backup/__init__.py
CHANGED
|
@@ -5215,6 +5215,7 @@ class CfnRestoreTestingPlan(
|
|
|
5215
5215
|
|
|
5216
5216
|
# the properties below are optional
|
|
5217
5217
|
schedule_expression_timezone="scheduleExpressionTimezone",
|
|
5218
|
+
schedule_status="scheduleStatus",
|
|
5218
5219
|
start_window_hours=123,
|
|
5219
5220
|
tags=[CfnTag(
|
|
5220
5221
|
key="key",
|
|
@@ -5232,6 +5233,7 @@ class CfnRestoreTestingPlan(
|
|
|
5232
5233
|
restore_testing_plan_name: builtins.str,
|
|
5233
5234
|
schedule_expression: builtins.str,
|
|
5234
5235
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
5236
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
5235
5237
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
5236
5238
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5237
5239
|
) -> None:
|
|
@@ -5242,6 +5244,7 @@ class CfnRestoreTestingPlan(
|
|
|
5242
5244
|
: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
5245
|
:param schedule_expression: A CRON expression in specified timezone when a restore testing plan is executed.
|
|
5244
5246
|
: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.
|
|
5247
|
+
:param schedule_status:
|
|
5245
5248
|
: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
5249
|
: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
5250
|
'''
|
|
@@ -5254,6 +5257,7 @@ class CfnRestoreTestingPlan(
|
|
|
5254
5257
|
restore_testing_plan_name=restore_testing_plan_name,
|
|
5255
5258
|
schedule_expression=schedule_expression,
|
|
5256
5259
|
schedule_expression_timezone=schedule_expression_timezone,
|
|
5260
|
+
schedule_status=schedule_status,
|
|
5257
5261
|
start_window_hours=start_window_hours,
|
|
5258
5262
|
tags=tags,
|
|
5259
5263
|
)
|
|
@@ -5370,6 +5374,18 @@ class CfnRestoreTestingPlan(
|
|
|
5370
5374
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5371
5375
|
jsii.set(self, "scheduleExpressionTimezone", value) # pyright: ignore[reportArgumentType]
|
|
5372
5376
|
|
|
5377
|
+
@builtins.property
|
|
5378
|
+
@jsii.member(jsii_name="scheduleStatus")
|
|
5379
|
+
def schedule_status(self) -> typing.Optional[builtins.str]:
|
|
5380
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "scheduleStatus"))
|
|
5381
|
+
|
|
5382
|
+
@schedule_status.setter
|
|
5383
|
+
def schedule_status(self, value: typing.Optional[builtins.str]) -> None:
|
|
5384
|
+
if __debug__:
|
|
5385
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cb0d6c12ebe5ab30da1683fa9c5b891023ce57e88de2c038f0c84c4ba2f02868)
|
|
5386
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5387
|
+
jsii.set(self, "scheduleStatus", value) # pyright: ignore[reportArgumentType]
|
|
5388
|
+
|
|
5373
5389
|
@builtins.property
|
|
5374
5390
|
@jsii.member(jsii_name="startWindowHours")
|
|
5375
5391
|
def start_window_hours(self) -> typing.Optional[jsii.Number]:
|
|
@@ -5545,6 +5561,7 @@ class CfnRestoreTestingPlan(
|
|
|
5545
5561
|
"restore_testing_plan_name": "restoreTestingPlanName",
|
|
5546
5562
|
"schedule_expression": "scheduleExpression",
|
|
5547
5563
|
"schedule_expression_timezone": "scheduleExpressionTimezone",
|
|
5564
|
+
"schedule_status": "scheduleStatus",
|
|
5548
5565
|
"start_window_hours": "startWindowHours",
|
|
5549
5566
|
"tags": "tags",
|
|
5550
5567
|
},
|
|
@@ -5557,6 +5574,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5557
5574
|
restore_testing_plan_name: builtins.str,
|
|
5558
5575
|
schedule_expression: builtins.str,
|
|
5559
5576
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
5577
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
5560
5578
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
5561
5579
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5562
5580
|
) -> None:
|
|
@@ -5566,6 +5584,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5566
5584
|
: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
5585
|
:param schedule_expression: A CRON expression in specified timezone when a restore testing plan is executed.
|
|
5568
5586
|
: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.
|
|
5587
|
+
:param schedule_status:
|
|
5569
5588
|
: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
5589
|
: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
5590
|
|
|
@@ -5593,6 +5612,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5593
5612
|
|
|
5594
5613
|
# the properties below are optional
|
|
5595
5614
|
schedule_expression_timezone="scheduleExpressionTimezone",
|
|
5615
|
+
schedule_status="scheduleStatus",
|
|
5596
5616
|
start_window_hours=123,
|
|
5597
5617
|
tags=[CfnTag(
|
|
5598
5618
|
key="key",
|
|
@@ -5606,6 +5626,7 @@ class CfnRestoreTestingPlanProps:
|
|
|
5606
5626
|
check_type(argname="argument restore_testing_plan_name", value=restore_testing_plan_name, expected_type=type_hints["restore_testing_plan_name"])
|
|
5607
5627
|
check_type(argname="argument schedule_expression", value=schedule_expression, expected_type=type_hints["schedule_expression"])
|
|
5608
5628
|
check_type(argname="argument schedule_expression_timezone", value=schedule_expression_timezone, expected_type=type_hints["schedule_expression_timezone"])
|
|
5629
|
+
check_type(argname="argument schedule_status", value=schedule_status, expected_type=type_hints["schedule_status"])
|
|
5609
5630
|
check_type(argname="argument start_window_hours", value=start_window_hours, expected_type=type_hints["start_window_hours"])
|
|
5610
5631
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
5611
5632
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -5615,6 +5636,8 @@ class CfnRestoreTestingPlanProps:
|
|
|
5615
5636
|
}
|
|
5616
5637
|
if schedule_expression_timezone is not None:
|
|
5617
5638
|
self._values["schedule_expression_timezone"] = schedule_expression_timezone
|
|
5639
|
+
if schedule_status is not None:
|
|
5640
|
+
self._values["schedule_status"] = schedule_status
|
|
5618
5641
|
if start_window_hours is not None:
|
|
5619
5642
|
self._values["start_window_hours"] = start_window_hours
|
|
5620
5643
|
if tags is not None:
|
|
@@ -5665,6 +5688,14 @@ class CfnRestoreTestingPlanProps:
|
|
|
5665
5688
|
result = self._values.get("schedule_expression_timezone")
|
|
5666
5689
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
5667
5690
|
|
|
5691
|
+
@builtins.property
|
|
5692
|
+
def schedule_status(self) -> typing.Optional[builtins.str]:
|
|
5693
|
+
'''
|
|
5694
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-backup-restoretestingplan.html#cfn-backup-restoretestingplan-schedulestatus
|
|
5695
|
+
'''
|
|
5696
|
+
result = self._values.get("schedule_status")
|
|
5697
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5698
|
+
|
|
5668
5699
|
@builtins.property
|
|
5669
5700
|
def start_window_hours(self) -> typing.Optional[jsii.Number]:
|
|
5670
5701
|
'''Defaults to 24 hours.
|
|
@@ -7665,6 +7696,7 @@ def _typecheckingstub__ce1d12683247bbd0bcd185e807f3b41b4b53ee7cfd847d57ecbf875d4
|
|
|
7665
7696
|
restore_testing_plan_name: builtins.str,
|
|
7666
7697
|
schedule_expression: builtins.str,
|
|
7667
7698
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
7699
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
7668
7700
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
7669
7701
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7670
7702
|
) -> None:
|
|
@@ -7707,6 +7739,12 @@ def _typecheckingstub__45df227f118297319531c266e28ed0c7920e380fc44ad9f041510f5e6
|
|
|
7707
7739
|
"""Type checking stubs"""
|
|
7708
7740
|
pass
|
|
7709
7741
|
|
|
7742
|
+
def _typecheckingstub__cb0d6c12ebe5ab30da1683fa9c5b891023ce57e88de2c038f0c84c4ba2f02868(
|
|
7743
|
+
value: typing.Optional[builtins.str],
|
|
7744
|
+
) -> None:
|
|
7745
|
+
"""Type checking stubs"""
|
|
7746
|
+
pass
|
|
7747
|
+
|
|
7710
7748
|
def _typecheckingstub__9df0eb1aaa95a7ca07b1c2dc88007e89e56d90a6006630d5680cdb415dd093f9(
|
|
7711
7749
|
value: typing.Optional[jsii.Number],
|
|
7712
7750
|
) -> None:
|
|
@@ -7736,6 +7774,7 @@ def _typecheckingstub__d65b2884e40d5939ab5441a32efe6879390155bd000dab9e921f71ac4
|
|
|
7736
7774
|
restore_testing_plan_name: builtins.str,
|
|
7737
7775
|
schedule_expression: builtins.str,
|
|
7738
7776
|
schedule_expression_timezone: typing.Optional[builtins.str] = None,
|
|
7777
|
+
schedule_status: typing.Optional[builtins.str] = None,
|
|
7739
7778
|
start_window_hours: typing.Optional[jsii.Number] = None,
|
|
7740
7779
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7741
7780
|
) -> None:
|
aws_cdk/aws_batch/__init__.py
CHANGED
|
@@ -959,6 +959,7 @@ class CfnComputeEnvironment(
|
|
|
959
959
|
},
|
|
960
960
|
update_to_latest_image_version=False
|
|
961
961
|
),
|
|
962
|
+
context="context",
|
|
962
963
|
eks_configuration=batch.CfnComputeEnvironment.EksConfigurationProperty(
|
|
963
964
|
eks_cluster_arn="eksClusterArn",
|
|
964
965
|
kubernetes_namespace="kubernetesNamespace"
|
|
@@ -985,6 +986,7 @@ class CfnComputeEnvironment(
|
|
|
985
986
|
type: builtins.str,
|
|
986
987
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
987
988
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnComputeEnvironment.ComputeResourcesProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
989
|
+
context: typing.Optional[builtins.str] = None,
|
|
988
990
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnComputeEnvironment.EksConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
989
991
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
990
992
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -999,6 +1001,7 @@ class CfnComputeEnvironment(
|
|
|
999
1001
|
: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
1002
|
: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
1003
|
: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 ** .
|
|
1004
|
+
:param context: Reserved.
|
|
1002
1005
|
:param eks_configuration: The details for the Amazon EKS cluster that supports the compute environment.
|
|
1003
1006
|
: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
1007
|
: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 +1018,7 @@ class CfnComputeEnvironment(
|
|
|
1015
1018
|
type=type,
|
|
1016
1019
|
compute_environment_name=compute_environment_name,
|
|
1017
1020
|
compute_resources=compute_resources,
|
|
1021
|
+
context=context,
|
|
1018
1022
|
eks_configuration=eks_configuration,
|
|
1019
1023
|
replace_compute_environment=replace_compute_environment,
|
|
1020
1024
|
service_role=service_role,
|
|
@@ -1120,6 +1124,19 @@ class CfnComputeEnvironment(
|
|
|
1120
1124
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1121
1125
|
jsii.set(self, "computeResources", value) # pyright: ignore[reportArgumentType]
|
|
1122
1126
|
|
|
1127
|
+
@builtins.property
|
|
1128
|
+
@jsii.member(jsii_name="context")
|
|
1129
|
+
def context(self) -> typing.Optional[builtins.str]:
|
|
1130
|
+
'''Reserved.'''
|
|
1131
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "context"))
|
|
1132
|
+
|
|
1133
|
+
@context.setter
|
|
1134
|
+
def context(self, value: typing.Optional[builtins.str]) -> None:
|
|
1135
|
+
if __debug__:
|
|
1136
|
+
type_hints = typing.get_type_hints(_typecheckingstub__da32f27a124e80b7835c8c0b9d4dd96db23a3745e9e3b0b4850f40ffa88e26fc)
|
|
1137
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
1138
|
+
jsii.set(self, "context", value) # pyright: ignore[reportArgumentType]
|
|
1139
|
+
|
|
1123
1140
|
@builtins.property
|
|
1124
1141
|
@jsii.member(jsii_name="eksConfiguration")
|
|
1125
1142
|
def eks_configuration(
|
|
@@ -2110,6 +2127,7 @@ class CfnComputeEnvironment(
|
|
|
2110
2127
|
"type": "type",
|
|
2111
2128
|
"compute_environment_name": "computeEnvironmentName",
|
|
2112
2129
|
"compute_resources": "computeResources",
|
|
2130
|
+
"context": "context",
|
|
2113
2131
|
"eks_configuration": "eksConfiguration",
|
|
2114
2132
|
"replace_compute_environment": "replaceComputeEnvironment",
|
|
2115
2133
|
"service_role": "serviceRole",
|
|
@@ -2126,6 +2144,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2126
2144
|
type: builtins.str,
|
|
2127
2145
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
2128
2146
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.ComputeResourcesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2147
|
+
context: typing.Optional[builtins.str] = None,
|
|
2129
2148
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.EksConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2130
2149
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
2131
2150
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -2139,6 +2158,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2139
2158
|
: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
2159
|
: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
2160
|
: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 ** .
|
|
2161
|
+
:param context: Reserved.
|
|
2142
2162
|
:param eks_configuration: The details for the Amazon EKS cluster that supports the compute environment.
|
|
2143
2163
|
: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
2164
|
: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 +2215,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2195
2215
|
},
|
|
2196
2216
|
update_to_latest_image_version=False
|
|
2197
2217
|
),
|
|
2218
|
+
context="context",
|
|
2198
2219
|
eks_configuration=batch.CfnComputeEnvironment.EksConfigurationProperty(
|
|
2199
2220
|
eks_cluster_arn="eksClusterArn",
|
|
2200
2221
|
kubernetes_namespace="kubernetesNamespace"
|
|
@@ -2217,6 +2238,7 @@ class CfnComputeEnvironmentProps:
|
|
|
2217
2238
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
2218
2239
|
check_type(argname="argument compute_environment_name", value=compute_environment_name, expected_type=type_hints["compute_environment_name"])
|
|
2219
2240
|
check_type(argname="argument compute_resources", value=compute_resources, expected_type=type_hints["compute_resources"])
|
|
2241
|
+
check_type(argname="argument context", value=context, expected_type=type_hints["context"])
|
|
2220
2242
|
check_type(argname="argument eks_configuration", value=eks_configuration, expected_type=type_hints["eks_configuration"])
|
|
2221
2243
|
check_type(argname="argument replace_compute_environment", value=replace_compute_environment, expected_type=type_hints["replace_compute_environment"])
|
|
2222
2244
|
check_type(argname="argument service_role", value=service_role, expected_type=type_hints["service_role"])
|
|
@@ -2231,6 +2253,8 @@ class CfnComputeEnvironmentProps:
|
|
|
2231
2253
|
self._values["compute_environment_name"] = compute_environment_name
|
|
2232
2254
|
if compute_resources is not None:
|
|
2233
2255
|
self._values["compute_resources"] = compute_resources
|
|
2256
|
+
if context is not None:
|
|
2257
|
+
self._values["context"] = context
|
|
2234
2258
|
if eks_configuration is not None:
|
|
2235
2259
|
self._values["eks_configuration"] = eks_configuration
|
|
2236
2260
|
if replace_compute_environment is not None:
|
|
@@ -2282,6 +2306,15 @@ class CfnComputeEnvironmentProps:
|
|
|
2282
2306
|
result = self._values.get("compute_resources")
|
|
2283
2307
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnComputeEnvironment.ComputeResourcesProperty]], result)
|
|
2284
2308
|
|
|
2309
|
+
@builtins.property
|
|
2310
|
+
def context(self) -> typing.Optional[builtins.str]:
|
|
2311
|
+
'''Reserved.
|
|
2312
|
+
|
|
2313
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-batch-computeenvironment.html#cfn-batch-computeenvironment-context
|
|
2314
|
+
'''
|
|
2315
|
+
result = self._values.get("context")
|
|
2316
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2317
|
+
|
|
2285
2318
|
@builtins.property
|
|
2286
2319
|
def eks_configuration(
|
|
2287
2320
|
self,
|
|
@@ -23244,6 +23277,7 @@ def _typecheckingstub__b3892141757a3fffc40366f3b0a3472c965c97710a96f3bb61a3618dd
|
|
|
23244
23277
|
type: builtins.str,
|
|
23245
23278
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
23246
23279
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.ComputeResourcesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23280
|
+
context: typing.Optional[builtins.str] = None,
|
|
23247
23281
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.EksConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23248
23282
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23249
23283
|
service_role: typing.Optional[builtins.str] = None,
|
|
@@ -23285,6 +23319,12 @@ def _typecheckingstub__aa0f8cbb024617b335ccf7af8884568ad91340203512578a8d682adfd
|
|
|
23285
23319
|
"""Type checking stubs"""
|
|
23286
23320
|
pass
|
|
23287
23321
|
|
|
23322
|
+
def _typecheckingstub__da32f27a124e80b7835c8c0b9d4dd96db23a3745e9e3b0b4850f40ffa88e26fc(
|
|
23323
|
+
value: typing.Optional[builtins.str],
|
|
23324
|
+
) -> None:
|
|
23325
|
+
"""Type checking stubs"""
|
|
23326
|
+
pass
|
|
23327
|
+
|
|
23288
23328
|
def _typecheckingstub__896771848c9977e1ce30b550c3e02c1b1e7e047a645b3eb92c3d6d3bcf2ef1cf(
|
|
23289
23329
|
value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnComputeEnvironment.EksConfigurationProperty]],
|
|
23290
23330
|
) -> None:
|
|
@@ -23390,6 +23430,7 @@ def _typecheckingstub__a81ed1de03c840384ae49a0a4dbeb244507d2327c304fc093af8d7209
|
|
|
23390
23430
|
type: builtins.str,
|
|
23391
23431
|
compute_environment_name: typing.Optional[builtins.str] = None,
|
|
23392
23432
|
compute_resources: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.ComputeResourcesProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23433
|
+
context: typing.Optional[builtins.str] = None,
|
|
23393
23434
|
eks_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnComputeEnvironment.EksConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
23394
23435
|
replace_compute_environment: typing.Optional[typing.Union[builtins.bool, _IResolvable_da3f097b]] = None,
|
|
23395
23436
|
service_role: typing.Optional[builtins.str] = None,
|