aws-cdk-lib 2.115.0__py3-none-any.whl → 2.116.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +801 -356
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.115.0.jsii.tgz → aws-cdk-lib@2.116.1.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +3 -1
- aws_cdk/aws_apigatewayv2/__init__.py +595 -222
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +4 -5
- aws_cdk/aws_applicationautoscaling/__init__.py +51 -15
- aws_cdk/aws_appsync/__init__.py +14 -3
- aws_cdk/aws_autoscaling/__init__.py +6 -0
- aws_cdk/aws_b2bi/__init__.py +2445 -0
- aws_cdk/aws_cloud9/__init__.py +63 -63
- aws_cdk/aws_cloudfront/__init__.py +394 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -2
- aws_cdk/aws_cloudtrail/__init__.py +90 -11
- aws_cdk/aws_cloudwatch/__init__.py +6 -6
- aws_cdk/aws_codedeploy/__init__.py +88 -15
- aws_cdk/aws_codepipeline/__init__.py +645 -0
- aws_cdk/aws_cognito/__init__.py +13 -26
- aws_cdk/aws_config/__init__.py +315 -1
- aws_cdk/aws_connect/__init__.py +532 -37
- aws_cdk/aws_controltower/__init__.py +4 -4
- aws_cdk/aws_datasync/__init__.py +6 -4
- aws_cdk/aws_dms/__init__.py +241 -131
- aws_cdk/aws_dynamodb/__init__.py +8 -0
- aws_cdk/aws_ec2/__init__.py +1030 -45
- aws_cdk/aws_ecr/__init__.py +78 -10
- aws_cdk/aws_ecs/__init__.py +210 -2
- aws_cdk/aws_ecs_patterns/__init__.py +77 -62
- aws_cdk/aws_eks/__init__.py +8 -1
- aws_cdk/aws_elasticache/__init__.py +136 -10
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +10 -13
- aws_cdk/aws_emr/__init__.py +234 -17
- aws_cdk/aws_eventschemas/__init__.py +15 -13
- aws_cdk/aws_fis/__init__.py +33 -13
- aws_cdk/aws_gamelift/__init__.py +47 -0
- aws_cdk/aws_imagebuilder/__init__.py +922 -84
- aws_cdk/aws_internetmonitor/__init__.py +12 -10
- aws_cdk/aws_iot/__init__.py +26 -46
- aws_cdk/aws_iottwinmaker/__init__.py +36 -34
- aws_cdk/aws_lambda/__init__.py +19 -15
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -2
- aws_cdk/aws_logs/__init__.py +6 -6
- aws_cdk/aws_opensearchservice/__init__.py +5 -3
- aws_cdk/aws_organizations/__init__.py +3 -3
- aws_cdk/aws_osis/__init__.py +17 -13
- aws_cdk/aws_rds/__init__.py +6 -0
- aws_cdk/aws_s3/__init__.py +4 -2
- aws_cdk/aws_s3outposts/__init__.py +8 -8
- aws_cdk/aws_sagemaker/__init__.py +17 -94
- aws_cdk/aws_secretsmanager/__init__.py +9 -7
- aws_cdk/aws_securityhub/__init__.py +18 -0
- aws_cdk/aws_servicecatalogappregistry/__init__.py +31 -0
- aws_cdk/aws_ses/__init__.py +58 -11
- aws_cdk/aws_sns/__init__.py +309 -10
- aws_cdk/aws_ssm/__init__.py +3 -5
- aws_cdk/aws_stepfunctions/__init__.py +335 -19
- aws_cdk/aws_stepfunctions_tasks/__init__.py +388 -38
- aws_cdk/aws_transfer/__init__.py +37 -10
- aws_cdk/custom_resources/__init__.py +443 -1
- aws_cdk/triggers/__init__.py +5 -2
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/RECORD +66 -65
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.115.0.dist-info → aws_cdk_lib-2.116.1.dist-info}/top_level.txt +0 -0
|
@@ -5658,7 +5658,6 @@ class QueueProcessingServiceBase(
|
|
|
5658
5658
|
scope: _constructs_77d1e7e8.Construct,
|
|
5659
5659
|
id: builtins.str,
|
|
5660
5660
|
*,
|
|
5661
|
-
image: _ContainerImage_94af1b43,
|
|
5662
5661
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5663
5662
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
5664
5663
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -5669,6 +5668,7 @@ class QueueProcessingServiceBase(
|
|
|
5669
5668
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
5670
5669
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
5671
5670
|
family: typing.Optional[builtins.str] = None,
|
|
5671
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
5672
5672
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
5673
5673
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
5674
5674
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -5688,7 +5688,6 @@ class QueueProcessingServiceBase(
|
|
|
5688
5688
|
|
|
5689
5689
|
:param scope: -
|
|
5690
5690
|
:param id: -
|
|
5691
|
-
:param image: The image used to start a container.
|
|
5692
5691
|
:param capacity_provider_strategies: A list of Capacity Provider strategies used to place a service. Default: - undefined
|
|
5693
5692
|
:param circuit_breaker: Whether to enable the deployment circuit breaker. If this property is defined, circuit breaker will be implicitly enabled. Default: - disabled
|
|
5694
5693
|
:param cluster: The name of the cluster that hosts the service. If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc. Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
|
|
@@ -5699,6 +5698,7 @@ class QueueProcessingServiceBase(
|
|
|
5699
5698
|
:param enable_logging: Flag to indicate whether to enable logging. Default: true
|
|
5700
5699
|
:param environment: The environment variables to pass to the container. The variable ``QUEUE_NAME`` with value ``queue.queueName`` will always be passed. Default: 'QUEUE_NAME: queue.queueName'
|
|
5701
5700
|
:param family: The name of a family that the task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
5701
|
+
:param image: The image used to start a container. For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both. For ``QueueProcessingEc2Service``, ``image`` is required. Default: - the image of the task definition is used for Fargate, required otherwise
|
|
5702
5702
|
:param log_driver: The log driver to use. Default: - AwsLogDriver if enableLogging is true
|
|
5703
5703
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - default from underlying service.
|
|
5704
5704
|
:param max_receive_count: The maximum number of times that a message can be received by consumers. When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue. If the queue construct is specified, maxReceiveCount should be omitted. Default: 3
|
|
@@ -5719,7 +5719,6 @@ class QueueProcessingServiceBase(
|
|
|
5719
5719
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
5720
5720
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
5721
5721
|
props = QueueProcessingServiceBaseProps(
|
|
5722
|
-
image=image,
|
|
5723
5722
|
capacity_provider_strategies=capacity_provider_strategies,
|
|
5724
5723
|
circuit_breaker=circuit_breaker,
|
|
5725
5724
|
cluster=cluster,
|
|
@@ -5730,6 +5729,7 @@ class QueueProcessingServiceBase(
|
|
|
5730
5729
|
enable_logging=enable_logging,
|
|
5731
5730
|
environment=environment,
|
|
5732
5731
|
family=family,
|
|
5732
|
+
image=image,
|
|
5733
5733
|
log_driver=log_driver,
|
|
5734
5734
|
max_healthy_percent=max_healthy_percent,
|
|
5735
5735
|
max_receive_count=max_receive_count,
|
|
@@ -5858,7 +5858,6 @@ typing.cast(typing.Any, QueueProcessingServiceBase).__jsii_proxy_class__ = lambd
|
|
|
5858
5858
|
jsii_type="aws-cdk-lib.aws_ecs_patterns.QueueProcessingServiceBaseProps",
|
|
5859
5859
|
jsii_struct_bases=[],
|
|
5860
5860
|
name_mapping={
|
|
5861
|
-
"image": "image",
|
|
5862
5861
|
"capacity_provider_strategies": "capacityProviderStrategies",
|
|
5863
5862
|
"circuit_breaker": "circuitBreaker",
|
|
5864
5863
|
"cluster": "cluster",
|
|
@@ -5869,6 +5868,7 @@ typing.cast(typing.Any, QueueProcessingServiceBase).__jsii_proxy_class__ = lambd
|
|
|
5869
5868
|
"enable_logging": "enableLogging",
|
|
5870
5869
|
"environment": "environment",
|
|
5871
5870
|
"family": "family",
|
|
5871
|
+
"image": "image",
|
|
5872
5872
|
"log_driver": "logDriver",
|
|
5873
5873
|
"max_healthy_percent": "maxHealthyPercent",
|
|
5874
5874
|
"max_receive_count": "maxReceiveCount",
|
|
@@ -5889,7 +5889,6 @@ class QueueProcessingServiceBaseProps:
|
|
|
5889
5889
|
def __init__(
|
|
5890
5890
|
self,
|
|
5891
5891
|
*,
|
|
5892
|
-
image: _ContainerImage_94af1b43,
|
|
5893
5892
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5894
5893
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
5895
5894
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -5900,6 +5899,7 @@ class QueueProcessingServiceBaseProps:
|
|
|
5900
5899
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
5901
5900
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
5902
5901
|
family: typing.Optional[builtins.str] = None,
|
|
5902
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
5903
5903
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
5904
5904
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
5905
5905
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -5917,7 +5917,6 @@ class QueueProcessingServiceBaseProps:
|
|
|
5917
5917
|
) -> None:
|
|
5918
5918
|
'''The properties for the base QueueProcessingEc2Service or QueueProcessingFargateService service.
|
|
5919
5919
|
|
|
5920
|
-
:param image: The image used to start a container.
|
|
5921
5920
|
:param capacity_provider_strategies: A list of Capacity Provider strategies used to place a service. Default: - undefined
|
|
5922
5921
|
:param circuit_breaker: Whether to enable the deployment circuit breaker. If this property is defined, circuit breaker will be implicitly enabled. Default: - disabled
|
|
5923
5922
|
:param cluster: The name of the cluster that hosts the service. If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc. Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
|
|
@@ -5928,6 +5927,7 @@ class QueueProcessingServiceBaseProps:
|
|
|
5928
5927
|
:param enable_logging: Flag to indicate whether to enable logging. Default: true
|
|
5929
5928
|
:param environment: The environment variables to pass to the container. The variable ``QUEUE_NAME`` with value ``queue.queueName`` will always be passed. Default: 'QUEUE_NAME: queue.queueName'
|
|
5930
5929
|
:param family: The name of a family that the task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
5930
|
+
:param image: The image used to start a container. For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both. For ``QueueProcessingEc2Service``, ``image`` is required. Default: - the image of the task definition is used for Fargate, required otherwise
|
|
5931
5931
|
:param log_driver: The log driver to use. Default: - AwsLogDriver if enableLogging is true
|
|
5932
5932
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - default from underlying service.
|
|
5933
5933
|
:param max_receive_count: The maximum number of times that a message can be received by consumers. When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue. If the queue construct is specified, maxReceiveCount should be omitted. Default: 3
|
|
@@ -5963,9 +5963,6 @@ class QueueProcessingServiceBaseProps:
|
|
|
5963
5963
|
# vpc: ec2.Vpc
|
|
5964
5964
|
|
|
5965
5965
|
queue_processing_service_base_props = ecs_patterns.QueueProcessingServiceBaseProps(
|
|
5966
|
-
image=container_image,
|
|
5967
|
-
|
|
5968
|
-
# the properties below are optional
|
|
5969
5966
|
capacity_provider_strategies=[ecs.CapacityProviderStrategy(
|
|
5970
5967
|
capacity_provider="capacityProvider",
|
|
5971
5968
|
|
|
@@ -5988,6 +5985,7 @@ class QueueProcessingServiceBaseProps:
|
|
|
5988
5985
|
"environment_key": "environment"
|
|
5989
5986
|
},
|
|
5990
5987
|
family="family",
|
|
5988
|
+
image=container_image,
|
|
5991
5989
|
log_driver=log_driver,
|
|
5992
5990
|
max_healthy_percent=123,
|
|
5993
5991
|
max_receive_count=123,
|
|
@@ -6018,7 +6016,6 @@ class QueueProcessingServiceBaseProps:
|
|
|
6018
6016
|
deployment_controller = _DeploymentController_d3f94589(**deployment_controller)
|
|
6019
6017
|
if __debug__:
|
|
6020
6018
|
type_hints = typing.get_type_hints(_typecheckingstub__ff388b11e5bd7ab901448e691582759de30893b9591641393bec2ce4f8302d48)
|
|
6021
|
-
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
|
6022
6019
|
check_type(argname="argument capacity_provider_strategies", value=capacity_provider_strategies, expected_type=type_hints["capacity_provider_strategies"])
|
|
6023
6020
|
check_type(argname="argument circuit_breaker", value=circuit_breaker, expected_type=type_hints["circuit_breaker"])
|
|
6024
6021
|
check_type(argname="argument cluster", value=cluster, expected_type=type_hints["cluster"])
|
|
@@ -6029,6 +6026,7 @@ class QueueProcessingServiceBaseProps:
|
|
|
6029
6026
|
check_type(argname="argument enable_logging", value=enable_logging, expected_type=type_hints["enable_logging"])
|
|
6030
6027
|
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
|
6031
6028
|
check_type(argname="argument family", value=family, expected_type=type_hints["family"])
|
|
6029
|
+
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
|
6032
6030
|
check_type(argname="argument log_driver", value=log_driver, expected_type=type_hints["log_driver"])
|
|
6033
6031
|
check_type(argname="argument max_healthy_percent", value=max_healthy_percent, expected_type=type_hints["max_healthy_percent"])
|
|
6034
6032
|
check_type(argname="argument max_receive_count", value=max_receive_count, expected_type=type_hints["max_receive_count"])
|
|
@@ -6043,9 +6041,7 @@ class QueueProcessingServiceBaseProps:
|
|
|
6043
6041
|
check_type(argname="argument service_name", value=service_name, expected_type=type_hints["service_name"])
|
|
6044
6042
|
check_type(argname="argument visibility_timeout", value=visibility_timeout, expected_type=type_hints["visibility_timeout"])
|
|
6045
6043
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
6046
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
6047
|
-
"image": image,
|
|
6048
|
-
}
|
|
6044
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
6049
6045
|
if capacity_provider_strategies is not None:
|
|
6050
6046
|
self._values["capacity_provider_strategies"] = capacity_provider_strategies
|
|
6051
6047
|
if circuit_breaker is not None:
|
|
@@ -6066,6 +6062,8 @@ class QueueProcessingServiceBaseProps:
|
|
|
6066
6062
|
self._values["environment"] = environment
|
|
6067
6063
|
if family is not None:
|
|
6068
6064
|
self._values["family"] = family
|
|
6065
|
+
if image is not None:
|
|
6066
|
+
self._values["image"] = image
|
|
6069
6067
|
if log_driver is not None:
|
|
6070
6068
|
self._values["log_driver"] = log_driver
|
|
6071
6069
|
if max_healthy_percent is not None:
|
|
@@ -6095,13 +6093,6 @@ class QueueProcessingServiceBaseProps:
|
|
|
6095
6093
|
if vpc is not None:
|
|
6096
6094
|
self._values["vpc"] = vpc
|
|
6097
6095
|
|
|
6098
|
-
@builtins.property
|
|
6099
|
-
def image(self) -> _ContainerImage_94af1b43:
|
|
6100
|
-
'''The image used to start a container.'''
|
|
6101
|
-
result = self._values.get("image")
|
|
6102
|
-
assert result is not None, "Required property 'image' is missing"
|
|
6103
|
-
return typing.cast(_ContainerImage_94af1b43, result)
|
|
6104
|
-
|
|
6105
6096
|
@builtins.property
|
|
6106
6097
|
def capacity_provider_strategies(
|
|
6107
6098
|
self,
|
|
@@ -6214,6 +6205,18 @@ class QueueProcessingServiceBaseProps:
|
|
|
6214
6205
|
result = self._values.get("family")
|
|
6215
6206
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
6216
6207
|
|
|
6208
|
+
@builtins.property
|
|
6209
|
+
def image(self) -> typing.Optional[_ContainerImage_94af1b43]:
|
|
6210
|
+
'''The image used to start a container.
|
|
6211
|
+
|
|
6212
|
+
For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both.
|
|
6213
|
+
For ``QueueProcessingEc2Service``, ``image`` is required.
|
|
6214
|
+
|
|
6215
|
+
:default: - the image of the task definition is used for Fargate, required otherwise
|
|
6216
|
+
'''
|
|
6217
|
+
result = self._values.get("image")
|
|
6218
|
+
return typing.cast(typing.Optional[_ContainerImage_94af1b43], result)
|
|
6219
|
+
|
|
6217
6220
|
@builtins.property
|
|
6218
6221
|
def log_driver(self) -> typing.Optional[_LogDriver_393a21bb]:
|
|
6219
6222
|
'''The log driver to use.
|
|
@@ -12450,7 +12453,6 @@ class QueueProcessingEc2Service(
|
|
|
12450
12453
|
memory_reservation_mib: typing.Optional[jsii.Number] = None,
|
|
12451
12454
|
placement_constraints: typing.Optional[typing.Sequence[_PlacementConstraint_11d82a52]] = None,
|
|
12452
12455
|
placement_strategies: typing.Optional[typing.Sequence[_PlacementStrategy_2bb6c232]] = None,
|
|
12453
|
-
image: _ContainerImage_94af1b43,
|
|
12454
12456
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12455
12457
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12456
12458
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -12461,6 +12463,7 @@ class QueueProcessingEc2Service(
|
|
|
12461
12463
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
12462
12464
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
12463
12465
|
family: typing.Optional[builtins.str] = None,
|
|
12466
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
12464
12467
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
12465
12468
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
12466
12469
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -12487,7 +12490,6 @@ class QueueProcessingEc2Service(
|
|
|
12487
12490
|
:param memory_reservation_mib: The soft limit (in MiB) of memory to reserve for the container. When system memory is under contention, Docker attempts to keep the container memory within the limit. If the container requires more memory, it can consume up to the value specified by the Memory property or all of the available memory on the container instance—whichever comes first. At least one of memoryLimitMiB and memoryReservationMiB is required for non-Fargate services. Default: - No memory reserved.
|
|
12488
12491
|
:param placement_constraints: The placement constraints to use for tasks in the service. For more information, see `Amazon ECS Task Placement Constraints <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html>`_. Default: - No constraints.
|
|
12489
12492
|
:param placement_strategies: The placement strategies to use for tasks in the service. For more information, see `Amazon ECS Task Placement Strategies <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-strategies.html>`_. Default: - No strategies.
|
|
12490
|
-
:param image: The image used to start a container.
|
|
12491
12493
|
:param capacity_provider_strategies: A list of Capacity Provider strategies used to place a service. Default: - undefined
|
|
12492
12494
|
:param circuit_breaker: Whether to enable the deployment circuit breaker. If this property is defined, circuit breaker will be implicitly enabled. Default: - disabled
|
|
12493
12495
|
:param cluster: The name of the cluster that hosts the service. If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc. Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
|
|
@@ -12498,6 +12500,7 @@ class QueueProcessingEc2Service(
|
|
|
12498
12500
|
:param enable_logging: Flag to indicate whether to enable logging. Default: true
|
|
12499
12501
|
:param environment: The environment variables to pass to the container. The variable ``QUEUE_NAME`` with value ``queue.queueName`` will always be passed. Default: 'QUEUE_NAME: queue.queueName'
|
|
12500
12502
|
:param family: The name of a family that the task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
12503
|
+
:param image: The image used to start a container. For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both. For ``QueueProcessingEc2Service``, ``image`` is required. Default: - the image of the task definition is used for Fargate, required otherwise
|
|
12501
12504
|
:param log_driver: The log driver to use. Default: - AwsLogDriver if enableLogging is true
|
|
12502
12505
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - default from underlying service.
|
|
12503
12506
|
:param max_receive_count: The maximum number of times that a message can be received by consumers. When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue. If the queue construct is specified, maxReceiveCount should be omitted. Default: 3
|
|
@@ -12525,7 +12528,6 @@ class QueueProcessingEc2Service(
|
|
|
12525
12528
|
memory_reservation_mib=memory_reservation_mib,
|
|
12526
12529
|
placement_constraints=placement_constraints,
|
|
12527
12530
|
placement_strategies=placement_strategies,
|
|
12528
|
-
image=image,
|
|
12529
12531
|
capacity_provider_strategies=capacity_provider_strategies,
|
|
12530
12532
|
circuit_breaker=circuit_breaker,
|
|
12531
12533
|
cluster=cluster,
|
|
@@ -12536,6 +12538,7 @@ class QueueProcessingEc2Service(
|
|
|
12536
12538
|
enable_logging=enable_logging,
|
|
12537
12539
|
environment=environment,
|
|
12538
12540
|
family=family,
|
|
12541
|
+
image=image,
|
|
12539
12542
|
log_driver=log_driver,
|
|
12540
12543
|
max_healthy_percent=max_healthy_percent,
|
|
12541
12544
|
max_receive_count=max_receive_count,
|
|
@@ -12571,7 +12574,6 @@ class QueueProcessingEc2Service(
|
|
|
12571
12574
|
jsii_type="aws-cdk-lib.aws_ecs_patterns.QueueProcessingEc2ServiceProps",
|
|
12572
12575
|
jsii_struct_bases=[QueueProcessingServiceBaseProps],
|
|
12573
12576
|
name_mapping={
|
|
12574
|
-
"image": "image",
|
|
12575
12577
|
"capacity_provider_strategies": "capacityProviderStrategies",
|
|
12576
12578
|
"circuit_breaker": "circuitBreaker",
|
|
12577
12579
|
"cluster": "cluster",
|
|
@@ -12582,6 +12584,7 @@ class QueueProcessingEc2Service(
|
|
|
12582
12584
|
"enable_logging": "enableLogging",
|
|
12583
12585
|
"environment": "environment",
|
|
12584
12586
|
"family": "family",
|
|
12587
|
+
"image": "image",
|
|
12585
12588
|
"log_driver": "logDriver",
|
|
12586
12589
|
"max_healthy_percent": "maxHealthyPercent",
|
|
12587
12590
|
"max_receive_count": "maxReceiveCount",
|
|
@@ -12609,7 +12612,6 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12609
12612
|
def __init__(
|
|
12610
12613
|
self,
|
|
12611
12614
|
*,
|
|
12612
|
-
image: _ContainerImage_94af1b43,
|
|
12613
12615
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12614
12616
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
12615
12617
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -12620,6 +12622,7 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12620
12622
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
12621
12623
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
12622
12624
|
family: typing.Optional[builtins.str] = None,
|
|
12625
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
12623
12626
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
12624
12627
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
12625
12628
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -12644,7 +12647,6 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12644
12647
|
) -> None:
|
|
12645
12648
|
'''The properties for the QueueProcessingEc2Service service.
|
|
12646
12649
|
|
|
12647
|
-
:param image: The image used to start a container.
|
|
12648
12650
|
:param capacity_provider_strategies: A list of Capacity Provider strategies used to place a service. Default: - undefined
|
|
12649
12651
|
:param circuit_breaker: Whether to enable the deployment circuit breaker. If this property is defined, circuit breaker will be implicitly enabled. Default: - disabled
|
|
12650
12652
|
:param cluster: The name of the cluster that hosts the service. If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc. Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
|
|
@@ -12655,6 +12657,7 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12655
12657
|
:param enable_logging: Flag to indicate whether to enable logging. Default: true
|
|
12656
12658
|
:param environment: The environment variables to pass to the container. The variable ``QUEUE_NAME`` with value ``queue.queueName`` will always be passed. Default: 'QUEUE_NAME: queue.queueName'
|
|
12657
12659
|
:param family: The name of a family that the task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
12660
|
+
:param image: The image used to start a container. For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both. For ``QueueProcessingEc2Service``, ``image`` is required. Default: - the image of the task definition is used for Fargate, required otherwise
|
|
12658
12661
|
:param log_driver: The log driver to use. Default: - AwsLogDriver if enableLogging is true
|
|
12659
12662
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - default from underlying service.
|
|
12660
12663
|
:param max_receive_count: The maximum number of times that a message can be received by consumers. When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue. If the queue construct is specified, maxReceiveCount should be omitted. Default: 3
|
|
@@ -12704,7 +12707,6 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12704
12707
|
deployment_controller = _DeploymentController_d3f94589(**deployment_controller)
|
|
12705
12708
|
if __debug__:
|
|
12706
12709
|
type_hints = typing.get_type_hints(_typecheckingstub__e95e6c05537f51e447243b2184fab854deab866deba12bae1b89f383f457ef27)
|
|
12707
|
-
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
|
12708
12710
|
check_type(argname="argument capacity_provider_strategies", value=capacity_provider_strategies, expected_type=type_hints["capacity_provider_strategies"])
|
|
12709
12711
|
check_type(argname="argument circuit_breaker", value=circuit_breaker, expected_type=type_hints["circuit_breaker"])
|
|
12710
12712
|
check_type(argname="argument cluster", value=cluster, expected_type=type_hints["cluster"])
|
|
@@ -12715,6 +12717,7 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12715
12717
|
check_type(argname="argument enable_logging", value=enable_logging, expected_type=type_hints["enable_logging"])
|
|
12716
12718
|
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
|
12717
12719
|
check_type(argname="argument family", value=family, expected_type=type_hints["family"])
|
|
12720
|
+
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
|
12718
12721
|
check_type(argname="argument log_driver", value=log_driver, expected_type=type_hints["log_driver"])
|
|
12719
12722
|
check_type(argname="argument max_healthy_percent", value=max_healthy_percent, expected_type=type_hints["max_healthy_percent"])
|
|
12720
12723
|
check_type(argname="argument max_receive_count", value=max_receive_count, expected_type=type_hints["max_receive_count"])
|
|
@@ -12736,9 +12739,7 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12736
12739
|
check_type(argname="argument memory_reservation_mib", value=memory_reservation_mib, expected_type=type_hints["memory_reservation_mib"])
|
|
12737
12740
|
check_type(argname="argument placement_constraints", value=placement_constraints, expected_type=type_hints["placement_constraints"])
|
|
12738
12741
|
check_type(argname="argument placement_strategies", value=placement_strategies, expected_type=type_hints["placement_strategies"])
|
|
12739
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
12740
|
-
"image": image,
|
|
12741
|
-
}
|
|
12742
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
12742
12743
|
if capacity_provider_strategies is not None:
|
|
12743
12744
|
self._values["capacity_provider_strategies"] = capacity_provider_strategies
|
|
12744
12745
|
if circuit_breaker is not None:
|
|
@@ -12759,6 +12760,8 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12759
12760
|
self._values["environment"] = environment
|
|
12760
12761
|
if family is not None:
|
|
12761
12762
|
self._values["family"] = family
|
|
12763
|
+
if image is not None:
|
|
12764
|
+
self._values["image"] = image
|
|
12762
12765
|
if log_driver is not None:
|
|
12763
12766
|
self._values["log_driver"] = log_driver
|
|
12764
12767
|
if max_healthy_percent is not None:
|
|
@@ -12802,13 +12805,6 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12802
12805
|
if placement_strategies is not None:
|
|
12803
12806
|
self._values["placement_strategies"] = placement_strategies
|
|
12804
12807
|
|
|
12805
|
-
@builtins.property
|
|
12806
|
-
def image(self) -> _ContainerImage_94af1b43:
|
|
12807
|
-
'''The image used to start a container.'''
|
|
12808
|
-
result = self._values.get("image")
|
|
12809
|
-
assert result is not None, "Required property 'image' is missing"
|
|
12810
|
-
return typing.cast(_ContainerImage_94af1b43, result)
|
|
12811
|
-
|
|
12812
12808
|
@builtins.property
|
|
12813
12809
|
def capacity_provider_strategies(
|
|
12814
12810
|
self,
|
|
@@ -12921,6 +12917,18 @@ class QueueProcessingEc2ServiceProps(QueueProcessingServiceBaseProps):
|
|
|
12921
12917
|
result = self._values.get("family")
|
|
12922
12918
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
12923
12919
|
|
|
12920
|
+
@builtins.property
|
|
12921
|
+
def image(self) -> typing.Optional[_ContainerImage_94af1b43]:
|
|
12922
|
+
'''The image used to start a container.
|
|
12923
|
+
|
|
12924
|
+
For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both.
|
|
12925
|
+
For ``QueueProcessingEc2Service``, ``image`` is required.
|
|
12926
|
+
|
|
12927
|
+
:default: - the image of the task definition is used for Fargate, required otherwise
|
|
12928
|
+
'''
|
|
12929
|
+
result = self._values.get("image")
|
|
12930
|
+
return typing.cast(typing.Optional[_ContainerImage_94af1b43], result)
|
|
12931
|
+
|
|
12924
12932
|
@builtins.property
|
|
12925
12933
|
def log_driver(self) -> typing.Optional[_LogDriver_393a21bb]:
|
|
12926
12934
|
'''The log driver to use.
|
|
@@ -13223,7 +13231,6 @@ class QueueProcessingFargateService(
|
|
|
13223
13231
|
health_check: typing.Optional[typing.Union[_HealthCheck_6459d04f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13224
13232
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
13225
13233
|
task_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13226
|
-
image: _ContainerImage_94af1b43,
|
|
13227
13234
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13228
13235
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13229
13236
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -13234,6 +13241,7 @@ class QueueProcessingFargateService(
|
|
|
13234
13241
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
13235
13242
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
13236
13243
|
family: typing.Optional[builtins.str] = None,
|
|
13244
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
13237
13245
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
13238
13246
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
13239
13247
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -13259,11 +13267,10 @@ class QueueProcessingFargateService(
|
|
|
13259
13267
|
:param scope: -
|
|
13260
13268
|
:param id: -
|
|
13261
13269
|
:param assign_public_ip: Specifies whether the task's elastic network interface receives a public IP address. If true, each task will receive a public IP address. Default: false
|
|
13262
|
-
:param container_name: Optional name for the container added. Default: - QueueProcessingContainer
|
|
13270
|
+
:param container_name: Optional name for the container added. This name is not used when ``taskDefinition`` is provided. Default: - QueueProcessingContainer
|
|
13263
13271
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
13264
13272
|
:param security_groups: The security groups to associate with the service. If you do not specify a security group, a new security group is created. Default: - A new security group is created.
|
|
13265
13273
|
:param task_subnets: The subnets to associate with the service. Default: - Public subnets if ``assignPublicIp`` is set, otherwise the first available one of Private, Isolated, Public, in that order.
|
|
13266
|
-
:param image: The image used to start a container.
|
|
13267
13274
|
:param capacity_provider_strategies: A list of Capacity Provider strategies used to place a service. Default: - undefined
|
|
13268
13275
|
:param circuit_breaker: Whether to enable the deployment circuit breaker. If this property is defined, circuit breaker will be implicitly enabled. Default: - disabled
|
|
13269
13276
|
:param cluster: The name of the cluster that hosts the service. If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc. Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
|
|
@@ -13274,6 +13281,7 @@ class QueueProcessingFargateService(
|
|
|
13274
13281
|
:param enable_logging: Flag to indicate whether to enable logging. Default: true
|
|
13275
13282
|
:param environment: The environment variables to pass to the container. The variable ``QUEUE_NAME`` with value ``queue.queueName`` will always be passed. Default: 'QUEUE_NAME: queue.queueName'
|
|
13276
13283
|
:param family: The name of a family that the task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
13284
|
+
:param image: The image used to start a container. For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both. For ``QueueProcessingEc2Service``, ``image`` is required. Default: - the image of the task definition is used for Fargate, required otherwise
|
|
13277
13285
|
:param log_driver: The log driver to use. Default: - AwsLogDriver if enableLogging is true
|
|
13278
13286
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - default from underlying service.
|
|
13279
13287
|
:param max_receive_count: The maximum number of times that a message can be received by consumers. When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue. If the queue construct is specified, maxReceiveCount should be omitted. Default: 3
|
|
@@ -13304,7 +13312,6 @@ class QueueProcessingFargateService(
|
|
|
13304
13312
|
health_check=health_check,
|
|
13305
13313
|
security_groups=security_groups,
|
|
13306
13314
|
task_subnets=task_subnets,
|
|
13307
|
-
image=image,
|
|
13308
13315
|
capacity_provider_strategies=capacity_provider_strategies,
|
|
13309
13316
|
circuit_breaker=circuit_breaker,
|
|
13310
13317
|
cluster=cluster,
|
|
@@ -13315,6 +13322,7 @@ class QueueProcessingFargateService(
|
|
|
13315
13322
|
enable_logging=enable_logging,
|
|
13316
13323
|
environment=environment,
|
|
13317
13324
|
family=family,
|
|
13325
|
+
image=image,
|
|
13318
13326
|
log_driver=log_driver,
|
|
13319
13327
|
max_healthy_percent=max_healthy_percent,
|
|
13320
13328
|
max_receive_count=max_receive_count,
|
|
@@ -13355,7 +13363,6 @@ class QueueProcessingFargateService(
|
|
|
13355
13363
|
jsii_type="aws-cdk-lib.aws_ecs_patterns.QueueProcessingFargateServiceProps",
|
|
13356
13364
|
jsii_struct_bases=[QueueProcessingServiceBaseProps, FargateServiceBaseProps],
|
|
13357
13365
|
name_mapping={
|
|
13358
|
-
"image": "image",
|
|
13359
13366
|
"capacity_provider_strategies": "capacityProviderStrategies",
|
|
13360
13367
|
"circuit_breaker": "circuitBreaker",
|
|
13361
13368
|
"cluster": "cluster",
|
|
@@ -13366,6 +13373,7 @@ class QueueProcessingFargateService(
|
|
|
13366
13373
|
"enable_logging": "enableLogging",
|
|
13367
13374
|
"environment": "environment",
|
|
13368
13375
|
"family": "family",
|
|
13376
|
+
"image": "image",
|
|
13369
13377
|
"log_driver": "logDriver",
|
|
13370
13378
|
"max_healthy_percent": "maxHealthyPercent",
|
|
13371
13379
|
"max_receive_count": "maxReceiveCount",
|
|
@@ -13399,7 +13407,6 @@ class QueueProcessingFargateServiceProps(
|
|
|
13399
13407
|
def __init__(
|
|
13400
13408
|
self,
|
|
13401
13409
|
*,
|
|
13402
|
-
image: _ContainerImage_94af1b43,
|
|
13403
13410
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13404
13411
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
13405
13412
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -13410,6 +13417,7 @@ class QueueProcessingFargateServiceProps(
|
|
|
13410
13417
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
13411
13418
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
13412
13419
|
family: typing.Optional[builtins.str] = None,
|
|
13420
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
13413
13421
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
13414
13422
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
13415
13423
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -13437,7 +13445,6 @@ class QueueProcessingFargateServiceProps(
|
|
|
13437
13445
|
) -> None:
|
|
13438
13446
|
'''The properties for the QueueProcessingFargateService service.
|
|
13439
13447
|
|
|
13440
|
-
:param image: The image used to start a container.
|
|
13441
13448
|
:param capacity_provider_strategies: A list of Capacity Provider strategies used to place a service. Default: - undefined
|
|
13442
13449
|
:param circuit_breaker: Whether to enable the deployment circuit breaker. If this property is defined, circuit breaker will be implicitly enabled. Default: - disabled
|
|
13443
13450
|
:param cluster: The name of the cluster that hosts the service. If a cluster is specified, the vpc construct should be omitted. Alternatively, you can omit both cluster and vpc. Default: - create a new cluster; if both cluster and vpc are omitted, a new VPC will be created for you.
|
|
@@ -13448,6 +13455,7 @@ class QueueProcessingFargateServiceProps(
|
|
|
13448
13455
|
:param enable_logging: Flag to indicate whether to enable logging. Default: true
|
|
13449
13456
|
:param environment: The environment variables to pass to the container. The variable ``QUEUE_NAME`` with value ``queue.queueName`` will always be passed. Default: 'QUEUE_NAME: queue.queueName'
|
|
13450
13457
|
:param family: The name of a family that the task definition is registered to. A family groups multiple versions of a task definition. Default: - Automatically generated name.
|
|
13458
|
+
:param image: The image used to start a container. For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both. For ``QueueProcessingEc2Service``, ``image`` is required. Default: - the image of the task definition is used for Fargate, required otherwise
|
|
13451
13459
|
:param log_driver: The log driver to use. Default: - AwsLogDriver if enableLogging is true
|
|
13452
13460
|
:param max_healthy_percent: The maximum number of tasks, specified as a percentage of the Amazon ECS service's DesiredCount value, that can run in a service during a deployment. Default: - default from underlying service.
|
|
13453
13461
|
:param max_receive_count: The maximum number of times that a message can be received by consumers. When this value is exceeded for a message the message will be automatically sent to the Dead Letter Queue. If the queue construct is specified, maxReceiveCount should be omitted. Default: 3
|
|
@@ -13468,7 +13476,7 @@ class QueueProcessingFargateServiceProps(
|
|
|
13468
13476
|
:param runtime_platform: The runtime platform of the task definition. Default: - If the property is undefined, ``operatingSystemFamily`` is LINUX and ``cpuArchitecture`` is X86_64
|
|
13469
13477
|
:param task_definition: The task definition to use for tasks in the service. TaskDefinition or TaskImageOptions must be specified, but not both. [disable-awslint:ref-via-interface] Default: - none
|
|
13470
13478
|
:param assign_public_ip: Specifies whether the task's elastic network interface receives a public IP address. If true, each task will receive a public IP address. Default: false
|
|
13471
|
-
:param container_name: Optional name for the container added. Default: - QueueProcessingContainer
|
|
13479
|
+
:param container_name: Optional name for the container added. This name is not used when ``taskDefinition`` is provided. Default: - QueueProcessingContainer
|
|
13472
13480
|
:param health_check: The health check command and associated configuration parameters for the container. Default: - Health check configuration from container.
|
|
13473
13481
|
:param security_groups: The security groups to associate with the service. If you do not specify a security group, a new security group is created. Default: - A new security group is created.
|
|
13474
13482
|
:param task_subnets: The subnets to associate with the service. Default: - Public subnets if ``assignPublicIp`` is set, otherwise the first available one of Private, Isolated, Public, in that order.
|
|
@@ -13507,7 +13515,6 @@ class QueueProcessingFargateServiceProps(
|
|
|
13507
13515
|
task_subnets = _SubnetSelection_e57d76df(**task_subnets)
|
|
13508
13516
|
if __debug__:
|
|
13509
13517
|
type_hints = typing.get_type_hints(_typecheckingstub__9959b47db027250927e99f3cbc475109465e4e426a52383adb8d29f2226d8a8c)
|
|
13510
|
-
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
|
13511
13518
|
check_type(argname="argument capacity_provider_strategies", value=capacity_provider_strategies, expected_type=type_hints["capacity_provider_strategies"])
|
|
13512
13519
|
check_type(argname="argument circuit_breaker", value=circuit_breaker, expected_type=type_hints["circuit_breaker"])
|
|
13513
13520
|
check_type(argname="argument cluster", value=cluster, expected_type=type_hints["cluster"])
|
|
@@ -13518,6 +13525,7 @@ class QueueProcessingFargateServiceProps(
|
|
|
13518
13525
|
check_type(argname="argument enable_logging", value=enable_logging, expected_type=type_hints["enable_logging"])
|
|
13519
13526
|
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
|
13520
13527
|
check_type(argname="argument family", value=family, expected_type=type_hints["family"])
|
|
13528
|
+
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
|
13521
13529
|
check_type(argname="argument log_driver", value=log_driver, expected_type=type_hints["log_driver"])
|
|
13522
13530
|
check_type(argname="argument max_healthy_percent", value=max_healthy_percent, expected_type=type_hints["max_healthy_percent"])
|
|
13523
13531
|
check_type(argname="argument max_receive_count", value=max_receive_count, expected_type=type_hints["max_receive_count"])
|
|
@@ -13542,9 +13550,7 @@ class QueueProcessingFargateServiceProps(
|
|
|
13542
13550
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
|
13543
13551
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
|
13544
13552
|
check_type(argname="argument task_subnets", value=task_subnets, expected_type=type_hints["task_subnets"])
|
|
13545
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13546
|
-
"image": image,
|
|
13547
|
-
}
|
|
13553
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
13548
13554
|
if capacity_provider_strategies is not None:
|
|
13549
13555
|
self._values["capacity_provider_strategies"] = capacity_provider_strategies
|
|
13550
13556
|
if circuit_breaker is not None:
|
|
@@ -13565,6 +13571,8 @@ class QueueProcessingFargateServiceProps(
|
|
|
13565
13571
|
self._values["environment"] = environment
|
|
13566
13572
|
if family is not None:
|
|
13567
13573
|
self._values["family"] = family
|
|
13574
|
+
if image is not None:
|
|
13575
|
+
self._values["image"] = image
|
|
13568
13576
|
if log_driver is not None:
|
|
13569
13577
|
self._values["log_driver"] = log_driver
|
|
13570
13578
|
if max_healthy_percent is not None:
|
|
@@ -13614,13 +13622,6 @@ class QueueProcessingFargateServiceProps(
|
|
|
13614
13622
|
if task_subnets is not None:
|
|
13615
13623
|
self._values["task_subnets"] = task_subnets
|
|
13616
13624
|
|
|
13617
|
-
@builtins.property
|
|
13618
|
-
def image(self) -> _ContainerImage_94af1b43:
|
|
13619
|
-
'''The image used to start a container.'''
|
|
13620
|
-
result = self._values.get("image")
|
|
13621
|
-
assert result is not None, "Required property 'image' is missing"
|
|
13622
|
-
return typing.cast(_ContainerImage_94af1b43, result)
|
|
13623
|
-
|
|
13624
13625
|
@builtins.property
|
|
13625
13626
|
def capacity_provider_strategies(
|
|
13626
13627
|
self,
|
|
@@ -13733,6 +13734,18 @@ class QueueProcessingFargateServiceProps(
|
|
|
13733
13734
|
result = self._values.get("family")
|
|
13734
13735
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
13735
13736
|
|
|
13737
|
+
@builtins.property
|
|
13738
|
+
def image(self) -> typing.Optional[_ContainerImage_94af1b43]:
|
|
13739
|
+
'''The image used to start a container.
|
|
13740
|
+
|
|
13741
|
+
For ``QueueProcessingFargateService``, either ``image`` or ``taskDefinition`` must be specified, but not both.
|
|
13742
|
+
For ``QueueProcessingEc2Service``, ``image`` is required.
|
|
13743
|
+
|
|
13744
|
+
:default: - the image of the task definition is used for Fargate, required otherwise
|
|
13745
|
+
'''
|
|
13746
|
+
result = self._values.get("image")
|
|
13747
|
+
return typing.cast(typing.Optional[_ContainerImage_94af1b43], result)
|
|
13748
|
+
|
|
13736
13749
|
@builtins.property
|
|
13737
13750
|
def log_driver(self) -> typing.Optional[_LogDriver_393a21bb]:
|
|
13738
13751
|
'''The log driver to use.
|
|
@@ -13985,6 +13998,8 @@ class QueueProcessingFargateServiceProps(
|
|
|
13985
13998
|
def container_name(self) -> typing.Optional[builtins.str]:
|
|
13986
13999
|
'''Optional name for the container added.
|
|
13987
14000
|
|
|
14001
|
+
This name is not used when ``taskDefinition`` is provided.
|
|
14002
|
+
|
|
13988
14003
|
:default: - QueueProcessingContainer
|
|
13989
14004
|
'''
|
|
13990
14005
|
result = self._values.get("container_name")
|
|
@@ -15855,7 +15870,6 @@ def _typecheckingstub__5fc71af757020f767be8812de7989d3d33a9bd30209b4100ed047bcc3
|
|
|
15855
15870
|
scope: _constructs_77d1e7e8.Construct,
|
|
15856
15871
|
id: builtins.str,
|
|
15857
15872
|
*,
|
|
15858
|
-
image: _ContainerImage_94af1b43,
|
|
15859
15873
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15860
15874
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15861
15875
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -15866,6 +15880,7 @@ def _typecheckingstub__5fc71af757020f767be8812de7989d3d33a9bd30209b4100ed047bcc3
|
|
|
15866
15880
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
15867
15881
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
15868
15882
|
family: typing.Optional[builtins.str] = None,
|
|
15883
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
15869
15884
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
15870
15885
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
15871
15886
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -15905,7 +15920,6 @@ def _typecheckingstub__37d377968624397001d0437d8277df12d88594198df072720227cb206
|
|
|
15905
15920
|
|
|
15906
15921
|
def _typecheckingstub__ff388b11e5bd7ab901448e691582759de30893b9591641393bec2ce4f8302d48(
|
|
15907
15922
|
*,
|
|
15908
|
-
image: _ContainerImage_94af1b43,
|
|
15909
15923
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
15910
15924
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
15911
15925
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -15916,6 +15930,7 @@ def _typecheckingstub__ff388b11e5bd7ab901448e691582759de30893b9591641393bec2ce4f
|
|
|
15916
15930
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
15917
15931
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
15918
15932
|
family: typing.Optional[builtins.str] = None,
|
|
15933
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
15919
15934
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
15920
15935
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
15921
15936
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -16543,7 +16558,6 @@ def _typecheckingstub__a1f673ce3ccb5c9cc5919c4c4ba0e238d9474e15155174bbab78fb20c
|
|
|
16543
16558
|
memory_reservation_mib: typing.Optional[jsii.Number] = None,
|
|
16544
16559
|
placement_constraints: typing.Optional[typing.Sequence[_PlacementConstraint_11d82a52]] = None,
|
|
16545
16560
|
placement_strategies: typing.Optional[typing.Sequence[_PlacementStrategy_2bb6c232]] = None,
|
|
16546
|
-
image: _ContainerImage_94af1b43,
|
|
16547
16561
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
16548
16562
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16549
16563
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -16554,6 +16568,7 @@ def _typecheckingstub__a1f673ce3ccb5c9cc5919c4c4ba0e238d9474e15155174bbab78fb20c
|
|
|
16554
16568
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
16555
16569
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16556
16570
|
family: typing.Optional[builtins.str] = None,
|
|
16571
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
16557
16572
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
16558
16573
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
16559
16574
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -16574,7 +16589,6 @@ def _typecheckingstub__a1f673ce3ccb5c9cc5919c4c4ba0e238d9474e15155174bbab78fb20c
|
|
|
16574
16589
|
|
|
16575
16590
|
def _typecheckingstub__e95e6c05537f51e447243b2184fab854deab866deba12bae1b89f383f457ef27(
|
|
16576
16591
|
*,
|
|
16577
|
-
image: _ContainerImage_94af1b43,
|
|
16578
16592
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
16579
16593
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16580
16594
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -16585,6 +16599,7 @@ def _typecheckingstub__e95e6c05537f51e447243b2184fab854deab866deba12bae1b89f383f
|
|
|
16585
16599
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
16586
16600
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16587
16601
|
family: typing.Optional[builtins.str] = None,
|
|
16602
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
16588
16603
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
16589
16604
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
16590
16605
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -16619,7 +16634,6 @@ def _typecheckingstub__f7f1cc7ffec4414918cb71e7371c364ad046987205ab7eb0cbe7ad6fc
|
|
|
16619
16634
|
health_check: typing.Optional[typing.Union[_HealthCheck_6459d04f, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16620
16635
|
security_groups: typing.Optional[typing.Sequence[_ISecurityGroup_acf8a799]] = None,
|
|
16621
16636
|
task_subnets: typing.Optional[typing.Union[_SubnetSelection_e57d76df, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16622
|
-
image: _ContainerImage_94af1b43,
|
|
16623
16637
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
16624
16638
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16625
16639
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -16630,6 +16644,7 @@ def _typecheckingstub__f7f1cc7ffec4414918cb71e7371c364ad046987205ab7eb0cbe7ad6fc
|
|
|
16630
16644
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
16631
16645
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16632
16646
|
family: typing.Optional[builtins.str] = None,
|
|
16647
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
16633
16648
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
16634
16649
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
16635
16650
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
|
@@ -16655,7 +16670,6 @@ def _typecheckingstub__f7f1cc7ffec4414918cb71e7371c364ad046987205ab7eb0cbe7ad6fc
|
|
|
16655
16670
|
|
|
16656
16671
|
def _typecheckingstub__9959b47db027250927e99f3cbc475109465e4e426a52383adb8d29f2226d8a8c(
|
|
16657
16672
|
*,
|
|
16658
|
-
image: _ContainerImage_94af1b43,
|
|
16659
16673
|
capacity_provider_strategies: typing.Optional[typing.Sequence[typing.Union[_CapacityProviderStrategy_8d7b6657, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
16660
16674
|
circuit_breaker: typing.Optional[typing.Union[_DeploymentCircuitBreaker_9739d940, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
16661
16675
|
cluster: typing.Optional[_ICluster_16cddd09] = None,
|
|
@@ -16666,6 +16680,7 @@ def _typecheckingstub__9959b47db027250927e99f3cbc475109465e4e426a52383adb8d29f22
|
|
|
16666
16680
|
enable_logging: typing.Optional[builtins.bool] = None,
|
|
16667
16681
|
environment: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
16668
16682
|
family: typing.Optional[builtins.str] = None,
|
|
16683
|
+
image: typing.Optional[_ContainerImage_94af1b43] = None,
|
|
16669
16684
|
log_driver: typing.Optional[_LogDriver_393a21bb] = None,
|
|
16670
16685
|
max_healthy_percent: typing.Optional[jsii.Number] = None,
|
|
16671
16686
|
max_receive_count: typing.Optional[jsii.Number] = None,
|