def __init__()

in cdk_service_catalog/cdk_service_catalog_ecs_stack.py [0:0]


    def __init__(self, scope, id):
        super().__init__(scope, id)

        # Parameters for the Product Template
        cluster_name = cdk.CfnParameter(self, "clusterName", type="String", description="The name of the ECS cluster")
        container_insights_enable = cdk.CfnParameter(self, "container_insights", type="String",default="False",allowed_values=["False","True"],description="Enable Container Insights")
        vpc = cdk.CfnParameter(self, "vpc", type="AWS::EC2::VPC::Id", description="VPC")

        ecs.Cluster(self,"ECSCluster_template",enable_fargate_capacity_providers=True,cluster_name=cluster_name.value_as_string,container_insights=bool(container_insights_enable.value_as_string),vpc=vpc)
        ## add more features into your ECS cluster following the CDK doc: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_ecs/README.html
        cdk.Tags.of(self).add("key", "value")