must-cdk 0.0.26__py3-none-any.whl → 0.0.28__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.
- must_cdk/__init__.py +107 -64
- must_cdk/_jsii/__init__.py +1 -1
- must_cdk/_jsii/must-cdk@0.0.28.jsii.tgz +0 -0
- {must_cdk-0.0.26.dist-info → must_cdk-0.0.28.dist-info}/METADATA +1 -1
- must_cdk-0.0.28.dist-info/RECORD +9 -0
- must_cdk/_jsii/must-cdk@0.0.26.jsii.tgz +0 -0
- must_cdk-0.0.26.dist-info/RECORD +0 -9
- {must_cdk-0.0.26.dist-info → must_cdk-0.0.28.dist-info}/LICENSE +0 -0
- {must_cdk-0.0.26.dist-info → must_cdk-0.0.28.dist-info}/WHEEL +0 -0
- {must_cdk-0.0.26.dist-info → must_cdk-0.0.28.dist-info}/top_level.txt +0 -0
must_cdk/__init__.py
CHANGED
@@ -35,6 +35,7 @@ from ._jsii import *
|
|
35
35
|
|
36
36
|
import aws_cdk.aws_apigateway as _aws_cdk_aws_apigateway_ceddda9d
|
37
37
|
import aws_cdk.aws_certificatemanager as _aws_cdk_aws_certificatemanager_ceddda9d
|
38
|
+
import aws_cdk.aws_codedeploy as _aws_cdk_aws_codedeploy_ceddda9d
|
38
39
|
import aws_cdk.aws_ec2 as _aws_cdk_aws_ec2_ceddda9d
|
39
40
|
import aws_cdk.aws_ecs as _aws_cdk_aws_ecs_ceddda9d
|
40
41
|
import aws_cdk.aws_elasticloadbalancingv2 as _aws_cdk_aws_elasticloadbalancingv2_ceddda9d
|
@@ -360,7 +361,6 @@ class AutoScalingProps:
|
|
360
361
|
jsii_type="must-cdk.ContainerProps",
|
361
362
|
jsii_struct_bases=[],
|
362
363
|
name_mapping={
|
363
|
-
"alb_listener_container_port": "albListenerContainerPort",
|
364
364
|
"container_port": "containerPort",
|
365
365
|
"image": "image",
|
366
366
|
"health_check": "healthCheck",
|
@@ -372,7 +372,6 @@ class ContainerProps:
|
|
372
372
|
def __init__(
|
373
373
|
self,
|
374
374
|
*,
|
375
|
-
alb_listener_container_port: jsii.Number,
|
376
375
|
container_port: jsii.Number,
|
377
376
|
image: _aws_cdk_aws_ecs_ceddda9d.ContainerImage,
|
378
377
|
health_check: typing.Optional[typing.Union[_aws_cdk_aws_ecs_ceddda9d.HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -381,7 +380,6 @@ class ContainerProps:
|
|
381
380
|
) -> None:
|
382
381
|
'''Configuration for the ECS Fargate task definition and container.
|
383
382
|
|
384
|
-
:param alb_listener_container_port: The port number the container listens on.
|
385
383
|
:param container_port: The port number the container listens on.
|
386
384
|
:param image: Container image to deploy.
|
387
385
|
:param health_check: Optional container health check configuration.
|
@@ -392,14 +390,12 @@ class ContainerProps:
|
|
392
390
|
health_check = _aws_cdk_aws_ecs_ceddda9d.HealthCheck(**health_check)
|
393
391
|
if __debug__:
|
394
392
|
type_hints = typing.get_type_hints(_typecheckingstub__54ea2679bab87dfe8eb538ebc455f8d93200c1beb37ad6e093fa52678f8ac1fc)
|
395
|
-
check_type(argname="argument alb_listener_container_port", value=alb_listener_container_port, expected_type=type_hints["alb_listener_container_port"])
|
396
393
|
check_type(argname="argument container_port", value=container_port, expected_type=type_hints["container_port"])
|
397
394
|
check_type(argname="argument image", value=image, expected_type=type_hints["image"])
|
398
395
|
check_type(argname="argument health_check", value=health_check, expected_type=type_hints["health_check"])
|
399
396
|
check_type(argname="argument memory_limit", value=memory_limit, expected_type=type_hints["memory_limit"])
|
400
397
|
check_type(argname="argument memory_reservation", value=memory_reservation, expected_type=type_hints["memory_reservation"])
|
401
398
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
402
|
-
"alb_listener_container_port": alb_listener_container_port,
|
403
399
|
"container_port": container_port,
|
404
400
|
"image": image,
|
405
401
|
}
|
@@ -410,13 +406,6 @@ class ContainerProps:
|
|
410
406
|
if memory_reservation is not None:
|
411
407
|
self._values["memory_reservation"] = memory_reservation
|
412
408
|
|
413
|
-
@builtins.property
|
414
|
-
def alb_listener_container_port(self) -> jsii.Number:
|
415
|
-
'''The port number the container listens on.'''
|
416
|
-
result = self._values.get("alb_listener_container_port")
|
417
|
-
assert result is not None, "Required property 'alb_listener_container_port' is missing"
|
418
|
-
return typing.cast(jsii.Number, result)
|
419
|
-
|
420
409
|
@builtins.property
|
421
410
|
def container_port(self) -> jsii.Number:
|
422
411
|
'''The port number the container listens on.'''
|
@@ -474,17 +463,17 @@ class EcsCodeDeploy(
|
|
474
463
|
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
475
464
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
476
465
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
477
|
-
environment: builtins.str,
|
478
466
|
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
479
467
|
service_name: builtins.str,
|
480
468
|
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
481
|
-
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
482
|
-
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
483
469
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
470
|
+
alb_target_port: typing.Optional[jsii.Number] = None,
|
484
471
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
485
472
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
486
473
|
memory_limit: typing.Optional[jsii.Number] = None,
|
487
474
|
task_cpu: typing.Optional[jsii.Number] = None,
|
475
|
+
task_exec_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
476
|
+
task_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
488
477
|
) -> None:
|
489
478
|
'''
|
490
479
|
:param scope: -
|
@@ -492,17 +481,17 @@ class EcsCodeDeploy(
|
|
492
481
|
:param certificates: Optional ACM certificates for HTTPS termination.
|
493
482
|
:param cluster: ECS Cluster where the service will run.
|
494
483
|
:param containers: Configuration related to the task definition and container.
|
495
|
-
:param environment: Environment name (e.g., dev, prod) for tagging and naming.
|
496
484
|
:param security_groups: Security group config.
|
497
485
|
:param service_name: Base name used for resources like log groups, roles, services, etc.
|
498
486
|
:param subnets: Select which subnets the Service and ALB will placed on.
|
499
|
-
:param task_exec_role: Task execution role for the ECS task.
|
500
|
-
:param task_role: Task role for the ECS task.
|
501
487
|
:param vpc: VPC in which to deploy ECS and ALB resources.
|
488
|
+
:param alb_target_port: The ALB target port.
|
502
489
|
:param auto_scaling: Optional auto-scaling configuration.
|
503
490
|
:param enable_public_load_balancer: Whether the load balancer should be internet-facing (default: false).
|
504
491
|
:param memory_limit:
|
505
492
|
:param task_cpu: CPU units for the task (default: 1024).
|
493
|
+
:param task_exec_role: Task execution role for the ECS task.
|
494
|
+
:param task_role: Task role for the ECS task.
|
506
495
|
'''
|
507
496
|
if __debug__:
|
508
497
|
type_hints = typing.get_type_hints(_typecheckingstub__19ac4f77d3bba1391929b87d2d23b70fe61e21aa6809f43ed4283d6ecf350909)
|
@@ -512,21 +501,66 @@ class EcsCodeDeploy(
|
|
512
501
|
certificates=certificates,
|
513
502
|
cluster=cluster,
|
514
503
|
containers=containers,
|
515
|
-
environment=environment,
|
516
504
|
security_groups=security_groups,
|
517
505
|
service_name=service_name,
|
518
506
|
subnets=subnets,
|
519
|
-
task_exec_role=task_exec_role,
|
520
|
-
task_role=task_role,
|
521
507
|
vpc=vpc,
|
508
|
+
alb_target_port=alb_target_port,
|
522
509
|
auto_scaling=auto_scaling,
|
523
510
|
enable_public_load_balancer=enable_public_load_balancer,
|
524
511
|
memory_limit=memory_limit,
|
525
512
|
task_cpu=task_cpu,
|
513
|
+
task_exec_role=task_exec_role,
|
514
|
+
task_role=task_role,
|
526
515
|
)
|
527
516
|
|
528
517
|
jsii.create(self.__class__, self, [scope, id, props])
|
529
518
|
|
519
|
+
@jsii.member(jsii_name="allListeners")
|
520
|
+
def all_listeners(
|
521
|
+
self,
|
522
|
+
) -> typing.List[_aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationListener]:
|
523
|
+
return typing.cast(typing.List[_aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationListener], jsii.invoke(self, "allListeners", []))
|
524
|
+
|
525
|
+
@jsii.member(jsii_name="blueListener")
|
526
|
+
def blue_listener(
|
527
|
+
self,
|
528
|
+
) -> _aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationListener:
|
529
|
+
return typing.cast(_aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationListener, jsii.invoke(self, "blueListener", []))
|
530
|
+
|
531
|
+
@jsii.member(jsii_name="greenListener")
|
532
|
+
def green_listener(
|
533
|
+
self,
|
534
|
+
) -> _aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationListener:
|
535
|
+
return typing.cast(_aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationListener, jsii.invoke(self, "greenListener", []))
|
536
|
+
|
537
|
+
@jsii.member(jsii_name="loadBalancerDnsName")
|
538
|
+
def load_balancer_dns_name(self) -> builtins.str:
|
539
|
+
return typing.cast(builtins.str, jsii.invoke(self, "loadBalancerDnsName", []))
|
540
|
+
|
541
|
+
@jsii.member(jsii_name="serviceArn")
|
542
|
+
def service_arn(self) -> builtins.str:
|
543
|
+
return typing.cast(builtins.str, jsii.invoke(self, "serviceArn", []))
|
544
|
+
|
545
|
+
@builtins.property
|
546
|
+
@jsii.member(jsii_name="blueTargetGroup")
|
547
|
+
def blue_target_group(
|
548
|
+
self,
|
549
|
+
) -> _aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationTargetGroup:
|
550
|
+
return typing.cast(_aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationTargetGroup, jsii.get(self, "blueTargetGroup"))
|
551
|
+
|
552
|
+
@builtins.property
|
553
|
+
@jsii.member(jsii_name="codeDeployApp")
|
554
|
+
def code_deploy_app(self) -> _aws_cdk_aws_codedeploy_ceddda9d.EcsApplication:
|
555
|
+
return typing.cast(_aws_cdk_aws_codedeploy_ceddda9d.EcsApplication, jsii.get(self, "codeDeployApp"))
|
556
|
+
|
557
|
+
@builtins.property
|
558
|
+
@jsii.member(jsii_name="greenTargetGroup")
|
559
|
+
def green_target_group(
|
560
|
+
self,
|
561
|
+
) -> _aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationTargetGroup:
|
562
|
+
return typing.cast(_aws_cdk_aws_elasticloadbalancingv2_ceddda9d.ApplicationTargetGroup, jsii.get(self, "greenTargetGroup"))
|
563
|
+
|
530
564
|
@builtins.property
|
531
565
|
@jsii.member(jsii_name="loadBalancer")
|
532
566
|
def load_balancer(
|
@@ -544,6 +578,16 @@ class EcsCodeDeploy(
|
|
544
578
|
def task_def(self) -> _aws_cdk_aws_ecs_ceddda9d.TaskDefinition:
|
545
579
|
return typing.cast(_aws_cdk_aws_ecs_ceddda9d.TaskDefinition, jsii.get(self, "taskDef"))
|
546
580
|
|
581
|
+
@builtins.property
|
582
|
+
@jsii.member(jsii_name="taskExecutionRole")
|
583
|
+
def task_execution_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
584
|
+
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IRole, jsii.get(self, "taskExecutionRole"))
|
585
|
+
|
586
|
+
@builtins.property
|
587
|
+
@jsii.member(jsii_name="taskRole")
|
588
|
+
def task_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
589
|
+
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IRole, jsii.get(self, "taskRole"))
|
590
|
+
|
547
591
|
|
548
592
|
@jsii.data_type(
|
549
593
|
jsii_type="must-cdk.EcsCodeDeployProps",
|
@@ -552,17 +596,17 @@ class EcsCodeDeploy(
|
|
552
596
|
"certificates": "certificates",
|
553
597
|
"cluster": "cluster",
|
554
598
|
"containers": "containers",
|
555
|
-
"environment": "environment",
|
556
599
|
"security_groups": "securityGroups",
|
557
600
|
"service_name": "serviceName",
|
558
601
|
"subnets": "subnets",
|
559
|
-
"task_exec_role": "taskExecRole",
|
560
|
-
"task_role": "taskRole",
|
561
602
|
"vpc": "vpc",
|
603
|
+
"alb_target_port": "albTargetPort",
|
562
604
|
"auto_scaling": "autoScaling",
|
563
605
|
"enable_public_load_balancer": "enablePublicLoadBalancer",
|
564
606
|
"memory_limit": "memoryLimit",
|
565
607
|
"task_cpu": "taskCPU",
|
608
|
+
"task_exec_role": "taskExecRole",
|
609
|
+
"task_role": "taskRole",
|
566
610
|
},
|
567
611
|
)
|
568
612
|
class EcsCodeDeployProps:
|
@@ -572,34 +616,34 @@ class EcsCodeDeployProps:
|
|
572
616
|
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
573
617
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
574
618
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
575
|
-
environment: builtins.str,
|
576
619
|
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
577
620
|
service_name: builtins.str,
|
578
621
|
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
579
|
-
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
580
|
-
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
581
622
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
623
|
+
alb_target_port: typing.Optional[jsii.Number] = None,
|
582
624
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
583
625
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
584
626
|
memory_limit: typing.Optional[jsii.Number] = None,
|
585
627
|
task_cpu: typing.Optional[jsii.Number] = None,
|
628
|
+
task_exec_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
629
|
+
task_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
586
630
|
) -> None:
|
587
631
|
'''Properties for the EcsCodeDeploy construct.
|
588
632
|
|
589
633
|
:param certificates: Optional ACM certificates for HTTPS termination.
|
590
634
|
:param cluster: ECS Cluster where the service will run.
|
591
635
|
:param containers: Configuration related to the task definition and container.
|
592
|
-
:param environment: Environment name (e.g., dev, prod) for tagging and naming.
|
593
636
|
:param security_groups: Security group config.
|
594
637
|
:param service_name: Base name used for resources like log groups, roles, services, etc.
|
595
638
|
:param subnets: Select which subnets the Service and ALB will placed on.
|
596
|
-
:param task_exec_role: Task execution role for the ECS task.
|
597
|
-
:param task_role: Task role for the ECS task.
|
598
639
|
:param vpc: VPC in which to deploy ECS and ALB resources.
|
640
|
+
:param alb_target_port: The ALB target port.
|
599
641
|
:param auto_scaling: Optional auto-scaling configuration.
|
600
642
|
:param enable_public_load_balancer: Whether the load balancer should be internet-facing (default: false).
|
601
643
|
:param memory_limit:
|
602
644
|
:param task_cpu: CPU units for the task (default: 1024).
|
645
|
+
:param task_exec_role: Task execution role for the ECS task.
|
646
|
+
:param task_role: Task role for the ECS task.
|
603
647
|
'''
|
604
648
|
if isinstance(subnets, dict):
|
605
649
|
subnets = _aws_cdk_aws_ec2_ceddda9d.SubnetSelection(**subnets)
|
@@ -610,29 +654,28 @@ class EcsCodeDeployProps:
|
|
610
654
|
check_type(argname="argument certificates", value=certificates, expected_type=type_hints["certificates"])
|
611
655
|
check_type(argname="argument cluster", value=cluster, expected_type=type_hints["cluster"])
|
612
656
|
check_type(argname="argument containers", value=containers, expected_type=type_hints["containers"])
|
613
|
-
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
614
657
|
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
615
658
|
check_type(argname="argument service_name", value=service_name, expected_type=type_hints["service_name"])
|
616
659
|
check_type(argname="argument subnets", value=subnets, expected_type=type_hints["subnets"])
|
617
|
-
check_type(argname="argument task_exec_role", value=task_exec_role, expected_type=type_hints["task_exec_role"])
|
618
|
-
check_type(argname="argument task_role", value=task_role, expected_type=type_hints["task_role"])
|
619
660
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
661
|
+
check_type(argname="argument alb_target_port", value=alb_target_port, expected_type=type_hints["alb_target_port"])
|
620
662
|
check_type(argname="argument auto_scaling", value=auto_scaling, expected_type=type_hints["auto_scaling"])
|
621
663
|
check_type(argname="argument enable_public_load_balancer", value=enable_public_load_balancer, expected_type=type_hints["enable_public_load_balancer"])
|
622
664
|
check_type(argname="argument memory_limit", value=memory_limit, expected_type=type_hints["memory_limit"])
|
623
665
|
check_type(argname="argument task_cpu", value=task_cpu, expected_type=type_hints["task_cpu"])
|
666
|
+
check_type(argname="argument task_exec_role", value=task_exec_role, expected_type=type_hints["task_exec_role"])
|
667
|
+
check_type(argname="argument task_role", value=task_role, expected_type=type_hints["task_role"])
|
624
668
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
625
669
|
"certificates": certificates,
|
626
670
|
"cluster": cluster,
|
627
671
|
"containers": containers,
|
628
|
-
"environment": environment,
|
629
672
|
"security_groups": security_groups,
|
630
673
|
"service_name": service_name,
|
631
674
|
"subnets": subnets,
|
632
|
-
"task_exec_role": task_exec_role,
|
633
|
-
"task_role": task_role,
|
634
675
|
"vpc": vpc,
|
635
676
|
}
|
677
|
+
if alb_target_port is not None:
|
678
|
+
self._values["alb_target_port"] = alb_target_port
|
636
679
|
if auto_scaling is not None:
|
637
680
|
self._values["auto_scaling"] = auto_scaling
|
638
681
|
if enable_public_load_balancer is not None:
|
@@ -641,6 +684,10 @@ class EcsCodeDeployProps:
|
|
641
684
|
self._values["memory_limit"] = memory_limit
|
642
685
|
if task_cpu is not None:
|
643
686
|
self._values["task_cpu"] = task_cpu
|
687
|
+
if task_exec_role is not None:
|
688
|
+
self._values["task_exec_role"] = task_exec_role
|
689
|
+
if task_role is not None:
|
690
|
+
self._values["task_role"] = task_role
|
644
691
|
|
645
692
|
@builtins.property
|
646
693
|
def certificates(
|
@@ -665,13 +712,6 @@ class EcsCodeDeployProps:
|
|
665
712
|
assert result is not None, "Required property 'containers' is missing"
|
666
713
|
return typing.cast(typing.List[ContainerProps], result)
|
667
714
|
|
668
|
-
@builtins.property
|
669
|
-
def environment(self) -> builtins.str:
|
670
|
-
'''Environment name (e.g., dev, prod) for tagging and naming.'''
|
671
|
-
result = self._values.get("environment")
|
672
|
-
assert result is not None, "Required property 'environment' is missing"
|
673
|
-
return typing.cast(builtins.str, result)
|
674
|
-
|
675
715
|
@builtins.property
|
676
716
|
def security_groups(self) -> typing.List[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]:
|
677
717
|
'''Security group config.'''
|
@@ -693,20 +733,6 @@ class EcsCodeDeployProps:
|
|
693
733
|
assert result is not None, "Required property 'subnets' is missing"
|
694
734
|
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, result)
|
695
735
|
|
696
|
-
@builtins.property
|
697
|
-
def task_exec_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
698
|
-
'''Task execution role for the ECS task.'''
|
699
|
-
result = self._values.get("task_exec_role")
|
700
|
-
assert result is not None, "Required property 'task_exec_role' is missing"
|
701
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IRole, result)
|
702
|
-
|
703
|
-
@builtins.property
|
704
|
-
def task_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
705
|
-
'''Task role for the ECS task.'''
|
706
|
-
result = self._values.get("task_role")
|
707
|
-
assert result is not None, "Required property 'task_role' is missing"
|
708
|
-
return typing.cast(_aws_cdk_aws_iam_ceddda9d.IRole, result)
|
709
|
-
|
710
736
|
@builtins.property
|
711
737
|
def vpc(self) -> _aws_cdk_aws_ec2_ceddda9d.IVpc:
|
712
738
|
'''VPC in which to deploy ECS and ALB resources.'''
|
@@ -714,6 +740,12 @@ class EcsCodeDeployProps:
|
|
714
740
|
assert result is not None, "Required property 'vpc' is missing"
|
715
741
|
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.IVpc, result)
|
716
742
|
|
743
|
+
@builtins.property
|
744
|
+
def alb_target_port(self) -> typing.Optional[jsii.Number]:
|
745
|
+
'''The ALB target port.'''
|
746
|
+
result = self._values.get("alb_target_port")
|
747
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
748
|
+
|
717
749
|
@builtins.property
|
718
750
|
def auto_scaling(self) -> typing.Optional[AutoScalingProps]:
|
719
751
|
'''Optional auto-scaling configuration.'''
|
@@ -737,6 +769,18 @@ class EcsCodeDeployProps:
|
|
737
769
|
result = self._values.get("task_cpu")
|
738
770
|
return typing.cast(typing.Optional[jsii.Number], result)
|
739
771
|
|
772
|
+
@builtins.property
|
773
|
+
def task_exec_role(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
774
|
+
'''Task execution role for the ECS task.'''
|
775
|
+
result = self._values.get("task_exec_role")
|
776
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole], result)
|
777
|
+
|
778
|
+
@builtins.property
|
779
|
+
def task_role(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
780
|
+
'''Task role for the ECS task.'''
|
781
|
+
result = self._values.get("task_role")
|
782
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole], result)
|
783
|
+
|
740
784
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
741
785
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
742
786
|
|
@@ -1026,7 +1070,6 @@ def _typecheckingstub__d0ea30b15daf73de785b4991457443ee0ca220224fbd08155a17d86c6
|
|
1026
1070
|
|
1027
1071
|
def _typecheckingstub__54ea2679bab87dfe8eb538ebc455f8d93200c1beb37ad6e093fa52678f8ac1fc(
|
1028
1072
|
*,
|
1029
|
-
alb_listener_container_port: jsii.Number,
|
1030
1073
|
container_port: jsii.Number,
|
1031
1074
|
image: _aws_cdk_aws_ecs_ceddda9d.ContainerImage,
|
1032
1075
|
health_check: typing.Optional[typing.Union[_aws_cdk_aws_ecs_ceddda9d.HealthCheck, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -1043,17 +1086,17 @@ def _typecheckingstub__19ac4f77d3bba1391929b87d2d23b70fe61e21aa6809f43ed4283d6ec
|
|
1043
1086
|
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
1044
1087
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
1045
1088
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
1046
|
-
environment: builtins.str,
|
1047
1089
|
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
1048
1090
|
service_name: builtins.str,
|
1049
1091
|
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
1050
|
-
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1051
|
-
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1052
1092
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
1093
|
+
alb_target_port: typing.Optional[jsii.Number] = None,
|
1053
1094
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
1054
1095
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
1055
1096
|
memory_limit: typing.Optional[jsii.Number] = None,
|
1056
1097
|
task_cpu: typing.Optional[jsii.Number] = None,
|
1098
|
+
task_exec_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
1099
|
+
task_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
1057
1100
|
) -> None:
|
1058
1101
|
"""Type checking stubs"""
|
1059
1102
|
pass
|
@@ -1063,17 +1106,17 @@ def _typecheckingstub__0e1edfc306738ea99e0bd03a55876d7f75a063970dd3103fc1bbb766d
|
|
1063
1106
|
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
1064
1107
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
1065
1108
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
1066
|
-
environment: builtins.str,
|
1067
1109
|
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
1068
1110
|
service_name: builtins.str,
|
1069
1111
|
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
1070
|
-
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1071
|
-
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1072
1112
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
1113
|
+
alb_target_port: typing.Optional[jsii.Number] = None,
|
1073
1114
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
1074
1115
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
1075
1116
|
memory_limit: typing.Optional[jsii.Number] = None,
|
1076
1117
|
task_cpu: typing.Optional[jsii.Number] = None,
|
1118
|
+
task_exec_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
1119
|
+
task_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
1077
1120
|
) -> None:
|
1078
1121
|
"""Type checking stubs"""
|
1079
1122
|
pass
|
must_cdk/_jsii/__init__.py
CHANGED
Binary file
|
@@ -0,0 +1,9 @@
|
|
1
|
+
must_cdk/__init__.py,sha256=TW5_94ArfGharwKtfx5388HlG7rfZ6llpfeLsoiq9aE,58198
|
2
|
+
must_cdk/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
+
must_cdk/_jsii/__init__.py,sha256=NulQPK4FPNmorXY5fl_W-oC_RbXBbXlA1DIiDlcp4vs,1429
|
4
|
+
must_cdk/_jsii/must-cdk@0.0.28.jsii.tgz,sha256=AdlDgpeL_9Wmp8IGZVA0AxYaYc4CF2erRuLMpTYYq1c,231962
|
5
|
+
must_cdk-0.0.28.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
+
must_cdk-0.0.28.dist-info/METADATA,sha256=XD6dN6zHGsuzoQa9SZbMzFnMm9XLa4xL38zZVawMhKk,1041
|
7
|
+
must_cdk-0.0.28.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
8
|
+
must_cdk-0.0.28.dist-info/top_level.txt,sha256=xm4unKYFXnjqQyemg16SUHfrXIb5XMbfUC_3xNsFyjc,9
|
9
|
+
must_cdk-0.0.28.dist-info/RECORD,,
|
Binary file
|
must_cdk-0.0.26.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
must_cdk/__init__.py,sha256=xmfXKs9UXb6MF1UXcqXlt3n4MdOW8nSxI2wqIkmxph0,56113
|
2
|
-
must_cdk/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
must_cdk/_jsii/__init__.py,sha256=p6C6uBNYmFuRD1MDR76TB4KzgIA4fyQBzqMPU6hdfJo,1429
|
4
|
-
must_cdk/_jsii/must-cdk@0.0.26.jsii.tgz,sha256=TQ-hPBbzaU7wmzakgkaR8gMUZ9YCFOQuzCHbq225MmA,224693
|
5
|
-
must_cdk-0.0.26.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
-
must_cdk-0.0.26.dist-info/METADATA,sha256=09QI3wSbYXb5Qjcd3sposJ2Akxd_psyim71HtqgvqW4,1041
|
7
|
-
must_cdk-0.0.26.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
8
|
-
must_cdk-0.0.26.dist-info/top_level.txt,sha256=xm4unKYFXnjqQyemg16SUHfrXIb5XMbfUC_3xNsFyjc,9
|
9
|
-
must_cdk-0.0.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|