must-cdk 0.0.9__tar.gz → 0.0.11__tar.gz
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-0.0.9/src/must_cdk.egg-info → must_cdk-0.0.11}/PKG-INFO +1 -1
- {must_cdk-0.0.9 → must_cdk-0.0.11}/setup.py +2 -2
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk/__init__.py +53 -19
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk/_jsii/__init__.py +1 -1
- must_cdk-0.0.11/src/must_cdk/_jsii/must-cdk@0.0.11.jsii.tgz +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11/src/must_cdk.egg-info}/PKG-INFO +1 -1
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk.egg-info/SOURCES.txt +1 -1
- must_cdk-0.0.9/src/must_cdk/_jsii/must-cdk@0.0.9.jsii.tgz +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/LICENSE +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/MANIFEST.in +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/README.md +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/pyproject.toml +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/setup.cfg +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk/py.typed +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk.egg-info/dependency_links.txt +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk.egg-info/requires.txt +0 -0
- {must_cdk-0.0.9 → must_cdk-0.0.11}/src/must_cdk.egg-info/top_level.txt +0 -0
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
5
5
|
"""
|
6
6
|
{
|
7
7
|
"name": "must-cdk",
|
8
|
-
"version": "0.0.
|
8
|
+
"version": "0.0.11",
|
9
9
|
"description": "must-cdk",
|
10
10
|
"license": "Apache-2.0",
|
11
11
|
"url": "https://github.com/globalmsq/must-cdk.git",
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
26
26
|
],
|
27
27
|
"package_data": {
|
28
28
|
"must_cdk._jsii": [
|
29
|
-
"must-cdk@0.0.
|
29
|
+
"must-cdk@0.0.11.jsii.tgz"
|
30
30
|
],
|
31
31
|
"must_cdk": [
|
32
32
|
"py.typed"
|
@@ -471,15 +471,17 @@ class EcsCodeDeploy(
|
|
471
471
|
scope: _constructs_77d1e7e8.Construct,
|
472
472
|
id: builtins.str,
|
473
473
|
*,
|
474
|
+
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
474
475
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
475
476
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
476
477
|
environment: builtins.str,
|
478
|
+
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
477
479
|
service_name: builtins.str,
|
480
|
+
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
478
481
|
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
479
482
|
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
480
483
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
481
484
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
482
|
-
certificates: typing.Optional[typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]] = None,
|
483
485
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
484
486
|
memory_limit: typing.Optional[jsii.Number] = None,
|
485
487
|
task_cpu: typing.Optional[jsii.Number] = None,
|
@@ -487,15 +489,17 @@ class EcsCodeDeploy(
|
|
487
489
|
'''
|
488
490
|
:param scope: -
|
489
491
|
:param id: -
|
492
|
+
:param certificates: Optional ACM certificates for HTTPS termination.
|
490
493
|
:param cluster: ECS Cluster where the service will run.
|
491
494
|
:param containers: Configuration related to the task definition and container.
|
492
495
|
:param environment: Environment name (e.g., dev, prod) for tagging and naming.
|
496
|
+
:param security_groups:
|
493
497
|
:param service_name: Base name used for resources like log groups, roles, services, etc.
|
498
|
+
:param subnets:
|
494
499
|
:param task_exec_role: Task execution role for the ECS task.
|
495
500
|
:param task_role: Task role for the ECS task.
|
496
501
|
:param vpc: VPC in which to deploy ECS and ALB resources.
|
497
502
|
:param auto_scaling: Optional auto-scaling configuration.
|
498
|
-
:param certificates: Optional ACM certificates for HTTPS termination.
|
499
503
|
:param enable_public_load_balancer: Whether the load balancer should be internet-facing (default: false).
|
500
504
|
:param memory_limit:
|
501
505
|
:param task_cpu: CPU units for the task (default: 1024).
|
@@ -505,15 +509,17 @@ class EcsCodeDeploy(
|
|
505
509
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
506
510
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
507
511
|
props = EcsCodeDeployProps(
|
512
|
+
certificates=certificates,
|
508
513
|
cluster=cluster,
|
509
514
|
containers=containers,
|
510
515
|
environment=environment,
|
516
|
+
security_groups=security_groups,
|
511
517
|
service_name=service_name,
|
518
|
+
subnets=subnets,
|
512
519
|
task_exec_role=task_exec_role,
|
513
520
|
task_role=task_role,
|
514
521
|
vpc=vpc,
|
515
522
|
auto_scaling=auto_scaling,
|
516
|
-
certificates=certificates,
|
517
523
|
enable_public_load_balancer=enable_public_load_balancer,
|
518
524
|
memory_limit=memory_limit,
|
519
525
|
task_cpu=task_cpu,
|
@@ -543,15 +549,17 @@ class EcsCodeDeploy(
|
|
543
549
|
jsii_type="must-cdk.EcsCodeDeployProps",
|
544
550
|
jsii_struct_bases=[],
|
545
551
|
name_mapping={
|
552
|
+
"certificates": "certificates",
|
546
553
|
"cluster": "cluster",
|
547
554
|
"containers": "containers",
|
548
555
|
"environment": "environment",
|
556
|
+
"security_groups": "securityGroups",
|
549
557
|
"service_name": "serviceName",
|
558
|
+
"subnets": "subnets",
|
550
559
|
"task_exec_role": "taskExecRole",
|
551
560
|
"task_role": "taskRole",
|
552
561
|
"vpc": "vpc",
|
553
562
|
"auto_scaling": "autoScaling",
|
554
|
-
"certificates": "certificates",
|
555
563
|
"enable_public_load_balancer": "enablePublicLoadBalancer",
|
556
564
|
"memory_limit": "memoryLimit",
|
557
565
|
"task_cpu": "taskCPU",
|
@@ -561,63 +569,72 @@ class EcsCodeDeployProps:
|
|
561
569
|
def __init__(
|
562
570
|
self,
|
563
571
|
*,
|
572
|
+
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
564
573
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
565
574
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
566
575
|
environment: builtins.str,
|
576
|
+
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
567
577
|
service_name: builtins.str,
|
578
|
+
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
568
579
|
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
569
580
|
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
570
581
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
571
582
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
572
|
-
certificates: typing.Optional[typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]] = None,
|
573
583
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
574
584
|
memory_limit: typing.Optional[jsii.Number] = None,
|
575
585
|
task_cpu: typing.Optional[jsii.Number] = None,
|
576
586
|
) -> None:
|
577
587
|
'''Properties for the EcsCodeDeploy construct.
|
578
588
|
|
589
|
+
:param certificates: Optional ACM certificates for HTTPS termination.
|
579
590
|
:param cluster: ECS Cluster where the service will run.
|
580
591
|
:param containers: Configuration related to the task definition and container.
|
581
592
|
:param environment: Environment name (e.g., dev, prod) for tagging and naming.
|
593
|
+
:param security_groups:
|
582
594
|
:param service_name: Base name used for resources like log groups, roles, services, etc.
|
595
|
+
:param subnets:
|
583
596
|
:param task_exec_role: Task execution role for the ECS task.
|
584
597
|
:param task_role: Task role for the ECS task.
|
585
598
|
:param vpc: VPC in which to deploy ECS and ALB resources.
|
586
599
|
:param auto_scaling: Optional auto-scaling configuration.
|
587
|
-
:param certificates: Optional ACM certificates for HTTPS termination.
|
588
600
|
:param enable_public_load_balancer: Whether the load balancer should be internet-facing (default: false).
|
589
601
|
:param memory_limit:
|
590
602
|
:param task_cpu: CPU units for the task (default: 1024).
|
591
603
|
'''
|
604
|
+
if isinstance(subnets, dict):
|
605
|
+
subnets = _aws_cdk_aws_ec2_ceddda9d.SubnetSelection(**subnets)
|
592
606
|
if isinstance(auto_scaling, dict):
|
593
607
|
auto_scaling = AutoScalingProps(**auto_scaling)
|
594
608
|
if __debug__:
|
595
609
|
type_hints = typing.get_type_hints(_typecheckingstub__0e1edfc306738ea99e0bd03a55876d7f75a063970dd3103fc1bbb766dff014b1)
|
610
|
+
check_type(argname="argument certificates", value=certificates, expected_type=type_hints["certificates"])
|
596
611
|
check_type(argname="argument cluster", value=cluster, expected_type=type_hints["cluster"])
|
597
612
|
check_type(argname="argument containers", value=containers, expected_type=type_hints["containers"])
|
598
613
|
check_type(argname="argument environment", value=environment, expected_type=type_hints["environment"])
|
614
|
+
check_type(argname="argument security_groups", value=security_groups, expected_type=type_hints["security_groups"])
|
599
615
|
check_type(argname="argument service_name", value=service_name, expected_type=type_hints["service_name"])
|
616
|
+
check_type(argname="argument subnets", value=subnets, expected_type=type_hints["subnets"])
|
600
617
|
check_type(argname="argument task_exec_role", value=task_exec_role, expected_type=type_hints["task_exec_role"])
|
601
618
|
check_type(argname="argument task_role", value=task_role, expected_type=type_hints["task_role"])
|
602
619
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
603
620
|
check_type(argname="argument auto_scaling", value=auto_scaling, expected_type=type_hints["auto_scaling"])
|
604
|
-
check_type(argname="argument certificates", value=certificates, expected_type=type_hints["certificates"])
|
605
621
|
check_type(argname="argument enable_public_load_balancer", value=enable_public_load_balancer, expected_type=type_hints["enable_public_load_balancer"])
|
606
622
|
check_type(argname="argument memory_limit", value=memory_limit, expected_type=type_hints["memory_limit"])
|
607
623
|
check_type(argname="argument task_cpu", value=task_cpu, expected_type=type_hints["task_cpu"])
|
608
624
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
625
|
+
"certificates": certificates,
|
609
626
|
"cluster": cluster,
|
610
627
|
"containers": containers,
|
611
628
|
"environment": environment,
|
629
|
+
"security_groups": security_groups,
|
612
630
|
"service_name": service_name,
|
631
|
+
"subnets": subnets,
|
613
632
|
"task_exec_role": task_exec_role,
|
614
633
|
"task_role": task_role,
|
615
634
|
"vpc": vpc,
|
616
635
|
}
|
617
636
|
if auto_scaling is not None:
|
618
637
|
self._values["auto_scaling"] = auto_scaling
|
619
|
-
if certificates is not None:
|
620
|
-
self._values["certificates"] = certificates
|
621
638
|
if enable_public_load_balancer is not None:
|
622
639
|
self._values["enable_public_load_balancer"] = enable_public_load_balancer
|
623
640
|
if memory_limit is not None:
|
@@ -625,6 +642,15 @@ class EcsCodeDeployProps:
|
|
625
642
|
if task_cpu is not None:
|
626
643
|
self._values["task_cpu"] = task_cpu
|
627
644
|
|
645
|
+
@builtins.property
|
646
|
+
def certificates(
|
647
|
+
self,
|
648
|
+
) -> typing.List[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]:
|
649
|
+
'''Optional ACM certificates for HTTPS termination.'''
|
650
|
+
result = self._values.get("certificates")
|
651
|
+
assert result is not None, "Required property 'certificates' is missing"
|
652
|
+
return typing.cast(typing.List[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate], result)
|
653
|
+
|
628
654
|
@builtins.property
|
629
655
|
def cluster(self) -> _aws_cdk_aws_ecs_ceddda9d.ICluster:
|
630
656
|
'''ECS Cluster where the service will run.'''
|
@@ -646,6 +672,12 @@ class EcsCodeDeployProps:
|
|
646
672
|
assert result is not None, "Required property 'environment' is missing"
|
647
673
|
return typing.cast(builtins.str, result)
|
648
674
|
|
675
|
+
@builtins.property
|
676
|
+
def security_groups(self) -> typing.List[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]:
|
677
|
+
result = self._values.get("security_groups")
|
678
|
+
assert result is not None, "Required property 'security_groups' is missing"
|
679
|
+
return typing.cast(typing.List[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup], result)
|
680
|
+
|
649
681
|
@builtins.property
|
650
682
|
def service_name(self) -> builtins.str:
|
651
683
|
'''Base name used for resources like log groups, roles, services, etc.'''
|
@@ -653,6 +685,12 @@ class EcsCodeDeployProps:
|
|
653
685
|
assert result is not None, "Required property 'service_name' is missing"
|
654
686
|
return typing.cast(builtins.str, result)
|
655
687
|
|
688
|
+
@builtins.property
|
689
|
+
def subnets(self) -> _aws_cdk_aws_ec2_ceddda9d.SubnetSelection:
|
690
|
+
result = self._values.get("subnets")
|
691
|
+
assert result is not None, "Required property 'subnets' is missing"
|
692
|
+
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, result)
|
693
|
+
|
656
694
|
@builtins.property
|
657
695
|
def task_exec_role(self) -> _aws_cdk_aws_iam_ceddda9d.IRole:
|
658
696
|
'''Task execution role for the ECS task.'''
|
@@ -680,14 +718,6 @@ class EcsCodeDeployProps:
|
|
680
718
|
result = self._values.get("auto_scaling")
|
681
719
|
return typing.cast(typing.Optional[AutoScalingProps], result)
|
682
720
|
|
683
|
-
@builtins.property
|
684
|
-
def certificates(
|
685
|
-
self,
|
686
|
-
) -> typing.Optional[typing.List[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]]:
|
687
|
-
'''Optional ACM certificates for HTTPS termination.'''
|
688
|
-
result = self._values.get("certificates")
|
689
|
-
return typing.cast(typing.Optional[typing.List[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]], result)
|
690
|
-
|
691
721
|
@builtins.property
|
692
722
|
def enable_public_load_balancer(self) -> typing.Optional[builtins.bool]:
|
693
723
|
'''Whether the load balancer should be internet-facing (default: false).'''
|
@@ -1008,15 +1038,17 @@ def _typecheckingstub__19ac4f77d3bba1391929b87d2d23b70fe61e21aa6809f43ed4283d6ec
|
|
1008
1038
|
scope: _constructs_77d1e7e8.Construct,
|
1009
1039
|
id: builtins.str,
|
1010
1040
|
*,
|
1041
|
+
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
1011
1042
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
1012
1043
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
1013
1044
|
environment: builtins.str,
|
1045
|
+
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
1014
1046
|
service_name: builtins.str,
|
1047
|
+
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
1015
1048
|
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1016
1049
|
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1017
1050
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
1018
1051
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
1019
|
-
certificates: typing.Optional[typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]] = None,
|
1020
1052
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
1021
1053
|
memory_limit: typing.Optional[jsii.Number] = None,
|
1022
1054
|
task_cpu: typing.Optional[jsii.Number] = None,
|
@@ -1026,15 +1058,17 @@ def _typecheckingstub__19ac4f77d3bba1391929b87d2d23b70fe61e21aa6809f43ed4283d6ec
|
|
1026
1058
|
|
1027
1059
|
def _typecheckingstub__0e1edfc306738ea99e0bd03a55876d7f75a063970dd3103fc1bbb766dff014b1(
|
1028
1060
|
*,
|
1061
|
+
certificates: typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate],
|
1029
1062
|
cluster: _aws_cdk_aws_ecs_ceddda9d.ICluster,
|
1030
1063
|
containers: typing.Sequence[typing.Union[ContainerProps, typing.Dict[builtins.str, typing.Any]]],
|
1031
1064
|
environment: builtins.str,
|
1065
|
+
security_groups: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup],
|
1032
1066
|
service_name: builtins.str,
|
1067
|
+
subnets: typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]],
|
1033
1068
|
task_exec_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1034
1069
|
task_role: _aws_cdk_aws_iam_ceddda9d.IRole,
|
1035
1070
|
vpc: _aws_cdk_aws_ec2_ceddda9d.IVpc,
|
1036
1071
|
auto_scaling: typing.Optional[typing.Union[AutoScalingProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
1037
|
-
certificates: typing.Optional[typing.Sequence[_aws_cdk_aws_certificatemanager_ceddda9d.ICertificate]] = None,
|
1038
1072
|
enable_public_load_balancer: typing.Optional[builtins.bool] = None,
|
1039
1073
|
memory_limit: typing.Optional[jsii.Number] = None,
|
1040
1074
|
task_cpu: typing.Optional[jsii.Number] = None,
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|