UNPKG

1.64 MBJSONView Raw
1{
2 "version": "2",
3 "toolVersion": "1.58.0",
4 "snippets": {
5 "c9c6a8c88b4fb7be990cedb097c2f2aa75160427b4dacd11ef3f72821155191d": {
6 "translations": {
7 "python": {
8 "source": "# vpc: ec2.Vpc\n\n\n# Create an ECS cluster\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\n# Add capacity to it\ncluster.add_capacity(\"DefaultAutoScalingGroupCapacity\",\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n desired_capacity=3\n)\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"DefaultContainer\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=512\n)\n\n# Instantiate an Amazon ECS Service\necs_service = ecs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition\n)",
9 "version": "2"
10 },
11 "csharp": {
12 "source": "Vpc vpc;\n\n\n// Create an ECS cluster\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\n// Add capacity to it\ncluster.AddCapacity(\"DefaultAutoScalingGroupCapacity\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.xlarge\"),\n DesiredCapacity = 3\n});\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"DefaultContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 512\n});\n\n// Instantiate an Amazon ECS Service\nEc2Service ecsService = new Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition\n});",
13 "version": "1"
14 },
15 "java": {
16 "source": "Vpc vpc;\n\n\n// Create an ECS cluster\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\n// Add capacity to it\ncluster.addCapacity(\"DefaultAutoScalingGroupCapacity\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .desiredCapacity(3)\n .build());\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"DefaultContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(512)\n .build());\n\n// Instantiate an Amazon ECS Service\nEc2Service ecsService = Ec2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .build();",
17 "version": "1"
18 },
19 "go": {
20 "source": "var vpc vpc\n\n\n// Create an ECS cluster\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\n// Add capacity to it\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroupCapacity\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tdesiredCapacity: jsii.Number(3),\n})\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"DefaultContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(512),\n})\n\n// Instantiate an Amazon ECS Service\necsService := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})",
21 "version": "1"
22 },
23 "$": {
24 "source": "declare const vpc: ec2.Vpc;\n\n// Create an ECS cluster\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Add capacity to it\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('DefaultContainer', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 512,\n});\n\n// Instantiate an Amazon ECS Service\nconst ecsService = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n});",
25 "version": "0"
26 }
27 },
28 "location": {
29 "api": {
30 "api": "moduleReadme",
31 "moduleFqn": "@aws-cdk/aws-ecs"
32 },
33 "field": {
34 "field": "markdown",
35 "line": 25
36 }
37 },
38 "didCompile": true,
39 "fqnsReferenced": [
40 "@aws-cdk/aws-ec2.IVpc",
41 "@aws-cdk/aws-ec2.InstanceType",
42 "@aws-cdk/aws-ecs.AddCapacityOptions",
43 "@aws-cdk/aws-ecs.Cluster",
44 "@aws-cdk/aws-ecs.Cluster#addCapacity",
45 "@aws-cdk/aws-ecs.ClusterProps",
46 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
47 "@aws-cdk/aws-ecs.ContainerImage",
48 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
49 "@aws-cdk/aws-ecs.Ec2Service",
50 "@aws-cdk/aws-ecs.Ec2ServiceProps",
51 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
52 "@aws-cdk/aws-ecs.ICluster",
53 "@aws-cdk/aws-ecs.TaskDefinition",
54 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
55 "constructs.Construct"
56 ],
57 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\n// Create an ECS cluster\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Add capacity to it\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('DefaultContainer', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 512,\n});\n\n// Instantiate an Amazon ECS Service\nconst ecsService = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
58 "syntaxKindCounter": {
59 "8": 2,
60 "10": 7,
61 "75": 28,
62 "104": 3,
63 "130": 1,
64 "153": 1,
65 "169": 1,
66 "193": 4,
67 "194": 8,
68 "196": 3,
69 "197": 4,
70 "225": 4,
71 "226": 2,
72 "242": 4,
73 "243": 4,
74 "281": 4,
75 "282": 3,
76 "290": 1
77 },
78 "fqnsFingerprint": "19c4943ca210b27dd8ed9d4487b89544e896d690765e2c83622b5156782e313f"
79 },
80 "b3dac31f45ff994dbec7c0d5143e78caf2e31c19670a2aa03606cabaeae774c1": {
81 "translations": {
82 "python": {
83 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)",
84 "version": "2"
85 },
86 "csharp": {
87 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});",
88 "version": "1"
89 },
90 "java": {
91 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();",
92 "version": "1"
93 },
94 "go": {
95 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})",
96 "version": "1"
97 },
98 "$": {
99 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});",
100 "version": "0"
101 }
102 },
103 "location": {
104 "api": {
105 "api": "moduleReadme",
106 "moduleFqn": "@aws-cdk/aws-ecs"
107 },
108 "field": {
109 "field": "markdown",
110 "line": 91
111 }
112 },
113 "didCompile": true,
114 "fqnsReferenced": [
115 "@aws-cdk/aws-ec2.IVpc",
116 "@aws-cdk/aws-ecs.Cluster",
117 "@aws-cdk/aws-ecs.ClusterProps",
118 "constructs.Construct"
119 ],
120 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
121 "syntaxKindCounter": {
122 "10": 1,
123 "75": 7,
124 "104": 1,
125 "130": 1,
126 "153": 1,
127 "169": 1,
128 "193": 1,
129 "194": 1,
130 "197": 1,
131 "225": 2,
132 "242": 2,
133 "243": 2,
134 "282": 1,
135 "290": 1
136 },
137 "fqnsFingerprint": "861e9d87fd12ab962786e151183b18d423c5e8695ede71cc3a110ec4e9f638a3"
138 },
139 "0aa974c1559781be7c1b1677dd4da586e52114e261982a87fe40d8e440ebe91d": {
140 "translations": {
141 "python": {
142 "source": "cluster_arn = \"arn:aws:ecs:us-east-1:012345678910:cluster/clusterName\"\n\ncluster = ecs.Cluster.from_cluster_arn(self, \"Cluster\", cluster_arn)",
143 "version": "2"
144 },
145 "csharp": {
146 "source": "string clusterArn = \"arn:aws:ecs:us-east-1:012345678910:cluster/clusterName\";\n\nICluster cluster = Cluster.FromClusterArn(this, \"Cluster\", clusterArn);",
147 "version": "1"
148 },
149 "java": {
150 "source": "String clusterArn = \"arn:aws:ecs:us-east-1:012345678910:cluster/clusterName\";\n\nICluster cluster = Cluster.fromClusterArn(this, \"Cluster\", clusterArn);",
151 "version": "1"
152 },
153 "go": {
154 "source": "clusterArn := \"arn:aws:ecs:us-east-1:012345678910:cluster/clusterName\"\n\ncluster := ecs.cluster.fromClusterArn(this, jsii.String(\"Cluster\"), clusterArn)",
155 "version": "1"
156 },
157 "$": {
158 "source": "const clusterArn = 'arn:aws:ecs:us-east-1:012345678910:cluster/clusterName';\n\nconst cluster = ecs.Cluster.fromClusterArn(this, 'Cluster', clusterArn);",
159 "version": "0"
160 }
161 },
162 "location": {
163 "api": {
164 "api": "moduleReadme",
165 "moduleFqn": "@aws-cdk/aws-ecs"
166 },
167 "field": {
168 "field": "markdown",
169 "line": 102
170 }
171 },
172 "didCompile": true,
173 "fqnsReferenced": [
174 "@aws-cdk/aws-ecs.Cluster",
175 "@aws-cdk/aws-ecs.Cluster#fromClusterArn",
176 "@aws-cdk/aws-ecs.ICluster",
177 "constructs.Construct"
178 ],
179 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst clusterArn = 'arn:aws:ecs:us-east-1:012345678910:cluster/clusterName';\n\nconst cluster = ecs.Cluster.fromClusterArn(this, 'Cluster', clusterArn);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
180 "syntaxKindCounter": {
181 "10": 2,
182 "75": 6,
183 "104": 1,
184 "194": 2,
185 "196": 1,
186 "225": 2,
187 "242": 2,
188 "243": 2
189 },
190 "fqnsFingerprint": "8f29c087c5eb2aa46e8ba2431de02420e041dab4f5f0367910ab967bb162f53f"
191 },
192 "b038e886ecca7a7b690d0dc4cd2c1eb34700cdd6c0800a822ff78748889b09af": {
193 "translations": {
194 "python": {
195 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\n# Either add default capacity\ncluster.add_capacity(\"DefaultAutoScalingGroupCapacity\",\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n desired_capacity=3\n)\n\n# Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux(),\n # Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n # machineImage: EcsOptimizedImage.amazonLinux2(),\n desired_capacity=3\n)\n\ncluster.add_auto_scaling_group(auto_scaling_group)",
196 "version": "2"
197 },
198 "csharp": {
199 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\n// Either add default capacity\ncluster.AddCapacity(\"DefaultAutoScalingGroupCapacity\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.xlarge\"),\n DesiredCapacity = 3\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.xlarge\"),\n MachineImage = EcsOptimizedImage.AmazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n DesiredCapacity = 3\n});\n\ncluster.AddAutoScalingGroup(autoScalingGroup);",
200 "version": "1"
201 },
202 "java": {
203 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\n// Either add default capacity\ncluster.addCapacity(\"DefaultAutoScalingGroupCapacity\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .desiredCapacity(3)\n .build());\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .machineImage(EcsOptimizedImage.amazonLinux())\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n .desiredCapacity(3)\n .build();\n\ncluster.addAutoScalingGroup(autoScalingGroup);",
204 "version": "1"
205 },
206 "go": {
207 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\n// Either add default capacity\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroupCapacity\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tdesiredCapacity: jsii.Number(3),\n})\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux(),\n\t// Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n\t// machineImage: EcsOptimizedImage.amazonLinux2(),\n\tdesiredCapacity: jsii.Number(3),\n})\n\ncluster.addAutoScalingGroup(autoScalingGroup)",
208 "version": "1"
209 },
210 "$": {
211 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Either add default capacity\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.xlarge'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n desiredCapacity: 3,\n // ... other options here ...\n});\n\ncluster.addAutoScalingGroup(autoScalingGroup);",
212 "version": "0"
213 }
214 },
215 "location": {
216 "api": {
217 "api": "moduleReadme",
218 "moduleFqn": "@aws-cdk/aws-ecs"
219 },
220 "field": {
221 "field": "markdown",
222 "line": 118
223 }
224 },
225 "didCompile": true,
226 "fqnsReferenced": [
227 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
228 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
229 "@aws-cdk/aws-ec2.IMachineImage",
230 "@aws-cdk/aws-ec2.IVpc",
231 "@aws-cdk/aws-ec2.InstanceType",
232 "@aws-cdk/aws-ecs.AddCapacityOptions",
233 "@aws-cdk/aws-ecs.Cluster",
234 "@aws-cdk/aws-ecs.Cluster#addAutoScalingGroup",
235 "@aws-cdk/aws-ecs.Cluster#addCapacity",
236 "@aws-cdk/aws-ecs.ClusterProps",
237 "@aws-cdk/aws-ecs.EcsOptimizedImage",
238 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
239 "constructs.Construct"
240 ],
241 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Either add default capacity\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.xlarge'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n desiredCapacity: 3,\n // ... other options here ...\n});\n\ncluster.addAutoScalingGroup(autoScalingGroup);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
242 "syntaxKindCounter": {
243 "8": 2,
244 "10": 5,
245 "75": 28,
246 "104": 2,
247 "130": 1,
248 "153": 1,
249 "169": 1,
250 "193": 3,
251 "194": 8,
252 "196": 3,
253 "197": 4,
254 "225": 3,
255 "226": 2,
256 "242": 3,
257 "243": 3,
258 "281": 5,
259 "282": 2,
260 "290": 1
261 },
262 "fqnsFingerprint": "b430b7db3f004410db21b13a1a3b79bdf828d77301f76b9d4dd6b04c17245885"
263 },
264 "00471cdcbafcff42bd1b016db774055e9fb4a0c3ec03e93bc10e985be876d2f9": {
265 "translations": {
266 "python": {
267 "source": "# vpc: ec2.Vpc\n\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n machine_image=ecs.EcsOptimizedImage.amazon_linux(cached_in_context=True),\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.micro\")\n)",
268 "version": "2"
269 },
270 "csharp": {
271 "source": "Vpc vpc;\n\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n MachineImage = EcsOptimizedImage.AmazonLinux(new EcsOptimizedImageOptions { CachedInContext = true }),\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.micro\")\n});",
272 "version": "1"
273 },
274 "java": {
275 "source": "Vpc vpc;\n\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .machineImage(EcsOptimizedImage.amazonLinux(EcsOptimizedImageOptions.builder().cachedInContext(true).build()))\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.micro\"))\n .build();",
276 "version": "1"
277 },
278 "go": {
279 "source": "var vpc vpc\n\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux(&ecsOptimizedImageOptions{\n\t\tcachedInContext: jsii.Boolean(true),\n\t}),\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n})",
280 "version": "1"
281 },
282 "$": {
283 "source": "declare const vpc: ec2.Vpc;\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n machineImage: ecs.EcsOptimizedImage.amazonLinux({ cachedInContext: true }),\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n});",
284 "version": "0"
285 }
286 },
287 "location": {
288 "api": {
289 "api": "moduleReadme",
290 "moduleFqn": "@aws-cdk/aws-ecs"
291 },
292 "field": {
293 "field": "markdown",
294 "line": 158
295 }
296 },
297 "didCompile": true,
298 "fqnsReferenced": [
299 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
300 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
301 "@aws-cdk/aws-ec2.IMachineImage",
302 "@aws-cdk/aws-ec2.IVpc",
303 "@aws-cdk/aws-ec2.InstanceType",
304 "@aws-cdk/aws-ecs.EcsOptimizedImage",
305 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
306 "@aws-cdk/aws-ecs.EcsOptimizedImageOptions",
307 "constructs.Construct"
308 ],
309 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n machineImage: ecs.EcsOptimizedImage.amazonLinux({ cachedInContext: true }),\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
310 "syntaxKindCounter": {
311 "10": 2,
312 "75": 15,
313 "104": 1,
314 "106": 1,
315 "130": 1,
316 "153": 1,
317 "169": 1,
318 "193": 2,
319 "194": 4,
320 "196": 1,
321 "197": 2,
322 "225": 2,
323 "242": 2,
324 "243": 2,
325 "281": 3,
326 "282": 1,
327 "290": 1
328 },
329 "fqnsFingerprint": "0ab6d4bf5239087708ec0fe1f3d834d6a0573370ce11776bfae0bd0277aabbda"
330 },
331 "121007239be1194e23fd944eec608101cae029f6c9952b50622f624318feebf8": {
332 "translations": {
333 "python": {
334 "source": "# cluster: ecs.Cluster\n\n\ncluster.add_capacity(\"bottlerocket-asg\",\n min_capacity=2,\n instance_type=ec2.InstanceType(\"c5.large\"),\n machine_image=ecs.BottleRocketImage()\n)",
335 "version": "2"
336 },
337 "csharp": {
338 "source": "Cluster cluster;\n\n\ncluster.AddCapacity(\"bottlerocket-asg\", new AddCapacityOptions {\n MinCapacity = 2,\n InstanceType = new InstanceType(\"c5.large\"),\n MachineImage = new BottleRocketImage()\n});",
339 "version": "1"
340 },
341 "java": {
342 "source": "Cluster cluster;\n\n\ncluster.addCapacity(\"bottlerocket-asg\", AddCapacityOptions.builder()\n .minCapacity(2)\n .instanceType(new InstanceType(\"c5.large\"))\n .machineImage(new BottleRocketImage())\n .build());",
343 "version": "1"
344 },
345 "go": {
346 "source": "var cluster cluster\n\n\ncluster.addCapacity(jsii.String(\"bottlerocket-asg\"), &addCapacityOptions{\n\tminCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c5.large\")),\n\tmachineImage: ecs.NewBottleRocketImage(),\n})",
347 "version": "1"
348 },
349 "$": {
350 "source": "declare const cluster: ecs.Cluster;\n\ncluster.addCapacity('bottlerocket-asg', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c5.large'),\n machineImage: new ecs.BottleRocketImage(),\n});",
351 "version": "0"
352 }
353 },
354 "location": {
355 "api": {
356 "api": "moduleReadme",
357 "moduleFqn": "@aws-cdk/aws-ecs"
358 },
359 "field": {
360 "field": "markdown",
361 "line": 176
362 }
363 },
364 "didCompile": true,
365 "fqnsReferenced": [
366 "@aws-cdk/aws-ec2.IMachineImage",
367 "@aws-cdk/aws-ec2.InstanceType",
368 "@aws-cdk/aws-ecs.AddCapacityOptions",
369 "@aws-cdk/aws-ecs.BottleRocketImage",
370 "@aws-cdk/aws-ecs.Cluster#addCapacity"
371 ],
372 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addCapacity('bottlerocket-asg', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c5.large'),\n machineImage: new ecs.BottleRocketImage(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
373 "syntaxKindCounter": {
374 "8": 1,
375 "10": 2,
376 "75": 12,
377 "130": 1,
378 "153": 1,
379 "169": 1,
380 "193": 1,
381 "194": 3,
382 "196": 1,
383 "197": 2,
384 "225": 1,
385 "226": 1,
386 "242": 1,
387 "243": 1,
388 "281": 3,
389 "290": 1
390 },
391 "fqnsFingerprint": "fd3cf1453b819f54e5967a90e83bbe3e559ce7bc5c11c08d32b79594ba322767"
392 },
393 "617f46cc0f772b3e05233dc1b103f5072a60d5882f8c0e638a9d381818d98583": {
394 "translations": {
395 "python": {
396 "source": "# cluster: ecs.Cluster\n\n\ncluster.add_capacity(\"graviton-cluster\",\n min_capacity=2,\n instance_type=ec2.InstanceType(\"c6g.large\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux2(ecs.AmiHardwareType.ARM)\n)",
397 "version": "2"
398 },
399 "csharp": {
400 "source": "Cluster cluster;\n\n\ncluster.AddCapacity(\"graviton-cluster\", new AddCapacityOptions {\n MinCapacity = 2,\n InstanceType = new InstanceType(\"c6g.large\"),\n MachineImage = EcsOptimizedImage.AmazonLinux2(AmiHardwareType.ARM)\n});",
401 "version": "1"
402 },
403 "java": {
404 "source": "Cluster cluster;\n\n\ncluster.addCapacity(\"graviton-cluster\", AddCapacityOptions.builder()\n .minCapacity(2)\n .instanceType(new InstanceType(\"c6g.large\"))\n .machineImage(EcsOptimizedImage.amazonLinux2(AmiHardwareType.ARM))\n .build());",
405 "version": "1"
406 },
407 "go": {
408 "source": "var cluster cluster\n\n\ncluster.addCapacity(jsii.String(\"graviton-cluster\"), &addCapacityOptions{\n\tminCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c6g.large\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux2(ecs.amiHardwareType_ARM),\n})",
409 "version": "1"
410 },
411 "$": {
412 "source": "declare const cluster: ecs.Cluster;\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.ARM),\n});",
413 "version": "0"
414 }
415 },
416 "location": {
417 "api": {
418 "api": "moduleReadme",
419 "moduleFqn": "@aws-cdk/aws-ecs"
420 },
421 "field": {
422 "field": "markdown",
423 "line": 193
424 }
425 },
426 "didCompile": true,
427 "fqnsReferenced": [
428 "@aws-cdk/aws-ec2.IMachineImage",
429 "@aws-cdk/aws-ec2.InstanceType",
430 "@aws-cdk/aws-ecs.AddCapacityOptions",
431 "@aws-cdk/aws-ecs.AmiHardwareType",
432 "@aws-cdk/aws-ecs.AmiHardwareType#ARM",
433 "@aws-cdk/aws-ecs.Cluster#addCapacity",
434 "@aws-cdk/aws-ecs.EcsOptimizedImage",
435 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2"
436 ],
437 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.ARM),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
438 "syntaxKindCounter": {
439 "8": 1,
440 "10": 2,
441 "75": 16,
442 "130": 1,
443 "153": 1,
444 "169": 1,
445 "193": 1,
446 "194": 6,
447 "196": 2,
448 "197": 1,
449 "225": 1,
450 "226": 1,
451 "242": 1,
452 "243": 1,
453 "281": 3,
454 "290": 1
455 },
456 "fqnsFingerprint": "4467a15ad2dbe31ebecc9a403683a9916440d83a0419a4875005f4a06929f0e5"
457 },
458 "5db6bf91e6482b9a5286f7036c9f951d7de11f8b2a8fea10171cf690bdbe98ef": {
459 "translations": {
460 "python": {
461 "source": "# cluster: ecs.Cluster\n\n\ncluster.add_capacity(\"graviton-cluster\",\n min_capacity=2,\n instance_type=ec2.InstanceType(\"c6g.large\"),\n machine_image_type=ecs.MachineImageType.BOTTLEROCKET\n)",
462 "version": "2"
463 },
464 "csharp": {
465 "source": "Cluster cluster;\n\n\ncluster.AddCapacity(\"graviton-cluster\", new AddCapacityOptions {\n MinCapacity = 2,\n InstanceType = new InstanceType(\"c6g.large\"),\n MachineImageType = MachineImageType.BOTTLEROCKET\n});",
466 "version": "1"
467 },
468 "java": {
469 "source": "Cluster cluster;\n\n\ncluster.addCapacity(\"graviton-cluster\", AddCapacityOptions.builder()\n .minCapacity(2)\n .instanceType(new InstanceType(\"c6g.large\"))\n .machineImageType(MachineImageType.BOTTLEROCKET)\n .build());",
470 "version": "1"
471 },
472 "go": {
473 "source": "var cluster cluster\n\n\ncluster.addCapacity(jsii.String(\"graviton-cluster\"), &addCapacityOptions{\n\tminCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c6g.large\")),\n\tmachineImageType: ecs.machineImageType_BOTTLEROCKET,\n})",
474 "version": "1"
475 },
476 "$": {
477 "source": "declare const cluster: ecs.Cluster;\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImageType: ecs.MachineImageType.BOTTLEROCKET,\n});",
478 "version": "0"
479 }
480 },
481 "location": {
482 "api": {
483 "api": "moduleReadme",
484 "moduleFqn": "@aws-cdk/aws-ecs"
485 },
486 "field": {
487 "field": "markdown",
488 "line": 205
489 }
490 },
491 "didCompile": true,
492 "fqnsReferenced": [
493 "@aws-cdk/aws-ec2.InstanceType",
494 "@aws-cdk/aws-ecs.AddCapacityOptions",
495 "@aws-cdk/aws-ecs.Cluster#addCapacity",
496 "@aws-cdk/aws-ecs.MachineImageType",
497 "@aws-cdk/aws-ecs.MachineImageType#BOTTLEROCKET"
498 ],
499 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImageType: ecs.MachineImageType.BOTTLEROCKET,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
500 "syntaxKindCounter": {
501 "8": 1,
502 "10": 2,
503 "75": 13,
504 "130": 1,
505 "153": 1,
506 "169": 1,
507 "193": 1,
508 "194": 4,
509 "196": 1,
510 "197": 1,
511 "225": 1,
512 "226": 1,
513 "242": 1,
514 "243": 1,
515 "281": 3,
516 "290": 1
517 },
518 "fqnsFingerprint": "550f026e76586478f89ca881cd550ecbb984d55cccc1fef23200850d471b77b3"
519 },
520 "1bb9cfdd26f05f212a90917efd32f414bd3c3e440a45a9723cc5886e54f527b8": {
521 "translations": {
522 "python": {
523 "source": "# cluster: ecs.Cluster\n\n\n# Add an AutoScalingGroup with spot instances to the existing cluster\ncluster.add_capacity(\"AsgSpot\",\n max_capacity=2,\n min_capacity=2,\n desired_capacity=2,\n instance_type=ec2.InstanceType(\"c5.xlarge\"),\n spot_price=\"0.0735\",\n # Enable the Automated Spot Draining support for Amazon ECS\n spot_instance_draining=True\n)",
524 "version": "2"
525 },
526 "csharp": {
527 "source": "Cluster cluster;\n\n\n// Add an AutoScalingGroup with spot instances to the existing cluster\ncluster.AddCapacity(\"AsgSpot\", new AddCapacityOptions {\n MaxCapacity = 2,\n MinCapacity = 2,\n DesiredCapacity = 2,\n InstanceType = new InstanceType(\"c5.xlarge\"),\n SpotPrice = \"0.0735\",\n // Enable the Automated Spot Draining support for Amazon ECS\n SpotInstanceDraining = true\n});",
528 "version": "1"
529 },
530 "java": {
531 "source": "Cluster cluster;\n\n\n// Add an AutoScalingGroup with spot instances to the existing cluster\ncluster.addCapacity(\"AsgSpot\", AddCapacityOptions.builder()\n .maxCapacity(2)\n .minCapacity(2)\n .desiredCapacity(2)\n .instanceType(new InstanceType(\"c5.xlarge\"))\n .spotPrice(\"0.0735\")\n // Enable the Automated Spot Draining support for Amazon ECS\n .spotInstanceDraining(true)\n .build());",
532 "version": "1"
533 },
534 "go": {
535 "source": "var cluster cluster\n\n\n// Add an AutoScalingGroup with spot instances to the existing cluster\ncluster.addCapacity(jsii.String(\"AsgSpot\"), &addCapacityOptions{\n\tmaxCapacity: jsii.Number(2),\n\tminCapacity: jsii.Number(2),\n\tdesiredCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c5.xlarge\")),\n\tspotPrice: jsii.String(\"0.0735\"),\n\t// Enable the Automated Spot Draining support for Amazon ECS\n\tspotInstanceDraining: jsii.Boolean(true),\n})",
536 "version": "1"
537 },
538 "$": {
539 "source": "declare const cluster: ecs.Cluster;\n\n// Add an AutoScalingGroup with spot instances to the existing cluster\ncluster.addCapacity('AsgSpot', {\n maxCapacity: 2,\n minCapacity: 2,\n desiredCapacity: 2,\n instanceType: new ec2.InstanceType('c5.xlarge'),\n spotPrice: '0.0735',\n // Enable the Automated Spot Draining support for Amazon ECS\n spotInstanceDraining: true,\n});",
540 "version": "0"
541 }
542 },
543 "location": {
544 "api": {
545 "api": "moduleReadme",
546 "moduleFqn": "@aws-cdk/aws-ecs"
547 },
548 "field": {
549 "field": "markdown",
550 "line": 219
551 }
552 },
553 "didCompile": true,
554 "fqnsReferenced": [
555 "@aws-cdk/aws-ec2.InstanceType",
556 "@aws-cdk/aws-ecs.AddCapacityOptions",
557 "@aws-cdk/aws-ecs.Cluster#addCapacity"
558 ],
559 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\n// Add an AutoScalingGroup with spot instances to the existing cluster\ncluster.addCapacity('AsgSpot', {\n maxCapacity: 2,\n minCapacity: 2,\n desiredCapacity: 2,\n instanceType: new ec2.InstanceType('c5.xlarge'),\n spotPrice: '0.0735',\n // Enable the Automated Spot Draining support for Amazon ECS\n spotInstanceDraining: true,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
560 "syntaxKindCounter": {
561 "8": 3,
562 "10": 3,
563 "75": 13,
564 "106": 1,
565 "130": 1,
566 "153": 1,
567 "169": 1,
568 "193": 1,
569 "194": 2,
570 "196": 1,
571 "197": 1,
572 "225": 1,
573 "226": 1,
574 "242": 1,
575 "243": 1,
576 "281": 6,
577 "290": 1
578 },
579 "fqnsFingerprint": "9de06e209a8e27c540f27300c71d63367fc3d78fa35408819dcb896cafebb71f"
580 },
581 "9160d872aa0e50f4fd6737806775c28b280ac47895a3eea288872a9714be1bae": {
582 "translations": {
583 "python": {
584 "source": "# Given\n# cluster: ecs.Cluster\n# key: kms.Key\n\n# Then, use that key to encrypt the lifecycle-event SNS Topic.\ncluster.add_capacity(\"ASGEncryptedSNS\",\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n desired_capacity=3,\n topic_encryption_key=key\n)",
585 "version": "2"
586 },
587 "csharp": {
588 "source": "// Given\nCluster cluster;\nKey key;\n\n// Then, use that key to encrypt the lifecycle-event SNS Topic.\ncluster.AddCapacity(\"ASGEncryptedSNS\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.xlarge\"),\n DesiredCapacity = 3,\n TopicEncryptionKey = key\n});",
589 "version": "1"
590 },
591 "java": {
592 "source": "// Given\nCluster cluster;\nKey key;\n\n// Then, use that key to encrypt the lifecycle-event SNS Topic.\ncluster.addCapacity(\"ASGEncryptedSNS\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .desiredCapacity(3)\n .topicEncryptionKey(key)\n .build());",
593 "version": "1"
594 },
595 "go": {
596 "source": "// Given\nvar cluster cluster\nvar key key\n\n// Then, use that key to encrypt the lifecycle-event SNS Topic.\ncluster.addCapacity(jsii.String(\"ASGEncryptedSNS\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tdesiredCapacity: jsii.Number(3),\n\ttopicEncryptionKey: key,\n})",
597 "version": "1"
598 },
599 "$": {
600 "source": "// Given\ndeclare const cluster: ecs.Cluster;\ndeclare const key: kms.Key;\n// Then, use that key to encrypt the lifecycle-event SNS Topic.\ncluster.addCapacity('ASGEncryptedSNS', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n topicEncryptionKey: key,\n});",
601 "version": "0"
602 }
603 },
604 "location": {
605 "api": {
606 "api": "moduleReadme",
607 "moduleFqn": "@aws-cdk/aws-ecs"
608 },
609 "field": {
610 "field": "markdown",
611 "line": 241
612 }
613 },
614 "didCompile": true,
615 "fqnsReferenced": [
616 "@aws-cdk/aws-ec2.InstanceType",
617 "@aws-cdk/aws-ecs.AddCapacityOptions",
618 "@aws-cdk/aws-ecs.Cluster#addCapacity",
619 "@aws-cdk/aws-kms.IKey"
620 ],
621 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Given\ndeclare const cluster: ecs.Cluster;\ndeclare const key: kms.Key;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n// Then, use that key to encrypt the lifecycle-event SNS Topic.\ncluster.addCapacity('ASGEncryptedSNS', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n topicEncryptionKey: key,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
622 "syntaxKindCounter": {
623 "8": 1,
624 "10": 2,
625 "75": 14,
626 "130": 2,
627 "153": 2,
628 "169": 2,
629 "193": 1,
630 "194": 2,
631 "196": 1,
632 "197": 1,
633 "225": 2,
634 "226": 1,
635 "242": 2,
636 "243": 2,
637 "281": 3,
638 "290": 1
639 },
640 "fqnsFingerprint": "edc95e5ca0ea575815ef250bdd63991bdd8ef2dda558b83ac85a628bc3762f8d"
641 },
642 "698e45bf0b8b2a82b165279ebc980100a0ff997bf6120bc5625912c513742012": {
643 "translations": {
644 "python": {
645 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)",
646 "version": "2"
647 },
648 "csharp": {
649 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});",
650 "version": "1"
651 },
652 "java": {
653 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();",
654 "version": "1"
655 },
656 "go": {
657 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})",
658 "version": "1"
659 },
660 "$": {
661 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});",
662 "version": "0"
663 }
664 },
665 "location": {
666 "api": {
667 "api": "moduleReadme",
668 "moduleFqn": "@aws-cdk/aws-ecs"
669 },
670 "field": {
671 "field": "markdown",
672 "line": 268
673 }
674 },
675 "didCompile": true,
676 "fqnsReferenced": [
677 "@aws-cdk/aws-ecs.FargateTaskDefinition",
678 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
679 "constructs.Construct"
680 ],
681 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
682 "syntaxKindCounter": {
683 "8": 2,
684 "10": 1,
685 "75": 5,
686 "104": 1,
687 "193": 1,
688 "194": 1,
689 "197": 1,
690 "225": 1,
691 "242": 1,
692 "243": 1,
693 "281": 2
694 },
695 "fqnsFingerprint": "9d5ad37b6cb3daf44c918ecb333c55e5793a715f3040d0ea4b7b7f0cf66815d1"
696 },
697 "97126429621d8f886e480e83bc2d80b113c1284b7e6223d272dc48028210ed23": {
698 "translations": {
699 "python": {
700 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256,\n ephemeral_storage_gi_b=100\n)",
701 "version": "2"
702 },
703 "csharp": {
704 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256,\n EphemeralStorageGiB = 100\n});",
705 "version": "1"
706 },
707 "java": {
708 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .ephemeralStorageGiB(100)\n .build();",
709 "version": "1"
710 },
711 "go": {
712 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n\tephemeralStorageGiB: jsii.Number(100),\n})",
713 "version": "1"
714 },
715 "$": {
716 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n ephemeralStorageGiB: 100,\n});",
717 "version": "0"
718 }
719 },
720 "location": {
721 "api": {
722 "api": "moduleReadme",
723 "moduleFqn": "@aws-cdk/aws-ecs"
724 },
725 "field": {
726 "field": "markdown",
727 "line": 278
728 }
729 },
730 "didCompile": true,
731 "fqnsReferenced": [
732 "@aws-cdk/aws-ecs.FargateTaskDefinition",
733 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
734 "constructs.Construct"
735 ],
736 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n ephemeralStorageGiB: 100,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
737 "syntaxKindCounter": {
738 "8": 3,
739 "10": 1,
740 "75": 6,
741 "104": 1,
742 "193": 1,
743 "194": 1,
744 "197": 1,
745 "225": 1,
746 "242": 1,
747 "243": 1,
748 "281": 3
749 },
750 "fqnsFingerprint": "9d5ad37b6cb3daf44c918ecb333c55e5793a715f3040d0ea4b7b7f0cf66815d1"
751 },
752 "d6554b770077ed84ad594117c6f82140fcf6d223a461fef717f1cc5159bbdb34": {
753 "translations": {
754 "python": {
755 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)\ncontainer = fargate_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n)",
756 "version": "2"
757 },
758 "csharp": {
759 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});\nContainerDefinition container = fargateTaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n});",
760 "version": "1"
761 },
762 "java": {
763 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();\nContainerDefinition container = fargateTaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build());",
764 "version": "1"
765 },
766 "go": {
767 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})\ncontainer := fargateTaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n})",
768 "version": "1"
769 },
770 "$": {
771 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst container = fargateTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n // ... other options here ...\n});",
772 "version": "0"
773 }
774 },
775 "location": {
776 "api": {
777 "api": "moduleReadme",
778 "moduleFqn": "@aws-cdk/aws-ecs"
779 },
780 "field": {
781 "field": "markdown",
782 "line": 288
783 }
784 },
785 "didCompile": true,
786 "fqnsReferenced": [
787 "@aws-cdk/aws-ecs.ContainerDefinition",
788 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
789 "@aws-cdk/aws-ecs.ContainerImage",
790 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
791 "@aws-cdk/aws-ecs.FargateTaskDefinition",
792 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
793 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
794 "constructs.Construct"
795 ],
796 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst container = fargateTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
797 "syntaxKindCounter": {
798 "8": 2,
799 "10": 3,
800 "75": 12,
801 "104": 1,
802 "193": 2,
803 "194": 4,
804 "196": 2,
805 "197": 1,
806 "225": 2,
807 "242": 2,
808 "243": 2,
809 "281": 3
810 },
811 "fqnsFingerprint": "b4c40e592d4f61b922fd8e4d618aea91c864ac23f4a1d0125f1d3f62c90aa369"
812 },
813 "5412adb846a43ca4b6449551dfc28013875e657263e8d999f53b98ff5271064d": {
814 "translations": {
815 "python": {
816 "source": "ec2_task_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\",\n network_mode=ecs.NetworkMode.BRIDGE\n)\n\ncontainer = ec2_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024\n)",
817 "version": "2"
818 },
819 "csharp": {
820 "source": "Ec2TaskDefinition ec2TaskDefinition = new Ec2TaskDefinition(this, \"TaskDef\", new Ec2TaskDefinitionProps {\n NetworkMode = NetworkMode.BRIDGE\n});\n\nContainerDefinition container = ec2TaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024\n});",
821 "version": "1"
822 },
823 "java": {
824 "source": "Ec2TaskDefinition ec2TaskDefinition = Ec2TaskDefinition.Builder.create(this, \"TaskDef\")\n .networkMode(NetworkMode.BRIDGE)\n .build();\n\nContainerDefinition container = ec2TaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .build());",
825 "version": "1"
826 },
827 "go": {
828 "source": "ec2TaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"), &ec2TaskDefinitionProps{\n\tnetworkMode: ecs.networkMode_BRIDGE,\n})\n\ncontainer := ec2TaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n})",
829 "version": "1"
830 },
831 "$": {
832 "source": "const ec2TaskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef', {\n networkMode: ecs.NetworkMode.BRIDGE,\n});\n\nconst container = ec2TaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});",
833 "version": "0"
834 }
835 },
836 "location": {
837 "api": {
838 "api": "moduleReadme",
839 "moduleFqn": "@aws-cdk/aws-ecs"
840 },
841 "field": {
842 "field": "markdown",
843 "line": 302
844 }
845 },
846 "didCompile": true,
847 "fqnsReferenced": [
848 "@aws-cdk/aws-ecs.ContainerDefinition",
849 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
850 "@aws-cdk/aws-ecs.ContainerImage",
851 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
852 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
853 "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
854 "@aws-cdk/aws-ecs.NetworkMode",
855 "@aws-cdk/aws-ecs.NetworkMode#BRIDGE",
856 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
857 "constructs.Construct"
858 ],
859 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst ec2TaskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef', {\n networkMode: ecs.NetworkMode.BRIDGE,\n});\n\nconst container = ec2TaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
860 "syntaxKindCounter": {
861 "8": 1,
862 "10": 3,
863 "75": 15,
864 "104": 1,
865 "193": 2,
866 "194": 6,
867 "196": 2,
868 "197": 1,
869 "225": 2,
870 "242": 2,
871 "243": 2,
872 "281": 3
873 },
874 "fqnsFingerprint": "3a3545ab580227152b50d324c49d7ee51c7fd5bcc939b9dfad98070b91538526"
875 },
876 "8e8449e5a66be33a53689cc1585e1c53906fdf339f726b5a932589973b760c01": {
877 "translations": {
878 "python": {
879 "source": "external_task_definition = ecs.ExternalTaskDefinition(self, \"TaskDef\")\n\ncontainer = external_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024\n)",
880 "version": "2"
881 },
882 "csharp": {
883 "source": "ExternalTaskDefinition externalTaskDefinition = new ExternalTaskDefinition(this, \"TaskDef\");\n\nContainerDefinition container = externalTaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024\n});",
884 "version": "1"
885 },
886 "java": {
887 "source": "ExternalTaskDefinition externalTaskDefinition = new ExternalTaskDefinition(this, \"TaskDef\");\n\nContainerDefinition container = externalTaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .build());",
888 "version": "1"
889 },
890 "go": {
891 "source": "externalTaskDefinition := ecs.NewExternalTaskDefinition(this, jsii.String(\"TaskDef\"))\n\ncontainer := externalTaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n})",
892 "version": "1"
893 },
894 "$": {
895 "source": "const externalTaskDefinition = new ecs.ExternalTaskDefinition(this, 'TaskDef');\n\nconst container = externalTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});",
896 "version": "0"
897 }
898 },
899 "location": {
900 "api": {
901 "api": "moduleReadme",
902 "moduleFqn": "@aws-cdk/aws-ecs"
903 },
904 "field": {
905 "field": "markdown",
906 "line": 317
907 }
908 },
909 "didCompile": true,
910 "fqnsReferenced": [
911 "@aws-cdk/aws-ecs.ContainerDefinition",
912 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
913 "@aws-cdk/aws-ecs.ContainerImage",
914 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
915 "@aws-cdk/aws-ecs.ExternalTaskDefinition",
916 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
917 "constructs.Construct"
918 ],
919 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst externalTaskDefinition = new ecs.ExternalTaskDefinition(this, 'TaskDef');\n\nconst container = externalTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
920 "syntaxKindCounter": {
921 "8": 1,
922 "10": 3,
923 "75": 11,
924 "104": 1,
925 "193": 1,
926 "194": 4,
927 "196": 2,
928 "197": 1,
929 "225": 2,
930 "242": 2,
931 "243": 2,
932 "281": 2
933 },
934 "fqnsFingerprint": "e2741b7c5ae74ef4a0ead3c02159d7532e256d6fdb47e072c85499f1b244fe31"
935 },
936 "4c4be3d143fb5d60d538ca5139c6cb3590084ef71170e941cc8c7efa2ee47d47": {
937 "translations": {
938 "python": {
939 "source": "# task_definition: ecs.TaskDefinition\n\n\ntask_definition.add_container(\"WebContainer\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024,\n port_mappings=[ecs.PortMapping(container_port=3000)]\n)",
940 "version": "2"
941 },
942 "csharp": {
943 "source": "TaskDefinition taskDefinition;\n\n\ntaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024,\n PortMappings = new [] { new PortMapping { ContainerPort = 3000 } }\n});",
944 "version": "1"
945 },
946 "java": {
947 "source": "TaskDefinition taskDefinition;\n\n\ntaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .portMappings(List.of(PortMapping.builder().containerPort(3000).build()))\n .build());",
948 "version": "1"
949 },
950 "go": {
951 "source": "var taskDefinition taskDefinition\n\n\ntaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(3000),\n\t\t},\n\t},\n})",
952 "version": "1"
953 },
954 "$": {
955 "source": "declare const taskDefinition: ecs.TaskDefinition;\n\ntaskDefinition.addContainer(\"WebContainer\", {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n portMappings: [{ containerPort: 3000 }],\n});",
956 "version": "0"
957 }
958 },
959 "location": {
960 "api": {
961 "api": "moduleReadme",
962 "moduleFqn": "@aws-cdk/aws-ecs"
963 },
964 "field": {
965 "field": "markdown",
966 "line": 332
967 }
968 },
969 "didCompile": true,
970 "fqnsReferenced": [
971 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
972 "@aws-cdk/aws-ecs.ContainerImage",
973 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
974 "@aws-cdk/aws-ecs.TaskDefinition#addContainer"
975 ],
976 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ntaskDefinition.addContainer(\"WebContainer\", {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n portMappings: [{ containerPort: 3000 }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
977 "syntaxKindCounter": {
978 "8": 2,
979 "10": 2,
980 "75": 12,
981 "130": 1,
982 "153": 1,
983 "169": 1,
984 "192": 1,
985 "193": 2,
986 "194": 3,
987 "196": 2,
988 "225": 1,
989 "226": 1,
990 "242": 1,
991 "243": 1,
992 "281": 4,
993 "290": 1
994 },
995 "fqnsFingerprint": "a581a1f456cbf65c52910d85297959bfeda5af0f1a78d8c267a8fcea1a05d7af"
996 },
997 "120aea3a2de6e7bc6b6373c542fa27abb3f8abb604346ddf1b16e0b8026503ae": {
998 "translations": {
999 "python": {
1000 "source": "# container: ecs.ContainerDefinition\n\n\ncontainer.add_port_mappings(\n container_port=3000\n)",
1001 "version": "2"
1002 },
1003 "csharp": {
1004 "source": "ContainerDefinition container;\n\n\ncontainer.AddPortMappings(new PortMapping {\n ContainerPort = 3000\n});",
1005 "version": "1"
1006 },
1007 "java": {
1008 "source": "ContainerDefinition container;\n\n\ncontainer.addPortMappings(PortMapping.builder()\n .containerPort(3000)\n .build());",
1009 "version": "1"
1010 },
1011 "go": {
1012 "source": "var container containerDefinition\n\n\ncontainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(3000),\n})",
1013 "version": "1"
1014 },
1015 "$": {
1016 "source": "declare const container: ecs.ContainerDefinition;\n\ncontainer.addPortMappings({\n containerPort: 3000,\n});",
1017 "version": "0"
1018 }
1019 },
1020 "location": {
1021 "api": {
1022 "api": "moduleReadme",
1023 "moduleFqn": "@aws-cdk/aws-ecs"
1024 },
1025 "field": {
1026 "field": "markdown",
1027 "line": 344
1028 }
1029 },
1030 "didCompile": true,
1031 "fqnsReferenced": [
1032 "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
1033 "@aws-cdk/aws-ecs.PortMapping"
1034 ],
1035 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const container: ecs.ContainerDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncontainer.addPortMappings({\n containerPort: 3000,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1036 "syntaxKindCounter": {
1037 "8": 1,
1038 "75": 6,
1039 "130": 1,
1040 "153": 1,
1041 "169": 1,
1042 "193": 1,
1043 "194": 1,
1044 "196": 1,
1045 "225": 1,
1046 "226": 1,
1047 "242": 1,
1048 "243": 1,
1049 "281": 1,
1050 "290": 1
1051 },
1052 "fqnsFingerprint": "2b1381460d33dca05f605d00e2868645bcb73c3bc3f5e7da230cc028b0ec8477"
1053 },
1054 "e87a3180b41545552231bc30602ec12b9ad3a7a64fdf78e289e1adb3f715dcb4": {
1055 "translations": {
1056 "python": {
1057 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)\nvolume = {\n # Use an Elastic FileSystem\n \"name\": \"mydatavolume\",\n \"efs_volume_configuration\": {\n \"file_system_id\": \"EFS\"\n }\n}\n\ncontainer = fargate_task_definition.add_volume(volume)",
1058 "version": "2"
1059 },
1060 "csharp": {
1061 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});\nIDictionary<string, object> volume = new Dictionary<string, object> {\n // Use an Elastic FileSystem\n { \"name\", \"mydatavolume\" },\n { \"efsVolumeConfiguration\", new Dictionary<string, string> {\n { \"fileSystemId\", \"EFS\" }\n } }\n};\n\nvoid container = fargateTaskDefinition.AddVolume(volume);",
1062 "version": "1"
1063 },
1064 "java": {
1065 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();\nMap<String, Object> volume = Map.of(\n // Use an Elastic FileSystem\n \"name\", \"mydatavolume\",\n \"efsVolumeConfiguration\", Map.of(\n \"fileSystemId\", \"EFS\"));\n\nvoid container = fargateTaskDefinition.addVolume(volume);",
1066 "version": "1"
1067 },
1068 "go": {
1069 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})\nvolume := map[string]interface{}{\n\t// Use an Elastic FileSystem\n\t\"name\": jsii.String(\"mydatavolume\"),\n\t\"efsVolumeConfiguration\": map[string]*string{\n\t\t\"fileSystemId\": jsii.String(\"EFS\"),\n\t},\n}\n\ncontainer := fargateTaskDefinition.addVolume(volume)",
1070 "version": "1"
1071 },
1072 "$": {
1073 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst volume = {\n // Use an Elastic FileSystem\n name: \"mydatavolume\",\n efsVolumeConfiguration: {\n fileSystemId: \"EFS\",\n // ... other options here ...\n },\n};\n\nconst container = fargateTaskDefinition.addVolume(volume);",
1074 "version": "0"
1075 }
1076 },
1077 "location": {
1078 "api": {
1079 "api": "moduleReadme",
1080 "moduleFqn": "@aws-cdk/aws-ecs"
1081 },
1082 "field": {
1083 "field": "markdown",
1084 "line": 354
1085 }
1086 },
1087 "didCompile": true,
1088 "fqnsReferenced": [
1089 "@aws-cdk/aws-ecs.FargateTaskDefinition",
1090 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
1091 "@aws-cdk/aws-ecs.TaskDefinition#addVolume",
1092 "@aws-cdk/aws-ecs.Volume",
1093 "constructs.Construct"
1094 ],
1095 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst volume = {\n // Use an Elastic FileSystem\n name: \"mydatavolume\",\n efsVolumeConfiguration: {\n fileSystemId: \"EFS\",\n // ... other options here ...\n },\n};\n\nconst container = fargateTaskDefinition.addVolume(volume);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1096 "syntaxKindCounter": {
1097 "8": 2,
1098 "10": 3,
1099 "75": 13,
1100 "104": 1,
1101 "193": 3,
1102 "194": 2,
1103 "196": 1,
1104 "197": 1,
1105 "225": 3,
1106 "242": 3,
1107 "243": 3,
1108 "281": 5
1109 },
1110 "fqnsFingerprint": "86488bc0375fcbf205ec25877d955eb78dde5e6455f39e511eafe86acd675896"
1111 },
1112 "381cf4ed7560075a6242c6766d0374a9b067d968d4aa41a08a31dd91d12c081e": {
1113 "translations": {
1114 "python": {
1115 "source": "task_definition = ecs.TaskDefinition(self, \"TaskDef\",\n memory_mi_b=\"512\",\n cpu=\"256\",\n network_mode=ecs.NetworkMode.AWS_VPC,\n compatibility=ecs.Compatibility.EC2_AND_FARGATE\n)",
1116 "version": "2"
1117 },
1118 "csharp": {
1119 "source": "TaskDefinition taskDefinition = new TaskDefinition(this, \"TaskDef\", new TaskDefinitionProps {\n MemoryMiB = \"512\",\n Cpu = \"256\",\n NetworkMode = NetworkMode.AWS_VPC,\n Compatibility = Compatibility.EC2_AND_FARGATE\n});",
1120 "version": "1"
1121 },
1122 "java": {
1123 "source": "TaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryMiB(\"512\")\n .cpu(\"256\")\n .networkMode(NetworkMode.AWS_VPC)\n .compatibility(Compatibility.EC2_AND_FARGATE)\n .build();",
1124 "version": "1"
1125 },
1126 "go": {
1127 "source": "taskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TaskDef\"), &taskDefinitionProps{\n\tmemoryMiB: jsii.String(\"512\"),\n\tcpu: jsii.String(\"256\"),\n\tnetworkMode: ecs.networkMode_AWS_VPC,\n\tcompatibility: ecs.compatibility_EC2_AND_FARGATE,\n})",
1128 "version": "1"
1129 },
1130 "$": {
1131 "source": "const taskDefinition = new ecs.TaskDefinition(this, 'TaskDef', {\n memoryMiB: '512',\n cpu: '256',\n networkMode: ecs.NetworkMode.AWS_VPC,\n compatibility: ecs.Compatibility.EC2_AND_FARGATE,\n});",
1132 "version": "0"
1133 }
1134 },
1135 "location": {
1136 "api": {
1137 "api": "moduleReadme",
1138 "moduleFqn": "@aws-cdk/aws-ecs"
1139 },
1140 "field": {
1141 "field": "markdown",
1142 "line": 380
1143 }
1144 },
1145 "didCompile": true,
1146 "fqnsReferenced": [
1147 "@aws-cdk/aws-ecs.Compatibility",
1148 "@aws-cdk/aws-ecs.Compatibility#EC2_AND_FARGATE",
1149 "@aws-cdk/aws-ecs.NetworkMode",
1150 "@aws-cdk/aws-ecs.NetworkMode#AWS_VPC",
1151 "@aws-cdk/aws-ecs.TaskDefinition",
1152 "@aws-cdk/aws-ecs.TaskDefinitionProps",
1153 "constructs.Construct"
1154 ],
1155 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst taskDefinition = new ecs.TaskDefinition(this, 'TaskDef', {\n memoryMiB: '512',\n cpu: '256',\n networkMode: ecs.NetworkMode.AWS_VPC,\n compatibility: ecs.Compatibility.EC2_AND_FARGATE,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1156 "syntaxKindCounter": {
1157 "10": 3,
1158 "75": 13,
1159 "104": 1,
1160 "193": 1,
1161 "194": 5,
1162 "197": 1,
1163 "225": 1,
1164 "242": 1,
1165 "243": 1,
1166 "281": 4
1167 },
1168 "fqnsFingerprint": "459235a6f9f65513502c560528c2cafc40c4f8a31ba3015bc209508221f9a417"
1169 },
1170 "8a8f3d0cf3f5bdde3358986cf4a29c526e0b83bd8a63ee6138b3a9ef202d8f50": {
1171 "translations": {
1172 "python": {
1173 "source": "# secret: secretsmanager.Secret\n# db_secret: secretsmanager.Secret\n# parameter: ssm.StringParameter\n# task_definition: ecs.TaskDefinition\n# s3_bucket: s3.Bucket\n\n\nnew_container = task_definition.add_container(\"container\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024,\n environment={ # clear text, not for sensitive data\n \"STAGE\": \"prod\"},\n environment_files=[ # list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.from_asset(\"./demo-env-file.env\"),\n ecs.EnvironmentFile.from_bucket(s3_bucket, \"assets/demo-env-file.env\")],\n secrets={ # Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\": ecs.Secret.from_secrets_manager(secret),\n \"DB_PASSWORD\": ecs.Secret.from_secrets_manager(db_secret, \"password\"), # Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\": ecs.Secret.from_secrets_manager_version(secret, ecs.SecretVersionInfo(version_id=\"12345\"), \"apiKey\"), # Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\": ecs.Secret.from_ssm_parameter(parameter)}\n)\nnew_container.add_environment(\"QUEUE_NAME\", \"MyQueue\")",
1174 "version": "2"
1175 },
1176 "csharp": {
1177 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.AddContainer(\"container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024,\n Environment = new Dictionary<string, string> { // clear text, not for sensitive data\n { \"STAGE\", \"prod\" } },\n EnvironmentFiles = new [] { EnvironmentFile.FromAsset(\"./demo-env-file.env\"), EnvironmentFile.FromBucket(s3Bucket, \"assets/demo-env-file.env\") },\n Secrets = new Dictionary<string, Secret> { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n { \"SECRET\", Secret.FromSecretsManager(secret) },\n { \"DB_PASSWORD\", Secret.FromSecretsManager(dbSecret, \"password\") }, // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n { \"API_KEY\", Secret.FromSecretsManagerVersion(secret, new SecretVersionInfo { VersionId = \"12345\" }, \"apiKey\") }, // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n { \"PARAMETER\", Secret.FromSsmParameter(parameter) } }\n});\nnewContainer.AddEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
1178 "version": "1"
1179 },
1180 "java": {
1181 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.addContainer(\"container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .environment(Map.of( // clear text, not for sensitive data\n \"STAGE\", \"prod\"))\n .environmentFiles(List.of(EnvironmentFile.fromAsset(\"./demo-env-file.env\"), EnvironmentFile.fromBucket(s3Bucket, \"assets/demo-env-file.env\")))\n .secrets(Map.of( // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\", Secret.fromSecretsManager(secret),\n \"DB_PASSWORD\", Secret.fromSecretsManager(dbSecret, \"password\"), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\", Secret.fromSecretsManagerVersion(secret, SecretVersionInfo.builder().versionId(\"12345\").build(), \"apiKey\"), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\", Secret.fromSsmParameter(parameter)))\n .build());\nnewContainer.addEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
1182 "version": "1"
1183 },
1184 "go": {
1185 "source": "var secret secret\nvar dbSecret secret\nvar parameter stringParameter\nvar taskDefinition taskDefinition\nvar s3Bucket bucket\n\n\nnewContainer := taskDefinition.addContainer(jsii.String(\"container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tenvironment: map[string]*string{\n\t\t // clear text, not for sensitive data\n\t\t\"STAGE\": jsii.String(\"prod\"),\n\t},\n\tenvironmentFiles: []environmentFile{\n\t\tecs.*environmentFile.fromAsset(jsii.String(\"./demo-env-file.env\")),\n\t\tecs.*environmentFile.fromBucket(s3Bucket, jsii.String(\"assets/demo-env-file.env\")),\n\t},\n\tsecrets: map[string]secret{\n\t\t // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n\t\t\"SECRET\": ecs.*secret.fromSecretsManager(secret),\n\t\t\"DB_PASSWORD\": ecs.*secret.fromSecretsManager(dbSecret, jsii.String(\"password\")),\n\t\t // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"API_KEY\": ecs.*secret.fromSecretsManagerVersion(secret, &SecretVersionInfo{\n\t\t\t\"versionId\": jsii.String(\"12345\"),\n\t\t}, jsii.String(\"apiKey\")),\n\t\t // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"PARAMETER\": ecs.*secret.fromSsmParameter(parameter),\n\t},\n})\nnewContainer.addEnvironment(jsii.String(\"QUEUE_NAME\"), jsii.String(\"MyQueue\"))",
1186 "version": "1"
1187 },
1188 "$": {
1189 "source": "declare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');",
1190 "version": "0"
1191 }
1192 },
1193 "location": {
1194 "api": {
1195 "api": "moduleReadme",
1196 "moduleFqn": "@aws-cdk/aws-ecs"
1197 },
1198 "field": {
1199 "field": "markdown",
1200 "line": 410
1201 }
1202 },
1203 "didCompile": true,
1204 "fqnsReferenced": [
1205 "@aws-cdk/aws-ecs.ContainerDefinition",
1206 "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
1207 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
1208 "@aws-cdk/aws-ecs.ContainerImage",
1209 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
1210 "@aws-cdk/aws-ecs.EnvironmentFile",
1211 "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
1212 "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
1213 "@aws-cdk/aws-ecs.Secret",
1214 "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
1215 "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
1216 "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
1217 "@aws-cdk/aws-ecs.SecretVersionInfo",
1218 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
1219 "@aws-cdk/aws-s3.IBucket",
1220 "@aws-cdk/aws-secretsmanager.ISecret",
1221 "@aws-cdk/aws-ssm.IParameter"
1222 ],
1223 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1224 "syntaxKindCounter": {
1225 "8": 1,
1226 "10": 10,
1227 "75": 57,
1228 "130": 5,
1229 "153": 5,
1230 "169": 5,
1231 "192": 1,
1232 "193": 4,
1233 "194": 16,
1234 "196": 9,
1235 "225": 6,
1236 "226": 1,
1237 "242": 6,
1238 "243": 6,
1239 "281": 11,
1240 "290": 1
1241 },
1242 "fqnsFingerprint": "b136978e4b069a3b4d1c7df0fcd416af6f80a95a3578a4eac49f7f3768a6a86f"
1243 },
1244 "46fa35a60ce38eabadf852fc67ffaf8e5a3267f03351b49ff17b071820dbd0fe": {
1245 "translations": {
1246 "python": {
1247 "source": "# task_definition: ecs.TaskDefinition\n\n\ntask_definition.add_container(\"container\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024,\n system_controls=[ecs.SystemControl(\n namespace=\"net\",\n value=\"ipv4.tcp_tw_recycle\"\n )\n ]\n)",
1248 "version": "2"
1249 },
1250 "csharp": {
1251 "source": "TaskDefinition taskDefinition;\n\n\ntaskDefinition.AddContainer(\"container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024,\n SystemControls = new [] { new SystemControl {\n Namespace = \"net\",\n Value = \"ipv4.tcp_tw_recycle\"\n } }\n});",
1252 "version": "1"
1253 },
1254 "java": {
1255 "source": "TaskDefinition taskDefinition;\n\n\ntaskDefinition.addContainer(\"container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .systemControls(List.of(SystemControl.builder()\n .namespace(\"net\")\n .value(\"ipv4.tcp_tw_recycle\")\n .build()))\n .build());",
1256 "version": "1"
1257 },
1258 "go": {
1259 "source": "var taskDefinition taskDefinition\n\n\ntaskDefinition.addContainer(jsii.String(\"container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tsystemControls: []systemControl{\n\t\t&systemControl{\n\t\t\tnamespace: jsii.String(\"net\"),\n\t\t\tvalue: jsii.String(\"ipv4.tcp_tw_recycle\"),\n\t\t},\n\t},\n})",
1260 "version": "1"
1261 },
1262 "$": {
1263 "source": "declare const taskDefinition: ecs.TaskDefinition;\n\ntaskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n systemControls: [\n {\n namespace: 'net',\n value: 'ipv4.tcp_tw_recycle',\n },\n ],\n});",
1264 "version": "0"
1265 }
1266 },
1267 "location": {
1268 "api": {
1269 "api": "moduleReadme",
1270 "moduleFqn": "@aws-cdk/aws-ecs"
1271 },
1272 "field": {
1273 "field": "markdown",
1274 "line": 445
1275 }
1276 },
1277 "didCompile": true,
1278 "fqnsReferenced": [
1279 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
1280 "@aws-cdk/aws-ecs.ContainerImage",
1281 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
1282 "@aws-cdk/aws-ecs.TaskDefinition#addContainer"
1283 ],
1284 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ntaskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n systemControls: [\n {\n namespace: 'net',\n value: 'ipv4.tcp_tw_recycle',\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1285 "syntaxKindCounter": {
1286 "8": 1,
1287 "10": 4,
1288 "75": 13,
1289 "130": 1,
1290 "153": 1,
1291 "169": 1,
1292 "192": 1,
1293 "193": 2,
1294 "194": 3,
1295 "196": 2,
1296 "225": 1,
1297 "226": 1,
1298 "242": 1,
1299 "243": 1,
1300 "281": 5,
1301 "290": 1
1302 },
1303 "fqnsFingerprint": "a581a1f456cbf65c52910d85297959bfeda5af0f1a78d8c267a8fcea1a05d7af"
1304 },
1305 "82da3700a5e641e29829134231456f74d09cb5a0bee457e9fe453cae15e1e2e7": {
1306 "translations": {
1307 "python": {
1308 "source": "# Create a Task Definition for the Windows container to start\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n runtime_platform=ecs.RuntimePlatform(\n operating_system_family=ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpu_architecture=ecs.CpuArchitecture.X86_64\n ),\n cpu=1024,\n memory_limit_mi_b=2048\n)\n\ntask_definition.add_container(\"windowsservercore\",\n logging=ecs.LogDriver.aws_logs(stream_prefix=\"win-iis-on-fargate\"),\n port_mappings=[ecs.PortMapping(container_port=80)],\n image=ecs.ContainerImage.from_registry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n)",
1309 "version": "2"
1310 },
1311 "csharp": {
1312 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n RuntimePlatform = new RuntimePlatform {\n OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n CpuArchitecture = CpuArchitecture.X86_64\n },\n Cpu = 1024,\n MemoryLimitMiB = 2048\n});\n\ntaskDefinition.AddContainer(\"windowsservercore\", new ContainerDefinitionOptions {\n Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"win-iis-on-fargate\" }),\n PortMappings = new [] { new PortMapping { ContainerPort = 80 } },\n Image = ContainerImage.FromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n});",
1313 "version": "1"
1314 },
1315 "java": {
1316 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .runtimePlatform(RuntimePlatform.builder()\n .operatingSystemFamily(OperatingSystemFamily.WINDOWS_SERVER_2019_CORE)\n .cpuArchitecture(CpuArchitecture.X86_64)\n .build())\n .cpu(1024)\n .memoryLimitMiB(2048)\n .build();\n\ntaskDefinition.addContainer(\"windowsservercore\", ContainerDefinitionOptions.builder()\n .logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"win-iis-on-fargate\").build()))\n .portMappings(List.of(PortMapping.builder().containerPort(80).build()))\n .image(ContainerImage.fromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\"))\n .build());",
1317 "version": "1"
1318 },
1319 "go": {
1320 "source": "// Create a Task Definition for the Windows container to start\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\truntimePlatform: &runtimePlatform{\n\t\toperatingSystemFamily: ecs.operatingSystemFamily_WINDOWS_SERVER_2019_CORE(),\n\t\tcpuArchitecture: ecs.cpuArchitecture_X86_64(),\n\t},\n\tcpu: jsii.Number(1024),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\ntaskDefinition.addContainer(jsii.String(\"windowsservercore\"), &containerDefinitionOptions{\n\tlogging: ecs.logDriver.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"win-iis-on-fargate\"),\n\t}),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(80),\n\t\t},\n\t},\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")),\n})",
1321 "version": "1"
1322 },
1323 "$": {
1324 "source": "// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});",
1325 "version": "0"
1326 }
1327 },
1328 "location": {
1329 "api": {
1330 "api": "moduleReadme",
1331 "moduleFqn": "@aws-cdk/aws-ecs"
1332 },
1333 "field": {
1334 "field": "markdown",
1335 "line": 464
1336 }
1337 },
1338 "didCompile": true,
1339 "fqnsReferenced": [
1340 "@aws-cdk/aws-ecs.AwsLogDriverProps",
1341 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
1342 "@aws-cdk/aws-ecs.ContainerImage",
1343 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
1344 "@aws-cdk/aws-ecs.CpuArchitecture",
1345 "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
1346 "@aws-cdk/aws-ecs.FargateTaskDefinition",
1347 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
1348 "@aws-cdk/aws-ecs.LogDriver",
1349 "@aws-cdk/aws-ecs.LogDriver#awsLogs",
1350 "@aws-cdk/aws-ecs.OperatingSystemFamily",
1351 "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
1352 "@aws-cdk/aws-ecs.RuntimePlatform",
1353 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
1354 "constructs.Construct"
1355 ],
1356 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1357 "syntaxKindCounter": {
1358 "8": 3,
1359 "10": 4,
1360 "75": 27,
1361 "104": 1,
1362 "192": 1,
1363 "193": 5,
1364 "194": 10,
1365 "196": 3,
1366 "197": 1,
1367 "225": 1,
1368 "226": 1,
1369 "242": 1,
1370 "243": 1,
1371 "281": 10
1372 },
1373 "fqnsFingerprint": "d670aad91d3b8aaae82769324f3a2f855bbb99ef3ac45066fc4e9e4f6aae906d"
1374 },
1375 "3aaf19f41d2c4dce1d6532142c0c01c5fb4629338557b109e47d8c3b84b6e777": {
1376 "translations": {
1377 "python": {
1378 "source": "# Create a Task Definition for running container on Graviton Runtime.\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n runtime_platform=ecs.RuntimePlatform(\n operating_system_family=ecs.OperatingSystemFamily.LINUX,\n cpu_architecture=ecs.CpuArchitecture.ARM64\n ),\n cpu=1024,\n memory_limit_mi_b=2048\n)\n\ntask_definition.add_container(\"webarm64\",\n logging=ecs.LogDriver.aws_logs(stream_prefix=\"graviton2-on-fargate\"),\n port_mappings=[ecs.PortMapping(container_port=80)],\n image=ecs.ContainerImage.from_registry(\"public.ecr.aws/nginx/nginx:latest-arm64v8\")\n)",
1379 "version": "2"
1380 },
1381 "csharp": {
1382 "source": "// Create a Task Definition for running container on Graviton Runtime.\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n RuntimePlatform = new RuntimePlatform {\n OperatingSystemFamily = OperatingSystemFamily.LINUX,\n CpuArchitecture = CpuArchitecture.ARM64\n },\n Cpu = 1024,\n MemoryLimitMiB = 2048\n});\n\ntaskDefinition.AddContainer(\"webarm64\", new ContainerDefinitionOptions {\n Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"graviton2-on-fargate\" }),\n PortMappings = new [] { new PortMapping { ContainerPort = 80 } },\n Image = ContainerImage.FromRegistry(\"public.ecr.aws/nginx/nginx:latest-arm64v8\")\n});",
1383 "version": "1"
1384 },
1385 "java": {
1386 "source": "// Create a Task Definition for running container on Graviton Runtime.\nFargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .runtimePlatform(RuntimePlatform.builder()\n .operatingSystemFamily(OperatingSystemFamily.LINUX)\n .cpuArchitecture(CpuArchitecture.ARM64)\n .build())\n .cpu(1024)\n .memoryLimitMiB(2048)\n .build();\n\ntaskDefinition.addContainer(\"webarm64\", ContainerDefinitionOptions.builder()\n .logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"graviton2-on-fargate\").build()))\n .portMappings(List.of(PortMapping.builder().containerPort(80).build()))\n .image(ContainerImage.fromRegistry(\"public.ecr.aws/nginx/nginx:latest-arm64v8\"))\n .build());",
1387 "version": "1"
1388 },
1389 "go": {
1390 "source": "// Create a Task Definition for running container on Graviton Runtime.\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\truntimePlatform: &runtimePlatform{\n\t\toperatingSystemFamily: ecs.operatingSystemFamily_LINUX(),\n\t\tcpuArchitecture: ecs.cpuArchitecture_ARM64(),\n\t},\n\tcpu: jsii.Number(1024),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\ntaskDefinition.addContainer(jsii.String(\"webarm64\"), &containerDefinitionOptions{\n\tlogging: ecs.logDriver.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"graviton2-on-fargate\"),\n\t}),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(80),\n\t\t},\n\t},\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"public.ecr.aws/nginx/nginx:latest-arm64v8\")),\n})",
1391 "version": "1"
1392 },
1393 "$": {
1394 "source": "// Create a Task Definition for running container on Graviton Runtime.\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,\n cpuArchitecture: ecs.CpuArchitecture.ARM64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('webarm64', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'graviton2-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('public.ecr.aws/nginx/nginx:latest-arm64v8'),\n});",
1395 "version": "0"
1396 }
1397 },
1398 "location": {
1399 "api": {
1400 "api": "moduleReadme",
1401 "moduleFqn": "@aws-cdk/aws-ecs"
1402 },
1403 "field": {
1404 "field": "markdown",
1405 "line": 486
1406 }
1407 },
1408 "didCompile": true,
1409 "fqnsReferenced": [
1410 "@aws-cdk/aws-ecs.AwsLogDriverProps",
1411 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
1412 "@aws-cdk/aws-ecs.ContainerImage",
1413 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
1414 "@aws-cdk/aws-ecs.CpuArchitecture",
1415 "@aws-cdk/aws-ecs.CpuArchitecture#ARM64",
1416 "@aws-cdk/aws-ecs.FargateTaskDefinition",
1417 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
1418 "@aws-cdk/aws-ecs.LogDriver",
1419 "@aws-cdk/aws-ecs.LogDriver#awsLogs",
1420 "@aws-cdk/aws-ecs.OperatingSystemFamily",
1421 "@aws-cdk/aws-ecs.OperatingSystemFamily#LINUX",
1422 "@aws-cdk/aws-ecs.RuntimePlatform",
1423 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
1424 "constructs.Construct"
1425 ],
1426 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for running container on Graviton Runtime.\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.LINUX,\n cpuArchitecture: ecs.CpuArchitecture.ARM64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('webarm64', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'graviton2-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('public.ecr.aws/nginx/nginx:latest-arm64v8'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1427 "syntaxKindCounter": {
1428 "8": 3,
1429 "10": 4,
1430 "75": 27,
1431 "104": 1,
1432 "192": 1,
1433 "193": 5,
1434 "194": 10,
1435 "196": 3,
1436 "197": 1,
1437 "225": 1,
1438 "226": 1,
1439 "242": 1,
1440 "243": 1,
1441 "281": 10
1442 },
1443 "fqnsFingerprint": "2d8ecadb1ed58290c939505dd0e43c189733253c13cd2b4fd285ba62cca7d73a"
1444 },
1445 "e8b651d062f2d85d8caf0abe34ab39177209d9438ed2b260a58767b9ca2f66e9": {
1446 "translations": {
1447 "python": {
1448 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\n\nservice = ecs.FargateService(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n desired_count=5\n)",
1449 "version": "2"
1450 },
1451 "csharp": {
1452 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n DesiredCount = 5\n});",
1453 "version": "1"
1454 },
1455 "java": {
1456 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nFargateService service = FargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .desiredCount(5)\n .build();",
1457 "version": "1"
1458 },
1459 "go": {
1460 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tdesiredCount: jsii.Number(5),\n})",
1461 "version": "1"
1462 },
1463 "$": {
1464 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n\nconst service = new ecs.FargateService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});",
1465 "version": "0"
1466 }
1467 },
1468 "location": {
1469 "api": {
1470 "api": "moduleReadme",
1471 "moduleFqn": "@aws-cdk/aws-ecs"
1472 },
1473 "field": {
1474 "field": "markdown",
1475 "line": 511
1476 }
1477 },
1478 "didCompile": true,
1479 "fqnsReferenced": [
1480 "@aws-cdk/aws-ecs.FargateService",
1481 "@aws-cdk/aws-ecs.FargateServiceProps",
1482 "@aws-cdk/aws-ecs.ICluster",
1483 "@aws-cdk/aws-ecs.TaskDefinition",
1484 "constructs.Construct"
1485 ],
1486 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.FargateService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1487 "syntaxKindCounter": {
1488 "8": 1,
1489 "10": 1,
1490 "75": 12,
1491 "104": 1,
1492 "130": 2,
1493 "153": 2,
1494 "169": 2,
1495 "193": 1,
1496 "194": 1,
1497 "197": 1,
1498 "225": 3,
1499 "242": 3,
1500 "243": 3,
1501 "281": 1,
1502 "282": 2,
1503 "290": 1
1504 },
1505 "fqnsFingerprint": "08a447e4e20679861bb4e5dde9a61f987da9f05bfe59402dc7de7584c6837e23"
1506 },
1507 "fd8d2c7ab4906bbd6195ab3071f8e947210298cfea914c93a4a6013a6b1fb127": {
1508 "translations": {
1509 "python": {
1510 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\n\nservice = ecs.ExternalService(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n desired_count=5\n)",
1511 "version": "2"
1512 },
1513 "csharp": {
1514 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nExternalService service = new ExternalService(this, \"Service\", new ExternalServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n DesiredCount = 5\n});",
1515 "version": "1"
1516 },
1517 "java": {
1518 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nExternalService service = ExternalService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .desiredCount(5)\n .build();",
1519 "version": "1"
1520 },
1521 "go": {
1522 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\n\nservice := ecs.NewExternalService(this, jsii.String(\"Service\"), &externalServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tdesiredCount: jsii.Number(5),\n})",
1523 "version": "1"
1524 },
1525 "$": {
1526 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n\nconst service = new ecs.ExternalService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});",
1527 "version": "0"
1528 }
1529 },
1530 "location": {
1531 "api": {
1532 "api": "moduleReadme",
1533 "moduleFqn": "@aws-cdk/aws-ecs"
1534 },
1535 "field": {
1536 "field": "markdown",
1537 "line": 524
1538 }
1539 },
1540 "didCompile": true,
1541 "fqnsReferenced": [
1542 "@aws-cdk/aws-ecs.ExternalService",
1543 "@aws-cdk/aws-ecs.ExternalServiceProps",
1544 "@aws-cdk/aws-ecs.ICluster",
1545 "@aws-cdk/aws-ecs.TaskDefinition",
1546 "constructs.Construct"
1547 ],
1548 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.ExternalService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1549 "syntaxKindCounter": {
1550 "8": 1,
1551 "10": 1,
1552 "75": 12,
1553 "104": 1,
1554 "130": 2,
1555 "153": 2,
1556 "169": 2,
1557 "193": 1,
1558 "194": 1,
1559 "197": 1,
1560 "225": 3,
1561 "242": 3,
1562 "243": 3,
1563 "281": 1,
1564 "282": 2,
1565 "290": 1
1566 },
1567 "fqnsFingerprint": "6e233493c091cfbc258120c248a12283c329cfb3a9cb793d4040d05af94c33ef"
1568 },
1569 "541db7bbd666c4b4d4f3f2b9fa054683272d4b45a2aad28102096ecb721441b7": {
1570 "translations": {
1571 "python": {
1572 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\nservice = ecs.FargateService(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n circuit_breaker=ecs.DeploymentCircuitBreaker(rollback=True)\n)",
1573 "version": "2"
1574 },
1575 "csharp": {
1576 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CircuitBreaker = new DeploymentCircuitBreaker { Rollback = true }\n});",
1577 "version": "1"
1578 },
1579 "java": {
1580 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\nFargateService service = FargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .circuitBreaker(DeploymentCircuitBreaker.builder().rollback(true).build())\n .build();",
1581 "version": "1"
1582 },
1583 "go": {
1584 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcircuitBreaker: &deploymentCircuitBreaker{\n\t\trollback: jsii.Boolean(true),\n\t},\n})",
1585 "version": "1"
1586 },
1587 "$": {
1588 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\nconst service = new ecs.FargateService(this, 'Service', {\n cluster,\n taskDefinition,\n circuitBreaker: { rollback: true },\n});",
1589 "version": "0"
1590 }
1591 },
1592 "location": {
1593 "api": {
1594 "api": "moduleReadme",
1595 "moduleFqn": "@aws-cdk/aws-ecs"
1596 },
1597 "field": {
1598 "field": "markdown",
1599 "line": 545
1600 }
1601 },
1602 "didCompile": true,
1603 "fqnsReferenced": [
1604 "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
1605 "@aws-cdk/aws-ecs.FargateService",
1606 "@aws-cdk/aws-ecs.FargateServiceProps",
1607 "@aws-cdk/aws-ecs.ICluster",
1608 "@aws-cdk/aws-ecs.TaskDefinition",
1609 "constructs.Construct"
1610 ],
1611 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', {\n cluster,\n taskDefinition,\n circuitBreaker: { rollback: true },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1612 "syntaxKindCounter": {
1613 "10": 1,
1614 "75": 13,
1615 "104": 1,
1616 "106": 1,
1617 "130": 2,
1618 "153": 2,
1619 "169": 2,
1620 "193": 2,
1621 "194": 1,
1622 "197": 1,
1623 "225": 3,
1624 "242": 3,
1625 "243": 3,
1626 "281": 2,
1627 "282": 2,
1628 "290": 1
1629 },
1630 "fqnsFingerprint": "d444c7d840f88eee81c523b9e752f104ec2a6662e0de7830c945aa3a5d8f1686"
1631 },
1632 "d78c73caed034995306b36fcca116cacda4655b2c6957b95ff608f0b2c566d9e": {
1633 "translations": {
1634 "python": {
1635 "source": "# vpc: ec2.Vpc\n# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\ntarget_group1 = listener.add_targets(\"ECS1\",\n port=80,\n targets=[service]\n)\ntarget_group2 = listener.add_targets(\"ECS2\",\n port=80,\n targets=[service.load_balancer_target(\n container_name=\"MyContainer\",\n container_port=8080\n )]\n)",
1636 "version": "2"
1637 },
1638 "csharp": {
1639 "source": "Vpc vpc;\nCluster cluster;\nTaskDefinition taskDefinition;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nApplicationTargetGroup targetGroup1 = listener.AddTargets(\"ECS1\", new AddApplicationTargetsProps {\n Port = 80,\n Targets = new [] { service }\n});\nApplicationTargetGroup targetGroup2 = listener.AddTargets(\"ECS2\", new AddApplicationTargetsProps {\n Port = 80,\n Targets = new [] { service.LoadBalancerTarget(new LoadBalancerTargetOptions {\n ContainerName = \"MyContainer\",\n ContainerPort = 8080\n }) }\n});",
1640 "version": "1"
1641 },
1642 "java": {
1643 "source": "Vpc vpc;\nCluster cluster;\nTaskDefinition taskDefinition;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nApplicationTargetGroup targetGroup1 = listener.addTargets(\"ECS1\", AddApplicationTargetsProps.builder()\n .port(80)\n .targets(List.of(service))\n .build());\nApplicationTargetGroup targetGroup2 = listener.addTargets(\"ECS2\", AddApplicationTargetsProps.builder()\n .port(80)\n .targets(List.of(service.loadBalancerTarget(LoadBalancerTargetOptions.builder()\n .containerName(\"MyContainer\")\n .containerPort(8080)\n .build())))\n .build());",
1644 "version": "1"
1645 },
1646 "go": {
1647 "source": "var vpc vpc\nvar cluster cluster\nvar taskDefinition taskDefinition\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\ntargetGroup1 := listener.addTargets(jsii.String(\"ECS1\"), &addApplicationTargetsProps{\n\tport: jsii.Number(80),\n\ttargets: []iApplicationLoadBalancerTarget{\n\t\tservice,\n\t},\n})\ntargetGroup2 := listener.addTargets(jsii.String(\"ECS2\"), &addApplicationTargetsProps{\n\tport: jsii.Number(80),\n\ttargets: []*iApplicationLoadBalancerTarget{\n\t\tservice.loadBalancerTarget(&loadBalancerTargetOptions{\n\t\t\tcontainerName: jsii.String(\"MyContainer\"),\n\t\t\tcontainerPort: jsii.Number(8080),\n\t\t}),\n\t},\n})",
1648 "version": "1"
1649 },
1650 "$": {
1651 "source": "declare const vpc: ec2.Vpc;\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nconst targetGroup1 = listener.addTargets('ECS1', {\n port: 80,\n targets: [service],\n});\nconst targetGroup2 = listener.addTargets('ECS2', {\n port: 80,\n targets: [service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 8080\n })],\n});",
1652 "version": "0"
1653 }
1654 },
1655 "location": {
1656 "api": {
1657 "api": "moduleReadme",
1658 "moduleFqn": "@aws-cdk/aws-ecs"
1659 },
1660 "field": {
1661 "field": "markdown",
1662 "line": 561
1663 }
1664 },
1665 "didCompile": true,
1666 "fqnsReferenced": [
1667 "@aws-cdk/aws-ec2.IVpc",
1668 "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
1669 "@aws-cdk/aws-ecs.FargateService",
1670 "@aws-cdk/aws-ecs.FargateServiceProps",
1671 "@aws-cdk/aws-ecs.ICluster",
1672 "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
1673 "@aws-cdk/aws-ecs.TaskDefinition",
1674 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
1675 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
1676 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener#addTargets",
1677 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
1678 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
1679 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
1680 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup",
1681 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
1682 "constructs.Construct"
1683 ],
1684 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nconst targetGroup1 = listener.addTargets('ECS1', {\n port: 80,\n targets: [service],\n});\nconst targetGroup2 = listener.addTargets('ECS2', {\n port: 80,\n targets: [service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 8080\n })],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1685 "syntaxKindCounter": {
1686 "8": 4,
1687 "10": 6,
1688 "75": 38,
1689 "104": 2,
1690 "106": 1,
1691 "130": 3,
1692 "153": 3,
1693 "169": 3,
1694 "192": 2,
1695 "193": 6,
1696 "194": 6,
1697 "196": 4,
1698 "197": 2,
1699 "225": 8,
1700 "242": 8,
1701 "243": 8,
1702 "281": 8,
1703 "282": 3,
1704 "290": 1
1705 },
1706 "fqnsFingerprint": "1aa8aefd701ef2a3711fbaf3fc258666d08e6dcbb92b7aadf8466263639ca141"
1707 },
1708 "f0f11321cf1c3065a3c46e8bb539e9860c2297544500dd3febe805f4e907d6b1": {
1709 "translations": {
1710 "python": {
1711 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
1712 "version": "2"
1713 },
1714 "csharp": {
1715 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
1716 "version": "1"
1717 },
1718 "java": {
1719 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
1720 "version": "1"
1721 },
1722 "go": {
1723 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
1724 "version": "1"
1725 },
1726 "$": {
1727 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);",
1728 "version": "0"
1729 }
1730 },
1731 "location": {
1732 "api": {
1733 "api": "moduleReadme",
1734 "moduleFqn": "@aws-cdk/aws-ecs"
1735 },
1736 "field": {
1737 "field": "markdown",
1738 "line": 588
1739 }
1740 },
1741 "didCompile": true,
1742 "fqnsReferenced": [
1743 "@aws-cdk/aws-ec2.IVpc",
1744 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
1745 "@aws-cdk/aws-ecs.EcsTarget",
1746 "@aws-cdk/aws-ecs.FargateService",
1747 "@aws-cdk/aws-ecs.FargateServiceProps",
1748 "@aws-cdk/aws-ecs.ICluster",
1749 "@aws-cdk/aws-ecs.ListenerConfig",
1750 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
1751 "@aws-cdk/aws-ecs.TaskDefinition",
1752 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
1753 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
1754 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
1755 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
1756 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
1757 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
1758 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
1759 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
1760 "constructs.Construct"
1761 ],
1762 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1763 "syntaxKindCounter": {
1764 "8": 2,
1765 "10": 5,
1766 "75": 37,
1767 "104": 2,
1768 "106": 1,
1769 "130": 3,
1770 "153": 3,
1771 "169": 3,
1772 "193": 5,
1773 "194": 8,
1774 "196": 3,
1775 "197": 2,
1776 "225": 6,
1777 "226": 1,
1778 "242": 6,
1779 "243": 6,
1780 "281": 7,
1781 "282": 3,
1782 "290": 1
1783 },
1784 "fqnsFingerprint": "08744ff53889df1f5a881e6043b941376aaa4fd1f99b9043f7e52335832ac36a"
1785 },
1786 "0c758c7d76859776b20f377801abe2a91c9957c5589ccf702a5722ae431b0c83": {
1787 "translations": {
1788 "python": {
1789 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.Ec2Service(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elb.LoadBalancer(self, \"LB\", vpc=vpc)\nlb.add_listener(external_port=80)\nlb.add_target(service)",
1790 "version": "2"
1791 },
1792 "csharp": {
1793 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nLoadBalancer lb = new LoadBalancer(this, \"LB\", new LoadBalancerProps { Vpc = vpc });\nlb.AddListener(new LoadBalancerListener { ExternalPort = 80 });\nlb.AddTarget(service);",
1794 "version": "1"
1795 },
1796 "java": {
1797 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nLoadBalancer lb = LoadBalancer.Builder.create(this, \"LB\").vpc(vpc).build();\nlb.addListener(LoadBalancerListener.builder().externalPort(80).build());\nlb.addTarget(service);",
1798 "version": "1"
1799 },
1800 "go": {
1801 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elb.NewLoadBalancer(this, jsii.String(\"LB\"), &loadBalancerProps{\n\tvpc: vpc,\n})\nlb.addListener(&loadBalancerListener{\n\texternalPort: jsii.Number(80),\n})\nlb.addTarget(service)",
1802 "version": "1"
1803 },
1804 "$": {
1805 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service);",
1806 "version": "0"
1807 }
1808 },
1809 "location": {
1810 "api": {
1811 "api": "moduleReadme",
1812 "moduleFqn": "@aws-cdk/aws-ecs"
1813 },
1814 "field": {
1815 "field": "markdown",
1816 "line": 627
1817 }
1818 },
1819 "didCompile": true,
1820 "fqnsReferenced": [
1821 "@aws-cdk/aws-ec2.IVpc",
1822 "@aws-cdk/aws-ecs.Ec2Service",
1823 "@aws-cdk/aws-ecs.Ec2ServiceProps",
1824 "@aws-cdk/aws-ecs.ICluster",
1825 "@aws-cdk/aws-ecs.TaskDefinition",
1826 "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
1827 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
1828 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
1829 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
1830 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
1831 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
1832 "constructs.Construct"
1833 ],
1834 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1835 "syntaxKindCounter": {
1836 "8": 1,
1837 "10": 2,
1838 "75": 24,
1839 "104": 2,
1840 "130": 3,
1841 "153": 3,
1842 "169": 3,
1843 "193": 3,
1844 "194": 4,
1845 "196": 2,
1846 "197": 2,
1847 "225": 5,
1848 "226": 2,
1849 "242": 5,
1850 "243": 5,
1851 "281": 1,
1852 "282": 3,
1853 "290": 1
1854 },
1855 "fqnsFingerprint": "00d49d603fe7d401f22dee15292516f41d4b64e8594e33de6f5f2549623f2d23"
1856 },
1857 "f458dc15a67446790f4b0f012eaa66383c9c366e71e5647e0126cde9a8fdc6eb": {
1858 "translations": {
1859 "python": {
1860 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.Ec2Service(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elb.LoadBalancer(self, \"LB\", vpc=vpc)\nlb.add_listener(external_port=80)\nlb.add_target(service.load_balancer_target(\n container_name=\"MyContainer\",\n container_port=80\n))",
1861 "version": "2"
1862 },
1863 "csharp": {
1864 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nLoadBalancer lb = new LoadBalancer(this, \"LB\", new LoadBalancerProps { Vpc = vpc });\nlb.AddListener(new LoadBalancerListener { ExternalPort = 80 });\nlb.AddTarget(service.LoadBalancerTarget(new LoadBalancerTargetOptions {\n ContainerName = \"MyContainer\",\n ContainerPort = 80\n}));",
1865 "version": "1"
1866 },
1867 "java": {
1868 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nLoadBalancer lb = LoadBalancer.Builder.create(this, \"LB\").vpc(vpc).build();\nlb.addListener(LoadBalancerListener.builder().externalPort(80).build());\nlb.addTarget(service.loadBalancerTarget(LoadBalancerTargetOptions.builder()\n .containerName(\"MyContainer\")\n .containerPort(80)\n .build()));",
1869 "version": "1"
1870 },
1871 "go": {
1872 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elb.NewLoadBalancer(this, jsii.String(\"LB\"), &loadBalancerProps{\n\tvpc: vpc,\n})\nlb.addListener(&loadBalancerListener{\n\texternalPort: jsii.Number(80),\n})\nlb.addTarget(service.loadBalancerTarget(&loadBalancerTargetOptions{\n\tcontainerName: jsii.String(\"MyContainer\"),\n\tcontainerPort: jsii.Number(80),\n}))",
1873 "version": "1"
1874 },
1875 "$": {
1876 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));",
1877 "version": "0"
1878 }
1879 },
1880 "location": {
1881 "api": {
1882 "api": "moduleReadme",
1883 "moduleFqn": "@aws-cdk/aws-ecs"
1884 },
1885 "field": {
1886 "field": "markdown",
1887 "line": 640
1888 }
1889 },
1890 "didCompile": true,
1891 "fqnsReferenced": [
1892 "@aws-cdk/aws-ec2.IVpc",
1893 "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
1894 "@aws-cdk/aws-ecs.Ec2Service",
1895 "@aws-cdk/aws-ecs.Ec2ServiceProps",
1896 "@aws-cdk/aws-ecs.ICluster",
1897 "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
1898 "@aws-cdk/aws-ecs.TaskDefinition",
1899 "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
1900 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
1901 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
1902 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
1903 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
1904 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
1905 "constructs.Construct"
1906 ],
1907 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1908 "syntaxKindCounter": {
1909 "8": 2,
1910 "10": 3,
1911 "75": 27,
1912 "104": 2,
1913 "130": 3,
1914 "153": 3,
1915 "169": 3,
1916 "193": 4,
1917 "194": 5,
1918 "196": 3,
1919 "197": 2,
1920 "225": 5,
1921 "226": 2,
1922 "242": 5,
1923 "243": 5,
1924 "281": 3,
1925 "282": 3,
1926 "290": 1
1927 },
1928 "fqnsFingerprint": "6903bbec8210e946e5b1d9c427f7349b8410f2b3d7c838f4172111966ed3f8bb"
1929 },
1930 "451d7fbe0f7e0379b802cf7dbe342a5864581e6366559ab18f1d907e83c35e0a": {
1931 "translations": {
1932 "python": {
1933 "source": "# target: elbv2.ApplicationTargetGroup\n# service: ecs.BaseService\n\nscaling = service.auto_scale_task_count(max_capacity=10)\nscaling.scale_on_cpu_utilization(\"CpuScaling\",\n target_utilization_percent=50\n)\n\nscaling.scale_on_request_count(\"RequestScaling\",\n requests_per_target=10000,\n target_group=target\n)",
1934 "version": "2"
1935 },
1936 "csharp": {
1937 "source": "ApplicationTargetGroup target;\nBaseService service;\n\nScalableTaskCount scaling = service.AutoScaleTaskCount(new EnableScalingProps { MaxCapacity = 10 });\nscaling.ScaleOnCpuUtilization(\"CpuScaling\", new CpuUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});\n\nscaling.ScaleOnRequestCount(\"RequestScaling\", new RequestCountScalingProps {\n RequestsPerTarget = 10000,\n TargetGroup = target\n});",
1938 "version": "1"
1939 },
1940 "java": {
1941 "source": "ApplicationTargetGroup target;\nBaseService service;\n\nScalableTaskCount scaling = service.autoScaleTaskCount(EnableScalingProps.builder().maxCapacity(10).build());\nscaling.scaleOnCpuUtilization(\"CpuScaling\", CpuUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());\n\nscaling.scaleOnRequestCount(\"RequestScaling\", RequestCountScalingProps.builder()\n .requestsPerTarget(10000)\n .targetGroup(target)\n .build());",
1942 "version": "1"
1943 },
1944 "go": {
1945 "source": "var target applicationTargetGroup\nvar service baseService\n\nscaling := service.autoScaleTaskCount(&enableScalingProps{\n\tmaxCapacity: jsii.Number(10),\n})\nscaling.scaleOnCpuUtilization(jsii.String(\"CpuScaling\"), &cpuUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})\n\nscaling.scaleOnRequestCount(jsii.String(\"RequestScaling\"), &requestCountScalingProps{\n\trequestsPerTarget: jsii.Number(10000),\n\ttargetGroup: target,\n})",
1946 "version": "1"
1947 },
1948 "$": {
1949 "source": "declare const target: elbv2.ApplicationTargetGroup;\ndeclare const service: ecs.BaseService;\nconst scaling = service.autoScaleTaskCount({ maxCapacity: 10 });\nscaling.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscaling.scaleOnRequestCount('RequestScaling', {\n requestsPerTarget: 10000,\n targetGroup: target,\n});",
1950 "version": "0"
1951 }
1952 },
1953 "location": {
1954 "api": {
1955 "api": "moduleReadme",
1956 "moduleFqn": "@aws-cdk/aws-ecs"
1957 },
1958 "field": {
1959 "field": "markdown",
1960 "line": 664
1961 }
1962 },
1963 "didCompile": true,
1964 "fqnsReferenced": [
1965 "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
1966 "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
1967 "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
1968 "@aws-cdk/aws-ecs.RequestCountScalingProps",
1969 "@aws-cdk/aws-ecs.ScalableTaskCount",
1970 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
1971 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnRequestCount",
1972 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup"
1973 ],
1974 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const target: elbv2.ApplicationTargetGroup;\ndeclare const service: ecs.BaseService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst scaling = service.autoScaleTaskCount({ maxCapacity: 10 });\nscaling.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscaling.scaleOnRequestCount('RequestScaling', {\n requestsPerTarget: 10000,\n targetGroup: target,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1975 "syntaxKindCounter": {
1976 "8": 3,
1977 "10": 2,
1978 "75": 18,
1979 "130": 2,
1980 "153": 2,
1981 "169": 2,
1982 "193": 3,
1983 "194": 3,
1984 "196": 3,
1985 "225": 3,
1986 "226": 2,
1987 "242": 3,
1988 "243": 3,
1989 "281": 4,
1990 "290": 1
1991 },
1992 "fqnsFingerprint": "f8cccbe970f5760a364762f8c8835c35ec0f1d170fe848eb3db54b0d1653a5d2"
1993 },
1994 "82abfdc8afc0dbbfa6566b8a68a0b5fc4ec7a048c3228a738b62b3a9fc947489": {
1995 "translations": {
1996 "python": {
1997 "source": "# cluster: ecs.Cluster\n\n# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_asset(path.resolve(__dirname, \"..\", \"eventhandler-image\")),\n memory_limit_mi_b=256,\n logging=ecs.AwsLogDriver(stream_prefix=\"EventDemo\", mode=ecs.AwsLogDriverMode.NON_BLOCKING)\n)\n\n# An Rule that describes the event trigger (in this case a scheduled run)\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.expression(\"rate(1 min)\")\n)\n\n# Pass an environment variable to the container 'TheContainer' in the task\nrule.add_target(targets.EcsTask(\n cluster=cluster,\n task_definition=task_definition,\n task_count=1,\n container_overrides=[targets.ContainerOverride(\n container_name=\"TheContainer\",\n environment=[targets.TaskEnvironmentVariable(\n name=\"I_WAS_TRIGGERED\",\n value=\"From CloudWatch Events\"\n )]\n )]\n))",
1998 "version": "2"
1999 },
2000 "csharp": {
2001 "source": "Cluster cluster;\n\n// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromAsset(Resolve(__dirname, \"..\", \"eventhandler-image\")),\n MemoryLimitMiB = 256,\n Logging = new AwsLogDriver(new AwsLogDriverProps { StreamPrefix = \"EventDemo\", Mode = AwsLogDriverMode.NON_BLOCKING })\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Expression(\"rate(1 min)\")\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.AddTarget(new EcsTask(new EcsTaskProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n TaskCount = 1,\n ContainerOverrides = new [] { new ContainerOverride {\n ContainerName = \"TheContainer\",\n Environment = new [] { new TaskEnvironmentVariable {\n Name = \"I_WAS_TRIGGERED\",\n Value = \"From CloudWatch Events\"\n } }\n } }\n}));",
2002 "version": "1"
2003 },
2004 "java": {
2005 "source": "Cluster cluster;\n\n// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromAsset(resolve(__dirname, \"..\", \"eventhandler-image\")))\n .memoryLimitMiB(256)\n .logging(AwsLogDriver.Builder.create().streamPrefix(\"EventDemo\").mode(AwsLogDriverMode.NON_BLOCKING).build())\n .build());\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.expression(\"rate(1 min)\"))\n .build();\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(EcsTask.Builder.create()\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .taskCount(1)\n .containerOverrides(List.of(ContainerOverride.builder()\n .containerName(\"TheContainer\")\n .environment(List.of(TaskEnvironmentVariable.builder()\n .name(\"I_WAS_TRIGGERED\")\n .value(\"From CloudWatch Events\")\n .build()))\n .build()))\n .build());",
2006 "version": "1"
2007 },
2008 "go": {
2009 "source": "var cluster cluster\n\n// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromAsset(path.resolve(__dirname, jsii.String(\"..\"), jsii.String(\"eventhandler-image\"))),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.NewAwsLogDriver(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"EventDemo\"),\n\t\tmode: ecs.awsLogDriverMode_NON_BLOCKING,\n\t}),\n})\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.expression(jsii.String(\"rate(1 min)\")),\n})\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(targets.NewEcsTask(&ecsTaskProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\ttaskCount: jsii.Number(1),\n\tcontainerOverrides: []containerOverride{\n\t\t&containerOverride{\n\t\t\tcontainerName: jsii.String(\"TheContainer\"),\n\t\t\tenvironment: []taskEnvironmentVariable{\n\t\t\t\t&taskEnvironmentVariable{\n\t\t\t\t\tname: jsii.String(\"I_WAS_TRIGGERED\"),\n\t\t\t\t\tvalue: jsii.String(\"From CloudWatch Events\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n}))",
2010 "version": "1"
2011 },
2012 "$": {
2013 "source": "declare const cluster: ecs.Cluster;\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', 'eventhandler-image')),\n memoryLimitMiB: 256,\n logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo', mode: ecs.AwsLogDriverMode.NON_BLOCKING }),\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.expression('rate(1 min)'),\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(new targets.EcsTask({\n cluster,\n taskDefinition,\n taskCount: 1,\n containerOverrides: [{\n containerName: 'TheContainer',\n environment: [{\n name: 'I_WAS_TRIGGERED',\n value: 'From CloudWatch Events'\n }],\n }],\n}));",
2014 "version": "0"
2015 }
2016 },
2017 "location": {
2018 "api": {
2019 "api": "moduleReadme",
2020 "moduleFqn": "@aws-cdk/aws-ecs"
2021 },
2022 "field": {
2023 "field": "markdown",
2024 "line": 686
2025 }
2026 },
2027 "didCompile": true,
2028 "fqnsReferenced": [
2029 "@aws-cdk/aws-ecs.AwsLogDriver",
2030 "@aws-cdk/aws-ecs.AwsLogDriverMode",
2031 "@aws-cdk/aws-ecs.AwsLogDriverMode#NON_BLOCKING",
2032 "@aws-cdk/aws-ecs.AwsLogDriverProps",
2033 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2034 "@aws-cdk/aws-ecs.ContainerImage",
2035 "@aws-cdk/aws-ecs.ContainerImage#fromAsset",
2036 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2037 "@aws-cdk/aws-ecs.ICluster",
2038 "@aws-cdk/aws-ecs.ITaskDefinition",
2039 "@aws-cdk/aws-ecs.LogDriver",
2040 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2041 "@aws-cdk/aws-events-targets.EcsTask",
2042 "@aws-cdk/aws-events-targets.EcsTaskProps",
2043 "@aws-cdk/aws-events.IRuleTarget",
2044 "@aws-cdk/aws-events.Rule",
2045 "@aws-cdk/aws-events.Rule#addTarget",
2046 "@aws-cdk/aws-events.RuleProps",
2047 "@aws-cdk/aws-events.Schedule",
2048 "@aws-cdk/aws-events.Schedule#expression",
2049 "constructs.Construct"
2050 ],
2051 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', 'eventhandler-image')),\n memoryLimitMiB: 256,\n logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo', mode: ecs.AwsLogDriverMode.NON_BLOCKING }),\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.expression('rate(1 min)'),\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(new targets.EcsTask({\n cluster,\n taskDefinition,\n taskCount: 1,\n containerOverrides: [{\n containerName: 'TheContainer',\n environment: [{\n name: 'I_WAS_TRIGGERED',\n value: 'From CloudWatch Events'\n }],\n }],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2052 "syntaxKindCounter": {
2053 "8": 2,
2054 "10": 10,
2055 "75": 43,
2056 "104": 2,
2057 "130": 1,
2058 "153": 1,
2059 "169": 1,
2060 "192": 2,
2061 "193": 6,
2062 "194": 13,
2063 "196": 5,
2064 "197": 4,
2065 "225": 3,
2066 "226": 2,
2067 "242": 3,
2068 "243": 3,
2069 "281": 12,
2070 "282": 2,
2071 "290": 1
2072 },
2073 "fqnsFingerprint": "5cdfa7e785e97b528f1a2d2d561f42a6707a9c04fb62dd2978424feee9cdf31f"
2074 },
2075 "045259ccf1467b2d664ca9ba7611240d47d74be6ef8d955c3f2e34a5d9093f12": {
2076 "translations": {
2077 "python": {
2078 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.aws_logs(stream_prefix=\"EventDemo\")\n)",
2079 "version": "2"
2080 },
2081 "csharp": {
2082 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"EventDemo\" })\n});",
2083 "version": "1"
2084 },
2085 "java": {
2086 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"EventDemo\").build()))\n .build());",
2087 "version": "1"
2088 },
2089 "go": {
2090 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"EventDemo\"),\n\t}),\n})",
2091 "version": "1"
2092 },
2093 "$": {
2094 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.awsLogs({ streamPrefix: 'EventDemo' }),\n});",
2095 "version": "0"
2096 }
2097 },
2098 "location": {
2099 "api": {
2100 "api": "moduleReadme",
2101 "moduleFqn": "@aws-cdk/aws-ecs"
2102 },
2103 "field": {
2104 "field": "markdown",
2105 "line": 732
2106 }
2107 },
2108 "didCompile": true,
2109 "fqnsReferenced": [
2110 "@aws-cdk/aws-ecs.AwsLogDriverProps",
2111 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2112 "@aws-cdk/aws-ecs.ContainerImage",
2113 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2114 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2115 "@aws-cdk/aws-ecs.LogDriver",
2116 "@aws-cdk/aws-ecs.LogDrivers",
2117 "@aws-cdk/aws-ecs.LogDrivers#awsLogs",
2118 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2119 "constructs.Construct"
2120 ],
2121 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.awsLogs({ streamPrefix: 'EventDemo' }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2122 "syntaxKindCounter": {
2123 "8": 1,
2124 "10": 4,
2125 "75": 15,
2126 "104": 1,
2127 "193": 2,
2128 "194": 6,
2129 "196": 3,
2130 "197": 1,
2131 "225": 1,
2132 "226": 1,
2133 "242": 1,
2134 "243": 1,
2135 "281": 4
2136 },
2137 "fqnsFingerprint": "62e0d6eee5c2f3daff8a39dff466db74d15a74c07544c8d3fbbe68d541f85ce0"
2138 },
2139 "83dad95f7c72227931c5f80d167dec2ec72d6abea9f060a003f8fad0a35a70e6": {
2140 "translations": {
2141 "python": {
2142 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.fluentd()\n)",
2143 "version": "2"
2144 },
2145 "csharp": {
2146 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Fluentd()\n});",
2147 "version": "1"
2148 },
2149 "java": {
2150 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.fluentd())\n .build());",
2151 "version": "1"
2152 },
2153 "go": {
2154 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.fluentd(),\n})",
2155 "version": "1"
2156 },
2157 "$": {
2158 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.fluentd(),\n});",
2159 "version": "0"
2160 }
2161 },
2162 "location": {
2163 "api": {
2164 "api": "moduleReadme",
2165 "moduleFqn": "@aws-cdk/aws-ecs"
2166 },
2167 "field": {
2168 "field": "markdown",
2169 "line": 744
2170 }
2171 },
2172 "didCompile": true,
2173 "fqnsReferenced": [
2174 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2175 "@aws-cdk/aws-ecs.ContainerImage",
2176 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2177 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2178 "@aws-cdk/aws-ecs.LogDriver",
2179 "@aws-cdk/aws-ecs.LogDrivers",
2180 "@aws-cdk/aws-ecs.LogDrivers#fluentd",
2181 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2182 "constructs.Construct"
2183 ],
2184 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.fluentd(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2185 "syntaxKindCounter": {
2186 "8": 1,
2187 "10": 3,
2188 "75": 14,
2189 "104": 1,
2190 "193": 1,
2191 "194": 6,
2192 "196": 3,
2193 "197": 1,
2194 "225": 1,
2195 "226": 1,
2196 "242": 1,
2197 "243": 1,
2198 "281": 3
2199 },
2200 "fqnsFingerprint": "446d0dbb0b874b87a1821c0f8bcf254673a0d33ea507a8ef3c28ab65a601491a"
2201 },
2202 "bf8d3e105af9ec1b9b5d087bb45d55131fa8f04a39bae371796452ff7d90afde": {
2203 "translations": {
2204 "python": {
2205 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.gelf(address=\"my-gelf-address\")\n)",
2206 "version": "2"
2207 },
2208 "csharp": {
2209 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Gelf(new GelfLogDriverProps { Address = \"my-gelf-address\" })\n});",
2210 "version": "1"
2211 },
2212 "java": {
2213 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.gelf(GelfLogDriverProps.builder().address(\"my-gelf-address\").build()))\n .build());",
2214 "version": "1"
2215 },
2216 "go": {
2217 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.gelf(&gelfLogDriverProps{\n\t\taddress: jsii.String(\"my-gelf-address\"),\n\t}),\n})",
2218 "version": "1"
2219 },
2220 "$": {
2221 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.gelf({ address: 'my-gelf-address' }),\n});",
2222 "version": "0"
2223 }
2224 },
2225 "location": {
2226 "api": {
2227 "api": "moduleReadme",
2228 "moduleFqn": "@aws-cdk/aws-ecs"
2229 },
2230 "field": {
2231 "field": "markdown",
2232 "line": 756
2233 }
2234 },
2235 "didCompile": true,
2236 "fqnsReferenced": [
2237 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2238 "@aws-cdk/aws-ecs.ContainerImage",
2239 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2240 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2241 "@aws-cdk/aws-ecs.GelfLogDriverProps",
2242 "@aws-cdk/aws-ecs.LogDriver",
2243 "@aws-cdk/aws-ecs.LogDrivers",
2244 "@aws-cdk/aws-ecs.LogDrivers#gelf",
2245 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2246 "constructs.Construct"
2247 ],
2248 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.gelf({ address: 'my-gelf-address' }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2249 "syntaxKindCounter": {
2250 "8": 1,
2251 "10": 4,
2252 "75": 15,
2253 "104": 1,
2254 "193": 2,
2255 "194": 6,
2256 "196": 3,
2257 "197": 1,
2258 "225": 1,
2259 "226": 1,
2260 "242": 1,
2261 "243": 1,
2262 "281": 4
2263 },
2264 "fqnsFingerprint": "9fe2cccb3423ff38eb8a5f39fd020caace4d4206eaae2d2476dd0634a600a73b"
2265 },
2266 "38489fa18b1d7f1d505d6e6c1584935f49a0700d9df1d939ae5e2a16eda90401": {
2267 "translations": {
2268 "python": {
2269 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.journald()\n)",
2270 "version": "2"
2271 },
2272 "csharp": {
2273 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Journald()\n});",
2274 "version": "1"
2275 },
2276 "java": {
2277 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.journald())\n .build());",
2278 "version": "1"
2279 },
2280 "go": {
2281 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.journald(),\n})",
2282 "version": "1"
2283 },
2284 "$": {
2285 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.journald(),\n});",
2286 "version": "0"
2287 }
2288 },
2289 "location": {
2290 "api": {
2291 "api": "moduleReadme",
2292 "moduleFqn": "@aws-cdk/aws-ecs"
2293 },
2294 "field": {
2295 "field": "markdown",
2296 "line": 768
2297 }
2298 },
2299 "didCompile": true,
2300 "fqnsReferenced": [
2301 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2302 "@aws-cdk/aws-ecs.ContainerImage",
2303 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2304 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2305 "@aws-cdk/aws-ecs.LogDriver",
2306 "@aws-cdk/aws-ecs.LogDrivers",
2307 "@aws-cdk/aws-ecs.LogDrivers#journald",
2308 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2309 "constructs.Construct"
2310 ],
2311 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.journald(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2312 "syntaxKindCounter": {
2313 "8": 1,
2314 "10": 3,
2315 "75": 14,
2316 "104": 1,
2317 "193": 1,
2318 "194": 6,
2319 "196": 3,
2320 "197": 1,
2321 "225": 1,
2322 "226": 1,
2323 "242": 1,
2324 "243": 1,
2325 "281": 3
2326 },
2327 "fqnsFingerprint": "cd6f4c76e1f5497a86f0f05caf84f9d3ee41bdee51c2c386ac3384b921855806"
2328 },
2329 "92a20a42eb9f3826be754efb0c6c03d2af85014858596d443c54c4c33681f30f": {
2330 "translations": {
2331 "python": {
2332 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.json_file()\n)",
2333 "version": "2"
2334 },
2335 "csharp": {
2336 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.JsonFile()\n});",
2337 "version": "1"
2338 },
2339 "java": {
2340 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.jsonFile())\n .build());",
2341 "version": "1"
2342 },
2343 "go": {
2344 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.jsonFile(),\n})",
2345 "version": "1"
2346 },
2347 "$": {
2348 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.jsonFile(),\n});",
2349 "version": "0"
2350 }
2351 },
2352 "location": {
2353 "api": {
2354 "api": "moduleReadme",
2355 "moduleFqn": "@aws-cdk/aws-ecs"
2356 },
2357 "field": {
2358 "field": "markdown",
2359 "line": 780
2360 }
2361 },
2362 "didCompile": true,
2363 "fqnsReferenced": [
2364 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2365 "@aws-cdk/aws-ecs.ContainerImage",
2366 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2367 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2368 "@aws-cdk/aws-ecs.LogDriver",
2369 "@aws-cdk/aws-ecs.LogDrivers",
2370 "@aws-cdk/aws-ecs.LogDrivers#jsonFile",
2371 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2372 "constructs.Construct"
2373 ],
2374 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.jsonFile(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2375 "syntaxKindCounter": {
2376 "8": 1,
2377 "10": 3,
2378 "75": 14,
2379 "104": 1,
2380 "193": 1,
2381 "194": 6,
2382 "196": 3,
2383 "197": 1,
2384 "225": 1,
2385 "226": 1,
2386 "242": 1,
2387 "243": 1,
2388 "281": 3
2389 },
2390 "fqnsFingerprint": "694c79f03b9b807a981a0874c63e5ed585da87c078c01e80defd9fee973fbe67"
2391 },
2392 "a08d23b119c49300e0fd7ada1ba960da3ada7fe77df7b0707121761c13030176": {
2393 "translations": {
2394 "python": {
2395 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.splunk(\n token=SecretValue.secrets_manager(\"my-splunk-token\"),\n url=\"my-splunk-url\"\n )\n)",
2396 "version": "2"
2397 },
2398 "csharp": {
2399 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Splunk(new SplunkLogDriverProps {\n Token = SecretValue.SecretsManager(\"my-splunk-token\"),\n Url = \"my-splunk-url\"\n })\n});",
2400 "version": "1"
2401 },
2402 "java": {
2403 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.splunk(SplunkLogDriverProps.builder()\n .token(SecretValue.secretsManager(\"my-splunk-token\"))\n .url(\"my-splunk-url\")\n .build()))\n .build());",
2404 "version": "1"
2405 },
2406 "go": {
2407 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.splunk(&splunkLogDriverProps{\n\t\ttoken: *awscdkcore.SecretValue.secretsManager(jsii.String(\"my-splunk-token\")),\n\t\turl: jsii.String(\"my-splunk-url\"),\n\t}),\n})",
2408 "version": "1"
2409 },
2410 "$": {
2411 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});",
2412 "version": "0"
2413 }
2414 },
2415 "location": {
2416 "api": {
2417 "api": "moduleReadme",
2418 "moduleFqn": "@aws-cdk/aws-ecs"
2419 },
2420 "field": {
2421 "field": "markdown",
2422 "line": 792
2423 }
2424 },
2425 "didCompile": true,
2426 "fqnsReferenced": [
2427 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2428 "@aws-cdk/aws-ecs.ContainerImage",
2429 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2430 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2431 "@aws-cdk/aws-ecs.LogDriver",
2432 "@aws-cdk/aws-ecs.LogDrivers",
2433 "@aws-cdk/aws-ecs.LogDrivers#splunk",
2434 "@aws-cdk/aws-ecs.SplunkLogDriverProps",
2435 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2436 "@aws-cdk/core.SecretValue",
2437 "@aws-cdk/core.SecretValue#secretsManager",
2438 "constructs.Construct"
2439 ],
2440 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2441 "syntaxKindCounter": {
2442 "8": 1,
2443 "10": 5,
2444 "75": 18,
2445 "104": 1,
2446 "193": 2,
2447 "194": 7,
2448 "196": 4,
2449 "197": 1,
2450 "225": 1,
2451 "226": 1,
2452 "242": 1,
2453 "243": 1,
2454 "281": 5
2455 },
2456 "fqnsFingerprint": "cd6c265656766ea5017c47b7887118fcc13ab7e9488868f335215354fc75c563"
2457 },
2458 "77a1fc893ea52b5b463f231f86b61b4748c0ffd9c3c2d7391446246f458657a4": {
2459 "translations": {
2460 "python": {
2461 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.syslog()\n)",
2462 "version": "2"
2463 },
2464 "csharp": {
2465 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Syslog()\n});",
2466 "version": "1"
2467 },
2468 "java": {
2469 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.syslog())\n .build());",
2470 "version": "1"
2471 },
2472 "go": {
2473 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.syslog(),\n})",
2474 "version": "1"
2475 },
2476 "$": {
2477 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.syslog(),\n});",
2478 "version": "0"
2479 }
2480 },
2481 "location": {
2482 "api": {
2483 "api": "moduleReadme",
2484 "moduleFqn": "@aws-cdk/aws-ecs"
2485 },
2486 "field": {
2487 "field": "markdown",
2488 "line": 807
2489 }
2490 },
2491 "didCompile": true,
2492 "fqnsReferenced": [
2493 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2494 "@aws-cdk/aws-ecs.ContainerImage",
2495 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2496 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2497 "@aws-cdk/aws-ecs.LogDriver",
2498 "@aws-cdk/aws-ecs.LogDrivers",
2499 "@aws-cdk/aws-ecs.LogDrivers#syslog",
2500 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2501 "constructs.Construct"
2502 ],
2503 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.syslog(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2504 "syntaxKindCounter": {
2505 "8": 1,
2506 "10": 3,
2507 "75": 14,
2508 "104": 1,
2509 "193": 1,
2510 "194": 6,
2511 "196": 3,
2512 "197": 1,
2513 "225": 1,
2514 "226": 1,
2515 "242": 1,
2516 "243": 1,
2517 "281": 3
2518 },
2519 "fqnsFingerprint": "1c3444ba933c896d843afbd463a859a56e25b2f00d21ce07b3d7138041cb9314"
2520 },
2521 "10c4deb9ed309a1514e57b723335b60c6d2eccb1d685925cc7041a540b7546f2": {
2522 "translations": {
2523 "python": {
2524 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.firelens(\n options={\n \"Name\": \"firehose\",\n \"region\": \"us-west-2\",\n \"delivery_stream\": \"my-stream\"\n }\n )\n)",
2525 "version": "2"
2526 },
2527 "csharp": {
2528 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Firelens(new FireLensLogDriverProps {\n Options = new Dictionary<string, string> {\n { \"Name\", \"firehose\" },\n { \"region\", \"us-west-2\" },\n { \"delivery_stream\", \"my-stream\" }\n }\n })\n});",
2529 "version": "1"
2530 },
2531 "java": {
2532 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.firelens(FireLensLogDriverProps.builder()\n .options(Map.of(\n \"Name\", \"firehose\",\n \"region\", \"us-west-2\",\n \"delivery_stream\", \"my-stream\"))\n .build()))\n .build());",
2533 "version": "1"
2534 },
2535 "go": {
2536 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.firelens(&fireLensLogDriverProps{\n\t\toptions: map[string]*string{\n\t\t\t\"Name\": jsii.String(\"firehose\"),\n\t\t\t\"region\": jsii.String(\"us-west-2\"),\n\t\t\t\"delivery_stream\": jsii.String(\"my-stream\"),\n\t\t},\n\t}),\n})",
2537 "version": "1"
2538 },
2539 "$": {
2540 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.firelens({\n options: {\n Name: 'firehose',\n region: 'us-west-2',\n delivery_stream: 'my-stream',\n },\n }),\n});",
2541 "version": "0"
2542 }
2543 },
2544 "location": {
2545 "api": {
2546 "api": "moduleReadme",
2547 "moduleFqn": "@aws-cdk/aws-ecs"
2548 },
2549 "field": {
2550 "field": "markdown",
2551 "line": 819
2552 }
2553 },
2554 "didCompile": true,
2555 "fqnsReferenced": [
2556 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2557 "@aws-cdk/aws-ecs.ContainerImage",
2558 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2559 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2560 "@aws-cdk/aws-ecs.FireLensLogDriverProps",
2561 "@aws-cdk/aws-ecs.LogDriver",
2562 "@aws-cdk/aws-ecs.LogDrivers",
2563 "@aws-cdk/aws-ecs.LogDrivers#firelens",
2564 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2565 "constructs.Construct"
2566 ],
2567 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.firelens({\n options: {\n Name: 'firehose',\n region: 'us-west-2',\n delivery_stream: 'my-stream',\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2568 "syntaxKindCounter": {
2569 "8": 1,
2570 "10": 6,
2571 "75": 18,
2572 "104": 1,
2573 "193": 3,
2574 "194": 6,
2575 "196": 3,
2576 "197": 1,
2577 "225": 1,
2578 "226": 1,
2579 "242": 1,
2580 "243": 1,
2581 "281": 7
2582 },
2583 "fqnsFingerprint": "47aac6d8e110d03e94b884b094f054be6ceb895c05f48a3ad00be9a8578abd7e"
2584 },
2585 "f5ebe8cfc8ee2d59532ab90bdbf93a56732a2e3212866c550971b4124cb86dc4": {
2586 "translations": {
2587 "python": {
2588 "source": "# secret: secretsmanager.Secret\n# parameter: ssm.StringParameter\n\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.firelens(\n options={},\n secret_options={ # Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store\n \"apikey\": ecs.Secret.from_secrets_manager(secret),\n \"host\": ecs.Secret.from_ssm_parameter(parameter)}\n )\n)",
2589 "version": "2"
2590 },
2591 "csharp": {
2592 "source": "Secret secret;\nStringParameter parameter;\n\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Firelens(new FireLensLogDriverProps {\n Options = new Dictionary<string, object> { },\n SecretOptions = new Dictionary<string, Secret> { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store\n { \"apikey\", Secret.FromSecretsManager(secret) },\n { \"host\", Secret.FromSsmParameter(parameter) } }\n })\n});",
2593 "version": "1"
2594 },
2595 "java": {
2596 "source": "Secret secret;\nStringParameter parameter;\n\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.firelens(FireLensLogDriverProps.builder()\n .options(Map.of())\n .secretOptions(Map.of( // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store\n \"apikey\", Secret.fromSecretsManager(secret),\n \"host\", Secret.fromSsmParameter(parameter)))\n .build()))\n .build());",
2597 "version": "1"
2598 },
2599 "go": {
2600 "source": "var secret secret\nvar parameter stringParameter\n\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.firelens(&fireLensLogDriverProps{\n\t\toptions: map[string]interface{}{\n\t\t},\n\t\tsecretOptions: map[string]secret{\n\t\t\t // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store\n\t\t\t\"apikey\": ecs.*secret.fromSecretsManager(secret),\n\t\t\t\"host\": ecs.*secret.fromSsmParameter(parameter),\n\t\t},\n\t}),\n})",
2601 "version": "1"
2602 },
2603 "$": {
2604 "source": "declare const secret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.firelens({\n options: {\n // ... log driver options here ...\n },\n secretOptions: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store\n apikey: ecs.Secret.fromSecretsManager(secret),\n host: ecs.Secret.fromSsmParameter(parameter),\n },\n }),\n});",
2605 "version": "0"
2606 }
2607 },
2608 "location": {
2609 "api": {
2610 "api": "moduleReadme",
2611 "moduleFqn": "@aws-cdk/aws-ecs"
2612 },
2613 "field": {
2614 "field": "markdown",
2615 "line": 837
2616 }
2617 },
2618 "didCompile": true,
2619 "fqnsReferenced": [
2620 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2621 "@aws-cdk/aws-ecs.ContainerImage",
2622 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2623 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2624 "@aws-cdk/aws-ecs.FireLensLogDriverProps",
2625 "@aws-cdk/aws-ecs.LogDriver",
2626 "@aws-cdk/aws-ecs.LogDrivers",
2627 "@aws-cdk/aws-ecs.LogDrivers#firelens",
2628 "@aws-cdk/aws-ecs.Secret",
2629 "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
2630 "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
2631 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2632 "@aws-cdk/aws-secretsmanager.ISecret",
2633 "@aws-cdk/aws-ssm.IParameter",
2634 "constructs.Construct"
2635 ],
2636 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const secret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.firelens({\n options: {\n // ... log driver options here ...\n },\n secretOptions: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store\n apikey: ecs.Secret.fromSecretsManager(secret),\n host: ecs.Secret.fromSsmParameter(parameter),\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2637 "syntaxKindCounter": {
2638 "8": 1,
2639 "10": 3,
2640 "75": 32,
2641 "104": 1,
2642 "130": 2,
2643 "153": 2,
2644 "169": 2,
2645 "193": 4,
2646 "194": 10,
2647 "196": 5,
2648 "197": 1,
2649 "225": 3,
2650 "226": 1,
2651 "242": 3,
2652 "243": 3,
2653 "281": 7,
2654 "290": 1
2655 },
2656 "fqnsFingerprint": "b6378e536967611b0a61d61a73708e43801b027ee8a5b313eb7b1cb43bca30f2"
2657 },
2658 "4ccae69164ebedec699eb10ac15c88a3e6eb4b33fd95e7e2fcdda2c698ea5c5f": {
2659 "translations": {
2660 "python": {
2661 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.GenericLogDriver(\n log_driver=\"fluentd\",\n options={\n \"tag\": \"example-tag\"\n }\n )\n)",
2662 "version": "2"
2663 },
2664 "csharp": {
2665 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = new GenericLogDriver(new GenericLogDriverProps {\n LogDriver = \"fluentd\",\n Options = new Dictionary<string, string> {\n { \"tag\", \"example-tag\" }\n }\n })\n});",
2666 "version": "1"
2667 },
2668 "java": {
2669 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(GenericLogDriver.Builder.create()\n .logDriver(\"fluentd\")\n .options(Map.of(\n \"tag\", \"example-tag\"))\n .build())\n .build());",
2670 "version": "1"
2671 },
2672 "go": {
2673 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.NewGenericLogDriver(&genericLogDriverProps{\n\t\tlogDriver: jsii.String(\"fluentd\"),\n\t\toptions: map[string]*string{\n\t\t\t\"tag\": jsii.String(\"example-tag\"),\n\t\t},\n\t}),\n})",
2674 "version": "1"
2675 },
2676 "$": {
2677 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: new ecs.GenericLogDriver({\n logDriver: 'fluentd',\n options: {\n tag: 'example-tag',\n },\n }),\n});",
2678 "version": "0"
2679 }
2680 },
2681 "location": {
2682 "api": {
2683 "api": "moduleReadme",
2684 "moduleFqn": "@aws-cdk/aws-ecs"
2685 },
2686 "field": {
2687 "field": "markdown",
2688 "line": 861
2689 }
2690 },
2691 "didCompile": true,
2692 "fqnsReferenced": [
2693 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2694 "@aws-cdk/aws-ecs.ContainerImage",
2695 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2696 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
2697 "@aws-cdk/aws-ecs.GenericLogDriver",
2698 "@aws-cdk/aws-ecs.GenericLogDriverProps",
2699 "@aws-cdk/aws-ecs.LogDriver",
2700 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2701 "constructs.Construct"
2702 ],
2703 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: new ecs.GenericLogDriver({\n logDriver: 'fluentd',\n options: {\n tag: 'example-tag',\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2704 "syntaxKindCounter": {
2705 "8": 1,
2706 "10": 5,
2707 "75": 16,
2708 "104": 1,
2709 "193": 3,
2710 "194": 5,
2711 "196": 2,
2712 "197": 2,
2713 "225": 1,
2714 "226": 1,
2715 "242": 1,
2716 "243": 1,
2717 "281": 6
2718 },
2719 "fqnsFingerprint": "272dc8c12063d83f025896851b95c099dbc7e0aa372104141eb4820e31cb2681"
2720 },
2721 "2bc3c9c2e9dfac716cb4a444f4b16178eb20e412413e991f3828bb8babb87d02": {
2722 "translations": {
2723 "python": {
2724 "source": "# task_definition: ecs.TaskDefinition\n# cluster: ecs.Cluster\n\n\nservice = ecs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n cloud_map_options=ecs.CloudMapOptions(\n # Create A records - useful for AWSVPC network mode.\n dns_record_type=cloudmap.DnsRecordType.A\n )\n)",
2725 "version": "2"
2726 },
2727 "csharp": {
2728 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CloudMapOptions = new CloudMapOptions {\n // Create A records - useful for AWSVPC network mode.\n DnsRecordType = DnsRecordType.A\n }\n});",
2729 "version": "1"
2730 },
2731 "java": {
2732 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .cloudMapOptions(CloudMapOptions.builder()\n // Create A records - useful for AWSVPC network mode.\n .dnsRecordType(DnsRecordType.A)\n .build())\n .build();",
2733 "version": "1"
2734 },
2735 "go": {
2736 "source": "var taskDefinition taskDefinition\nvar cluster cluster\n\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcloudMapOptions: &cloudMapOptions{\n\t\t// Create A records - useful for AWSVPC network mode.\n\t\tdnsRecordType: cloudmap.dnsRecordType_A,\n\t},\n})",
2737 "version": "1"
2738 },
2739 "$": {
2740 "source": "declare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n\nconst service = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create A records - useful for AWSVPC network mode.\n dnsRecordType: cloudmap.DnsRecordType.A,\n },\n});",
2741 "version": "0"
2742 }
2743 },
2744 "location": {
2745 "api": {
2746 "api": "moduleReadme",
2747 "moduleFqn": "@aws-cdk/aws-ecs"
2748 },
2749 "field": {
2750 "field": "markdown",
2751 "line": 881
2752 }
2753 },
2754 "didCompile": true,
2755 "fqnsReferenced": [
2756 "@aws-cdk/aws-ecs.CloudMapOptions",
2757 "@aws-cdk/aws-ecs.Ec2Service",
2758 "@aws-cdk/aws-ecs.Ec2ServiceProps",
2759 "@aws-cdk/aws-ecs.ICluster",
2760 "@aws-cdk/aws-ecs.TaskDefinition",
2761 "@aws-cdk/aws-servicediscovery.DnsRecordType",
2762 "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
2763 "constructs.Construct"
2764 ],
2765 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create A records - useful for AWSVPC network mode.\n dnsRecordType: cloudmap.DnsRecordType.A,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2766 "syntaxKindCounter": {
2767 "10": 1,
2768 "75": 16,
2769 "104": 1,
2770 "130": 2,
2771 "153": 2,
2772 "169": 2,
2773 "193": 2,
2774 "194": 3,
2775 "197": 1,
2776 "225": 3,
2777 "242": 3,
2778 "243": 3,
2779 "281": 2,
2780 "282": 2,
2781 "290": 1
2782 },
2783 "fqnsFingerprint": "d6bb6a410918906abe0ef298af5f5fc46095a796c8015c70625190f85b07e644"
2784 },
2785 "8c50fe6169819a2b8bb4d4c73ed3f62b2caf61b32031acf10aed900489eeaa53": {
2786 "translations": {
2787 "python": {
2788 "source": "# task_definition: ecs.TaskDefinition\n# cluster: ecs.Cluster\n\n\n# Add a container to the task definition\nspecific_container = task_definition.add_container(\"Container\",\n image=ecs.ContainerImage.from_registry(\"/aws/aws-example-app\"),\n memory_limit_mi_b=2048\n)\n\n# Add a port mapping\nspecific_container.add_port_mappings(\n container_port=7600,\n protocol=ecs.Protocol.TCP\n)\n\necs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n cloud_map_options=ecs.CloudMapOptions(\n # Create SRV records - useful for bridge networking\n dns_record_type=cloudmap.DnsRecordType.SRV,\n # Targets port TCP port 7600 `specificContainer`\n container=specific_container,\n container_port=7600\n )\n)",
2789 "version": "2"
2790 },
2791 "csharp": {
2792 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.AddContainer(\"Container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"/aws/aws-example-app\"),\n MemoryLimitMiB = 2048\n});\n\n// Add a port mapping\nspecificContainer.AddPortMappings(new PortMapping {\n ContainerPort = 7600,\n Protocol = Protocol.TCP\n});\n\nnew Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CloudMapOptions = new CloudMapOptions {\n // Create SRV records - useful for bridge networking\n DnsRecordType = DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n Container = specificContainer,\n ContainerPort = 7600\n }\n});",
2793 "version": "1"
2794 },
2795 "java": {
2796 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.addContainer(\"Container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"/aws/aws-example-app\"))\n .memoryLimitMiB(2048)\n .build());\n\n// Add a port mapping\nspecificContainer.addPortMappings(PortMapping.builder()\n .containerPort(7600)\n .protocol(Protocol.TCP)\n .build());\n\nEc2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .cloudMapOptions(CloudMapOptions.builder()\n // Create SRV records - useful for bridge networking\n .dnsRecordType(DnsRecordType.SRV)\n // Targets port TCP port 7600 `specificContainer`\n .container(specificContainer)\n .containerPort(7600)\n .build())\n .build();",
2797 "version": "1"
2798 },
2799 "go": {
2800 "source": "var taskDefinition taskDefinition\nvar cluster cluster\n\n\n// Add a container to the task definition\nspecificContainer := taskDefinition.addContainer(jsii.String(\"Container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"/aws/aws-example-app\")),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\n// Add a port mapping\nspecificContainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(7600),\n\tprotocol: ecs.protocol_TCP,\n})\n\necs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcloudMapOptions: &cloudMapOptions{\n\t\t// Create SRV records - useful for bridge networking\n\t\tdnsRecordType: cloudmap.dnsRecordType_SRV,\n\t\t// Targets port TCP port 7600 `specificContainer`\n\t\tcontainer: specificContainer,\n\t\tcontainerPort: jsii.Number(7600),\n\t},\n})",
2801 "version": "1"
2802 },
2803 "$": {
2804 "source": "declare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});",
2805 "version": "0"
2806 }
2807 },
2808 "location": {
2809 "api": {
2810 "api": "moduleReadme",
2811 "moduleFqn": "@aws-cdk/aws-ecs"
2812 },
2813 "field": {
2814 "field": "markdown",
2815 "line": 899
2816 }
2817 },
2818 "didCompile": true,
2819 "fqnsReferenced": [
2820 "@aws-cdk/aws-ecs.CloudMapOptions",
2821 "@aws-cdk/aws-ecs.ContainerDefinition",
2822 "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
2823 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2824 "@aws-cdk/aws-ecs.ContainerImage",
2825 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2826 "@aws-cdk/aws-ecs.Ec2Service",
2827 "@aws-cdk/aws-ecs.Ec2ServiceProps",
2828 "@aws-cdk/aws-ecs.ICluster",
2829 "@aws-cdk/aws-ecs.PortMapping",
2830 "@aws-cdk/aws-ecs.Protocol",
2831 "@aws-cdk/aws-ecs.Protocol#TCP",
2832 "@aws-cdk/aws-ecs.TaskDefinition",
2833 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2834 "@aws-cdk/aws-servicediscovery.DnsRecordType",
2835 "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
2836 "constructs.Construct"
2837 ],
2838 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2839 "syntaxKindCounter": {
2840 "8": 3,
2841 "10": 3,
2842 "75": 33,
2843 "104": 1,
2844 "130": 2,
2845 "153": 2,
2846 "169": 2,
2847 "193": 4,
2848 "194": 9,
2849 "196": 3,
2850 "197": 1,
2851 "225": 3,
2852 "226": 2,
2853 "242": 3,
2854 "243": 3,
2855 "281": 8,
2856 "282": 2,
2857 "290": 1
2858 },
2859 "fqnsFingerprint": "fe47e6d021ce9e021f3af813ab3208dd6bca9a232a8c7409dc2c365505e822ff"
2860 },
2861 "e937737ac1cfcacc47628cceba36819899cb88787a7997971da072ff69f637f9": {
2862 "translations": {
2863 "python": {
2864 "source": "# cloud_map_service: cloudmap.Service\n# ecs_service: ecs.FargateService\n\n\necs_service.associate_cloud_map_service(\n service=cloud_map_service\n)",
2865 "version": "2"
2866 },
2867 "csharp": {
2868 "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.AssociateCloudMapService(new AssociateCloudMapServiceOptions {\n Service = cloudMapService\n});",
2869 "version": "1"
2870 },
2871 "java": {
2872 "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.associateCloudMapService(AssociateCloudMapServiceOptions.builder()\n .service(cloudMapService)\n .build());",
2873 "version": "1"
2874 },
2875 "go": {
2876 "source": "var cloudMapService service\nvar ecsService fargateService\n\n\necsService.associateCloudMapService(&associateCloudMapServiceOptions{\n\tservice: cloudMapService,\n})",
2877 "version": "1"
2878 },
2879 "$": {
2880 "source": "declare const cloudMapService: cloudmap.Service;\ndeclare const ecsService: ecs.FargateService;\n\necsService.associateCloudMapService({\n service: cloudMapService,\n});",
2881 "version": "0"
2882 }
2883 },
2884 "location": {
2885 "api": {
2886 "api": "moduleReadme",
2887 "moduleFqn": "@aws-cdk/aws-ecs"
2888 },
2889 "field": {
2890 "field": "markdown",
2891 "line": 933
2892 }
2893 },
2894 "didCompile": true,
2895 "fqnsReferenced": [
2896 "@aws-cdk/aws-ecs.AssociateCloudMapServiceOptions",
2897 "@aws-cdk/aws-ecs.BaseService#associateCloudMapService",
2898 "@aws-cdk/aws-servicediscovery.IService"
2899 ],
2900 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cloudMapService: cloudmap.Service;\ndeclare const ecsService: ecs.FargateService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\necsService.associateCloudMapService({\n service: cloudMapService,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2901 "syntaxKindCounter": {
2902 "75": 10,
2903 "130": 2,
2904 "153": 2,
2905 "169": 2,
2906 "193": 1,
2907 "194": 1,
2908 "196": 1,
2909 "225": 2,
2910 "226": 1,
2911 "242": 2,
2912 "243": 2,
2913 "281": 1,
2914 "290": 1
2915 },
2916 "fqnsFingerprint": "8fbe29aed2465cc222a31477afdd608da435cc99c94efc98fb411b2d7ab6ac39"
2917 },
2918 "431959bec7b8f40d17b8387390f6f3833abf66f5ea6f9df349736f261a5dba47": {
2919 "translations": {
2920 "python": {
2921 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"FargateCPCluster\",\n vpc=vpc,\n enable_fargate_capacity_providers=True\n)\n\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"web\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n)\n\necs.FargateService(self, \"FargateService\",\n cluster=cluster,\n task_definition=task_definition,\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=\"FARGATE_SPOT\",\n weight=2\n ), ecs.CapacityProviderStrategy(\n capacity_provider=\"FARGATE\",\n weight=1\n )\n ]\n)",
2922 "version": "2"
2923 },
2924 "csharp": {
2925 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"FargateCPCluster\", new ClusterProps {\n Vpc = vpc,\n EnableFargateCapacityProviders = true\n});\n\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"web\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n});\n\nnew FargateService(this, \"FargateService\", new FargateServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = \"FARGATE_SPOT\",\n Weight = 2\n }, new CapacityProviderStrategy {\n CapacityProvider = \"FARGATE\",\n Weight = 1\n } }\n});",
2926 "version": "1"
2927 },
2928 "java": {
2929 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"FargateCPCluster\")\n .vpc(vpc)\n .enableFargateCapacityProviders(true)\n .build();\n\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"web\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build());\n\nFargateService.Builder.create(this, \"FargateService\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(\"FARGATE_SPOT\")\n .weight(2)\n .build(), CapacityProviderStrategy.builder()\n .capacityProvider(\"FARGATE\")\n .weight(1)\n .build()))\n .build();",
2930 "version": "1"
2931 },
2932 "go": {
2933 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"FargateCPCluster\"), &clusterProps{\n\tvpc: vpc,\n\tenableFargateCapacityProviders: jsii.Boolean(true),\n})\n\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"web\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n})\n\necs.NewFargateService(this, jsii.String(\"FargateService\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: jsii.String(\"FARGATE_SPOT\"),\n\t\t\tweight: jsii.Number(2),\n\t\t},\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: jsii.String(\"FARGATE\"),\n\t\t\tweight: jsii.Number(1),\n\t\t},\n\t},\n})",
2934 "version": "1"
2935 },
2936 "$": {
2937 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'FargateCPCluster', {\n vpc,\n enableFargateCapacityProviders: true,\n});\n\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n});\n\nnew ecs.FargateService(this, 'FargateService', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: 'FARGATE_SPOT',\n weight: 2,\n },\n {\n capacityProvider: 'FARGATE',\n weight: 1,\n },\n ],\n});",
2938 "version": "0"
2939 }
2940 },
2941 "location": {
2942 "api": {
2943 "api": "moduleReadme",
2944 "moduleFqn": "@aws-cdk/aws-ecs"
2945 },
2946 "field": {
2947 "field": "markdown",
2948 "line": 958
2949 }
2950 },
2951 "didCompile": true,
2952 "fqnsReferenced": [
2953 "@aws-cdk/aws-ec2.IVpc",
2954 "@aws-cdk/aws-ecs.Cluster",
2955 "@aws-cdk/aws-ecs.ClusterProps",
2956 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
2957 "@aws-cdk/aws-ecs.ContainerImage",
2958 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
2959 "@aws-cdk/aws-ecs.FargateService",
2960 "@aws-cdk/aws-ecs.FargateServiceProps",
2961 "@aws-cdk/aws-ecs.FargateTaskDefinition",
2962 "@aws-cdk/aws-ecs.ICluster",
2963 "@aws-cdk/aws-ecs.TaskDefinition",
2964 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
2965 "constructs.Construct"
2966 ],
2967 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'FargateCPCluster', {\n vpc,\n enableFargateCapacityProviders: true,\n});\n\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n});\n\nnew ecs.FargateService(this, 'FargateService', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: 'FARGATE_SPOT',\n weight: 2,\n },\n {\n capacityProvider: 'FARGATE',\n weight: 1,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2968 "syntaxKindCounter": {
2969 "8": 2,
2970 "10": 7,
2971 "75": 26,
2972 "104": 3,
2973 "106": 1,
2974 "130": 1,
2975 "153": 1,
2976 "169": 1,
2977 "192": 1,
2978 "193": 5,
2979 "194": 6,
2980 "196": 2,
2981 "197": 3,
2982 "225": 3,
2983 "226": 2,
2984 "242": 3,
2985 "243": 3,
2986 "281": 7,
2987 "282": 3,
2988 "290": 1
2989 },
2990 "fqnsFingerprint": "cec890d50776a6452e6f34332d9f602e814b27dfb9186ac60d2a4f8662da4448"
2991 },
2992 "c7a59d9323fd5dbdfad56c236e919b827a5ab7bd6493a6338e638448199f93a7": {
2993 "translations": {
2994 "python": {
2995 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.micro\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux2(),\n min_capacity=0,\n max_capacity=100\n)\n\ncapacity_provider = ecs.AsgCapacityProvider(self, \"AsgCapacityProvider\",\n auto_scaling_group=auto_scaling_group\n)\ncluster.add_asg_capacity_provider(capacity_provider)\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"web\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_reservation_mi_b=256\n)\n\necs.Ec2Service(self, \"EC2Service\",\n cluster=cluster,\n task_definition=task_definition,\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=capacity_provider.capacity_provider_name,\n weight=1\n )\n ]\n)",
2996 "version": "2"
2997 },
2998 "csharp": {
2999 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.micro\"),\n MachineImage = EcsOptimizedImage.AmazonLinux2(),\n MinCapacity = 0,\n MaxCapacity = 100\n});\n\nAsgCapacityProvider capacityProvider = new AsgCapacityProvider(this, \"AsgCapacityProvider\", new AsgCapacityProviderProps {\n AutoScalingGroup = autoScalingGroup\n});\ncluster.AddAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"web\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryReservationMiB = 256\n});\n\nnew Ec2Service(this, \"EC2Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = capacityProvider.CapacityProviderName,\n Weight = 1\n } }\n});",
3000 "version": "1"
3001 },
3002 "java": {
3003 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.micro\"))\n .machineImage(EcsOptimizedImage.amazonLinux2())\n .minCapacity(0)\n .maxCapacity(100)\n .build();\n\nAsgCapacityProvider capacityProvider = AsgCapacityProvider.Builder.create(this, \"AsgCapacityProvider\")\n .autoScalingGroup(autoScalingGroup)\n .build();\ncluster.addAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"web\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryReservationMiB(256)\n .build());\n\nEc2Service.Builder.create(this, \"EC2Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(capacityProvider.getCapacityProviderName())\n .weight(1)\n .build()))\n .build();",
3004 "version": "1"
3005 },
3006 "go": {
3007 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux2(),\n\tminCapacity: jsii.Number(0),\n\tmaxCapacity: jsii.Number(100),\n})\n\ncapacityProvider := ecs.NewAsgCapacityProvider(this, jsii.String(\"AsgCapacityProvider\"), &asgCapacityProviderProps{\n\tautoScalingGroup: autoScalingGroup,\n})\ncluster.addAsgCapacityProvider(capacityProvider)\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"web\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryReservationMiB: jsii.Number(256),\n})\n\necs.NewEc2Service(this, jsii.String(\"EC2Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: capacityProvider.capacityProviderName,\n\t\t\tweight: jsii.Number(1),\n\t\t},\n\t},\n})",
3008 "version": "1"
3009 },
3010 "$": {
3011 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});",
3012 "version": "0"
3013 }
3014 },
3015 "location": {
3016 "api": {
3017 "api": "moduleReadme",
3018 "moduleFqn": "@aws-cdk/aws-ecs"
3019 },
3020 "field": {
3021 "field": "markdown",
3022 "line": 1002
3023 }
3024 },
3025 "didCompile": true,
3026 "fqnsReferenced": [
3027 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
3028 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
3029 "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
3030 "@aws-cdk/aws-ec2.IMachineImage",
3031 "@aws-cdk/aws-ec2.IVpc",
3032 "@aws-cdk/aws-ec2.InstanceType",
3033 "@aws-cdk/aws-ecs.AsgCapacityProvider",
3034 "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
3035 "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
3036 "@aws-cdk/aws-ecs.Cluster",
3037 "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
3038 "@aws-cdk/aws-ecs.ClusterProps",
3039 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
3040 "@aws-cdk/aws-ecs.ContainerImage",
3041 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
3042 "@aws-cdk/aws-ecs.Ec2Service",
3043 "@aws-cdk/aws-ecs.Ec2ServiceProps",
3044 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
3045 "@aws-cdk/aws-ecs.EcsOptimizedImage",
3046 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
3047 "@aws-cdk/aws-ecs.ICluster",
3048 "@aws-cdk/aws-ecs.TaskDefinition",
3049 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
3050 "constructs.Construct"
3051 ],
3052 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3053 "syntaxKindCounter": {
3054 "8": 4,
3055 "10": 8,
3056 "75": 46,
3057 "104": 5,
3058 "130": 1,
3059 "153": 1,
3060 "169": 1,
3061 "192": 1,
3062 "193": 6,
3063 "194": 13,
3064 "196": 4,
3065 "197": 6,
3066 "225": 5,
3067 "226": 3,
3068 "242": 5,
3069 "243": 5,
3070 "281": 9,
3071 "282": 5,
3072 "290": 1
3073 },
3074 "fqnsFingerprint": "6dce71b202240df801b09aa15a7a4a07a0308f946fe9ea27bebc2976a9a7e9d1"
3075 },
3076 "64839645a33e52f98097f3ab8e7a00b430229e95579fff35f208e056721a29b3": {
3077 "translations": {
3078 "python": {
3079 "source": "inference_accelerators = [{\n \"device_name\": \"device1\",\n \"device_type\": \"eia2.medium\"\n}]\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"Ec2TaskDef\",\n inference_accelerators=inference_accelerators\n)",
3080 "version": "2"
3081 },
3082 "csharp": {
3083 "source": "IDictionary<string, string>[] inferenceAccelerators = new [] { new Dictionary<string, string> {\n { \"deviceName\", \"device1\" },\n { \"deviceType\", \"eia2.medium\" }\n} };\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"Ec2TaskDef\", new Ec2TaskDefinitionProps {\n InferenceAccelerators = inferenceAccelerators\n});",
3084 "version": "1"
3085 },
3086 "java": {
3087 "source": "Map<String, String>[] inferenceAccelerators = List.of(Map.of(\n \"deviceName\", \"device1\",\n \"deviceType\", \"eia2.medium\"));\n\nEc2TaskDefinition taskDefinition = Ec2TaskDefinition.Builder.create(this, \"Ec2TaskDef\")\n .inferenceAccelerators(inferenceAccelerators)\n .build();",
3088 "version": "1"
3089 },
3090 "go": {
3091 "source": "inferenceAccelerators := []map[string]*string{\n\tmap[string]*string{\n\t\t\"deviceName\": jsii.String(\"device1\"),\n\t\t\"deviceType\": jsii.String(\"eia2.medium\"),\n\t},\n}\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"Ec2TaskDef\"), &ec2TaskDefinitionProps{\n\tinferenceAccelerators: inferenceAccelerators,\n})",
3092 "version": "1"
3093 },
3094 "$": {
3095 "source": "const inferenceAccelerators = [{\n deviceName: 'device1',\n deviceType: 'eia2.medium',\n}];\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'Ec2TaskDef', {\n inferenceAccelerators,\n});",
3096 "version": "0"
3097 }
3098 },
3099 "location": {
3100 "api": {
3101 "api": "moduleReadme",
3102 "moduleFqn": "@aws-cdk/aws-ecs"
3103 },
3104 "field": {
3105 "field": "markdown",
3106 "line": 1049
3107 }
3108 },
3109 "didCompile": true,
3110 "fqnsReferenced": [
3111 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
3112 "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
3113 "constructs.Construct"
3114 ],
3115 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst inferenceAccelerators = [{\n deviceName: 'device1',\n deviceType: 'eia2.medium',\n}];\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'Ec2TaskDef', {\n inferenceAccelerators,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3116 "syntaxKindCounter": {
3117 "10": 3,
3118 "75": 7,
3119 "104": 1,
3120 "192": 1,
3121 "193": 2,
3122 "194": 1,
3123 "197": 1,
3124 "225": 2,
3125 "242": 2,
3126 "243": 2,
3127 "281": 2,
3128 "282": 1
3129 },
3130 "fqnsFingerprint": "79ec9b5446ff542b5ea043cfcaa48641fd1da80402badbfa21509c7bf201f1f3"
3131 },
3132 "3d14998d0ff3f0aa30d11309831d533d7a37f54d31e15d050ee770ab3de7b932": {
3133 "translations": {
3134 "python": {
3135 "source": "# task_definition: ecs.TaskDefinition\n\ninference_accelerator_resources = [\"device1\"]\n\ntask_definition.add_container(\"cont\",\n image=ecs.ContainerImage.from_registry(\"test\"),\n memory_limit_mi_b=1024,\n inference_accelerator_resources=inference_accelerator_resources\n)",
3136 "version": "2"
3137 },
3138 "csharp": {
3139 "source": "TaskDefinition taskDefinition;\n\nstring[] inferenceAcceleratorResources = new [] { \"device1\" };\n\ntaskDefinition.AddContainer(\"cont\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"test\"),\n MemoryLimitMiB = 1024,\n InferenceAcceleratorResources = inferenceAcceleratorResources\n});",
3140 "version": "1"
3141 },
3142 "java": {
3143 "source": "TaskDefinition taskDefinition;\n\nString[] inferenceAcceleratorResources = List.of(\"device1\");\n\ntaskDefinition.addContainer(\"cont\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"test\"))\n .memoryLimitMiB(1024)\n .inferenceAcceleratorResources(inferenceAcceleratorResources)\n .build());",
3144 "version": "1"
3145 },
3146 "go": {
3147 "source": "var taskDefinition taskDefinition\n\ninferenceAcceleratorResources := []*string{\n\t\"device1\",\n}\n\ntaskDefinition.addContainer(jsii.String(\"cont\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"test\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tinferenceAcceleratorResources: inferenceAcceleratorResources,\n})",
3148 "version": "1"
3149 },
3150 "$": {
3151 "source": "declare const taskDefinition: ecs.TaskDefinition;\nconst inferenceAcceleratorResources = ['device1'];\n\ntaskDefinition.addContainer('cont', {\n image: ecs.ContainerImage.fromRegistry('test'),\n memoryLimitMiB: 1024,\n inferenceAcceleratorResources,\n});",
3152 "version": "0"
3153 }
3154 },
3155 "location": {
3156 "api": {
3157 "api": "moduleReadme",
3158 "moduleFqn": "@aws-cdk/aws-ecs"
3159 },
3160 "field": {
3161 "field": "markdown",
3162 "line": 1064
3163 }
3164 },
3165 "didCompile": true,
3166 "fqnsReferenced": [
3167 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
3168 "@aws-cdk/aws-ecs.ContainerImage",
3169 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
3170 "@aws-cdk/aws-ecs.TaskDefinition#addContainer"
3171 ],
3172 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst inferenceAcceleratorResources = ['device1'];\n\ntaskDefinition.addContainer('cont', {\n image: ecs.ContainerImage.fromRegistry('test'),\n memoryLimitMiB: 1024,\n inferenceAcceleratorResources,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3173 "syntaxKindCounter": {
3174 "8": 1,
3175 "10": 3,
3176 "75": 12,
3177 "130": 1,
3178 "153": 1,
3179 "169": 1,
3180 "192": 1,
3181 "193": 1,
3182 "194": 3,
3183 "196": 2,
3184 "225": 2,
3185 "226": 1,
3186 "242": 2,
3187 "243": 2,
3188 "281": 2,
3189 "282": 1,
3190 "290": 1
3191 },
3192 "fqnsFingerprint": "a581a1f456cbf65c52910d85297959bfeda5af0f1a78d8c267a8fcea1a05d7af"
3193 },
3194 "758a408961946ae4767db2fab5bfddcf1d4266428297b7185212f34eeece4a09": {
3195 "translations": {
3196 "python": {
3197 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\n\nservice = ecs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n enable_execute_command=True\n)",
3198 "version": "2"
3199 },
3200 "csharp": {
3201 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n EnableExecuteCommand = true\n});",
3202 "version": "1"
3203 },
3204 "java": {
3205 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .enableExecuteCommand(true)\n .build();",
3206 "version": "1"
3207 },
3208 "go": {
3209 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tenableExecuteCommand: jsii.Boolean(true),\n})",
3210 "version": "1"
3211 },
3212 "$": {
3213 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n\nconst service = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n enableExecuteCommand: true,\n});",
3214 "version": "0"
3215 }
3216 },
3217 "location": {
3218 "api": {
3219 "api": "moduleReadme",
3220 "moduleFqn": "@aws-cdk/aws-ecs"
3221 },
3222 "field": {
3223 "field": "markdown",
3224 "line": 1084
3225 }
3226 },
3227 "didCompile": true,
3228 "fqnsReferenced": [
3229 "@aws-cdk/aws-ecs.Ec2Service",
3230 "@aws-cdk/aws-ecs.Ec2ServiceProps",
3231 "@aws-cdk/aws-ecs.ICluster",
3232 "@aws-cdk/aws-ecs.TaskDefinition",
3233 "constructs.Construct"
3234 ],
3235 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n enableExecuteCommand: true,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3236 "syntaxKindCounter": {
3237 "10": 1,
3238 "75": 12,
3239 "104": 1,
3240 "106": 1,
3241 "130": 2,
3242 "153": 2,
3243 "169": 2,
3244 "193": 1,
3245 "194": 1,
3246 "197": 1,
3247 "225": 3,
3248 "242": 3,
3249 "243": 3,
3250 "281": 1,
3251 "282": 2,
3252 "290": 1
3253 },
3254 "fqnsFingerprint": "6375c2b29e251073f50ae47970c790f6f7017b1a3f283fa50080ee2394601ebe"
3255 },
3256 "d883b1f13314bce937fda6a98fe0bb1a687a93ebbbfece6bea794ad372343f49": {
3257 "translations": {
3258 "python": {
3259 "source": "# vpc: ec2.Vpc\n\nkms_key = kms.Key(self, \"KmsKey\")\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlog_group = logs.LogGroup(self, \"LogGroup\",\n encryption_key=kms_key\n)\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexec_bucket = s3.Bucket(self, \"EcsExecBucket\",\n encryption_key=kms_key\n)\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc,\n execute_command_configuration=ecs.ExecuteCommandConfiguration(\n kms_key=kms_key,\n log_configuration=ecs.ExecuteCommandLogConfiguration(\n cloud_watch_log_group=log_group,\n cloud_watch_encryption_enabled=True,\n s3_bucket=exec_bucket,\n s3_encryption_enabled=True,\n s3_key_prefix=\"exec-command-output\"\n ),\n logging=ecs.ExecuteCommandLogging.OVERRIDE\n )\n)",
3260 "version": "2"
3261 },
3262 "csharp": {
3263 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = new LogGroup(this, \"LogGroup\", new LogGroupProps {\n EncryptionKey = kmsKey\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = new Bucket(this, \"EcsExecBucket\", new BucketProps {\n EncryptionKey = kmsKey\n});\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc,\n ExecuteCommandConfiguration = new ExecuteCommandConfiguration {\n KmsKey = kmsKey,\n LogConfiguration = new ExecuteCommandLogConfiguration {\n CloudWatchLogGroup = logGroup,\n CloudWatchEncryptionEnabled = true,\n S3Bucket = execBucket,\n S3EncryptionEnabled = true,\n S3KeyPrefix = \"exec-command-output\"\n },\n Logging = ExecuteCommandLogging.OVERRIDE\n }\n});",
3264 "version": "1"
3265 },
3266 "java": {
3267 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = LogGroup.Builder.create(this, \"LogGroup\")\n .encryptionKey(kmsKey)\n .build();\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = Bucket.Builder.create(this, \"EcsExecBucket\")\n .encryptionKey(kmsKey)\n .build();\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .executeCommandConfiguration(ExecuteCommandConfiguration.builder()\n .kmsKey(kmsKey)\n .logConfiguration(ExecuteCommandLogConfiguration.builder()\n .cloudWatchLogGroup(logGroup)\n .cloudWatchEncryptionEnabled(true)\n .s3Bucket(execBucket)\n .s3EncryptionEnabled(true)\n .s3KeyPrefix(\"exec-command-output\")\n .build())\n .logging(ExecuteCommandLogging.OVERRIDE)\n .build())\n .build();",
3268 "version": "1"
3269 },
3270 "go": {
3271 "source": "var vpc vpc\n\nkmsKey := kms.NewKey(this, jsii.String(\"KmsKey\"))\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlogGroup := logs.NewLogGroup(this, jsii.String(\"LogGroup\"), &logGroupProps{\n\tencryptionKey: kmsKey,\n})\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexecBucket := s3.NewBucket(this, jsii.String(\"EcsExecBucket\"), &bucketProps{\n\tencryptionKey: kmsKey,\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n\texecuteCommandConfiguration: &executeCommandConfiguration{\n\t\tkmsKey: kmsKey,\n\t\tlogConfiguration: &executeCommandLogConfiguration{\n\t\t\tcloudWatchLogGroup: logGroup,\n\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3Bucket: execBucket,\n\t\t\ts3EncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3KeyPrefix: jsii.String(\"exec-command-output\"),\n\t\t},\n\t\tlogging: ecs.executeCommandLogging_OVERRIDE,\n\t},\n})",
3272 "version": "1"
3273 },
3274 "$": {
3275 "source": "declare const vpc: ec2.Vpc;\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});",
3276 "version": "0"
3277 }
3278 },
3279 "location": {
3280 "api": {
3281 "api": "moduleReadme",
3282 "moduleFqn": "@aws-cdk/aws-ecs"
3283 },
3284 "field": {
3285 "field": "markdown",
3286 "line": 1106
3287 }
3288 },
3289 "didCompile": true,
3290 "fqnsReferenced": [
3291 "@aws-cdk/aws-ec2.IVpc",
3292 "@aws-cdk/aws-ecs.Cluster",
3293 "@aws-cdk/aws-ecs.ClusterProps",
3294 "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
3295 "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
3296 "@aws-cdk/aws-ecs.ExecuteCommandLogging",
3297 "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
3298 "@aws-cdk/aws-kms.IKey",
3299 "@aws-cdk/aws-kms.Key",
3300 "@aws-cdk/aws-logs.ILogGroup",
3301 "@aws-cdk/aws-logs.LogGroup",
3302 "@aws-cdk/aws-logs.LogGroupProps",
3303 "@aws-cdk/aws-s3.Bucket",
3304 "@aws-cdk/aws-s3.BucketProps",
3305 "@aws-cdk/aws-s3.IBucket",
3306 "constructs.Construct"
3307 ],
3308 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3309 "syntaxKindCounter": {
3310 "10": 5,
3311 "75": 34,
3312 "104": 4,
3313 "106": 2,
3314 "130": 1,
3315 "153": 1,
3316 "169": 1,
3317 "193": 5,
3318 "194": 6,
3319 "197": 4,
3320 "225": 5,
3321 "242": 5,
3322 "243": 5,
3323 "281": 10,
3324 "282": 2,
3325 "290": 1
3326 },
3327 "fqnsFingerprint": "2b4516181ba827dbda3cdf3df300524af8957eb1ac5e9cf7a3b96479f737e8ce"
3328 },
3329 "dcf8af97e16dd41dfb4a40b3d5f3a47f0ce0292fd40fe1dc76c4c972e0076798": {
3330 "translations": {
3331 "python": {
3332 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_kms as kms\nimport aws_cdk.core as cdk\n\n# key: kms.Key\n\nadd_auto_scaling_group_capacity_options = ecs.AddAutoScalingGroupCapacityOptions(\n can_containers_access_instance_role=False,\n machine_image_type=ecs.MachineImageType.AMAZON_LINUX_2,\n spot_instance_draining=False,\n task_drain_time=cdk.Duration.minutes(30),\n topic_encryption_key=key\n)",
3333 "version": "2"
3334 },
3335 "csharp": {
3336 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.KMS;\nusing Amazon.CDK;\n\nKey key;\nAddAutoScalingGroupCapacityOptions addAutoScalingGroupCapacityOptions = new AddAutoScalingGroupCapacityOptions {\n CanContainersAccessInstanceRole = false,\n MachineImageType = MachineImageType.AMAZON_LINUX_2,\n SpotInstanceDraining = false,\n TaskDrainTime = Duration.Minutes(30),\n TopicEncryptionKey = key\n};",
3337 "version": "1"
3338 },
3339 "java": {
3340 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.kms.*;\nimport software.amazon.awscdk.core.*;\n\nKey key;\n\nAddAutoScalingGroupCapacityOptions addAutoScalingGroupCapacityOptions = AddAutoScalingGroupCapacityOptions.builder()\n .canContainersAccessInstanceRole(false)\n .machineImageType(MachineImageType.AMAZON_LINUX_2)\n .spotInstanceDraining(false)\n .taskDrainTime(Duration.minutes(30))\n .topicEncryptionKey(key)\n .build();",
3341 "version": "1"
3342 },
3343 "go": {
3344 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport kms \"github.com/aws-samples/dummy/awscdkawskms\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar key key\n\naddAutoScalingGroupCapacityOptions := &addAutoScalingGroupCapacityOptions{\n\tcanContainersAccessInstanceRole: jsii.Boolean(false),\n\tmachineImageType: ecs.machineImageType_AMAZON_LINUX_2,\n\tspotInstanceDraining: jsii.Boolean(false),\n\ttaskDrainTime: cdk.duration.minutes(jsii.Number(30)),\n\ttopicEncryptionKey: key,\n}",
3345 "version": "1"
3346 },
3347 "$": {
3348 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const key: kms.Key;\nconst addAutoScalingGroupCapacityOptions: ecs.AddAutoScalingGroupCapacityOptions = {\n canContainersAccessInstanceRole: false,\n machineImageType: ecs.MachineImageType.AMAZON_LINUX_2,\n spotInstanceDraining: false,\n taskDrainTime: cdk.Duration.minutes(30),\n topicEncryptionKey: key,\n};",
3349 "version": "0"
3350 }
3351 },
3352 "location": {
3353 "api": {
3354 "api": "type",
3355 "fqn": "@aws-cdk/aws-ecs.AddAutoScalingGroupCapacityOptions"
3356 },
3357 "field": {
3358 "field": "example"
3359 }
3360 },
3361 "didCompile": true,
3362 "fqnsReferenced": [
3363 "@aws-cdk/aws-ecs.AddAutoScalingGroupCapacityOptions",
3364 "@aws-cdk/aws-ecs.MachineImageType",
3365 "@aws-cdk/aws-ecs.MachineImageType#AMAZON_LINUX_2",
3366 "@aws-cdk/aws-kms.IKey",
3367 "@aws-cdk/core.Duration",
3368 "@aws-cdk/core.Duration#minutes"
3369 ],
3370 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const key: kms.Key;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst addAutoScalingGroupCapacityOptions: ecs.AddAutoScalingGroupCapacityOptions = {\n canContainersAccessInstanceRole: false,\n machineImageType: ecs.MachineImageType.AMAZON_LINUX_2,\n spotInstanceDraining: false,\n taskDrainTime: cdk.Duration.minutes(30),\n topicEncryptionKey: key,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3371 "syntaxKindCounter": {
3372 "8": 1,
3373 "10": 3,
3374 "75": 21,
3375 "91": 2,
3376 "130": 1,
3377 "153": 2,
3378 "169": 2,
3379 "193": 1,
3380 "194": 4,
3381 "196": 1,
3382 "225": 2,
3383 "242": 2,
3384 "243": 2,
3385 "254": 3,
3386 "255": 3,
3387 "256": 3,
3388 "281": 5,
3389 "290": 1
3390 },
3391 "fqnsFingerprint": "c0a92aa81f250c67b20181a55d5464f03537047e381e99df70d87324a270d169"
3392 },
3393 "ceb22756579e648945391f3a515cb31d5c10c606da70aa0c5713357081e3738a": {
3394 "translations": {
3395 "python": {
3396 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\n# Either add default capacity\ncluster.add_capacity(\"DefaultAutoScalingGroupCapacity\",\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n desired_capacity=3\n)\n\n# Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux(),\n # Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n # machineImage: EcsOptimizedImage.amazonLinux2(),\n desired_capacity=3\n)\n\ncluster.add_auto_scaling_group(auto_scaling_group)",
3397 "version": "2"
3398 },
3399 "csharp": {
3400 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\n// Either add default capacity\ncluster.AddCapacity(\"DefaultAutoScalingGroupCapacity\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.xlarge\"),\n DesiredCapacity = 3\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.xlarge\"),\n MachineImage = EcsOptimizedImage.AmazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n DesiredCapacity = 3\n});\n\ncluster.AddAutoScalingGroup(autoScalingGroup);",
3401 "version": "1"
3402 },
3403 "java": {
3404 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\n// Either add default capacity\ncluster.addCapacity(\"DefaultAutoScalingGroupCapacity\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .desiredCapacity(3)\n .build());\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .machineImage(EcsOptimizedImage.amazonLinux())\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n .desiredCapacity(3)\n .build();\n\ncluster.addAutoScalingGroup(autoScalingGroup);",
3405 "version": "1"
3406 },
3407 "go": {
3408 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\n// Either add default capacity\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroupCapacity\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tdesiredCapacity: jsii.Number(3),\n})\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux(),\n\t// Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n\t// machineImage: EcsOptimizedImage.amazonLinux2(),\n\tdesiredCapacity: jsii.Number(3),\n})\n\ncluster.addAutoScalingGroup(autoScalingGroup)",
3409 "version": "1"
3410 },
3411 "$": {
3412 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Either add default capacity\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.xlarge'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n desiredCapacity: 3,\n // ... other options here ...\n});\n\ncluster.addAutoScalingGroup(autoScalingGroup);",
3413 "version": "0"
3414 }
3415 },
3416 "location": {
3417 "api": {
3418 "api": "type",
3419 "fqn": "@aws-cdk/aws-ecs.AddCapacityOptions"
3420 },
3421 "field": {
3422 "field": "example"
3423 }
3424 },
3425 "didCompile": true,
3426 "fqnsReferenced": [
3427 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
3428 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
3429 "@aws-cdk/aws-ec2.IMachineImage",
3430 "@aws-cdk/aws-ec2.IVpc",
3431 "@aws-cdk/aws-ec2.InstanceType",
3432 "@aws-cdk/aws-ecs.AddCapacityOptions",
3433 "@aws-cdk/aws-ecs.Cluster",
3434 "@aws-cdk/aws-ecs.Cluster#addAutoScalingGroup",
3435 "@aws-cdk/aws-ecs.Cluster#addCapacity",
3436 "@aws-cdk/aws-ecs.ClusterProps",
3437 "@aws-cdk/aws-ecs.EcsOptimizedImage",
3438 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
3439 "constructs.Construct"
3440 ],
3441 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Either add default capacity\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.xlarge'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n desiredCapacity: 3,\n // ... other options here ...\n});\n\ncluster.addAutoScalingGroup(autoScalingGroup);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3442 "syntaxKindCounter": {
3443 "8": 2,
3444 "10": 5,
3445 "75": 28,
3446 "104": 2,
3447 "130": 1,
3448 "153": 1,
3449 "169": 1,
3450 "193": 3,
3451 "194": 8,
3452 "196": 3,
3453 "197": 4,
3454 "225": 3,
3455 "226": 2,
3456 "242": 3,
3457 "243": 3,
3458 "281": 5,
3459 "282": 2,
3460 "290": 1
3461 },
3462 "fqnsFingerprint": "b430b7db3f004410db21b13a1a3b79bdf828d77301f76b9d4dd6b04c17245885"
3463 },
3464 "2059f7d055279edf57ea3c0993e8f12137eb5328460d358b980cecb2561d4c79": {
3465 "translations": {
3466 "python": {
3467 "source": "machine_image = ecs.EcsOptimizedImage.amazon_linux2(ecs.AmiHardwareType.STANDARD,\n cached_in_context=True\n)",
3468 "version": "2"
3469 },
3470 "csharp": {
3471 "source": "EcsOptimizedImage machineImage = EcsOptimizedImage.AmazonLinux2(AmiHardwareType.STANDARD, new EcsOptimizedImageOptions {\n CachedInContext = true\n});",
3472 "version": "1"
3473 },
3474 "java": {
3475 "source": "EcsOptimizedImage machineImage = EcsOptimizedImage.amazonLinux2(AmiHardwareType.STANDARD, EcsOptimizedImageOptions.builder()\n .cachedInContext(true)\n .build());",
3476 "version": "1"
3477 },
3478 "go": {
3479 "source": "machineImage := ecs.ecsOptimizedImage.amazonLinux2(ecs.amiHardwareType_STANDARD, &ecsOptimizedImageOptions{\n\tcachedInContext: jsii.Boolean(true),\n})",
3480 "version": "1"
3481 },
3482 "$": {
3483 "source": "const machineImage = ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.STANDARD, {\n cachedInContext: true,\n});",
3484 "version": "0"
3485 }
3486 },
3487 "location": {
3488 "api": {
3489 "api": "member",
3490 "fqn": "@aws-cdk/aws-ecs.AddCapacityOptions",
3491 "memberName": "machineImage"
3492 },
3493 "field": {
3494 "field": "markdown",
3495 "line": 8
3496 }
3497 },
3498 "didCompile": true,
3499 "fqnsReferenced": [
3500 "@aws-cdk/aws-ecs.AmiHardwareType",
3501 "@aws-cdk/aws-ecs.AmiHardwareType#STANDARD",
3502 "@aws-cdk/aws-ecs.EcsOptimizedImage",
3503 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
3504 "@aws-cdk/aws-ecs.EcsOptimizedImageOptions"
3505 ],
3506 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst machineImage = ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.STANDARD, {\n cachedInContext: true,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3507 "syntaxKindCounter": {
3508 "75": 8,
3509 "106": 1,
3510 "193": 1,
3511 "194": 4,
3512 "196": 1,
3513 "225": 1,
3514 "242": 1,
3515 "243": 1,
3516 "281": 1
3517 },
3518 "fqnsFingerprint": "3a6323882db7922cfd02ed36140388739d6ab768f6aaa0115d2b9292cfd820e1"
3519 },
3520 "3ed75590299b15c1e8a404c0360f7cfacdcaa33d2fc55680aeb49d60fdefe900": {
3521 "translations": {
3522 "python": {
3523 "source": "# cluster: ecs.Cluster\n\n\ncluster.add_capacity(\"graviton-cluster\",\n min_capacity=2,\n instance_type=ec2.InstanceType(\"c6g.large\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux2(ecs.AmiHardwareType.ARM)\n)",
3524 "version": "2"
3525 },
3526 "csharp": {
3527 "source": "Cluster cluster;\n\n\ncluster.AddCapacity(\"graviton-cluster\", new AddCapacityOptions {\n MinCapacity = 2,\n InstanceType = new InstanceType(\"c6g.large\"),\n MachineImage = EcsOptimizedImage.AmazonLinux2(AmiHardwareType.ARM)\n});",
3528 "version": "1"
3529 },
3530 "java": {
3531 "source": "Cluster cluster;\n\n\ncluster.addCapacity(\"graviton-cluster\", AddCapacityOptions.builder()\n .minCapacity(2)\n .instanceType(new InstanceType(\"c6g.large\"))\n .machineImage(EcsOptimizedImage.amazonLinux2(AmiHardwareType.ARM))\n .build());",
3532 "version": "1"
3533 },
3534 "go": {
3535 "source": "var cluster cluster\n\n\ncluster.addCapacity(jsii.String(\"graviton-cluster\"), &addCapacityOptions{\n\tminCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c6g.large\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux2(ecs.amiHardwareType_ARM),\n})",
3536 "version": "1"
3537 },
3538 "$": {
3539 "source": "declare const cluster: ecs.Cluster;\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.ARM),\n});",
3540 "version": "0"
3541 }
3542 },
3543 "location": {
3544 "api": {
3545 "api": "type",
3546 "fqn": "@aws-cdk/aws-ecs.AmiHardwareType"
3547 },
3548 "field": {
3549 "field": "example"
3550 }
3551 },
3552 "didCompile": true,
3553 "fqnsReferenced": [
3554 "@aws-cdk/aws-ec2.IMachineImage",
3555 "@aws-cdk/aws-ec2.InstanceType",
3556 "@aws-cdk/aws-ecs.AddCapacityOptions",
3557 "@aws-cdk/aws-ecs.AmiHardwareType",
3558 "@aws-cdk/aws-ecs.AmiHardwareType#ARM",
3559 "@aws-cdk/aws-ecs.Cluster#addCapacity",
3560 "@aws-cdk/aws-ecs.EcsOptimizedImage",
3561 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2"
3562 ],
3563 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.ARM),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3564 "syntaxKindCounter": {
3565 "8": 1,
3566 "10": 2,
3567 "75": 16,
3568 "130": 1,
3569 "153": 1,
3570 "169": 1,
3571 "193": 1,
3572 "194": 6,
3573 "196": 2,
3574 "197": 1,
3575 "225": 1,
3576 "226": 1,
3577 "242": 1,
3578 "243": 1,
3579 "281": 3,
3580 "290": 1
3581 },
3582 "fqnsFingerprint": "4467a15ad2dbe31ebecc9a403683a9916440d83a0419a4875005f4a06929f0e5"
3583 },
3584 "42cd092252030996ae38d8c4c275ed326532419951127edd7bfe2e0d848bb779": {
3585 "translations": {
3586 "python": {
3587 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\napp_mesh_proxy_configuration = ecs.AppMeshProxyConfiguration(\n container_name=\"containerName\",\n properties=ecs.AppMeshProxyConfigurationProps(\n app_ports=[123],\n proxy_egress_port=123,\n proxy_ingress_port=123,\n\n # the properties below are optional\n egress_ignored_iPs=[\"egressIgnoredIPs\"],\n egress_ignored_ports=[123],\n ignored_gID=123,\n ignored_uID=123\n )\n)",
3588 "version": "2"
3589 },
3590 "csharp": {
3591 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAppMeshProxyConfiguration appMeshProxyConfiguration = new AppMeshProxyConfiguration(new AppMeshProxyConfigurationConfigProps {\n ContainerName = \"containerName\",\n Properties = new AppMeshProxyConfigurationProps {\n AppPorts = new [] { 123 },\n ProxyEgressPort = 123,\n ProxyIngressPort = 123,\n\n // the properties below are optional\n EgressIgnoredIPs = new [] { \"egressIgnoredIPs\" },\n EgressIgnoredPorts = new [] { 123 },\n IgnoredGID = 123,\n IgnoredUID = 123\n }\n});",
3592 "version": "1"
3593 },
3594 "java": {
3595 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAppMeshProxyConfiguration appMeshProxyConfiguration = AppMeshProxyConfiguration.Builder.create()\n .containerName(\"containerName\")\n .properties(AppMeshProxyConfigurationProps.builder()\n .appPorts(List.of(123))\n .proxyEgressPort(123)\n .proxyIngressPort(123)\n\n // the properties below are optional\n .egressIgnoredIPs(List.of(\"egressIgnoredIPs\"))\n .egressIgnoredPorts(List.of(123))\n .ignoredGID(123)\n .ignoredUID(123)\n .build())\n .build();",
3596 "version": "1"
3597 },
3598 "go": {
3599 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nappMeshProxyConfiguration := ecs.NewAppMeshProxyConfiguration(&appMeshProxyConfigurationConfigProps{\n\tcontainerName: jsii.String(\"containerName\"),\n\tproperties: &appMeshProxyConfigurationProps{\n\t\tappPorts: []*f64{\n\t\t\tjsii.Number(123),\n\t\t},\n\t\tproxyEgressPort: jsii.Number(123),\n\t\tproxyIngressPort: jsii.Number(123),\n\n\t\t// the properties below are optional\n\t\tegressIgnoredIPs: []*string{\n\t\t\tjsii.String(\"egressIgnoredIPs\"),\n\t\t},\n\t\tegressIgnoredPorts: []*f64{\n\t\t\tjsii.Number(123),\n\t\t},\n\t\tignoredGID: jsii.Number(123),\n\t\tignoredUID: jsii.Number(123),\n\t},\n})",
3600 "version": "1"
3601 },
3602 "$": {
3603 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst appMeshProxyConfiguration = new ecs.AppMeshProxyConfiguration({\n containerName: 'containerName',\n properties: {\n appPorts: [123],\n proxyEgressPort: 123,\n proxyIngressPort: 123,\n\n // the properties below are optional\n egressIgnoredIPs: ['egressIgnoredIPs'],\n egressIgnoredPorts: [123],\n ignoredGID: 123,\n ignoredUID: 123,\n },\n});",
3604 "version": "0"
3605 }
3606 },
3607 "location": {
3608 "api": {
3609 "api": "type",
3610 "fqn": "@aws-cdk/aws-ecs.AppMeshProxyConfiguration"
3611 },
3612 "field": {
3613 "field": "example"
3614 }
3615 },
3616 "didCompile": true,
3617 "fqnsReferenced": [
3618 "@aws-cdk/aws-ecs.AppMeshProxyConfiguration",
3619 "@aws-cdk/aws-ecs.AppMeshProxyConfigurationConfigProps",
3620 "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
3621 ],
3622 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst appMeshProxyConfiguration = new ecs.AppMeshProxyConfiguration({\n containerName: 'containerName',\n properties: {\n appPorts: [123],\n proxyEgressPort: 123,\n proxyIngressPort: 123,\n\n // the properties below are optional\n egressIgnoredIPs: ['egressIgnoredIPs'],\n egressIgnoredPorts: [123],\n ignoredGID: 123,\n ignoredUID: 123,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3623 "syntaxKindCounter": {
3624 "8": 6,
3625 "10": 3,
3626 "75": 13,
3627 "192": 3,
3628 "193": 2,
3629 "194": 1,
3630 "197": 1,
3631 "225": 1,
3632 "242": 1,
3633 "243": 1,
3634 "254": 1,
3635 "255": 1,
3636 "256": 1,
3637 "281": 9,
3638 "290": 1
3639 },
3640 "fqnsFingerprint": "ecbc62d12bf6685c1619f621c43425918db61bcfac4bd7256adf9704ebf48e52"
3641 },
3642 "0da6a507e5491df2797baea8a3f6553e338c33a5e7e112cd00d8c3e7bc623650": {
3643 "translations": {
3644 "python": {
3645 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\napp_mesh_proxy_configuration_config_props = ecs.AppMeshProxyConfigurationConfigProps(\n container_name=\"containerName\",\n properties=ecs.AppMeshProxyConfigurationProps(\n app_ports=[123],\n proxy_egress_port=123,\n proxy_ingress_port=123,\n\n # the properties below are optional\n egress_ignored_iPs=[\"egressIgnoredIPs\"],\n egress_ignored_ports=[123],\n ignored_gID=123,\n ignored_uID=123\n )\n)",
3646 "version": "2"
3647 },
3648 "csharp": {
3649 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAppMeshProxyConfigurationConfigProps appMeshProxyConfigurationConfigProps = new AppMeshProxyConfigurationConfigProps {\n ContainerName = \"containerName\",\n Properties = new AppMeshProxyConfigurationProps {\n AppPorts = new [] { 123 },\n ProxyEgressPort = 123,\n ProxyIngressPort = 123,\n\n // the properties below are optional\n EgressIgnoredIPs = new [] { \"egressIgnoredIPs\" },\n EgressIgnoredPorts = new [] { 123 },\n IgnoredGID = 123,\n IgnoredUID = 123\n }\n};",
3650 "version": "1"
3651 },
3652 "java": {
3653 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAppMeshProxyConfigurationConfigProps appMeshProxyConfigurationConfigProps = AppMeshProxyConfigurationConfigProps.builder()\n .containerName(\"containerName\")\n .properties(AppMeshProxyConfigurationProps.builder()\n .appPorts(List.of(123))\n .proxyEgressPort(123)\n .proxyIngressPort(123)\n\n // the properties below are optional\n .egressIgnoredIPs(List.of(\"egressIgnoredIPs\"))\n .egressIgnoredPorts(List.of(123))\n .ignoredGID(123)\n .ignoredUID(123)\n .build())\n .build();",
3654 "version": "1"
3655 },
3656 "go": {
3657 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nappMeshProxyConfigurationConfigProps := &appMeshProxyConfigurationConfigProps{\n\tcontainerName: jsii.String(\"containerName\"),\n\tproperties: &appMeshProxyConfigurationProps{\n\t\tappPorts: []*f64{\n\t\t\tjsii.Number(123),\n\t\t},\n\t\tproxyEgressPort: jsii.Number(123),\n\t\tproxyIngressPort: jsii.Number(123),\n\n\t\t// the properties below are optional\n\t\tegressIgnoredIPs: []*string{\n\t\t\tjsii.String(\"egressIgnoredIPs\"),\n\t\t},\n\t\tegressIgnoredPorts: []*f64{\n\t\t\tjsii.Number(123),\n\t\t},\n\t\tignoredGID: jsii.Number(123),\n\t\tignoredUID: jsii.Number(123),\n\t},\n}",
3658 "version": "1"
3659 },
3660 "$": {
3661 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst appMeshProxyConfigurationConfigProps: ecs.AppMeshProxyConfigurationConfigProps = {\n containerName: 'containerName',\n properties: {\n appPorts: [123],\n proxyEgressPort: 123,\n proxyIngressPort: 123,\n\n // the properties below are optional\n egressIgnoredIPs: ['egressIgnoredIPs'],\n egressIgnoredPorts: [123],\n ignoredGID: 123,\n ignoredUID: 123,\n },\n};",
3662 "version": "0"
3663 }
3664 },
3665 "location": {
3666 "api": {
3667 "api": "type",
3668 "fqn": "@aws-cdk/aws-ecs.AppMeshProxyConfigurationConfigProps"
3669 },
3670 "field": {
3671 "field": "example"
3672 }
3673 },
3674 "didCompile": true,
3675 "fqnsReferenced": [
3676 "@aws-cdk/aws-ecs.AppMeshProxyConfigurationConfigProps",
3677 "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
3678 ],
3679 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst appMeshProxyConfigurationConfigProps: ecs.AppMeshProxyConfigurationConfigProps = {\n containerName: 'containerName',\n properties: {\n appPorts: [123],\n proxyEgressPort: 123,\n proxyIngressPort: 123,\n\n // the properties below are optional\n egressIgnoredIPs: ['egressIgnoredIPs'],\n egressIgnoredPorts: [123],\n ignoredGID: 123,\n ignoredUID: 123,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3680 "syntaxKindCounter": {
3681 "8": 6,
3682 "10": 3,
3683 "75": 13,
3684 "153": 1,
3685 "169": 1,
3686 "192": 3,
3687 "193": 2,
3688 "225": 1,
3689 "242": 1,
3690 "243": 1,
3691 "254": 1,
3692 "255": 1,
3693 "256": 1,
3694 "281": 9,
3695 "290": 1
3696 },
3697 "fqnsFingerprint": "5d4c50129b8a0ce25dc0032795751b9e4e417078fde2c3274c09b9562f4d5ac1"
3698 },
3699 "a0643f72e7bd39ba4512cbd98813f02a7744534165a7e9dde564789d26520e73": {
3700 "translations": {
3701 "python": {
3702 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\napp_mesh_proxy_configuration_props = ecs.AppMeshProxyConfigurationProps(\n app_ports=[123],\n proxy_egress_port=123,\n proxy_ingress_port=123,\n\n # the properties below are optional\n egress_ignored_iPs=[\"egressIgnoredIPs\"],\n egress_ignored_ports=[123],\n ignored_gID=123,\n ignored_uID=123\n)",
3703 "version": "2"
3704 },
3705 "csharp": {
3706 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAppMeshProxyConfigurationProps appMeshProxyConfigurationProps = new AppMeshProxyConfigurationProps {\n AppPorts = new [] { 123 },\n ProxyEgressPort = 123,\n ProxyIngressPort = 123,\n\n // the properties below are optional\n EgressIgnoredIPs = new [] { \"egressIgnoredIPs\" },\n EgressIgnoredPorts = new [] { 123 },\n IgnoredGID = 123,\n IgnoredUID = 123\n};",
3707 "version": "1"
3708 },
3709 "java": {
3710 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAppMeshProxyConfigurationProps appMeshProxyConfigurationProps = AppMeshProxyConfigurationProps.builder()\n .appPorts(List.of(123))\n .proxyEgressPort(123)\n .proxyIngressPort(123)\n\n // the properties below are optional\n .egressIgnoredIPs(List.of(\"egressIgnoredIPs\"))\n .egressIgnoredPorts(List.of(123))\n .ignoredGID(123)\n .ignoredUID(123)\n .build();",
3711 "version": "1"
3712 },
3713 "go": {
3714 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nappMeshProxyConfigurationProps := &appMeshProxyConfigurationProps{\n\tappPorts: []*f64{\n\t\tjsii.Number(123),\n\t},\n\tproxyEgressPort: jsii.Number(123),\n\tproxyIngressPort: jsii.Number(123),\n\n\t// the properties below are optional\n\tegressIgnoredIPs: []*string{\n\t\tjsii.String(\"egressIgnoredIPs\"),\n\t},\n\tegressIgnoredPorts: []*f64{\n\t\tjsii.Number(123),\n\t},\n\tignoredGID: jsii.Number(123),\n\tignoredUID: jsii.Number(123),\n}",
3715 "version": "1"
3716 },
3717 "$": {
3718 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst appMeshProxyConfigurationProps: ecs.AppMeshProxyConfigurationProps = {\n appPorts: [123],\n proxyEgressPort: 123,\n proxyIngressPort: 123,\n\n // the properties below are optional\n egressIgnoredIPs: ['egressIgnoredIPs'],\n egressIgnoredPorts: [123],\n ignoredGID: 123,\n ignoredUID: 123,\n};",
3719 "version": "0"
3720 }
3721 },
3722 "location": {
3723 "api": {
3724 "api": "type",
3725 "fqn": "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
3726 },
3727 "field": {
3728 "field": "example"
3729 }
3730 },
3731 "didCompile": true,
3732 "fqnsReferenced": [
3733 "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
3734 ],
3735 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst appMeshProxyConfigurationProps: ecs.AppMeshProxyConfigurationProps = {\n appPorts: [123],\n proxyEgressPort: 123,\n proxyIngressPort: 123,\n\n // the properties below are optional\n egressIgnoredIPs: ['egressIgnoredIPs'],\n egressIgnoredPorts: [123],\n ignoredGID: 123,\n ignoredUID: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3736 "syntaxKindCounter": {
3737 "8": 6,
3738 "10": 2,
3739 "75": 11,
3740 "153": 1,
3741 "169": 1,
3742 "192": 3,
3743 "193": 1,
3744 "225": 1,
3745 "242": 1,
3746 "243": 1,
3747 "254": 1,
3748 "255": 1,
3749 "256": 1,
3750 "281": 7,
3751 "290": 1
3752 },
3753 "fqnsFingerprint": "1127835545fa1d7b9467ba25c26253a8537b641c6a13088bb3f2b877ceb54fc0"
3754 },
3755 "a7dfa29e432c9b7a6581638612d57b86de1101373499f0392aadb66afa478c43": {
3756 "translations": {
3757 "python": {
3758 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.micro\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux2(),\n min_capacity=0,\n max_capacity=100\n)\n\ncapacity_provider = ecs.AsgCapacityProvider(self, \"AsgCapacityProvider\",\n auto_scaling_group=auto_scaling_group\n)\ncluster.add_asg_capacity_provider(capacity_provider)\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"web\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_reservation_mi_b=256\n)\n\necs.Ec2Service(self, \"EC2Service\",\n cluster=cluster,\n task_definition=task_definition,\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=capacity_provider.capacity_provider_name,\n weight=1\n )\n ]\n)",
3759 "version": "2"
3760 },
3761 "csharp": {
3762 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.micro\"),\n MachineImage = EcsOptimizedImage.AmazonLinux2(),\n MinCapacity = 0,\n MaxCapacity = 100\n});\n\nAsgCapacityProvider capacityProvider = new AsgCapacityProvider(this, \"AsgCapacityProvider\", new AsgCapacityProviderProps {\n AutoScalingGroup = autoScalingGroup\n});\ncluster.AddAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"web\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryReservationMiB = 256\n});\n\nnew Ec2Service(this, \"EC2Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = capacityProvider.CapacityProviderName,\n Weight = 1\n } }\n});",
3763 "version": "1"
3764 },
3765 "java": {
3766 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.micro\"))\n .machineImage(EcsOptimizedImage.amazonLinux2())\n .minCapacity(0)\n .maxCapacity(100)\n .build();\n\nAsgCapacityProvider capacityProvider = AsgCapacityProvider.Builder.create(this, \"AsgCapacityProvider\")\n .autoScalingGroup(autoScalingGroup)\n .build();\ncluster.addAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"web\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryReservationMiB(256)\n .build());\n\nEc2Service.Builder.create(this, \"EC2Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(capacityProvider.getCapacityProviderName())\n .weight(1)\n .build()))\n .build();",
3767 "version": "1"
3768 },
3769 "go": {
3770 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux2(),\n\tminCapacity: jsii.Number(0),\n\tmaxCapacity: jsii.Number(100),\n})\n\ncapacityProvider := ecs.NewAsgCapacityProvider(this, jsii.String(\"AsgCapacityProvider\"), &asgCapacityProviderProps{\n\tautoScalingGroup: autoScalingGroup,\n})\ncluster.addAsgCapacityProvider(capacityProvider)\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"web\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryReservationMiB: jsii.Number(256),\n})\n\necs.NewEc2Service(this, jsii.String(\"EC2Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: capacityProvider.capacityProviderName,\n\t\t\tweight: jsii.Number(1),\n\t\t},\n\t},\n})",
3771 "version": "1"
3772 },
3773 "$": {
3774 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});",
3775 "version": "0"
3776 }
3777 },
3778 "location": {
3779 "api": {
3780 "api": "type",
3781 "fqn": "@aws-cdk/aws-ecs.AsgCapacityProvider"
3782 },
3783 "field": {
3784 "field": "example"
3785 }
3786 },
3787 "didCompile": true,
3788 "fqnsReferenced": [
3789 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
3790 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
3791 "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
3792 "@aws-cdk/aws-ec2.IMachineImage",
3793 "@aws-cdk/aws-ec2.IVpc",
3794 "@aws-cdk/aws-ec2.InstanceType",
3795 "@aws-cdk/aws-ecs.AsgCapacityProvider",
3796 "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
3797 "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
3798 "@aws-cdk/aws-ecs.Cluster",
3799 "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
3800 "@aws-cdk/aws-ecs.ClusterProps",
3801 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
3802 "@aws-cdk/aws-ecs.ContainerImage",
3803 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
3804 "@aws-cdk/aws-ecs.Ec2Service",
3805 "@aws-cdk/aws-ecs.Ec2ServiceProps",
3806 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
3807 "@aws-cdk/aws-ecs.EcsOptimizedImage",
3808 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
3809 "@aws-cdk/aws-ecs.ICluster",
3810 "@aws-cdk/aws-ecs.TaskDefinition",
3811 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
3812 "constructs.Construct"
3813 ],
3814 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3815 "syntaxKindCounter": {
3816 "8": 4,
3817 "10": 8,
3818 "75": 46,
3819 "104": 5,
3820 "130": 1,
3821 "153": 1,
3822 "169": 1,
3823 "192": 1,
3824 "193": 6,
3825 "194": 13,
3826 "196": 4,
3827 "197": 6,
3828 "225": 5,
3829 "226": 3,
3830 "242": 5,
3831 "243": 5,
3832 "281": 9,
3833 "282": 5,
3834 "290": 1
3835 },
3836 "fqnsFingerprint": "6dce71b202240df801b09aa15a7a4a07a0308f946fe9ea27bebc2976a9a7e9d1"
3837 },
3838 "f670b139abc65c03ef49541ebf0c2952251cfa013498bdbc97068ead0f59f901": {
3839 "translations": {
3840 "python": {
3841 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.micro\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux2(),\n min_capacity=0,\n max_capacity=100\n)\n\ncapacity_provider = ecs.AsgCapacityProvider(self, \"AsgCapacityProvider\",\n auto_scaling_group=auto_scaling_group\n)\ncluster.add_asg_capacity_provider(capacity_provider)\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"web\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_reservation_mi_b=256\n)\n\necs.Ec2Service(self, \"EC2Service\",\n cluster=cluster,\n task_definition=task_definition,\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=capacity_provider.capacity_provider_name,\n weight=1\n )\n ]\n)",
3842 "version": "2"
3843 },
3844 "csharp": {
3845 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.micro\"),\n MachineImage = EcsOptimizedImage.AmazonLinux2(),\n MinCapacity = 0,\n MaxCapacity = 100\n});\n\nAsgCapacityProvider capacityProvider = new AsgCapacityProvider(this, \"AsgCapacityProvider\", new AsgCapacityProviderProps {\n AutoScalingGroup = autoScalingGroup\n});\ncluster.AddAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"web\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryReservationMiB = 256\n});\n\nnew Ec2Service(this, \"EC2Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = capacityProvider.CapacityProviderName,\n Weight = 1\n } }\n});",
3846 "version": "1"
3847 },
3848 "java": {
3849 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.micro\"))\n .machineImage(EcsOptimizedImage.amazonLinux2())\n .minCapacity(0)\n .maxCapacity(100)\n .build();\n\nAsgCapacityProvider capacityProvider = AsgCapacityProvider.Builder.create(this, \"AsgCapacityProvider\")\n .autoScalingGroup(autoScalingGroup)\n .build();\ncluster.addAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"web\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryReservationMiB(256)\n .build());\n\nEc2Service.Builder.create(this, \"EC2Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(capacityProvider.getCapacityProviderName())\n .weight(1)\n .build()))\n .build();",
3850 "version": "1"
3851 },
3852 "go": {
3853 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux2(),\n\tminCapacity: jsii.Number(0),\n\tmaxCapacity: jsii.Number(100),\n})\n\ncapacityProvider := ecs.NewAsgCapacityProvider(this, jsii.String(\"AsgCapacityProvider\"), &asgCapacityProviderProps{\n\tautoScalingGroup: autoScalingGroup,\n})\ncluster.addAsgCapacityProvider(capacityProvider)\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"web\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryReservationMiB: jsii.Number(256),\n})\n\necs.NewEc2Service(this, jsii.String(\"EC2Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: capacityProvider.capacityProviderName,\n\t\t\tweight: jsii.Number(1),\n\t\t},\n\t},\n})",
3854 "version": "1"
3855 },
3856 "$": {
3857 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});",
3858 "version": "0"
3859 }
3860 },
3861 "location": {
3862 "api": {
3863 "api": "type",
3864 "fqn": "@aws-cdk/aws-ecs.AsgCapacityProviderProps"
3865 },
3866 "field": {
3867 "field": "example"
3868 }
3869 },
3870 "didCompile": true,
3871 "fqnsReferenced": [
3872 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
3873 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
3874 "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
3875 "@aws-cdk/aws-ec2.IMachineImage",
3876 "@aws-cdk/aws-ec2.IVpc",
3877 "@aws-cdk/aws-ec2.InstanceType",
3878 "@aws-cdk/aws-ecs.AsgCapacityProvider",
3879 "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
3880 "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
3881 "@aws-cdk/aws-ecs.Cluster",
3882 "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
3883 "@aws-cdk/aws-ecs.ClusterProps",
3884 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
3885 "@aws-cdk/aws-ecs.ContainerImage",
3886 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
3887 "@aws-cdk/aws-ecs.Ec2Service",
3888 "@aws-cdk/aws-ecs.Ec2ServiceProps",
3889 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
3890 "@aws-cdk/aws-ecs.EcsOptimizedImage",
3891 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
3892 "@aws-cdk/aws-ecs.ICluster",
3893 "@aws-cdk/aws-ecs.TaskDefinition",
3894 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
3895 "constructs.Construct"
3896 ],
3897 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3898 "syntaxKindCounter": {
3899 "8": 4,
3900 "10": 8,
3901 "75": 46,
3902 "104": 5,
3903 "130": 1,
3904 "153": 1,
3905 "169": 1,
3906 "192": 1,
3907 "193": 6,
3908 "194": 13,
3909 "196": 4,
3910 "197": 6,
3911 "225": 5,
3912 "226": 3,
3913 "242": 5,
3914 "243": 5,
3915 "281": 9,
3916 "282": 5,
3917 "290": 1
3918 },
3919 "fqnsFingerprint": "6dce71b202240df801b09aa15a7a4a07a0308f946fe9ea27bebc2976a9a7e9d1"
3920 },
3921 "b428e8daceaa64e0c853a2703644da9a61da01266fb48d2eaf26b0d249a5b7ed": {
3922 "translations": {
3923 "python": {
3924 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.assets as assets\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# docker_image: cdk.DockerImage\n# grantable: iam.IGrantable\n# local_bundling: cdk.ILocalBundling\n\nasset_environment_file = ecs.AssetEnvironmentFile(\"path\",\n asset_hash=\"assetHash\",\n asset_hash_type=cdk.AssetHashType.SOURCE,\n bundling=cdk.BundlingOptions(\n image=docker_image,\n\n # the properties below are optional\n command=[\"command\"],\n entrypoint=[\"entrypoint\"],\n environment={\n \"environment_key\": \"environment\"\n },\n local=local_bundling,\n output_type=cdk.BundlingOutput.ARCHIVED,\n security_opt=\"securityOpt\",\n user=\"user\",\n volumes=[cdk.DockerVolume(\n container_path=\"containerPath\",\n host_path=\"hostPath\",\n\n # the properties below are optional\n consistency=cdk.DockerVolumeConsistency.CONSISTENT\n )],\n working_directory=\"workingDirectory\"\n ),\n exclude=[\"exclude\"],\n follow=assets.FollowMode.NEVER,\n follow_symlinks=cdk.SymlinkFollowMode.NEVER,\n ignore_mode=cdk.IgnoreMode.GLOB,\n readers=[grantable],\n source_hash=\"sourceHash\"\n)",
3925 "version": "2"
3926 },
3927 "csharp": {
3928 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.Assets;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nDockerImage dockerImage;\nIGrantable grantable;\nILocalBundling localBundling;\nAssetEnvironmentFile assetEnvironmentFile = new AssetEnvironmentFile(\"path\", new AssetOptions {\n AssetHash = \"assetHash\",\n AssetHashType = AssetHashType.SOURCE,\n Bundling = new BundlingOptions {\n Image = dockerImage,\n\n // the properties below are optional\n Command = new [] { \"command\" },\n Entrypoint = new [] { \"entrypoint\" },\n Environment = new Dictionary<string, string> {\n { \"environmentKey\", \"environment\" }\n },\n Local = localBundling,\n OutputType = BundlingOutput.ARCHIVED,\n SecurityOpt = \"securityOpt\",\n User = \"user\",\n Volumes = new [] { new DockerVolume {\n ContainerPath = \"containerPath\",\n HostPath = \"hostPath\",\n\n // the properties below are optional\n Consistency = DockerVolumeConsistency.CONSISTENT\n } },\n WorkingDirectory = \"workingDirectory\"\n },\n Exclude = new [] { \"exclude\" },\n Follow = FollowMode.NEVER,\n FollowSymlinks = SymlinkFollowMode.NEVER,\n IgnoreMode = IgnoreMode.GLOB,\n Readers = new [] { grantable },\n SourceHash = \"sourceHash\"\n});",
3929 "version": "1"
3930 },
3931 "java": {
3932 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.assets.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nDockerImage dockerImage;\nIGrantable grantable;\nILocalBundling localBundling;\n\nAssetEnvironmentFile assetEnvironmentFile = AssetEnvironmentFile.Builder.create(\"path\")\n .assetHash(\"assetHash\")\n .assetHashType(AssetHashType.SOURCE)\n .bundling(BundlingOptions.builder()\n .image(dockerImage)\n\n // the properties below are optional\n .command(List.of(\"command\"))\n .entrypoint(List.of(\"entrypoint\"))\n .environment(Map.of(\n \"environmentKey\", \"environment\"))\n .local(localBundling)\n .outputType(BundlingOutput.ARCHIVED)\n .securityOpt(\"securityOpt\")\n .user(\"user\")\n .volumes(List.of(DockerVolume.builder()\n .containerPath(\"containerPath\")\n .hostPath(\"hostPath\")\n\n // the properties below are optional\n .consistency(DockerVolumeConsistency.CONSISTENT)\n .build()))\n .workingDirectory(\"workingDirectory\")\n .build())\n .exclude(List.of(\"exclude\"))\n .follow(FollowMode.NEVER)\n .followSymlinks(SymlinkFollowMode.NEVER)\n .ignoreMode(IgnoreMode.GLOB)\n .readers(List.of(grantable))\n .sourceHash(\"sourceHash\")\n .build();",
3933 "version": "1"
3934 },
3935 "go": {
3936 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport assets \"github.com/aws-samples/dummy/awscdkassets\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar dockerImage dockerImage\nvar grantable iGrantable\nvar localBundling iLocalBundling\n\nassetEnvironmentFile := ecs.NewAssetEnvironmentFile(jsii.String(\"path\"), &assetOptions{\n\tassetHash: jsii.String(\"assetHash\"),\n\tassetHashType: cdk.assetHashType_SOURCE,\n\tbundling: &bundlingOptions{\n\t\timage: dockerImage,\n\n\t\t// the properties below are optional\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"command\"),\n\t\t},\n\t\tentrypoint: []*string{\n\t\t\tjsii.String(\"entrypoint\"),\n\t\t},\n\t\tenvironment: map[string]*string{\n\t\t\t\"environmentKey\": jsii.String(\"environment\"),\n\t\t},\n\t\tlocal: localBundling,\n\t\toutputType: cdk.bundlingOutput_ARCHIVED,\n\t\tsecurityOpt: jsii.String(\"securityOpt\"),\n\t\tuser: jsii.String(\"user\"),\n\t\tvolumes: []dockerVolume{\n\t\t\t&dockerVolume{\n\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\thostPath: jsii.String(\"hostPath\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tconsistency: cdk.dockerVolumeConsistency_CONSISTENT,\n\t\t\t},\n\t\t},\n\t\tworkingDirectory: jsii.String(\"workingDirectory\"),\n\t},\n\texclude: []*string{\n\t\tjsii.String(\"exclude\"),\n\t},\n\tfollow: assets.followMode_NEVER,\n\tfollowSymlinks: cdk.symlinkFollowMode_NEVER,\n\tignoreMode: cdk.ignoreMode_GLOB,\n\treaders: []*iGrantable{\n\t\tgrantable,\n\t},\n\tsourceHash: jsii.String(\"sourceHash\"),\n})",
3937 "version": "1"
3938 },
3939 "$": {
3940 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as assets from '@aws-cdk/assets';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const dockerImage: cdk.DockerImage;\ndeclare const grantable: iam.IGrantable;\ndeclare const localBundling: cdk.ILocalBundling;\nconst assetEnvironmentFile = new ecs.AssetEnvironmentFile('path', /* all optional props */ {\n assetHash: 'assetHash',\n assetHashType: cdk.AssetHashType.SOURCE,\n bundling: {\n image: dockerImage,\n\n // the properties below are optional\n command: ['command'],\n entrypoint: ['entrypoint'],\n environment: {\n environmentKey: 'environment',\n },\n local: localBundling,\n outputType: cdk.BundlingOutput.ARCHIVED,\n securityOpt: 'securityOpt',\n user: 'user',\n volumes: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n\n // the properties below are optional\n consistency: cdk.DockerVolumeConsistency.CONSISTENT,\n }],\n workingDirectory: 'workingDirectory',\n },\n exclude: ['exclude'],\n follow: assets.FollowMode.NEVER,\n followSymlinks: cdk.SymlinkFollowMode.NEVER,\n ignoreMode: cdk.IgnoreMode.GLOB,\n readers: [grantable],\n sourceHash: 'sourceHash',\n});",
3941 "version": "0"
3942 }
3943 },
3944 "location": {
3945 "api": {
3946 "api": "type",
3947 "fqn": "@aws-cdk/aws-ecs.AssetEnvironmentFile"
3948 },
3949 "field": {
3950 "field": "example"
3951 }
3952 },
3953 "didCompile": true,
3954 "fqnsReferenced": [
3955 "@aws-cdk/assets.FollowMode",
3956 "@aws-cdk/assets.FollowMode#NEVER",
3957 "@aws-cdk/aws-ecs.AssetEnvironmentFile",
3958 "@aws-cdk/aws-s3-assets.AssetOptions",
3959 "@aws-cdk/core.AssetHashType",
3960 "@aws-cdk/core.AssetHashType#SOURCE",
3961 "@aws-cdk/core.BundlingOptions",
3962 "@aws-cdk/core.BundlingOutput",
3963 "@aws-cdk/core.BundlingOutput#ARCHIVED",
3964 "@aws-cdk/core.DockerImage",
3965 "@aws-cdk/core.DockerVolumeConsistency",
3966 "@aws-cdk/core.DockerVolumeConsistency#CONSISTENT",
3967 "@aws-cdk/core.ILocalBundling",
3968 "@aws-cdk/core.IgnoreMode",
3969 "@aws-cdk/core.IgnoreMode#GLOB",
3970 "@aws-cdk/core.SymlinkFollowMode",
3971 "@aws-cdk/core.SymlinkFollowMode#NEVER"
3972 ],
3973 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as assets from '@aws-cdk/assets';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const dockerImage: cdk.DockerImage;\ndeclare const grantable: iam.IGrantable;\ndeclare const localBundling: cdk.ILocalBundling;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst assetEnvironmentFile = new ecs.AssetEnvironmentFile('path', /* all optional props */ {\n assetHash: 'assetHash',\n assetHashType: cdk.AssetHashType.SOURCE,\n bundling: {\n image: dockerImage,\n\n // the properties below are optional\n command: ['command'],\n entrypoint: ['entrypoint'],\n environment: {\n environmentKey: 'environment',\n },\n local: localBundling,\n outputType: cdk.BundlingOutput.ARCHIVED,\n securityOpt: 'securityOpt',\n user: 'user',\n volumes: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n\n // the properties below are optional\n consistency: cdk.DockerVolumeConsistency.CONSISTENT,\n }],\n workingDirectory: 'workingDirectory',\n },\n exclude: ['exclude'],\n follow: assets.FollowMode.NEVER,\n followSymlinks: cdk.SymlinkFollowMode.NEVER,\n ignoreMode: cdk.IgnoreMode.GLOB,\n readers: [grantable],\n sourceHash: 'sourceHash',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3974 "syntaxKindCounter": {
3975 "10": 16,
3976 "75": 60,
3977 "130": 3,
3978 "153": 3,
3979 "169": 3,
3980 "192": 5,
3981 "193": 4,
3982 "194": 13,
3983 "197": 1,
3984 "225": 4,
3985 "242": 4,
3986 "243": 4,
3987 "254": 4,
3988 "255": 4,
3989 "256": 4,
3990 "281": 23,
3991 "290": 1
3992 },
3993 "fqnsFingerprint": "753d3f13cbe92dace98b11dd177d57b59fb429eee976616fd2c38ca3a60acc97"
3994 },
3995 "e7439394de35cce6b16f6d6726dbd62ebe919331dc2c6d8090bdd27c21888f9c": {
3996 "translations": {
3997 "python": {
3998 "source": "from aws_cdk.core import App, Stack\nimport aws_cdk.aws_ec2 as ec2\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_ecs_patterns as ecs_patterns\nimport aws_cdk.cx_api as cxapi\nimport path as path\n\napp = App()\n\nstack = Stack(app, \"aws-ecs-patterns-queue\")\nstack.node.set_context(cxapi.ECS_REMOVE_DEFAULT_DESIRED_COUNT, True)\n\nvpc = ec2.Vpc(stack, \"VPC\",\n max_azs=2\n)\n\necs_patterns.QueueProcessingFargateService(stack, \"QueueProcessingService\",\n vpc=vpc,\n memory_limit_mi_b=512,\n image=ecs.AssetImage(path.join(__dirname, \"..\", \"sqs-reader\"))\n)",
3999 "version": "2"
4000 },
4001 "csharp": {
4002 "source": "using Amazon.CDK;\nusing Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.ECS.Patterns;\nusing Amazon.CDK.CXAPI;\nusing Path;\n\nApp app = new App();\n\nStack stack = new Stack(app, \"aws-ecs-patterns-queue\");\nstack.Node.SetContext(ECS_REMOVE_DEFAULT_DESIRED_COUNT, true);\n\nVpc vpc = new Vpc(stack, \"VPC\", new VpcProps {\n MaxAzs = 2\n});\n\nnew QueueProcessingFargateService(stack, \"QueueProcessingService\", new QueueProcessingFargateServiceProps {\n Vpc = vpc,\n MemoryLimitMiB = 512,\n Image = new AssetImage(Join(__dirname, \"..\", \"sqs-reader\"))\n});",
4003 "version": "1"
4004 },
4005 "java": {
4006 "source": "import software.amazon.awscdk.core.App;\nimport software.amazon.awscdk.core.Stack;\nimport software.amazon.awscdk.services.ec2.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.ecs.patterns.*;\nimport software.amazon.awscdk.cxapi.*;\nimport path.*;\n\nApp app = new App();\n\nStack stack = new Stack(app, \"aws-ecs-patterns-queue\");\nstack.node.setContext(ECS_REMOVE_DEFAULT_DESIRED_COUNT, true);\n\nVpc vpc = Vpc.Builder.create(stack, \"VPC\")\n .maxAzs(2)\n .build();\n\nQueueProcessingFargateService.Builder.create(stack, \"QueueProcessingService\")\n .vpc(vpc)\n .memoryLimitMiB(512)\n .image(new AssetImage(join(__dirname, \"..\", \"sqs-reader\")))\n .build();",
4007 "version": "1"
4008 },
4009 "go": {
4010 "source": "import \"github.com/aws-samples/dummy/awscdkcore\"\nimport ec2 \"github.com/aws-samples/dummy/awscdkawsec2\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport ecsPatterns \"github.com/aws-samples/dummy/awscdkawsecspatterns\"\nimport cxapi \"github.com/aws-samples/dummy/awscdkcxapi\"\nimport path \"github.com/aws-samples/dummy/path\"\n\napp := awscdkcore.NewApp()\n\nstack := awscdkcore.NewStack(app, jsii.String(\"aws-ecs-patterns-queue\"))\nstack.node.setContext(cxapi.eCS_REMOVE_DEFAULT_DESIRED_COUNT, jsii.Boolean(true))\n\nvpc := ec2.NewVpc(stack, jsii.String(\"VPC\"), &vpcProps{\n\tmaxAzs: jsii.Number(2),\n})\n\necsPatterns.NewQueueProcessingFargateService(stack, jsii.String(\"QueueProcessingService\"), &queueProcessingFargateServiceProps{\n\tvpc: vpc,\n\tmemoryLimitMiB: jsii.Number(512),\n\timage: ecs.NewAssetImage(path.join(__dirname, jsii.String(\"..\"), jsii.String(\"sqs-reader\"))),\n})",
4011 "version": "1"
4012 },
4013 "$": {
4014 "source": "import { App, Stack } from '@aws-cdk/core';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as cxapi from '@aws-cdk/cx-api';\nimport * as path from 'path';\n\nconst app = new App();\n\nconst stack = new Stack(app, 'aws-ecs-patterns-queue');\nstack.node.setContext(cxapi.ECS_REMOVE_DEFAULT_DESIRED_COUNT, true);\n\nconst vpc = new ec2.Vpc(stack, 'VPC', {\n maxAzs: 2,\n});\n\nnew ecsPatterns.QueueProcessingFargateService(stack, 'QueueProcessingService', {\n vpc,\n memoryLimitMiB: 512,\n image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')),\n});",
4015 "version": "0"
4016 }
4017 },
4018 "location": {
4019 "api": {
4020 "api": "type",
4021 "fqn": "@aws-cdk/aws-ecs.AssetImage"
4022 },
4023 "field": {
4024 "field": "example"
4025 }
4026 },
4027 "didCompile": true,
4028 "fqnsReferenced": [
4029 "@aws-cdk/aws-ec2.IVpc",
4030 "@aws-cdk/aws-ec2.Vpc",
4031 "@aws-cdk/aws-ec2.VpcProps",
4032 "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateService",
4033 "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateServiceProps",
4034 "@aws-cdk/aws-ecs.AssetImage",
4035 "@aws-cdk/aws-ecs.ContainerImage",
4036 "@aws-cdk/core.App",
4037 "@aws-cdk/core.Construct#node",
4038 "@aws-cdk/core.ConstructNode#setContext",
4039 "@aws-cdk/core.Stack",
4040 "constructs.Construct"
4041 ],
4042 "fullSource": "import { App, Stack } from '@aws-cdk/core';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as cxapi from '@aws-cdk/cx-api';\nimport * as path from 'path';\n\nconst app = new App();\n\nconst stack = new Stack(app, 'aws-ecs-patterns-queue');\nstack.node.setContext(cxapi.ECS_REMOVE_DEFAULT_DESIRED_COUNT, true);\n\nconst vpc = new ec2.Vpc(stack, 'VPC', {\n maxAzs: 2,\n});\n\nnew ecsPatterns.QueueProcessingFargateService(stack, 'QueueProcessingService', {\n vpc,\n memoryLimitMiB: 512,\n image: new ecs.AssetImage(path.join(__dirname, '..', 'sqs-reader')),\n});",
4043 "syntaxKindCounter": {
4044 "8": 2,
4045 "10": 11,
4046 "75": 33,
4047 "106": 1,
4048 "193": 2,
4049 "194": 7,
4050 "196": 2,
4051 "197": 5,
4052 "225": 3,
4053 "226": 2,
4054 "242": 3,
4055 "243": 3,
4056 "254": 6,
4057 "255": 6,
4058 "256": 5,
4059 "257": 1,
4060 "258": 2,
4061 "281": 3,
4062 "282": 1,
4063 "290": 1
4064 },
4065 "fqnsFingerprint": "21fb517dfeb5c4e2959ececd9e8b5aab0b3f2899d43f1821e641ff727117000b"
4066 },
4067 "93aa8ca190fc50a9fb3b67b0549cd8d24a9cd0fa88cab56476a3550f33463950": {
4068 "translations": {
4069 "python": {
4070 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.assets as assets\nimport aws_cdk.aws_ecr_assets as ecr_assets\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# network_mode: ecr_assets.NetworkMode\n\nasset_image_props = ecs.AssetImageProps(\n build_args={\n \"build_args_key\": \"buildArgs\"\n },\n exclude=[\"exclude\"],\n extra_hash=\"extraHash\",\n file=\"file\",\n follow=assets.FollowMode.NEVER,\n follow_symlinks=cdk.SymlinkFollowMode.NEVER,\n ignore_mode=cdk.IgnoreMode.GLOB,\n invalidation=ecr_assets.DockerImageAssetInvalidationOptions(\n build_args=False,\n extra_hash=False,\n file=False,\n network_mode=False,\n repository_name=False,\n target=False\n ),\n network_mode=network_mode,\n repository_name=\"repositoryName\",\n target=\"target\"\n)",
4071 "version": "2"
4072 },
4073 "csharp": {
4074 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.Assets;\nusing Amazon.CDK.AWS.Ecr.Assets;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nNetworkMode networkMode;\nAssetImageProps assetImageProps = new AssetImageProps {\n BuildArgs = new Dictionary<string, string> {\n { \"buildArgsKey\", \"buildArgs\" }\n },\n Exclude = new [] { \"exclude\" },\n ExtraHash = \"extraHash\",\n File = \"file\",\n Follow = FollowMode.NEVER,\n FollowSymlinks = SymlinkFollowMode.NEVER,\n IgnoreMode = IgnoreMode.GLOB,\n Invalidation = new DockerImageAssetInvalidationOptions {\n BuildArgs = false,\n ExtraHash = false,\n File = false,\n NetworkMode = false,\n RepositoryName = false,\n Target = false\n },\n NetworkMode = networkMode,\n RepositoryName = \"repositoryName\",\n Target = \"target\"\n};",
4075 "version": "1"
4076 },
4077 "java": {
4078 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.assets.*;\nimport software.amazon.awscdk.services.ecr.assets.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nNetworkMode networkMode;\n\nAssetImageProps assetImageProps = AssetImageProps.builder()\n .buildArgs(Map.of(\n \"buildArgsKey\", \"buildArgs\"))\n .exclude(List.of(\"exclude\"))\n .extraHash(\"extraHash\")\n .file(\"file\")\n .follow(FollowMode.NEVER)\n .followSymlinks(SymlinkFollowMode.NEVER)\n .ignoreMode(IgnoreMode.GLOB)\n .invalidation(DockerImageAssetInvalidationOptions.builder()\n .buildArgs(false)\n .extraHash(false)\n .file(false)\n .networkMode(false)\n .repositoryName(false)\n .target(false)\n .build())\n .networkMode(networkMode)\n .repositoryName(\"repositoryName\")\n .target(\"target\")\n .build();",
4079 "version": "1"
4080 },
4081 "go": {
4082 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport assets \"github.com/aws-samples/dummy/awscdkassets\"\nimport ecr_assets \"github.com/aws-samples/dummy/awscdkawsecrassets\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar networkMode networkMode\n\nassetImageProps := &assetImageProps{\n\tbuildArgs: map[string]*string{\n\t\t\"buildArgsKey\": jsii.String(\"buildArgs\"),\n\t},\n\texclude: []*string{\n\t\tjsii.String(\"exclude\"),\n\t},\n\textraHash: jsii.String(\"extraHash\"),\n\tfile: jsii.String(\"file\"),\n\tfollow: assets.followMode_NEVER,\n\tfollowSymlinks: cdk.symlinkFollowMode_NEVER,\n\tignoreMode: cdk.ignoreMode_GLOB,\n\tinvalidation: &dockerImageAssetInvalidationOptions{\n\t\tbuildArgs: jsii.Boolean(false),\n\t\textraHash: jsii.Boolean(false),\n\t\tfile: jsii.Boolean(false),\n\t\tnetworkMode: jsii.Boolean(false),\n\t\trepositoryName: jsii.Boolean(false),\n\t\ttarget: jsii.Boolean(false),\n\t},\n\tnetworkMode: networkMode,\n\trepositoryName: jsii.String(\"repositoryName\"),\n\ttarget: jsii.String(\"target\"),\n}",
4083 "version": "1"
4084 },
4085 "$": {
4086 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as assets from '@aws-cdk/assets';\nimport * as ecr_assets from '@aws-cdk/aws-ecr-assets';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const networkMode: ecr_assets.NetworkMode;\nconst assetImageProps: ecs.AssetImageProps = {\n buildArgs: {\n buildArgsKey: 'buildArgs',\n },\n exclude: ['exclude'],\n extraHash: 'extraHash',\n file: 'file',\n follow: assets.FollowMode.NEVER,\n followSymlinks: cdk.SymlinkFollowMode.NEVER,\n ignoreMode: cdk.IgnoreMode.GLOB,\n invalidation: {\n buildArgs: false,\n extraHash: false,\n file: false,\n networkMode: false,\n repositoryName: false,\n target: false,\n },\n networkMode: networkMode,\n repositoryName: 'repositoryName',\n target: 'target',\n};",
4087 "version": "0"
4088 }
4089 },
4090 "location": {
4091 "api": {
4092 "api": "type",
4093 "fqn": "@aws-cdk/aws-ecs.AssetImageProps"
4094 },
4095 "field": {
4096 "field": "example"
4097 }
4098 },
4099 "didCompile": true,
4100 "fqnsReferenced": [
4101 "@aws-cdk/assets.FollowMode",
4102 "@aws-cdk/assets.FollowMode#NEVER",
4103 "@aws-cdk/aws-ecr-assets.DockerImageAssetInvalidationOptions",
4104 "@aws-cdk/aws-ecr-assets.NetworkMode",
4105 "@aws-cdk/aws-ecs.AssetImageProps",
4106 "@aws-cdk/core.IgnoreMode",
4107 "@aws-cdk/core.IgnoreMode#GLOB",
4108 "@aws-cdk/core.SymlinkFollowMode",
4109 "@aws-cdk/core.SymlinkFollowMode#NEVER"
4110 ],
4111 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as assets from '@aws-cdk/assets';\nimport * as ecr_assets from '@aws-cdk/aws-ecr-assets';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const networkMode: ecr_assets.NetworkMode;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst assetImageProps: ecs.AssetImageProps = {\n buildArgs: {\n buildArgsKey: 'buildArgs',\n },\n exclude: ['exclude'],\n extraHash: 'extraHash',\n file: 'file',\n follow: assets.FollowMode.NEVER,\n followSymlinks: cdk.SymlinkFollowMode.NEVER,\n ignoreMode: cdk.IgnoreMode.GLOB,\n invalidation: {\n buildArgs: false,\n extraHash: false,\n file: false,\n networkMode: false,\n repositoryName: false,\n target: false,\n },\n networkMode: networkMode,\n repositoryName: 'repositoryName',\n target: 'target',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4112 "syntaxKindCounter": {
4113 "10": 10,
4114 "75": 38,
4115 "91": 6,
4116 "130": 1,
4117 "153": 2,
4118 "169": 2,
4119 "192": 1,
4120 "193": 3,
4121 "194": 6,
4122 "225": 2,
4123 "242": 2,
4124 "243": 2,
4125 "254": 4,
4126 "255": 4,
4127 "256": 4,
4128 "281": 18,
4129 "290": 1
4130 },
4131 "fqnsFingerprint": "39d9d9a2e8243697f8d113afaa6fb2df441230511e2964ca8762a935a9950292"
4132 },
4133 "975197bb83c6ff3f17853604e44703b2baa9b3ef4a3ca4a70aa977d2e9ab6934": {
4134 "translations": {
4135 "python": {
4136 "source": "# cloud_map_service: cloudmap.Service\n# ecs_service: ecs.FargateService\n\n\necs_service.associate_cloud_map_service(\n service=cloud_map_service\n)",
4137 "version": "2"
4138 },
4139 "csharp": {
4140 "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.AssociateCloudMapService(new AssociateCloudMapServiceOptions {\n Service = cloudMapService\n});",
4141 "version": "1"
4142 },
4143 "java": {
4144 "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.associateCloudMapService(AssociateCloudMapServiceOptions.builder()\n .service(cloudMapService)\n .build());",
4145 "version": "1"
4146 },
4147 "go": {
4148 "source": "var cloudMapService service\nvar ecsService fargateService\n\n\necsService.associateCloudMapService(&associateCloudMapServiceOptions{\n\tservice: cloudMapService,\n})",
4149 "version": "1"
4150 },
4151 "$": {
4152 "source": "declare const cloudMapService: cloudmap.Service;\ndeclare const ecsService: ecs.FargateService;\n\necsService.associateCloudMapService({\n service: cloudMapService,\n});",
4153 "version": "0"
4154 }
4155 },
4156 "location": {
4157 "api": {
4158 "api": "type",
4159 "fqn": "@aws-cdk/aws-ecs.AssociateCloudMapServiceOptions"
4160 },
4161 "field": {
4162 "field": "example"
4163 }
4164 },
4165 "didCompile": true,
4166 "fqnsReferenced": [
4167 "@aws-cdk/aws-ecs.AssociateCloudMapServiceOptions",
4168 "@aws-cdk/aws-ecs.BaseService#associateCloudMapService",
4169 "@aws-cdk/aws-servicediscovery.IService"
4170 ],
4171 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cloudMapService: cloudmap.Service;\ndeclare const ecsService: ecs.FargateService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\necsService.associateCloudMapService({\n service: cloudMapService,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4172 "syntaxKindCounter": {
4173 "75": 10,
4174 "130": 2,
4175 "153": 2,
4176 "169": 2,
4177 "193": 1,
4178 "194": 1,
4179 "196": 1,
4180 "225": 2,
4181 "226": 1,
4182 "242": 2,
4183 "243": 2,
4184 "281": 1,
4185 "290": 1
4186 },
4187 "fqnsFingerprint": "8fbe29aed2465cc222a31477afdd608da435cc99c94efc98fb411b2d7ab6ac39"
4188 },
4189 "cdafd97cd59d0c06e097b88a56ec6f3f09eef6a4136a48cde1fd653a1b9649bd": {
4190 "translations": {
4191 "python": {
4192 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nauthorization_config = ecs.AuthorizationConfig(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n)",
4193 "version": "2"
4194 },
4195 "csharp": {
4196 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAuthorizationConfig authorizationConfig = new AuthorizationConfig {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n};",
4197 "version": "1"
4198 },
4199 "java": {
4200 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAuthorizationConfig authorizationConfig = AuthorizationConfig.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build();",
4201 "version": "1"
4202 },
4203 "go": {
4204 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nauthorizationConfig := &authorizationConfig{\n\taccessPointId: jsii.String(\"accessPointId\"),\n\tiam: jsii.String(\"iam\"),\n}",
4205 "version": "1"
4206 },
4207 "$": {
4208 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst authorizationConfig: ecs.AuthorizationConfig = {\n accessPointId: 'accessPointId',\n iam: 'iam',\n};",
4209 "version": "0"
4210 }
4211 },
4212 "location": {
4213 "api": {
4214 "api": "type",
4215 "fqn": "@aws-cdk/aws-ecs.AuthorizationConfig"
4216 },
4217 "field": {
4218 "field": "example"
4219 }
4220 },
4221 "didCompile": true,
4222 "fqnsReferenced": [
4223 "@aws-cdk/aws-ecs.AuthorizationConfig"
4224 ],
4225 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst authorizationConfig: ecs.AuthorizationConfig = {\n accessPointId: 'accessPointId',\n iam: 'iam',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4226 "syntaxKindCounter": {
4227 "10": 3,
4228 "75": 6,
4229 "153": 1,
4230 "169": 1,
4231 "193": 1,
4232 "225": 1,
4233 "242": 1,
4234 "243": 1,
4235 "254": 1,
4236 "255": 1,
4237 "256": 1,
4238 "281": 2,
4239 "290": 1
4240 },
4241 "fqnsFingerprint": "d85b02e9c3bad0eed6e1a48fbf7f0f08693034fc825b7bd4966ed57c68432f85"
4242 },
4243 "64e34658ac071b0a559a22cf6b5d093afc4efef47f3b62b753bb9381a18052f5": {
4244 "translations": {
4245 "python": {
4246 "source": "# cluster: ecs.Cluster\n\n# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_asset(path.resolve(__dirname, \"..\", \"eventhandler-image\")),\n memory_limit_mi_b=256,\n logging=ecs.AwsLogDriver(stream_prefix=\"EventDemo\", mode=ecs.AwsLogDriverMode.NON_BLOCKING)\n)\n\n# An Rule that describes the event trigger (in this case a scheduled run)\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.expression(\"rate(1 min)\")\n)\n\n# Pass an environment variable to the container 'TheContainer' in the task\nrule.add_target(targets.EcsTask(\n cluster=cluster,\n task_definition=task_definition,\n task_count=1,\n container_overrides=[targets.ContainerOverride(\n container_name=\"TheContainer\",\n environment=[targets.TaskEnvironmentVariable(\n name=\"I_WAS_TRIGGERED\",\n value=\"From CloudWatch Events\"\n )]\n )]\n))",
4247 "version": "2"
4248 },
4249 "csharp": {
4250 "source": "Cluster cluster;\n\n// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromAsset(Resolve(__dirname, \"..\", \"eventhandler-image\")),\n MemoryLimitMiB = 256,\n Logging = new AwsLogDriver(new AwsLogDriverProps { StreamPrefix = \"EventDemo\", Mode = AwsLogDriverMode.NON_BLOCKING })\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Expression(\"rate(1 min)\")\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.AddTarget(new EcsTask(new EcsTaskProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n TaskCount = 1,\n ContainerOverrides = new [] { new ContainerOverride {\n ContainerName = \"TheContainer\",\n Environment = new [] { new TaskEnvironmentVariable {\n Name = \"I_WAS_TRIGGERED\",\n Value = \"From CloudWatch Events\"\n } }\n } }\n}));",
4251 "version": "1"
4252 },
4253 "java": {
4254 "source": "Cluster cluster;\n\n// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromAsset(resolve(__dirname, \"..\", \"eventhandler-image\")))\n .memoryLimitMiB(256)\n .logging(AwsLogDriver.Builder.create().streamPrefix(\"EventDemo\").mode(AwsLogDriverMode.NON_BLOCKING).build())\n .build());\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.expression(\"rate(1 min)\"))\n .build();\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(EcsTask.Builder.create()\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .taskCount(1)\n .containerOverrides(List.of(ContainerOverride.builder()\n .containerName(\"TheContainer\")\n .environment(List.of(TaskEnvironmentVariable.builder()\n .name(\"I_WAS_TRIGGERED\")\n .value(\"From CloudWatch Events\")\n .build()))\n .build()))\n .build());",
4255 "version": "1"
4256 },
4257 "go": {
4258 "source": "var cluster cluster\n\n// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromAsset(path.resolve(__dirname, jsii.String(\"..\"), jsii.String(\"eventhandler-image\"))),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.NewAwsLogDriver(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"EventDemo\"),\n\t\tmode: ecs.awsLogDriverMode_NON_BLOCKING,\n\t}),\n})\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.expression(jsii.String(\"rate(1 min)\")),\n})\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(targets.NewEcsTask(&ecsTaskProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\ttaskCount: jsii.Number(1),\n\tcontainerOverrides: []containerOverride{\n\t\t&containerOverride{\n\t\t\tcontainerName: jsii.String(\"TheContainer\"),\n\t\t\tenvironment: []taskEnvironmentVariable{\n\t\t\t\t&taskEnvironmentVariable{\n\t\t\t\t\tname: jsii.String(\"I_WAS_TRIGGERED\"),\n\t\t\t\t\tvalue: jsii.String(\"From CloudWatch Events\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n}))",
4259 "version": "1"
4260 },
4261 "$": {
4262 "source": "declare const cluster: ecs.Cluster;\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', 'eventhandler-image')),\n memoryLimitMiB: 256,\n logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo', mode: ecs.AwsLogDriverMode.NON_BLOCKING }),\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.expression('rate(1 min)'),\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(new targets.EcsTask({\n cluster,\n taskDefinition,\n taskCount: 1,\n containerOverrides: [{\n containerName: 'TheContainer',\n environment: [{\n name: 'I_WAS_TRIGGERED',\n value: 'From CloudWatch Events'\n }],\n }],\n}));",
4263 "version": "0"
4264 }
4265 },
4266 "location": {
4267 "api": {
4268 "api": "type",
4269 "fqn": "@aws-cdk/aws-ecs.AwsLogDriver"
4270 },
4271 "field": {
4272 "field": "example"
4273 }
4274 },
4275 "didCompile": true,
4276 "fqnsReferenced": [
4277 "@aws-cdk/aws-ecs.AwsLogDriver",
4278 "@aws-cdk/aws-ecs.AwsLogDriverMode",
4279 "@aws-cdk/aws-ecs.AwsLogDriverMode#NON_BLOCKING",
4280 "@aws-cdk/aws-ecs.AwsLogDriverProps",
4281 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
4282 "@aws-cdk/aws-ecs.ContainerImage",
4283 "@aws-cdk/aws-ecs.ContainerImage#fromAsset",
4284 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
4285 "@aws-cdk/aws-ecs.ICluster",
4286 "@aws-cdk/aws-ecs.ITaskDefinition",
4287 "@aws-cdk/aws-ecs.LogDriver",
4288 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
4289 "@aws-cdk/aws-events-targets.EcsTask",
4290 "@aws-cdk/aws-events-targets.EcsTaskProps",
4291 "@aws-cdk/aws-events.IRuleTarget",
4292 "@aws-cdk/aws-events.Rule",
4293 "@aws-cdk/aws-events.Rule#addTarget",
4294 "@aws-cdk/aws-events.RuleProps",
4295 "@aws-cdk/aws-events.Schedule",
4296 "@aws-cdk/aws-events.Schedule#expression",
4297 "constructs.Construct"
4298 ],
4299 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', 'eventhandler-image')),\n memoryLimitMiB: 256,\n logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo', mode: ecs.AwsLogDriverMode.NON_BLOCKING }),\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.expression('rate(1 min)'),\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(new targets.EcsTask({\n cluster,\n taskDefinition,\n taskCount: 1,\n containerOverrides: [{\n containerName: 'TheContainer',\n environment: [{\n name: 'I_WAS_TRIGGERED',\n value: 'From CloudWatch Events'\n }],\n }],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4300 "syntaxKindCounter": {
4301 "8": 2,
4302 "10": 10,
4303 "75": 43,
4304 "104": 2,
4305 "130": 1,
4306 "153": 1,
4307 "169": 1,
4308 "192": 2,
4309 "193": 6,
4310 "194": 13,
4311 "196": 5,
4312 "197": 4,
4313 "225": 3,
4314 "226": 2,
4315 "242": 3,
4316 "243": 3,
4317 "281": 12,
4318 "282": 2,
4319 "290": 1
4320 },
4321 "fqnsFingerprint": "5cdfa7e785e97b528f1a2d2d561f42a6707a9c04fb62dd2978424feee9cdf31f"
4322 },
4323 "5ccb660d129fa97188cd4d5fc28f29fb7954b263e17a981286992298db1f2141": {
4324 "translations": {
4325 "python": {
4326 "source": "# cluster: ecs.Cluster\n\n# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_asset(path.resolve(__dirname, \"..\", \"eventhandler-image\")),\n memory_limit_mi_b=256,\n logging=ecs.AwsLogDriver(stream_prefix=\"EventDemo\", mode=ecs.AwsLogDriverMode.NON_BLOCKING)\n)\n\n# An Rule that describes the event trigger (in this case a scheduled run)\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.expression(\"rate(1 min)\")\n)\n\n# Pass an environment variable to the container 'TheContainer' in the task\nrule.add_target(targets.EcsTask(\n cluster=cluster,\n task_definition=task_definition,\n task_count=1,\n container_overrides=[targets.ContainerOverride(\n container_name=\"TheContainer\",\n environment=[targets.TaskEnvironmentVariable(\n name=\"I_WAS_TRIGGERED\",\n value=\"From CloudWatch Events\"\n )]\n )]\n))",
4327 "version": "2"
4328 },
4329 "csharp": {
4330 "source": "Cluster cluster;\n\n// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromAsset(Resolve(__dirname, \"..\", \"eventhandler-image\")),\n MemoryLimitMiB = 256,\n Logging = new AwsLogDriver(new AwsLogDriverProps { StreamPrefix = \"EventDemo\", Mode = AwsLogDriverMode.NON_BLOCKING })\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Expression(\"rate(1 min)\")\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.AddTarget(new EcsTask(new EcsTaskProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n TaskCount = 1,\n ContainerOverrides = new [] { new ContainerOverride {\n ContainerName = \"TheContainer\",\n Environment = new [] { new TaskEnvironmentVariable {\n Name = \"I_WAS_TRIGGERED\",\n Value = \"From CloudWatch Events\"\n } }\n } }\n}));",
4331 "version": "1"
4332 },
4333 "java": {
4334 "source": "Cluster cluster;\n\n// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromAsset(resolve(__dirname, \"..\", \"eventhandler-image\")))\n .memoryLimitMiB(256)\n .logging(AwsLogDriver.Builder.create().streamPrefix(\"EventDemo\").mode(AwsLogDriverMode.NON_BLOCKING).build())\n .build());\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.expression(\"rate(1 min)\"))\n .build();\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(EcsTask.Builder.create()\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .taskCount(1)\n .containerOverrides(List.of(ContainerOverride.builder()\n .containerName(\"TheContainer\")\n .environment(List.of(TaskEnvironmentVariable.builder()\n .name(\"I_WAS_TRIGGERED\")\n .value(\"From CloudWatch Events\")\n .build()))\n .build()))\n .build());",
4335 "version": "1"
4336 },
4337 "go": {
4338 "source": "var cluster cluster\n\n// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromAsset(path.resolve(__dirname, jsii.String(\"..\"), jsii.String(\"eventhandler-image\"))),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.NewAwsLogDriver(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"EventDemo\"),\n\t\tmode: ecs.awsLogDriverMode_NON_BLOCKING,\n\t}),\n})\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.expression(jsii.String(\"rate(1 min)\")),\n})\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(targets.NewEcsTask(&ecsTaskProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\ttaskCount: jsii.Number(1),\n\tcontainerOverrides: []containerOverride{\n\t\t&containerOverride{\n\t\t\tcontainerName: jsii.String(\"TheContainer\"),\n\t\t\tenvironment: []taskEnvironmentVariable{\n\t\t\t\t&taskEnvironmentVariable{\n\t\t\t\t\tname: jsii.String(\"I_WAS_TRIGGERED\"),\n\t\t\t\t\tvalue: jsii.String(\"From CloudWatch Events\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n}))",
4339 "version": "1"
4340 },
4341 "$": {
4342 "source": "declare const cluster: ecs.Cluster;\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', 'eventhandler-image')),\n memoryLimitMiB: 256,\n logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo', mode: ecs.AwsLogDriverMode.NON_BLOCKING }),\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.expression('rate(1 min)'),\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(new targets.EcsTask({\n cluster,\n taskDefinition,\n taskCount: 1,\n containerOverrides: [{\n containerName: 'TheContainer',\n environment: [{\n name: 'I_WAS_TRIGGERED',\n value: 'From CloudWatch Events'\n }],\n }],\n}));",
4343 "version": "0"
4344 }
4345 },
4346 "location": {
4347 "api": {
4348 "api": "type",
4349 "fqn": "@aws-cdk/aws-ecs.AwsLogDriverMode"
4350 },
4351 "field": {
4352 "field": "example"
4353 }
4354 },
4355 "didCompile": true,
4356 "fqnsReferenced": [
4357 "@aws-cdk/aws-ecs.AwsLogDriver",
4358 "@aws-cdk/aws-ecs.AwsLogDriverMode",
4359 "@aws-cdk/aws-ecs.AwsLogDriverMode#NON_BLOCKING",
4360 "@aws-cdk/aws-ecs.AwsLogDriverProps",
4361 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
4362 "@aws-cdk/aws-ecs.ContainerImage",
4363 "@aws-cdk/aws-ecs.ContainerImage#fromAsset",
4364 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
4365 "@aws-cdk/aws-ecs.ICluster",
4366 "@aws-cdk/aws-ecs.ITaskDefinition",
4367 "@aws-cdk/aws-ecs.LogDriver",
4368 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
4369 "@aws-cdk/aws-events-targets.EcsTask",
4370 "@aws-cdk/aws-events-targets.EcsTaskProps",
4371 "@aws-cdk/aws-events.IRuleTarget",
4372 "@aws-cdk/aws-events.Rule",
4373 "@aws-cdk/aws-events.Rule#addTarget",
4374 "@aws-cdk/aws-events.RuleProps",
4375 "@aws-cdk/aws-events.Schedule",
4376 "@aws-cdk/aws-events.Schedule#expression",
4377 "constructs.Construct"
4378 ],
4379 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromAsset(path.resolve(__dirname, '..', 'eventhandler-image')),\n memoryLimitMiB: 256,\n logging: new ecs.AwsLogDriver({ streamPrefix: 'EventDemo', mode: ecs.AwsLogDriverMode.NON_BLOCKING }),\n});\n\n// An Rule that describes the event trigger (in this case a scheduled run)\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.expression('rate(1 min)'),\n});\n\n// Pass an environment variable to the container 'TheContainer' in the task\nrule.addTarget(new targets.EcsTask({\n cluster,\n taskDefinition,\n taskCount: 1,\n containerOverrides: [{\n containerName: 'TheContainer',\n environment: [{\n name: 'I_WAS_TRIGGERED',\n value: 'From CloudWatch Events'\n }],\n }],\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4380 "syntaxKindCounter": {
4381 "8": 2,
4382 "10": 10,
4383 "75": 43,
4384 "104": 2,
4385 "130": 1,
4386 "153": 1,
4387 "169": 1,
4388 "192": 2,
4389 "193": 6,
4390 "194": 13,
4391 "196": 5,
4392 "197": 4,
4393 "225": 3,
4394 "226": 2,
4395 "242": 3,
4396 "243": 3,
4397 "281": 12,
4398 "282": 2,
4399 "290": 1
4400 },
4401 "fqnsFingerprint": "5cdfa7e785e97b528f1a2d2d561f42a6707a9c04fb62dd2978424feee9cdf31f"
4402 },
4403 "ec3d1d5e381eef3229364ab7c22acea4b49efce7e50cf5831962e59884810ae0": {
4404 "translations": {
4405 "python": {
4406 "source": "# Create a Task Definition for the Windows container to start\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n runtime_platform=ecs.RuntimePlatform(\n operating_system_family=ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpu_architecture=ecs.CpuArchitecture.X86_64\n ),\n cpu=1024,\n memory_limit_mi_b=2048\n)\n\ntask_definition.add_container(\"windowsservercore\",\n logging=ecs.LogDriver.aws_logs(stream_prefix=\"win-iis-on-fargate\"),\n port_mappings=[ecs.PortMapping(container_port=80)],\n image=ecs.ContainerImage.from_registry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n)",
4407 "version": "2"
4408 },
4409 "csharp": {
4410 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n RuntimePlatform = new RuntimePlatform {\n OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n CpuArchitecture = CpuArchitecture.X86_64\n },\n Cpu = 1024,\n MemoryLimitMiB = 2048\n});\n\ntaskDefinition.AddContainer(\"windowsservercore\", new ContainerDefinitionOptions {\n Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"win-iis-on-fargate\" }),\n PortMappings = new [] { new PortMapping { ContainerPort = 80 } },\n Image = ContainerImage.FromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n});",
4411 "version": "1"
4412 },
4413 "java": {
4414 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .runtimePlatform(RuntimePlatform.builder()\n .operatingSystemFamily(OperatingSystemFamily.WINDOWS_SERVER_2019_CORE)\n .cpuArchitecture(CpuArchitecture.X86_64)\n .build())\n .cpu(1024)\n .memoryLimitMiB(2048)\n .build();\n\ntaskDefinition.addContainer(\"windowsservercore\", ContainerDefinitionOptions.builder()\n .logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"win-iis-on-fargate\").build()))\n .portMappings(List.of(PortMapping.builder().containerPort(80).build()))\n .image(ContainerImage.fromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\"))\n .build());",
4415 "version": "1"
4416 },
4417 "go": {
4418 "source": "// Create a Task Definition for the Windows container to start\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\truntimePlatform: &runtimePlatform{\n\t\toperatingSystemFamily: ecs.operatingSystemFamily_WINDOWS_SERVER_2019_CORE(),\n\t\tcpuArchitecture: ecs.cpuArchitecture_X86_64(),\n\t},\n\tcpu: jsii.Number(1024),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\ntaskDefinition.addContainer(jsii.String(\"windowsservercore\"), &containerDefinitionOptions{\n\tlogging: ecs.logDriver.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"win-iis-on-fargate\"),\n\t}),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(80),\n\t\t},\n\t},\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")),\n})",
4419 "version": "1"
4420 },
4421 "$": {
4422 "source": "// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});",
4423 "version": "0"
4424 }
4425 },
4426 "location": {
4427 "api": {
4428 "api": "type",
4429 "fqn": "@aws-cdk/aws-ecs.AwsLogDriverProps"
4430 },
4431 "field": {
4432 "field": "example"
4433 }
4434 },
4435 "didCompile": true,
4436 "fqnsReferenced": [
4437 "@aws-cdk/aws-ecs.AwsLogDriverProps",
4438 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
4439 "@aws-cdk/aws-ecs.ContainerImage",
4440 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
4441 "@aws-cdk/aws-ecs.CpuArchitecture",
4442 "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
4443 "@aws-cdk/aws-ecs.FargateTaskDefinition",
4444 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
4445 "@aws-cdk/aws-ecs.LogDriver",
4446 "@aws-cdk/aws-ecs.LogDriver#awsLogs",
4447 "@aws-cdk/aws-ecs.OperatingSystemFamily",
4448 "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
4449 "@aws-cdk/aws-ecs.RuntimePlatform",
4450 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
4451 "constructs.Construct"
4452 ],
4453 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4454 "syntaxKindCounter": {
4455 "8": 3,
4456 "10": 4,
4457 "75": 27,
4458 "104": 1,
4459 "192": 1,
4460 "193": 5,
4461 "194": 10,
4462 "196": 3,
4463 "197": 1,
4464 "225": 1,
4465 "226": 1,
4466 "242": 1,
4467 "243": 1,
4468 "281": 10
4469 },
4470 "fqnsFingerprint": "d670aad91d3b8aaae82769324f3a2f855bbb99ef3ac45066fc4e9e4f6aae906d"
4471 },
4472 "6ff52d2a47faf92526ecf7d3b8205a7d2b366953db6e2d8665e7cad9df99b243": {
4473 "translations": {
4474 "python": {
4475 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nbase_log_driver_props = ecs.BaseLogDriverProps(\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n tag=\"tag\"\n)",
4476 "version": "2"
4477 },
4478 "csharp": {
4479 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nBaseLogDriverProps baseLogDriverProps = new BaseLogDriverProps {\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n Tag = \"tag\"\n};",
4480 "version": "1"
4481 },
4482 "java": {
4483 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nBaseLogDriverProps baseLogDriverProps = BaseLogDriverProps.builder()\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .tag(\"tag\")\n .build();",
4484 "version": "1"
4485 },
4486 "go": {
4487 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nbaseLogDriverProps := &baseLogDriverProps{\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\ttag: jsii.String(\"tag\"),\n}",
4488 "version": "1"
4489 },
4490 "$": {
4491 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst baseLogDriverProps: ecs.BaseLogDriverProps = {\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n};",
4492 "version": "0"
4493 }
4494 },
4495 "location": {
4496 "api": {
4497 "api": "type",
4498 "fqn": "@aws-cdk/aws-ecs.BaseLogDriverProps"
4499 },
4500 "field": {
4501 "field": "example"
4502 }
4503 },
4504 "didCompile": true,
4505 "fqnsReferenced": [
4506 "@aws-cdk/aws-ecs.BaseLogDriverProps"
4507 ],
4508 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst baseLogDriverProps: ecs.BaseLogDriverProps = {\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4509 "syntaxKindCounter": {
4510 "10": 5,
4511 "75": 8,
4512 "153": 1,
4513 "169": 1,
4514 "192": 2,
4515 "193": 1,
4516 "225": 1,
4517 "242": 1,
4518 "243": 1,
4519 "254": 1,
4520 "255": 1,
4521 "256": 1,
4522 "281": 4,
4523 "290": 1
4524 },
4525 "fqnsFingerprint": "cb1ae9f14f20efc01cb214ef5547ae89521139d20a72c771649bb768a9795516"
4526 },
4527 "d5a882954e0fbd65e92659bc685629b884dc3744fccc701c22e5c4bdf5d0a0d2": {
4528 "translations": {
4529 "python": {
4530 "source": "import aws_cdk.aws_ecs as ecs\n\n\nservice = ecs.BaseService.from_service_arn_with_cluster(self, \"EcsService\", \"arn:aws:ecs:us-east-1:123456789012:service/myClusterName/myServiceName\")\npipeline = codepipeline.Pipeline(self, \"MyPipeline\")\nbuild_output = codepipeline.Artifact()\n# add source and build stages to the pipeline as usual...\ndeploy_stage = pipeline.add_stage(\n stage_name=\"Deploy\",\n actions=[\n codepipeline_actions.EcsDeployAction(\n action_name=\"DeployAction\",\n service=service,\n input=build_output\n )\n ]\n)",
4531 "version": "2"
4532 },
4533 "csharp": {
4534 "source": "using Amazon.CDK.AWS.ECS;\n\n\nIBaseService service = BaseService.FromServiceArnWithCluster(this, \"EcsService\", \"arn:aws:ecs:us-east-1:123456789012:service/myClusterName/myServiceName\");\nPipeline pipeline = new Pipeline(this, \"MyPipeline\");\nArtifact buildOutput = new Artifact();\n// add source and build stages to the pipeline as usual...\nIStage deployStage = pipeline.AddStage(new StageOptions {\n StageName = \"Deploy\",\n Actions = new [] {\n new EcsDeployAction(new EcsDeployActionProps {\n ActionName = \"DeployAction\",\n Service = service,\n Input = buildOutput\n }) }\n});",
4535 "version": "1"
4536 },
4537 "java": {
4538 "source": "import software.amazon.awscdk.services.ecs.*;\n\n\nIBaseService service = BaseService.fromServiceArnWithCluster(this, \"EcsService\", \"arn:aws:ecs:us-east-1:123456789012:service/myClusterName/myServiceName\");\nPipeline pipeline = new Pipeline(this, \"MyPipeline\");\nArtifact buildOutput = new Artifact();\n// add source and build stages to the pipeline as usual...\nIStage deployStage = pipeline.addStage(StageOptions.builder()\n .stageName(\"Deploy\")\n .actions(List.of(\n EcsDeployAction.Builder.create()\n .actionName(\"DeployAction\")\n .service(service)\n .input(buildOutput)\n .build()))\n .build());",
4539 "version": "1"
4540 },
4541 "go": {
4542 "source": "import ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\n\nservice := ecs.baseService.fromServiceArnWithCluster(this, jsii.String(\"EcsService\"), jsii.String(\"arn:aws:ecs:us-east-1:123456789012:service/myClusterName/myServiceName\"))\npipeline := codepipeline.NewPipeline(this, jsii.String(\"MyPipeline\"))\nbuildOutput := codepipeline.NewArtifact()\n// add source and build stages to the pipeline as usual...\ndeployStage := pipeline.addStage(&stageOptions{\n\tstageName: jsii.String(\"Deploy\"),\n\tactions: []iAction{\n\t\tcodepipeline_actions.NewEcsDeployAction(&ecsDeployActionProps{\n\t\t\tactionName: jsii.String(\"DeployAction\"),\n\t\t\tservice: service,\n\t\t\tinput: buildOutput,\n\t\t}),\n\t},\n})",
4543 "version": "1"
4544 },
4545 "$": {
4546 "source": "import * as ecs from '@aws-cdk/aws-ecs';\n\nconst service = ecs.BaseService.fromServiceArnWithCluster(this, 'EcsService',\n 'arn:aws:ecs:us-east-1:123456789012:service/myClusterName/myServiceName'\n);\nconst pipeline = new codepipeline.Pipeline(this, 'MyPipeline');\nconst buildOutput = new codepipeline.Artifact();\n// add source and build stages to the pipeline as usual...\nconst deployStage = pipeline.addStage({\n stageName: 'Deploy',\n actions: [\n new codepipeline_actions.EcsDeployAction({\n actionName: 'DeployAction',\n service: service,\n input: buildOutput,\n }),\n ],\n});",
4547 "version": "0"
4548 }
4549 },
4550 "location": {
4551 "api": {
4552 "api": "type",
4553 "fqn": "@aws-cdk/aws-ecs.BaseService"
4554 },
4555 "field": {
4556 "field": "example"
4557 }
4558 },
4559 "didCompile": true,
4560 "fqnsReferenced": [
4561 "@aws-cdk/aws-codepipeline-actions.EcsDeployAction",
4562 "@aws-cdk/aws-codepipeline-actions.EcsDeployActionProps",
4563 "@aws-cdk/aws-codepipeline.Artifact",
4564 "@aws-cdk/aws-codepipeline.IStage",
4565 "@aws-cdk/aws-codepipeline.Pipeline",
4566 "@aws-cdk/aws-codepipeline.Pipeline#addStage",
4567 "@aws-cdk/aws-codepipeline.StageOptions",
4568 "@aws-cdk/aws-ecs.BaseService",
4569 "@aws-cdk/aws-ecs.BaseService#fromServiceArnWithCluster",
4570 "@aws-cdk/aws-ecs.IBaseService",
4571 "constructs.Construct"
4572 ],
4573 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Arn, Construct, Duration, SecretValue, Stack } from '@aws-cdk/core';\nimport codebuild = require('@aws-cdk/aws-codebuild');\nimport codedeploy = require('@aws-cdk/aws-codedeploy');\nimport codepipeline = require('@aws-cdk/aws-codepipeline');\nimport codepipeline_actions = require('@aws-cdk/aws-codepipeline-actions');\nimport codecommit = require('@aws-cdk/aws-codecommit');\nimport iam = require('@aws-cdk/aws-iam');\nimport lambda = require('@aws-cdk/aws-lambda');\nimport s3 = require('@aws-cdk/aws-s3');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = ecs.BaseService.fromServiceArnWithCluster(this, 'EcsService',\n 'arn:aws:ecs:us-east-1:123456789012:service/myClusterName/myServiceName'\n);\nconst pipeline = new codepipeline.Pipeline(this, 'MyPipeline');\nconst buildOutput = new codepipeline.Artifact();\n// add source and build stages to the pipeline as usual...\nconst deployStage = pipeline.addStage({\n stageName: 'Deploy',\n actions: [\n new codepipeline_actions.EcsDeployAction({\n actionName: 'DeployAction',\n service: service,\n input: buildOutput,\n }),\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4574 "syntaxKindCounter": {
4575 "10": 6,
4576 "75": 23,
4577 "104": 2,
4578 "192": 1,
4579 "193": 2,
4580 "194": 6,
4581 "196": 2,
4582 "197": 3,
4583 "225": 4,
4584 "242": 4,
4585 "243": 4,
4586 "254": 1,
4587 "255": 1,
4588 "256": 1,
4589 "281": 5,
4590 "290": 1
4591 },
4592 "fqnsFingerprint": "345c639395535fc80d8c873117b5171c32d8d3f457d53375b7e461b297bc5eb1"
4593 },
4594 "0fa11bf0f0753dc888cc2139c0c7312581a0e1861ade19f6a2805945c7b92122": {
4595 "translations": {
4596 "python": {
4597 "source": "# listener: elbv2.ApplicationListener\n# service: ecs.BaseService\n\nlistener.add_targets(\"ECS\",\n port=80,\n targets=[service.load_balancer_target(\n container_name=\"MyContainer\",\n container_port=1234\n )]\n)",
4598 "version": "2"
4599 },
4600 "csharp": {
4601 "source": "ApplicationListener listener;\nBaseService service;\n\nlistener.AddTargets(\"ECS\", new AddApplicationTargetsProps {\n Port = 80,\n Targets = new [] { service.LoadBalancerTarget(new LoadBalancerTargetOptions {\n ContainerName = \"MyContainer\",\n ContainerPort = 1234\n }) }\n});",
4602 "version": "1"
4603 },
4604 "java": {
4605 "source": "ApplicationListener listener;\nBaseService service;\n\nlistener.addTargets(\"ECS\", AddApplicationTargetsProps.builder()\n .port(80)\n .targets(List.of(service.loadBalancerTarget(LoadBalancerTargetOptions.builder()\n .containerName(\"MyContainer\")\n .containerPort(1234)\n .build())))\n .build());",
4606 "version": "1"
4607 },
4608 "go": {
4609 "source": "var listener applicationListener\nvar service baseService\n\nlistener.addTargets(jsii.String(\"ECS\"), &addApplicationTargetsProps{\n\tport: jsii.Number(80),\n\ttargets: []iApplicationLoadBalancerTarget{\n\t\tservice.loadBalancerTarget(&loadBalancerTargetOptions{\n\t\t\tcontainerName: jsii.String(\"MyContainer\"),\n\t\t\tcontainerPort: jsii.Number(1234),\n\t\t}),\n\t},\n})",
4610 "version": "1"
4611 },
4612 "$": {
4613 "source": "declare const listener: elbv2.ApplicationListener;\ndeclare const service: ecs.BaseService;\nlistener.addTargets('ECS', {\n port: 80,\n targets: [service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 1234,\n })],\n});",
4614 "version": "0"
4615 }
4616 },
4617 "location": {
4618 "api": {
4619 "api": "member",
4620 "fqn": "@aws-cdk/aws-ecs.BaseService",
4621 "memberName": "loadBalancerTarget"
4622 },
4623 "field": {
4624 "field": "example"
4625 }
4626 },
4627 "didCompile": true,
4628 "fqnsReferenced": [
4629 "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
4630 "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
4631 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
4632 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener#addTargets"
4633 ],
4634 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const listener: elbv2.ApplicationListener;\ndeclare const service: ecs.BaseService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nlistener.addTargets('ECS', {\n port: 80,\n targets: [service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 1234,\n })],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4635 "syntaxKindCounter": {
4636 "8": 2,
4637 "10": 2,
4638 "75": 14,
4639 "130": 2,
4640 "153": 2,
4641 "169": 2,
4642 "192": 1,
4643 "193": 2,
4644 "194": 2,
4645 "196": 2,
4646 "225": 2,
4647 "226": 1,
4648 "242": 2,
4649 "243": 2,
4650 "281": 4,
4651 "290": 1
4652 },
4653 "fqnsFingerprint": "633779a1ec99009562148c96d5fc9c0cbb3c9543eb34a030fb20c761a3b654f7"
4654 },
4655 "c9d6a37f16760ea5624209a122282729d34e21b365e19cf06dda576b99de8c3e": {
4656 "translations": {
4657 "python": {
4658 "source": "# listener: elbv2.ApplicationListener\n# service: ecs.BaseService\n\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
4659 "version": "2"
4660 },
4661 "csharp": {
4662 "source": "ApplicationListener listener;\nBaseService service;\n\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
4663 "version": "1"
4664 },
4665 "java": {
4666 "source": "ApplicationListener listener;\nBaseService service;\n\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
4667 "version": "1"
4668 },
4669 "go": {
4670 "source": "var listener applicationListener\nvar service baseService\n\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
4671 "version": "1"
4672 },
4673 "$": {
4674 "source": "declare const listener: elbv2.ApplicationListener;\ndeclare const service: ecs.BaseService;\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n)",
4675 "version": "0"
4676 }
4677 },
4678 "location": {
4679 "api": {
4680 "api": "member",
4681 "fqn": "@aws-cdk/aws-ecs.BaseService",
4682 "memberName": "registerLoadBalancerTargets"
4683 },
4684 "field": {
4685 "field": "example"
4686 }
4687 },
4688 "didCompile": true,
4689 "fqnsReferenced": [
4690 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
4691 "@aws-cdk/aws-ecs.EcsTarget",
4692 "@aws-cdk/aws-ecs.ListenerConfig",
4693 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
4694 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
4695 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
4696 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
4697 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS"
4698 ],
4699 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const listener: elbv2.ApplicationListener;\ndeclare const service: ecs.BaseService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n)\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4700 "syntaxKindCounter": {
4701 "8": 1,
4702 "10": 2,
4703 "75": 20,
4704 "130": 2,
4705 "153": 2,
4706 "169": 2,
4707 "193": 2,
4708 "194": 5,
4709 "196": 2,
4710 "225": 2,
4711 "226": 1,
4712 "242": 2,
4713 "243": 2,
4714 "281": 5,
4715 "290": 1
4716 },
4717 "fqnsFingerprint": "5bedc171c895f57650224e79f84fecfada224dc1c0626cb6a20175ededc6c7d2"
4718 },
4719 "8bde92172dc42e1e354b824d1c1b620469ffabd8a4d1f47b223c8c7953d47768": {
4720 "translations": {
4721 "python": {
4722 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_servicediscovery as servicediscovery\nimport aws_cdk.core as cdk\n\n# cluster: ecs.Cluster\n# container_definition: ecs.ContainerDefinition\n# namespace: servicediscovery.INamespace\n\nbase_service_options = ecs.BaseServiceOptions(\n cluster=cluster,\n\n # the properties below are optional\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n circuit_breaker=ecs.DeploymentCircuitBreaker(\n rollback=False\n ),\n cloud_map_options=ecs.CloudMapOptions(\n cloud_map_namespace=namespace,\n container=container_definition,\n container_port=123,\n dns_record_type=servicediscovery.DnsRecordType.A,\n dns_ttl=cdk.Duration.minutes(30),\n failure_threshold=123,\n name=\"name\"\n ),\n deployment_controller=ecs.DeploymentController(\n type=ecs.DeploymentControllerType.ECS\n ),\n desired_count=123,\n enable_eCSManaged_tags=False,\n enable_execute_command=False,\n health_check_grace_period=cdk.Duration.minutes(30),\n max_healthy_percent=123,\n min_healthy_percent=123,\n propagate_tags=ecs.PropagatedTagSource.SERVICE,\n propagate_task_tags_from=ecs.PropagatedTagSource.SERVICE,\n service_name=\"serviceName\"\n)",
4723 "version": "2"
4724 },
4725 "csharp": {
4726 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.ServiceDiscovery;\nusing Amazon.CDK;\n\nCluster cluster;\nContainerDefinition containerDefinition;\nINamespace namespace;\nBaseServiceOptions baseServiceOptions = new BaseServiceOptions {\n Cluster = cluster,\n\n // the properties below are optional\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n CircuitBreaker = new DeploymentCircuitBreaker {\n Rollback = false\n },\n CloudMapOptions = new CloudMapOptions {\n CloudMapNamespace = namespace,\n Container = containerDefinition,\n ContainerPort = 123,\n DnsRecordType = DnsRecordType.A,\n DnsTtl = Duration.Minutes(30),\n FailureThreshold = 123,\n Name = \"name\"\n },\n DeploymentController = new DeploymentController {\n Type = DeploymentControllerType.ECS\n },\n DesiredCount = 123,\n EnableECSManagedTags = false,\n EnableExecuteCommand = false,\n HealthCheckGracePeriod = Duration.Minutes(30),\n MaxHealthyPercent = 123,\n MinHealthyPercent = 123,\n PropagateTags = PropagatedTagSource.SERVICE,\n PropagateTaskTagsFrom = PropagatedTagSource.SERVICE,\n ServiceName = \"serviceName\"\n};",
4727 "version": "1"
4728 },
4729 "java": {
4730 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.servicediscovery.*;\nimport software.amazon.awscdk.core.*;\n\nCluster cluster;\nContainerDefinition containerDefinition;\nINamespace namespace;\n\nBaseServiceOptions baseServiceOptions = BaseServiceOptions.builder()\n .cluster(cluster)\n\n // the properties below are optional\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .circuitBreaker(DeploymentCircuitBreaker.builder()\n .rollback(false)\n .build())\n .cloudMapOptions(CloudMapOptions.builder()\n .cloudMapNamespace(namespace)\n .container(containerDefinition)\n .containerPort(123)\n .dnsRecordType(DnsRecordType.A)\n .dnsTtl(Duration.minutes(30))\n .failureThreshold(123)\n .name(\"name\")\n .build())\n .deploymentController(DeploymentController.builder()\n .type(DeploymentControllerType.ECS)\n .build())\n .desiredCount(123)\n .enableECSManagedTags(false)\n .enableExecuteCommand(false)\n .healthCheckGracePeriod(Duration.minutes(30))\n .maxHealthyPercent(123)\n .minHealthyPercent(123)\n .propagateTags(PropagatedTagSource.SERVICE)\n .propagateTaskTagsFrom(PropagatedTagSource.SERVICE)\n .serviceName(\"serviceName\")\n .build();",
4731 "version": "1"
4732 },
4733 "go": {
4734 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport servicediscovery \"github.com/aws-samples/dummy/awscdkawsservicediscovery\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar cluster cluster\nvar containerDefinition containerDefinition\nvar namespace iNamespace\n\nbaseServiceOptions := &baseServiceOptions{\n\tcluster: cluster,\n\n\t// the properties below are optional\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t// the properties below are optional\n\t\t\tbase: jsii.Number(123),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n\tcircuitBreaker: &deploymentCircuitBreaker{\n\t\trollback: jsii.Boolean(false),\n\t},\n\tcloudMapOptions: &cloudMapOptions{\n\t\tcloudMapNamespace: namespace,\n\t\tcontainer: containerDefinition,\n\t\tcontainerPort: jsii.Number(123),\n\t\tdnsRecordType: servicediscovery.dnsRecordType_A,\n\t\tdnsTtl: cdk.duration.minutes(jsii.Number(30)),\n\t\tfailureThreshold: jsii.Number(123),\n\t\tname: jsii.String(\"name\"),\n\t},\n\tdeploymentController: &deploymentController{\n\t\ttype: ecs.deploymentControllerType_ECS,\n\t},\n\tdesiredCount: jsii.Number(123),\n\tenableECSManagedTags: jsii.Boolean(false),\n\tenableExecuteCommand: jsii.Boolean(false),\n\thealthCheckGracePeriod: cdk.*duration.minutes(jsii.Number(30)),\n\tmaxHealthyPercent: jsii.Number(123),\n\tminHealthyPercent: jsii.Number(123),\n\tpropagateTags: ecs.propagatedTagSource_SERVICE,\n\tpropagateTaskTagsFrom: ecs.*propagatedTagSource_SERVICE,\n\tserviceName: jsii.String(\"serviceName\"),\n}",
4735 "version": "1"
4736 },
4737 "$": {
4738 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const cluster: ecs.Cluster;\ndeclare const containerDefinition: ecs.ContainerDefinition;\ndeclare const namespace: servicediscovery.INamespace;\nconst baseServiceOptions: ecs.BaseServiceOptions = {\n cluster: cluster,\n\n // the properties below are optional\n capacityProviderStrategies: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n circuitBreaker: {\n rollback: false,\n },\n cloudMapOptions: {\n cloudMapNamespace: namespace,\n container: containerDefinition,\n containerPort: 123,\n dnsRecordType: servicediscovery.DnsRecordType.A,\n dnsTtl: cdk.Duration.minutes(30),\n failureThreshold: 123,\n name: 'name',\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.ECS,\n },\n desiredCount: 123,\n enableECSManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriod: cdk.Duration.minutes(30),\n maxHealthyPercent: 123,\n minHealthyPercent: 123,\n propagateTags: ecs.PropagatedTagSource.SERVICE,\n propagateTaskTagsFrom: ecs.PropagatedTagSource.SERVICE,\n serviceName: 'serviceName',\n};",
4739 "version": "0"
4740 }
4741 },
4742 "location": {
4743 "api": {
4744 "api": "type",
4745 "fqn": "@aws-cdk/aws-ecs.BaseServiceOptions"
4746 },
4747 "field": {
4748 "field": "example"
4749 }
4750 },
4751 "didCompile": true,
4752 "fqnsReferenced": [
4753 "@aws-cdk/aws-ecs.BaseServiceOptions",
4754 "@aws-cdk/aws-ecs.CloudMapOptions",
4755 "@aws-cdk/aws-ecs.ContainerDefinition",
4756 "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
4757 "@aws-cdk/aws-ecs.DeploymentController",
4758 "@aws-cdk/aws-ecs.DeploymentControllerType",
4759 "@aws-cdk/aws-ecs.DeploymentControllerType#ECS",
4760 "@aws-cdk/aws-ecs.ICluster",
4761 "@aws-cdk/aws-ecs.PropagatedTagSource",
4762 "@aws-cdk/aws-ecs.PropagatedTagSource#SERVICE",
4763 "@aws-cdk/aws-servicediscovery.DnsRecordType",
4764 "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
4765 "@aws-cdk/aws-servicediscovery.INamespace",
4766 "@aws-cdk/core.Duration",
4767 "@aws-cdk/core.Duration#minutes"
4768 ],
4769 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const cluster: ecs.Cluster;\ndeclare const containerDefinition: ecs.ContainerDefinition;\ndeclare const namespace: servicediscovery.INamespace;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst baseServiceOptions: ecs.BaseServiceOptions = {\n cluster: cluster,\n\n // the properties below are optional\n capacityProviderStrategies: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n circuitBreaker: {\n rollback: false,\n },\n cloudMapOptions: {\n cloudMapNamespace: namespace,\n container: containerDefinition,\n containerPort: 123,\n dnsRecordType: servicediscovery.DnsRecordType.A,\n dnsTtl: cdk.Duration.minutes(30),\n failureThreshold: 123,\n name: 'name',\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.ECS,\n },\n desiredCount: 123,\n enableECSManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriod: cdk.Duration.minutes(30),\n maxHealthyPercent: 123,\n minHealthyPercent: 123,\n propagateTags: ecs.PropagatedTagSource.SERVICE,\n propagateTaskTagsFrom: ecs.PropagatedTagSource.SERVICE,\n serviceName: 'serviceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4770 "syntaxKindCounter": {
4771 "8": 9,
4772 "10": 6,
4773 "75": 62,
4774 "91": 3,
4775 "130": 3,
4776 "153": 4,
4777 "169": 4,
4778 "192": 1,
4779 "193": 5,
4780 "194": 12,
4781 "196": 2,
4782 "225": 4,
4783 "242": 4,
4784 "243": 4,
4785 "254": 3,
4786 "255": 3,
4787 "256": 3,
4788 "281": 26,
4789 "290": 1
4790 },
4791 "fqnsFingerprint": "34fd01c265ff6bf0072b5731ab41d0a000c721ae61c662180808821e8c69c6a7"
4792 },
4793 "f78201f0aa5fdc1763f112372661a26b1240e3890ee3d2b4aac186005eebccd5": {
4794 "translations": {
4795 "python": {
4796 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_servicediscovery as servicediscovery\nimport aws_cdk.core as cdk\n\n# cluster: ecs.Cluster\n# container_definition: ecs.ContainerDefinition\n# namespace: servicediscovery.INamespace\n\nbase_service_props = ecs.BaseServiceProps(\n cluster=cluster,\n launch_type=ecs.LaunchType.EC2,\n\n # the properties below are optional\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n circuit_breaker=ecs.DeploymentCircuitBreaker(\n rollback=False\n ),\n cloud_map_options=ecs.CloudMapOptions(\n cloud_map_namespace=namespace,\n container=container_definition,\n container_port=123,\n dns_record_type=servicediscovery.DnsRecordType.A,\n dns_ttl=cdk.Duration.minutes(30),\n failure_threshold=123,\n name=\"name\"\n ),\n deployment_controller=ecs.DeploymentController(\n type=ecs.DeploymentControllerType.ECS\n ),\n desired_count=123,\n enable_eCSManaged_tags=False,\n enable_execute_command=False,\n health_check_grace_period=cdk.Duration.minutes(30),\n max_healthy_percent=123,\n min_healthy_percent=123,\n propagate_tags=ecs.PropagatedTagSource.SERVICE,\n propagate_task_tags_from=ecs.PropagatedTagSource.SERVICE,\n service_name=\"serviceName\"\n)",
4797 "version": "2"
4798 },
4799 "csharp": {
4800 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.ServiceDiscovery;\nusing Amazon.CDK;\n\nCluster cluster;\nContainerDefinition containerDefinition;\nINamespace namespace;\nBaseServiceProps baseServiceProps = new BaseServiceProps {\n Cluster = cluster,\n LaunchType = LaunchType.EC2,\n\n // the properties below are optional\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n CircuitBreaker = new DeploymentCircuitBreaker {\n Rollback = false\n },\n CloudMapOptions = new CloudMapOptions {\n CloudMapNamespace = namespace,\n Container = containerDefinition,\n ContainerPort = 123,\n DnsRecordType = DnsRecordType.A,\n DnsTtl = Duration.Minutes(30),\n FailureThreshold = 123,\n Name = \"name\"\n },\n DeploymentController = new DeploymentController {\n Type = DeploymentControllerType.ECS\n },\n DesiredCount = 123,\n EnableECSManagedTags = false,\n EnableExecuteCommand = false,\n HealthCheckGracePeriod = Duration.Minutes(30),\n MaxHealthyPercent = 123,\n MinHealthyPercent = 123,\n PropagateTags = PropagatedTagSource.SERVICE,\n PropagateTaskTagsFrom = PropagatedTagSource.SERVICE,\n ServiceName = \"serviceName\"\n};",
4801 "version": "1"
4802 },
4803 "java": {
4804 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.servicediscovery.*;\nimport software.amazon.awscdk.core.*;\n\nCluster cluster;\nContainerDefinition containerDefinition;\nINamespace namespace;\n\nBaseServiceProps baseServiceProps = BaseServiceProps.builder()\n .cluster(cluster)\n .launchType(LaunchType.EC2)\n\n // the properties below are optional\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .circuitBreaker(DeploymentCircuitBreaker.builder()\n .rollback(false)\n .build())\n .cloudMapOptions(CloudMapOptions.builder()\n .cloudMapNamespace(namespace)\n .container(containerDefinition)\n .containerPort(123)\n .dnsRecordType(DnsRecordType.A)\n .dnsTtl(Duration.minutes(30))\n .failureThreshold(123)\n .name(\"name\")\n .build())\n .deploymentController(DeploymentController.builder()\n .type(DeploymentControllerType.ECS)\n .build())\n .desiredCount(123)\n .enableECSManagedTags(false)\n .enableExecuteCommand(false)\n .healthCheckGracePeriod(Duration.minutes(30))\n .maxHealthyPercent(123)\n .minHealthyPercent(123)\n .propagateTags(PropagatedTagSource.SERVICE)\n .propagateTaskTagsFrom(PropagatedTagSource.SERVICE)\n .serviceName(\"serviceName\")\n .build();",
4805 "version": "1"
4806 },
4807 "go": {
4808 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport servicediscovery \"github.com/aws-samples/dummy/awscdkawsservicediscovery\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar cluster cluster\nvar containerDefinition containerDefinition\nvar namespace iNamespace\n\nbaseServiceProps := &baseServiceProps{\n\tcluster: cluster,\n\tlaunchType: ecs.launchType_EC2,\n\n\t// the properties below are optional\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t// the properties below are optional\n\t\t\tbase: jsii.Number(123),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n\tcircuitBreaker: &deploymentCircuitBreaker{\n\t\trollback: jsii.Boolean(false),\n\t},\n\tcloudMapOptions: &cloudMapOptions{\n\t\tcloudMapNamespace: namespace,\n\t\tcontainer: containerDefinition,\n\t\tcontainerPort: jsii.Number(123),\n\t\tdnsRecordType: servicediscovery.dnsRecordType_A,\n\t\tdnsTtl: cdk.duration.minutes(jsii.Number(30)),\n\t\tfailureThreshold: jsii.Number(123),\n\t\tname: jsii.String(\"name\"),\n\t},\n\tdeploymentController: &deploymentController{\n\t\ttype: ecs.deploymentControllerType_ECS,\n\t},\n\tdesiredCount: jsii.Number(123),\n\tenableECSManagedTags: jsii.Boolean(false),\n\tenableExecuteCommand: jsii.Boolean(false),\n\thealthCheckGracePeriod: cdk.*duration.minutes(jsii.Number(30)),\n\tmaxHealthyPercent: jsii.Number(123),\n\tminHealthyPercent: jsii.Number(123),\n\tpropagateTags: ecs.propagatedTagSource_SERVICE,\n\tpropagateTaskTagsFrom: ecs.*propagatedTagSource_SERVICE,\n\tserviceName: jsii.String(\"serviceName\"),\n}",
4809 "version": "1"
4810 },
4811 "$": {
4812 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const cluster: ecs.Cluster;\ndeclare const containerDefinition: ecs.ContainerDefinition;\ndeclare const namespace: servicediscovery.INamespace;\nconst baseServiceProps: ecs.BaseServiceProps = {\n cluster: cluster,\n launchType: ecs.LaunchType.EC2,\n\n // the properties below are optional\n capacityProviderStrategies: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n circuitBreaker: {\n rollback: false,\n },\n cloudMapOptions: {\n cloudMapNamespace: namespace,\n container: containerDefinition,\n containerPort: 123,\n dnsRecordType: servicediscovery.DnsRecordType.A,\n dnsTtl: cdk.Duration.minutes(30),\n failureThreshold: 123,\n name: 'name',\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.ECS,\n },\n desiredCount: 123,\n enableECSManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriod: cdk.Duration.minutes(30),\n maxHealthyPercent: 123,\n minHealthyPercent: 123,\n propagateTags: ecs.PropagatedTagSource.SERVICE,\n propagateTaskTagsFrom: ecs.PropagatedTagSource.SERVICE,\n serviceName: 'serviceName',\n};",
4813 "version": "0"
4814 }
4815 },
4816 "location": {
4817 "api": {
4818 "api": "type",
4819 "fqn": "@aws-cdk/aws-ecs.BaseServiceProps"
4820 },
4821 "field": {
4822 "field": "example"
4823 }
4824 },
4825 "didCompile": true,
4826 "fqnsReferenced": [
4827 "@aws-cdk/aws-ecs.BaseServiceProps",
4828 "@aws-cdk/aws-ecs.CloudMapOptions",
4829 "@aws-cdk/aws-ecs.ContainerDefinition",
4830 "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
4831 "@aws-cdk/aws-ecs.DeploymentController",
4832 "@aws-cdk/aws-ecs.DeploymentControllerType",
4833 "@aws-cdk/aws-ecs.DeploymentControllerType#ECS",
4834 "@aws-cdk/aws-ecs.ICluster",
4835 "@aws-cdk/aws-ecs.LaunchType",
4836 "@aws-cdk/aws-ecs.LaunchType#EC2",
4837 "@aws-cdk/aws-ecs.PropagatedTagSource",
4838 "@aws-cdk/aws-ecs.PropagatedTagSource#SERVICE",
4839 "@aws-cdk/aws-servicediscovery.DnsRecordType",
4840 "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
4841 "@aws-cdk/aws-servicediscovery.INamespace",
4842 "@aws-cdk/core.Duration",
4843 "@aws-cdk/core.Duration#minutes"
4844 ],
4845 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const cluster: ecs.Cluster;\ndeclare const containerDefinition: ecs.ContainerDefinition;\ndeclare const namespace: servicediscovery.INamespace;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst baseServiceProps: ecs.BaseServiceProps = {\n cluster: cluster,\n launchType: ecs.LaunchType.EC2,\n\n // the properties below are optional\n capacityProviderStrategies: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n circuitBreaker: {\n rollback: false,\n },\n cloudMapOptions: {\n cloudMapNamespace: namespace,\n container: containerDefinition,\n containerPort: 123,\n dnsRecordType: servicediscovery.DnsRecordType.A,\n dnsTtl: cdk.Duration.minutes(30),\n failureThreshold: 123,\n name: 'name',\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.ECS,\n },\n desiredCount: 123,\n enableECSManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriod: cdk.Duration.minutes(30),\n maxHealthyPercent: 123,\n minHealthyPercent: 123,\n propagateTags: ecs.PropagatedTagSource.SERVICE,\n propagateTaskTagsFrom: ecs.PropagatedTagSource.SERVICE,\n serviceName: 'serviceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4846 "syntaxKindCounter": {
4847 "8": 9,
4848 "10": 6,
4849 "75": 66,
4850 "91": 3,
4851 "130": 3,
4852 "153": 4,
4853 "169": 4,
4854 "192": 1,
4855 "193": 5,
4856 "194": 14,
4857 "196": 2,
4858 "225": 4,
4859 "242": 4,
4860 "243": 4,
4861 "254": 3,
4862 "255": 3,
4863 "256": 3,
4864 "281": 27,
4865 "290": 1
4866 },
4867 "fqnsFingerprint": "12471119bf4a5a2f82ee5ca20050a60f36e5a3fec1df42a8d109e1f0c5bab451"
4868 },
4869 "f26ec2637847fde68928fc82c4bd3712e3f65355224b9207071351ad6f1df1c9": {
4870 "translations": {
4871 "python": {
4872 "source": "# cluster: ecs.Cluster\n\n\ncluster.add_capacity(\"bottlerocket-asg\",\n min_capacity=2,\n instance_type=ec2.InstanceType(\"c5.large\"),\n machine_image=ecs.BottleRocketImage()\n)",
4873 "version": "2"
4874 },
4875 "csharp": {
4876 "source": "Cluster cluster;\n\n\ncluster.AddCapacity(\"bottlerocket-asg\", new AddCapacityOptions {\n MinCapacity = 2,\n InstanceType = new InstanceType(\"c5.large\"),\n MachineImage = new BottleRocketImage()\n});",
4877 "version": "1"
4878 },
4879 "java": {
4880 "source": "Cluster cluster;\n\n\ncluster.addCapacity(\"bottlerocket-asg\", AddCapacityOptions.builder()\n .minCapacity(2)\n .instanceType(new InstanceType(\"c5.large\"))\n .machineImage(new BottleRocketImage())\n .build());",
4881 "version": "1"
4882 },
4883 "go": {
4884 "source": "var cluster cluster\n\n\ncluster.addCapacity(jsii.String(\"bottlerocket-asg\"), &addCapacityOptions{\n\tminCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c5.large\")),\n\tmachineImage: ecs.NewBottleRocketImage(),\n})",
4885 "version": "1"
4886 },
4887 "$": {
4888 "source": "declare const cluster: ecs.Cluster;\n\ncluster.addCapacity('bottlerocket-asg', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c5.large'),\n machineImage: new ecs.BottleRocketImage(),\n});",
4889 "version": "0"
4890 }
4891 },
4892 "location": {
4893 "api": {
4894 "api": "type",
4895 "fqn": "@aws-cdk/aws-ecs.BottleRocketImage"
4896 },
4897 "field": {
4898 "field": "example"
4899 }
4900 },
4901 "didCompile": true,
4902 "fqnsReferenced": [
4903 "@aws-cdk/aws-ec2.IMachineImage",
4904 "@aws-cdk/aws-ec2.InstanceType",
4905 "@aws-cdk/aws-ecs.AddCapacityOptions",
4906 "@aws-cdk/aws-ecs.BottleRocketImage",
4907 "@aws-cdk/aws-ecs.Cluster#addCapacity"
4908 ],
4909 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addCapacity('bottlerocket-asg', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c5.large'),\n machineImage: new ecs.BottleRocketImage(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
4910 "syntaxKindCounter": {
4911 "8": 1,
4912 "10": 2,
4913 "75": 12,
4914 "130": 1,
4915 "153": 1,
4916 "169": 1,
4917 "193": 1,
4918 "194": 3,
4919 "196": 1,
4920 "197": 2,
4921 "225": 1,
4922 "226": 1,
4923 "242": 1,
4924 "243": 1,
4925 "281": 3,
4926 "290": 1
4927 },
4928 "fqnsFingerprint": "fd3cf1453b819f54e5967a90e83bbe3e559ce7bc5c11c08d32b79594ba322767"
4929 },
4930 "f9228c7d120eb71a536301613d3fe128ac78568fb1f681cfbfa4c9902fb92c99": {
4931 "translations": {
4932 "python": {
4933 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ec2 as ec2\nimport aws_cdk.aws_ecs as ecs\n\nbottle_rocket_image_props = ecs.BottleRocketImageProps(\n architecture=ec2.InstanceArchitecture.ARM_64,\n cached_in_context=False,\n variant=ecs.BottlerocketEcsVariant.AWS_ECS_1\n)",
4934 "version": "2"
4935 },
4936 "csharp": {
4937 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.ECS;\n\nBottleRocketImageProps bottleRocketImageProps = new BottleRocketImageProps {\n Architecture = InstanceArchitecture.ARM_64,\n CachedInContext = false,\n Variant = BottlerocketEcsVariant.AWS_ECS_1\n};",
4938 "version": "1"
4939 },
4940 "java": {
4941 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ec2.*;\nimport software.amazon.awscdk.services.ecs.*;\n\nBottleRocketImageProps bottleRocketImageProps = BottleRocketImageProps.builder()\n .architecture(InstanceArchitecture.ARM_64)\n .cachedInContext(false)\n .variant(BottlerocketEcsVariant.AWS_ECS_1)\n .build();",
4942 "version": "1"
4943 },
4944 "go": {
4945 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ec2 \"github.com/aws-samples/dummy/awscdkawsec2\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nbottleRocketImageProps := &bottleRocketImageProps{\n\tarchitecture: ec2.instanceArchitecture_ARM_64,\n\tcachedInContext: jsii.Boolean(false),\n\tvariant: ecs.bottlerocketEcsVariant_AWS_ECS_1,\n}",
4946 "version": "1"
4947 },
4948 "$": {
4949 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst bottleRocketImageProps: ecs.BottleRocketImageProps = {\n architecture: ec2.InstanceArchitecture.ARM_64,\n cachedInContext: false,\n variant: ecs.BottlerocketEcsVariant.AWS_ECS_1,\n};",
4950 "version": "0"
4951 }
4952 },
4953 "location": {
4954 "api": {
4955 "api": "type",
4956 "fqn": "@aws-cdk/aws-ecs.BottleRocketImageProps"
4957 },
4958 "field": {
4959 "field": "example"
4960 }
4961 },
4962 "didCompile": true,
4963 "fqnsReferenced": [
4964 "@aws-cdk/aws-ec2.InstanceArchitecture",
4965 "@aws-cdk/aws-ec2.InstanceArchitecture#ARM_64",
4966 "@aws-cdk/aws-ecs.BottleRocketImageProps",
4967 "@aws-cdk/aws-ecs.BottlerocketEcsVariant",
4968 "@aws-cdk/aws-ecs.BottlerocketEcsVariant#AWS_ECS_1"
4969 ],
4970 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst bottleRocketImageProps: ecs.BottleRocketImageProps = {\n architecture: ec2.InstanceArchitecture.ARM_64,\n cachedInContext: false,\n variant: ecs.BottlerocketEcsVariant.AWS_ECS_1,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4971 "syntaxKindCounter": {
4972 "10": 2,
4973 "75": 14,
4974 "91": 1,
4975 "153": 1,
4976 "169": 1,
4977 "193": 1,
4978 "194": 4,
4979 "225": 1,
4980 "242": 1,
4981 "243": 1,
4982 "254": 2,
4983 "255": 2,
4984 "256": 2,
4985 "281": 3,
4986 "290": 1
4987 },
4988 "fqnsFingerprint": "57930f49301953ef7a5c0220c16a94f0c1df063af54293dbdb172e6b0511d6da"
4989 },
4990 "9d1f2f9e39707fbfa3c874ec045c5c22903e689d270e18e3645468ada3fb8696": {
4991 "translations": {
4992 "python": {
4993 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nbuilt_in_attributes = ecs.BuiltInAttributes()",
4994 "version": "2"
4995 },
4996 "csharp": {
4997 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nBuiltInAttributes builtInAttributes = new BuiltInAttributes();",
4998 "version": "1"
4999 },
5000 "java": {
5001 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nBuiltInAttributes builtInAttributes = new BuiltInAttributes();",
5002 "version": "1"
5003 },
5004 "go": {
5005 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nbuiltInAttributes := ecs.NewBuiltInAttributes()",
5006 "version": "1"
5007 },
5008 "$": {
5009 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst builtInAttributes = new ecs.BuiltInAttributes();",
5010 "version": "0"
5011 }
5012 },
5013 "location": {
5014 "api": {
5015 "api": "type",
5016 "fqn": "@aws-cdk/aws-ecs.BuiltInAttributes"
5017 },
5018 "field": {
5019 "field": "example"
5020 }
5021 },
5022 "didCompile": true,
5023 "fqnsReferenced": [
5024 "@aws-cdk/aws-ecs.BuiltInAttributes"
5025 ],
5026 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst builtInAttributes = new ecs.BuiltInAttributes();\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5027 "syntaxKindCounter": {
5028 "10": 1,
5029 "75": 4,
5030 "194": 1,
5031 "197": 1,
5032 "225": 1,
5033 "242": 1,
5034 "243": 1,
5035 "254": 1,
5036 "255": 1,
5037 "256": 1,
5038 "290": 1
5039 },
5040 "fqnsFingerprint": "88d9c6ae3fbb57c3676e8264f02e962c4ebcb92f69258b2d0630e6e0435df6da"
5041 },
5042 "ef3713a614bd4425268da9bd5de9dfadbb26994f2fec53fcff62de6bb2288442": {
5043 "translations": {
5044 "python": {
5045 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncapacity_provider_strategy = ecs.CapacityProviderStrategy(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n)",
5046 "version": "2"
5047 },
5048 "csharp": {
5049 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCapacityProviderStrategy capacityProviderStrategy = new CapacityProviderStrategy {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n};",
5050 "version": "1"
5051 },
5052 "java": {
5053 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCapacityProviderStrategy capacityProviderStrategy = CapacityProviderStrategy.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build();",
5054 "version": "1"
5055 },
5056 "go": {
5057 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncapacityProviderStrategy := &capacityProviderStrategy{\n\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t// the properties below are optional\n\tbase: jsii.Number(123),\n\tweight: jsii.Number(123),\n}",
5058 "version": "1"
5059 },
5060 "$": {
5061 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst capacityProviderStrategy: ecs.CapacityProviderStrategy = {\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n};",
5062 "version": "0"
5063 }
5064 },
5065 "location": {
5066 "api": {
5067 "api": "type",
5068 "fqn": "@aws-cdk/aws-ecs.CapacityProviderStrategy"
5069 },
5070 "field": {
5071 "field": "example"
5072 }
5073 },
5074 "didCompile": true,
5075 "fqnsReferenced": [
5076 "@aws-cdk/aws-ecs.CapacityProviderStrategy"
5077 ],
5078 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst capacityProviderStrategy: ecs.CapacityProviderStrategy = {\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5079 "syntaxKindCounter": {
5080 "8": 2,
5081 "10": 2,
5082 "75": 7,
5083 "153": 1,
5084 "169": 1,
5085 "193": 1,
5086 "225": 1,
5087 "242": 1,
5088 "243": 1,
5089 "254": 1,
5090 "255": 1,
5091 "256": 1,
5092 "281": 3,
5093 "290": 1
5094 },
5095 "fqnsFingerprint": "0345fbf2c8cb1082cfaae802a7ad0511314d6eb03d47360246da79b25df36cb0"
5096 },
5097 "f9d48b11a4d56b6aef849c93ef02d5136df9a752982be176c98a616048cc29c9": {
5098 "translations": {
5099 "python": {
5100 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_capacity_provider = ecs.CfnCapacityProvider(self, \"MyCfnCapacityProvider\",\n auto_scaling_group_provider=ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty(\n auto_scaling_group_arn=\"autoScalingGroupArn\",\n\n # the properties below are optional\n managed_scaling=ecs.CfnCapacityProvider.ManagedScalingProperty(\n instance_warmup_period=123,\n maximum_scaling_step_size=123,\n minimum_scaling_step_size=123,\n status=\"status\",\n target_capacity=123\n ),\n managed_termination_protection=\"managedTerminationProtection\"\n ),\n\n # the properties below are optional\n name=\"name\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
5101 "version": "2"
5102 },
5103 "csharp": {
5104 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnCapacityProvider cfnCapacityProvider = new CfnCapacityProvider(this, \"MyCfnCapacityProvider\", new CfnCapacityProviderProps {\n AutoScalingGroupProvider = new AutoScalingGroupProviderProperty {\n AutoScalingGroupArn = \"autoScalingGroupArn\",\n\n // the properties below are optional\n ManagedScaling = new ManagedScalingProperty {\n InstanceWarmupPeriod = 123,\n MaximumScalingStepSize = 123,\n MinimumScalingStepSize = 123,\n Status = \"status\",\n TargetCapacity = 123\n },\n ManagedTerminationProtection = \"managedTerminationProtection\"\n },\n\n // the properties below are optional\n Name = \"name\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
5105 "version": "1"
5106 },
5107 "java": {
5108 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnCapacityProvider cfnCapacityProvider = CfnCapacityProvider.Builder.create(this, \"MyCfnCapacityProvider\")\n .autoScalingGroupProvider(AutoScalingGroupProviderProperty.builder()\n .autoScalingGroupArn(\"autoScalingGroupArn\")\n\n // the properties below are optional\n .managedScaling(ManagedScalingProperty.builder()\n .instanceWarmupPeriod(123)\n .maximumScalingStepSize(123)\n .minimumScalingStepSize(123)\n .status(\"status\")\n .targetCapacity(123)\n .build())\n .managedTerminationProtection(\"managedTerminationProtection\")\n .build())\n\n // the properties below are optional\n .name(\"name\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
5109 "version": "1"
5110 },
5111 "go": {
5112 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnCapacityProvider := ecs.NewCfnCapacityProvider(this, jsii.String(\"MyCfnCapacityProvider\"), &cfnCapacityProviderProps{\n\tautoScalingGroupProvider: &autoScalingGroupProviderProperty{\n\t\tautoScalingGroupArn: jsii.String(\"autoScalingGroupArn\"),\n\n\t\t// the properties below are optional\n\t\tmanagedScaling: &managedScalingProperty{\n\t\t\tinstanceWarmupPeriod: jsii.Number(123),\n\t\t\tmaximumScalingStepSize: jsii.Number(123),\n\t\t\tminimumScalingStepSize: jsii.Number(123),\n\t\t\tstatus: jsii.String(\"status\"),\n\t\t\ttargetCapacity: jsii.Number(123),\n\t\t},\n\t\tmanagedTerminationProtection: jsii.String(\"managedTerminationProtection\"),\n\t},\n\n\t// the properties below are optional\n\tname: jsii.String(\"name\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
5113 "version": "1"
5114 },
5115 "$": {
5116 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnCapacityProvider = new ecs.CfnCapacityProvider(this, 'MyCfnCapacityProvider', {\n autoScalingGroupProvider: {\n autoScalingGroupArn: 'autoScalingGroupArn',\n\n // the properties below are optional\n managedScaling: {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n },\n managedTerminationProtection: 'managedTerminationProtection',\n },\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
5117 "version": "0"
5118 }
5119 },
5120 "location": {
5121 "api": {
5122 "api": "type",
5123 "fqn": "@aws-cdk/aws-ecs.CfnCapacityProvider"
5124 },
5125 "field": {
5126 "field": "example"
5127 }
5128 },
5129 "didCompile": true,
5130 "fqnsReferenced": [
5131 "@aws-cdk/aws-ecs.CfnCapacityProvider",
5132 "@aws-cdk/aws-ecs.CfnCapacityProviderProps",
5133 "@aws-cdk/core.Construct"
5134 ],
5135 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCapacityProvider = new ecs.CfnCapacityProvider(this, 'MyCfnCapacityProvider', {\n autoScalingGroupProvider: {\n autoScalingGroupArn: 'autoScalingGroupArn',\n\n // the properties below are optional\n managedScaling: {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n },\n managedTerminationProtection: 'managedTerminationProtection',\n },\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5136 "syntaxKindCounter": {
5137 "8": 4,
5138 "10": 8,
5139 "75": 17,
5140 "104": 1,
5141 "192": 1,
5142 "193": 4,
5143 "194": 1,
5144 "197": 1,
5145 "225": 1,
5146 "242": 1,
5147 "243": 1,
5148 "254": 1,
5149 "255": 1,
5150 "256": 1,
5151 "281": 13,
5152 "290": 1
5153 },
5154 "fqnsFingerprint": "889cbb763f7712b13209af63bffba150f638fcc97af5509a9e27187e5884d886"
5155 },
5156 "2980f4668219766e0fa825a82fe0d2b8568369283d4e08d4d96e1f0259b67493": {
5157 "translations": {
5158 "python": {
5159 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nauto_scaling_group_provider_property = ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty(\n auto_scaling_group_arn=\"autoScalingGroupArn\",\n\n # the properties below are optional\n managed_scaling=ecs.CfnCapacityProvider.ManagedScalingProperty(\n instance_warmup_period=123,\n maximum_scaling_step_size=123,\n minimum_scaling_step_size=123,\n status=\"status\",\n target_capacity=123\n ),\n managed_termination_protection=\"managedTerminationProtection\"\n)",
5160 "version": "2"
5161 },
5162 "csharp": {
5163 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAutoScalingGroupProviderProperty autoScalingGroupProviderProperty = new AutoScalingGroupProviderProperty {\n AutoScalingGroupArn = \"autoScalingGroupArn\",\n\n // the properties below are optional\n ManagedScaling = new ManagedScalingProperty {\n InstanceWarmupPeriod = 123,\n MaximumScalingStepSize = 123,\n MinimumScalingStepSize = 123,\n Status = \"status\",\n TargetCapacity = 123\n },\n ManagedTerminationProtection = \"managedTerminationProtection\"\n};",
5164 "version": "1"
5165 },
5166 "java": {
5167 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAutoScalingGroupProviderProperty autoScalingGroupProviderProperty = AutoScalingGroupProviderProperty.builder()\n .autoScalingGroupArn(\"autoScalingGroupArn\")\n\n // the properties below are optional\n .managedScaling(ManagedScalingProperty.builder()\n .instanceWarmupPeriod(123)\n .maximumScalingStepSize(123)\n .minimumScalingStepSize(123)\n .status(\"status\")\n .targetCapacity(123)\n .build())\n .managedTerminationProtection(\"managedTerminationProtection\")\n .build();",
5168 "version": "1"
5169 },
5170 "go": {
5171 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nautoScalingGroupProviderProperty := &autoScalingGroupProviderProperty{\n\tautoScalingGroupArn: jsii.String(\"autoScalingGroupArn\"),\n\n\t// the properties below are optional\n\tmanagedScaling: &managedScalingProperty{\n\t\tinstanceWarmupPeriod: jsii.Number(123),\n\t\tmaximumScalingStepSize: jsii.Number(123),\n\t\tminimumScalingStepSize: jsii.Number(123),\n\t\tstatus: jsii.String(\"status\"),\n\t\ttargetCapacity: jsii.Number(123),\n\t},\n\tmanagedTerminationProtection: jsii.String(\"managedTerminationProtection\"),\n}",
5172 "version": "1"
5173 },
5174 "$": {
5175 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst autoScalingGroupProviderProperty: ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty = {\n autoScalingGroupArn: 'autoScalingGroupArn',\n\n // the properties below are optional\n managedScaling: {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n },\n managedTerminationProtection: 'managedTerminationProtection',\n};",
5176 "version": "0"
5177 }
5178 },
5179 "location": {
5180 "api": {
5181 "api": "type",
5182 "fqn": "@aws-cdk/aws-ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty"
5183 },
5184 "field": {
5185 "field": "example"
5186 }
5187 },
5188 "didCompile": true,
5189 "fqnsReferenced": [
5190 "@aws-cdk/aws-ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty"
5191 ],
5192 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst autoScalingGroupProviderProperty: ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty = {\n autoScalingGroupArn: 'autoScalingGroupArn',\n\n // the properties below are optional\n managedScaling: {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n },\n managedTerminationProtection: 'managedTerminationProtection',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5193 "syntaxKindCounter": {
5194 "8": 4,
5195 "10": 4,
5196 "75": 13,
5197 "153": 2,
5198 "169": 1,
5199 "193": 2,
5200 "225": 1,
5201 "242": 1,
5202 "243": 1,
5203 "254": 1,
5204 "255": 1,
5205 "256": 1,
5206 "281": 8,
5207 "290": 1
5208 },
5209 "fqnsFingerprint": "cb9ab075529722de75ca4c40bbe273b465d3e0a7f0c78c1652d2167cb1eb9eb3"
5210 },
5211 "e39f18b851e6025ed109aaed5fd4e3799852a322a56e23e6b4c9dbaf5755b87b": {
5212 "translations": {
5213 "python": {
5214 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nmanaged_scaling_property = ecs.CfnCapacityProvider.ManagedScalingProperty(\n instance_warmup_period=123,\n maximum_scaling_step_size=123,\n minimum_scaling_step_size=123,\n status=\"status\",\n target_capacity=123\n)",
5215 "version": "2"
5216 },
5217 "csharp": {
5218 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nManagedScalingProperty managedScalingProperty = new ManagedScalingProperty {\n InstanceWarmupPeriod = 123,\n MaximumScalingStepSize = 123,\n MinimumScalingStepSize = 123,\n Status = \"status\",\n TargetCapacity = 123\n};",
5219 "version": "1"
5220 },
5221 "java": {
5222 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nManagedScalingProperty managedScalingProperty = ManagedScalingProperty.builder()\n .instanceWarmupPeriod(123)\n .maximumScalingStepSize(123)\n .minimumScalingStepSize(123)\n .status(\"status\")\n .targetCapacity(123)\n .build();",
5223 "version": "1"
5224 },
5225 "go": {
5226 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nmanagedScalingProperty := &managedScalingProperty{\n\tinstanceWarmupPeriod: jsii.Number(123),\n\tmaximumScalingStepSize: jsii.Number(123),\n\tminimumScalingStepSize: jsii.Number(123),\n\tstatus: jsii.String(\"status\"),\n\ttargetCapacity: jsii.Number(123),\n}",
5227 "version": "1"
5228 },
5229 "$": {
5230 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst managedScalingProperty: ecs.CfnCapacityProvider.ManagedScalingProperty = {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n};",
5231 "version": "0"
5232 }
5233 },
5234 "location": {
5235 "api": {
5236 "api": "type",
5237 "fqn": "@aws-cdk/aws-ecs.CfnCapacityProvider.ManagedScalingProperty"
5238 },
5239 "field": {
5240 "field": "example"
5241 }
5242 },
5243 "didCompile": true,
5244 "fqnsReferenced": [
5245 "@aws-cdk/aws-ecs.CfnCapacityProvider.ManagedScalingProperty"
5246 ],
5247 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst managedScalingProperty: ecs.CfnCapacityProvider.ManagedScalingProperty = {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5248 "syntaxKindCounter": {
5249 "8": 4,
5250 "10": 2,
5251 "75": 10,
5252 "153": 2,
5253 "169": 1,
5254 "193": 1,
5255 "225": 1,
5256 "242": 1,
5257 "243": 1,
5258 "254": 1,
5259 "255": 1,
5260 "256": 1,
5261 "281": 5,
5262 "290": 1
5263 },
5264 "fqnsFingerprint": "d799035507b15e19c7e2b0344d744ad85d9416022434678c48a83d8a27dba66a"
5265 },
5266 "2ba9d06db32878a23513dac80bba8e8b0341d1f9743986b00225c2b7595aed99": {
5267 "translations": {
5268 "python": {
5269 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_capacity_provider_props = ecs.CfnCapacityProviderProps(\n auto_scaling_group_provider=ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty(\n auto_scaling_group_arn=\"autoScalingGroupArn\",\n\n # the properties below are optional\n managed_scaling=ecs.CfnCapacityProvider.ManagedScalingProperty(\n instance_warmup_period=123,\n maximum_scaling_step_size=123,\n minimum_scaling_step_size=123,\n status=\"status\",\n target_capacity=123\n ),\n managed_termination_protection=\"managedTerminationProtection\"\n ),\n\n # the properties below are optional\n name=\"name\",\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
5270 "version": "2"
5271 },
5272 "csharp": {
5273 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnCapacityProviderProps cfnCapacityProviderProps = new CfnCapacityProviderProps {\n AutoScalingGroupProvider = new AutoScalingGroupProviderProperty {\n AutoScalingGroupArn = \"autoScalingGroupArn\",\n\n // the properties below are optional\n ManagedScaling = new ManagedScalingProperty {\n InstanceWarmupPeriod = 123,\n MaximumScalingStepSize = 123,\n MinimumScalingStepSize = 123,\n Status = \"status\",\n TargetCapacity = 123\n },\n ManagedTerminationProtection = \"managedTerminationProtection\"\n },\n\n // the properties below are optional\n Name = \"name\",\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
5274 "version": "1"
5275 },
5276 "java": {
5277 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnCapacityProviderProps cfnCapacityProviderProps = CfnCapacityProviderProps.builder()\n .autoScalingGroupProvider(AutoScalingGroupProviderProperty.builder()\n .autoScalingGroupArn(\"autoScalingGroupArn\")\n\n // the properties below are optional\n .managedScaling(ManagedScalingProperty.builder()\n .instanceWarmupPeriod(123)\n .maximumScalingStepSize(123)\n .minimumScalingStepSize(123)\n .status(\"status\")\n .targetCapacity(123)\n .build())\n .managedTerminationProtection(\"managedTerminationProtection\")\n .build())\n\n // the properties below are optional\n .name(\"name\")\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
5278 "version": "1"
5279 },
5280 "go": {
5281 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnCapacityProviderProps := &cfnCapacityProviderProps{\n\tautoScalingGroupProvider: &autoScalingGroupProviderProperty{\n\t\tautoScalingGroupArn: jsii.String(\"autoScalingGroupArn\"),\n\n\t\t// the properties below are optional\n\t\tmanagedScaling: &managedScalingProperty{\n\t\t\tinstanceWarmupPeriod: jsii.Number(123),\n\t\t\tmaximumScalingStepSize: jsii.Number(123),\n\t\t\tminimumScalingStepSize: jsii.Number(123),\n\t\t\tstatus: jsii.String(\"status\"),\n\t\t\ttargetCapacity: jsii.Number(123),\n\t\t},\n\t\tmanagedTerminationProtection: jsii.String(\"managedTerminationProtection\"),\n\t},\n\n\t// the properties below are optional\n\tname: jsii.String(\"name\"),\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
5282 "version": "1"
5283 },
5284 "$": {
5285 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnCapacityProviderProps: ecs.CfnCapacityProviderProps = {\n autoScalingGroupProvider: {\n autoScalingGroupArn: 'autoScalingGroupArn',\n\n // the properties below are optional\n managedScaling: {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n },\n managedTerminationProtection: 'managedTerminationProtection',\n },\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
5286 "version": "0"
5287 }
5288 },
5289 "location": {
5290 "api": {
5291 "api": "type",
5292 "fqn": "@aws-cdk/aws-ecs.CfnCapacityProviderProps"
5293 },
5294 "field": {
5295 "field": "example"
5296 }
5297 },
5298 "didCompile": true,
5299 "fqnsReferenced": [
5300 "@aws-cdk/aws-ecs.CfnCapacityProviderProps"
5301 ],
5302 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCapacityProviderProps: ecs.CfnCapacityProviderProps = {\n autoScalingGroupProvider: {\n autoScalingGroupArn: 'autoScalingGroupArn',\n\n // the properties below are optional\n managedScaling: {\n instanceWarmupPeriod: 123,\n maximumScalingStepSize: 123,\n minimumScalingStepSize: 123,\n status: 'status',\n targetCapacity: 123,\n },\n managedTerminationProtection: 'managedTerminationProtection',\n },\n\n // the properties below are optional\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5303 "syntaxKindCounter": {
5304 "8": 4,
5305 "10": 7,
5306 "75": 17,
5307 "153": 1,
5308 "169": 1,
5309 "192": 1,
5310 "193": 4,
5311 "225": 1,
5312 "242": 1,
5313 "243": 1,
5314 "254": 1,
5315 "255": 1,
5316 "256": 1,
5317 "281": 13,
5318 "290": 1
5319 },
5320 "fqnsFingerprint": "71dc16f61cdcb0367b13fff23226325c3102c3e9bdcf6570394f40eda8a5878d"
5321 },
5322 "a0554c8bfebde349d8a75ab6f05ed3ec0f0e10e4f8152a60aaf49a075a80b720": {
5323 "translations": {
5324 "python": {
5325 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_cluster = ecs.CfnCluster(self, \"MyCfnCluster\",\n capacity_providers=[\"capacityProviders\"],\n cluster_name=\"clusterName\",\n cluster_settings=[ecs.CfnCluster.ClusterSettingsProperty(\n name=\"name\",\n value=\"value\"\n )],\n configuration=ecs.CfnCluster.ClusterConfigurationProperty(\n execute_command_configuration=ecs.CfnCluster.ExecuteCommandConfigurationProperty(\n kms_key_id=\"kmsKeyId\",\n log_configuration=ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(\n cloud_watch_encryption_enabled=False,\n cloud_watch_log_group_name=\"cloudWatchLogGroupName\",\n s3_bucket_name=\"s3BucketName\",\n s3_encryption_enabled=False,\n s3_key_prefix=\"s3KeyPrefix\"\n ),\n logging=\"logging\"\n )\n ),\n default_capacity_provider_strategy=[ecs.CfnCluster.CapacityProviderStrategyItemProperty(\n base=123,\n capacity_provider=\"capacityProvider\",\n weight=123\n )],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
5326 "version": "2"
5327 },
5328 "csharp": {
5329 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnCluster cfnCluster = new CfnCluster(this, \"MyCfnCluster\", new CfnClusterProps {\n CapacityProviders = new [] { \"capacityProviders\" },\n ClusterName = \"clusterName\",\n ClusterSettings = new [] { new ClusterSettingsProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n Configuration = new ClusterConfigurationProperty {\n ExecuteCommandConfiguration = new ExecuteCommandConfigurationProperty {\n KmsKeyId = \"kmsKeyId\",\n LogConfiguration = new ExecuteCommandLogConfigurationProperty {\n CloudWatchEncryptionEnabled = false,\n CloudWatchLogGroupName = \"cloudWatchLogGroupName\",\n S3BucketName = \"s3BucketName\",\n S3EncryptionEnabled = false,\n S3KeyPrefix = \"s3KeyPrefix\"\n },\n Logging = \"logging\"\n }\n },\n DefaultCapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n Base = 123,\n CapacityProvider = \"capacityProvider\",\n Weight = 123\n } },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
5330 "version": "1"
5331 },
5332 "java": {
5333 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnCluster cfnCluster = CfnCluster.Builder.create(this, \"MyCfnCluster\")\n .capacityProviders(List.of(\"capacityProviders\"))\n .clusterName(\"clusterName\")\n .clusterSettings(List.of(ClusterSettingsProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .configuration(ClusterConfigurationProperty.builder()\n .executeCommandConfiguration(ExecuteCommandConfigurationProperty.builder()\n .kmsKeyId(\"kmsKeyId\")\n .logConfiguration(ExecuteCommandLogConfigurationProperty.builder()\n .cloudWatchEncryptionEnabled(false)\n .cloudWatchLogGroupName(\"cloudWatchLogGroupName\")\n .s3BucketName(\"s3BucketName\")\n .s3EncryptionEnabled(false)\n .s3KeyPrefix(\"s3KeyPrefix\")\n .build())\n .logging(\"logging\")\n .build())\n .build())\n .defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .base(123)\n .capacityProvider(\"capacityProvider\")\n .weight(123)\n .build()))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
5334 "version": "1"
5335 },
5336 "go": {
5337 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnCluster := ecs.NewCfnCluster(this, jsii.String(\"MyCfnCluster\"), &cfnClusterProps{\n\tcapacityProviders: []*string{\n\t\tjsii.String(\"capacityProviders\"),\n\t},\n\tclusterName: jsii.String(\"clusterName\"),\n\tclusterSettings: []interface{}{\n\t\t&clusterSettingsProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tconfiguration: &clusterConfigurationProperty{\n\t\texecuteCommandConfiguration: &executeCommandConfigurationProperty{\n\t\t\tkmsKeyId: jsii.String(\"kmsKeyId\"),\n\t\t\tlogConfiguration: &executeCommandLogConfigurationProperty{\n\t\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(false),\n\t\t\t\tcloudWatchLogGroupName: jsii.String(\"cloudWatchLogGroupName\"),\n\t\t\t\ts3BucketName: jsii.String(\"s3BucketName\"),\n\t\t\t\ts3EncryptionEnabled: jsii.Boolean(false),\n\t\t\t\ts3KeyPrefix: jsii.String(\"s3KeyPrefix\"),\n\t\t\t},\n\t\t\tlogging: jsii.String(\"logging\"),\n\t\t},\n\t},\n\tdefaultCapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyItemProperty{\n\t\t\tbase: jsii.Number(123),\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
5338 "version": "1"
5339 },
5340 "$": {
5341 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnCluster = new ecs.CfnCluster(this, 'MyCfnCluster', /* all optional props */ {\n capacityProviders: ['capacityProviders'],\n clusterName: 'clusterName',\n clusterSettings: [{\n name: 'name',\n value: 'value',\n }],\n configuration: {\n executeCommandConfiguration: {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n },\n },\n defaultCapacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
5342 "version": "0"
5343 }
5344 },
5345 "location": {
5346 "api": {
5347 "api": "type",
5348 "fqn": "@aws-cdk/aws-ecs.CfnCluster"
5349 },
5350 "field": {
5351 "field": "example"
5352 }
5353 },
5354 "didCompile": true,
5355 "fqnsReferenced": [
5356 "@aws-cdk/aws-ecs.CfnCluster",
5357 "@aws-cdk/aws-ecs.CfnClusterProps",
5358 "@aws-cdk/core.Construct"
5359 ],
5360 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCluster = new ecs.CfnCluster(this, 'MyCfnCluster', /* all optional props */ {\n capacityProviders: ['capacityProviders'],\n clusterName: 'clusterName',\n clusterSettings: [{\n name: 'name',\n value: 'value',\n }],\n configuration: {\n executeCommandConfiguration: {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n },\n },\n defaultCapacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5361 "syntaxKindCounter": {
5362 "8": 2,
5363 "10": 14,
5364 "75": 26,
5365 "91": 2,
5366 "104": 1,
5367 "192": 4,
5368 "193": 7,
5369 "194": 1,
5370 "197": 1,
5371 "225": 1,
5372 "242": 1,
5373 "243": 1,
5374 "254": 1,
5375 "255": 1,
5376 "256": 1,
5377 "281": 22,
5378 "290": 1
5379 },
5380 "fqnsFingerprint": "de507a1f1dcafd20fe498dc2c07061e4dba5b12f7eaf8d87a1abad6572900bf4"
5381 },
5382 "05077a61fc9126493f5a3299dba755a44beff3646619e5bbac25d293afabdf9c": {
5383 "translations": {
5384 "python": {
5385 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncapacity_provider_strategy_item_property = ecs.CfnCluster.CapacityProviderStrategyItemProperty(\n base=123,\n capacity_provider=\"capacityProvider\",\n weight=123\n)",
5386 "version": "2"
5387 },
5388 "csharp": {
5389 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = new CapacityProviderStrategyItemProperty {\n Base = 123,\n CapacityProvider = \"capacityProvider\",\n Weight = 123\n};",
5390 "version": "1"
5391 },
5392 "java": {
5393 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = CapacityProviderStrategyItemProperty.builder()\n .base(123)\n .capacityProvider(\"capacityProvider\")\n .weight(123)\n .build();",
5394 "version": "1"
5395 },
5396 "go": {
5397 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncapacityProviderStrategyItemProperty := &capacityProviderStrategyItemProperty{\n\tbase: jsii.Number(123),\n\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\tweight: jsii.Number(123),\n}",
5398 "version": "1"
5399 },
5400 "$": {
5401 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst capacityProviderStrategyItemProperty: ecs.CfnCluster.CapacityProviderStrategyItemProperty = {\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n};",
5402 "version": "0"
5403 }
5404 },
5405 "location": {
5406 "api": {
5407 "api": "type",
5408 "fqn": "@aws-cdk/aws-ecs.CfnCluster.CapacityProviderStrategyItemProperty"
5409 },
5410 "field": {
5411 "field": "example"
5412 }
5413 },
5414 "didCompile": true,
5415 "fqnsReferenced": [
5416 "@aws-cdk/aws-ecs.CfnCluster.CapacityProviderStrategyItemProperty"
5417 ],
5418 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst capacityProviderStrategyItemProperty: ecs.CfnCluster.CapacityProviderStrategyItemProperty = {\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5419 "syntaxKindCounter": {
5420 "8": 2,
5421 "10": 2,
5422 "75": 8,
5423 "153": 2,
5424 "169": 1,
5425 "193": 1,
5426 "225": 1,
5427 "242": 1,
5428 "243": 1,
5429 "254": 1,
5430 "255": 1,
5431 "256": 1,
5432 "281": 3,
5433 "290": 1
5434 },
5435 "fqnsFingerprint": "02d4ef446b9d3cd995fcf621adb9df3778cab237d4f054a68976c6490396b956"
5436 },
5437 "5ca69da183b29dba3fd08df973c211fb71b3dc9c170d472e7d966fae9ad5ea52": {
5438 "translations": {
5439 "python": {
5440 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncluster_configuration_property = ecs.CfnCluster.ClusterConfigurationProperty(\n execute_command_configuration=ecs.CfnCluster.ExecuteCommandConfigurationProperty(\n kms_key_id=\"kmsKeyId\",\n log_configuration=ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(\n cloud_watch_encryption_enabled=False,\n cloud_watch_log_group_name=\"cloudWatchLogGroupName\",\n s3_bucket_name=\"s3BucketName\",\n s3_encryption_enabled=False,\n s3_key_prefix=\"s3KeyPrefix\"\n ),\n logging=\"logging\"\n )\n)",
5441 "version": "2"
5442 },
5443 "csharp": {
5444 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nClusterConfigurationProperty clusterConfigurationProperty = new ClusterConfigurationProperty {\n ExecuteCommandConfiguration = new ExecuteCommandConfigurationProperty {\n KmsKeyId = \"kmsKeyId\",\n LogConfiguration = new ExecuteCommandLogConfigurationProperty {\n CloudWatchEncryptionEnabled = false,\n CloudWatchLogGroupName = \"cloudWatchLogGroupName\",\n S3BucketName = \"s3BucketName\",\n S3EncryptionEnabled = false,\n S3KeyPrefix = \"s3KeyPrefix\"\n },\n Logging = \"logging\"\n }\n};",
5445 "version": "1"
5446 },
5447 "java": {
5448 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nClusterConfigurationProperty clusterConfigurationProperty = ClusterConfigurationProperty.builder()\n .executeCommandConfiguration(ExecuteCommandConfigurationProperty.builder()\n .kmsKeyId(\"kmsKeyId\")\n .logConfiguration(ExecuteCommandLogConfigurationProperty.builder()\n .cloudWatchEncryptionEnabled(false)\n .cloudWatchLogGroupName(\"cloudWatchLogGroupName\")\n .s3BucketName(\"s3BucketName\")\n .s3EncryptionEnabled(false)\n .s3KeyPrefix(\"s3KeyPrefix\")\n .build())\n .logging(\"logging\")\n .build())\n .build();",
5449 "version": "1"
5450 },
5451 "go": {
5452 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nclusterConfigurationProperty := &clusterConfigurationProperty{\n\texecuteCommandConfiguration: &executeCommandConfigurationProperty{\n\t\tkmsKeyId: jsii.String(\"kmsKeyId\"),\n\t\tlogConfiguration: &executeCommandLogConfigurationProperty{\n\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(false),\n\t\t\tcloudWatchLogGroupName: jsii.String(\"cloudWatchLogGroupName\"),\n\t\t\ts3BucketName: jsii.String(\"s3BucketName\"),\n\t\t\ts3EncryptionEnabled: jsii.Boolean(false),\n\t\t\ts3KeyPrefix: jsii.String(\"s3KeyPrefix\"),\n\t\t},\n\t\tlogging: jsii.String(\"logging\"),\n\t},\n}",
5453 "version": "1"
5454 },
5455 "$": {
5456 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst clusterConfigurationProperty: ecs.CfnCluster.ClusterConfigurationProperty = {\n executeCommandConfiguration: {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n },\n};",
5457 "version": "0"
5458 }
5459 },
5460 "location": {
5461 "api": {
5462 "api": "type",
5463 "fqn": "@aws-cdk/aws-ecs.CfnCluster.ClusterConfigurationProperty"
5464 },
5465 "field": {
5466 "field": "example"
5467 }
5468 },
5469 "didCompile": true,
5470 "fqnsReferenced": [
5471 "@aws-cdk/aws-ecs.CfnCluster.ClusterConfigurationProperty"
5472 ],
5473 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterConfigurationProperty: ecs.CfnCluster.ClusterConfigurationProperty = {\n executeCommandConfiguration: {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5474 "syntaxKindCounter": {
5475 "10": 6,
5476 "75": 14,
5477 "91": 2,
5478 "153": 2,
5479 "169": 1,
5480 "193": 3,
5481 "225": 1,
5482 "242": 1,
5483 "243": 1,
5484 "254": 1,
5485 "255": 1,
5486 "256": 1,
5487 "281": 9,
5488 "290": 1
5489 },
5490 "fqnsFingerprint": "43474998c8b0fecc5cf3c0ca8ea53797f2bf965670e369b0b855cb42d5946c1b"
5491 },
5492 "b302d7b686fdafaed598b4ec020bb6509715a7cd68cedd90667dda78db177f8f": {
5493 "translations": {
5494 "python": {
5495 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncluster_settings_property = ecs.CfnCluster.ClusterSettingsProperty(\n name=\"name\",\n value=\"value\"\n)",
5496 "version": "2"
5497 },
5498 "csharp": {
5499 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nClusterSettingsProperty clusterSettingsProperty = new ClusterSettingsProperty {\n Name = \"name\",\n Value = \"value\"\n};",
5500 "version": "1"
5501 },
5502 "java": {
5503 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nClusterSettingsProperty clusterSettingsProperty = ClusterSettingsProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build();",
5504 "version": "1"
5505 },
5506 "go": {
5507 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nclusterSettingsProperty := &clusterSettingsProperty{\n\tname: jsii.String(\"name\"),\n\tvalue: jsii.String(\"value\"),\n}",
5508 "version": "1"
5509 },
5510 "$": {
5511 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst clusterSettingsProperty: ecs.CfnCluster.ClusterSettingsProperty = {\n name: 'name',\n value: 'value',\n};",
5512 "version": "0"
5513 }
5514 },
5515 "location": {
5516 "api": {
5517 "api": "type",
5518 "fqn": "@aws-cdk/aws-ecs.CfnCluster.ClusterSettingsProperty"
5519 },
5520 "field": {
5521 "field": "example"
5522 }
5523 },
5524 "didCompile": true,
5525 "fqnsReferenced": [
5526 "@aws-cdk/aws-ecs.CfnCluster.ClusterSettingsProperty"
5527 ],
5528 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterSettingsProperty: ecs.CfnCluster.ClusterSettingsProperty = {\n name: 'name',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5529 "syntaxKindCounter": {
5530 "10": 3,
5531 "75": 7,
5532 "153": 2,
5533 "169": 1,
5534 "193": 1,
5535 "225": 1,
5536 "242": 1,
5537 "243": 1,
5538 "254": 1,
5539 "255": 1,
5540 "256": 1,
5541 "281": 2,
5542 "290": 1
5543 },
5544 "fqnsFingerprint": "d9a969388b55dc1ca027a97b5f0a8e82baf19325bd795f91e9d4de7f193b8ad9"
5545 },
5546 "2966fa2d43b1e44fc4e0780dff9218ebc1611ad4a3571f9730e251d06038e8e5": {
5547 "translations": {
5548 "python": {
5549 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nexecute_command_configuration_property = ecs.CfnCluster.ExecuteCommandConfigurationProperty(\n kms_key_id=\"kmsKeyId\",\n log_configuration=ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(\n cloud_watch_encryption_enabled=False,\n cloud_watch_log_group_name=\"cloudWatchLogGroupName\",\n s3_bucket_name=\"s3BucketName\",\n s3_encryption_enabled=False,\n s3_key_prefix=\"s3KeyPrefix\"\n ),\n logging=\"logging\"\n)",
5550 "version": "2"
5551 },
5552 "csharp": {
5553 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nExecuteCommandConfigurationProperty executeCommandConfigurationProperty = new ExecuteCommandConfigurationProperty {\n KmsKeyId = \"kmsKeyId\",\n LogConfiguration = new ExecuteCommandLogConfigurationProperty {\n CloudWatchEncryptionEnabled = false,\n CloudWatchLogGroupName = \"cloudWatchLogGroupName\",\n S3BucketName = \"s3BucketName\",\n S3EncryptionEnabled = false,\n S3KeyPrefix = \"s3KeyPrefix\"\n },\n Logging = \"logging\"\n};",
5554 "version": "1"
5555 },
5556 "java": {
5557 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nExecuteCommandConfigurationProperty executeCommandConfigurationProperty = ExecuteCommandConfigurationProperty.builder()\n .kmsKeyId(\"kmsKeyId\")\n .logConfiguration(ExecuteCommandLogConfigurationProperty.builder()\n .cloudWatchEncryptionEnabled(false)\n .cloudWatchLogGroupName(\"cloudWatchLogGroupName\")\n .s3BucketName(\"s3BucketName\")\n .s3EncryptionEnabled(false)\n .s3KeyPrefix(\"s3KeyPrefix\")\n .build())\n .logging(\"logging\")\n .build();",
5558 "version": "1"
5559 },
5560 "go": {
5561 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nexecuteCommandConfigurationProperty := &executeCommandConfigurationProperty{\n\tkmsKeyId: jsii.String(\"kmsKeyId\"),\n\tlogConfiguration: &executeCommandLogConfigurationProperty{\n\t\tcloudWatchEncryptionEnabled: jsii.Boolean(false),\n\t\tcloudWatchLogGroupName: jsii.String(\"cloudWatchLogGroupName\"),\n\t\ts3BucketName: jsii.String(\"s3BucketName\"),\n\t\ts3EncryptionEnabled: jsii.Boolean(false),\n\t\ts3KeyPrefix: jsii.String(\"s3KeyPrefix\"),\n\t},\n\tlogging: jsii.String(\"logging\"),\n}",
5562 "version": "1"
5563 },
5564 "$": {
5565 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst executeCommandConfigurationProperty: ecs.CfnCluster.ExecuteCommandConfigurationProperty = {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n};",
5566 "version": "0"
5567 }
5568 },
5569 "location": {
5570 "api": {
5571 "api": "type",
5572 "fqn": "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandConfigurationProperty"
5573 },
5574 "field": {
5575 "field": "example"
5576 }
5577 },
5578 "didCompile": true,
5579 "fqnsReferenced": [
5580 "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandConfigurationProperty"
5581 ],
5582 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst executeCommandConfigurationProperty: ecs.CfnCluster.ExecuteCommandConfigurationProperty = {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5583 "syntaxKindCounter": {
5584 "10": 6,
5585 "75": 13,
5586 "91": 2,
5587 "153": 2,
5588 "169": 1,
5589 "193": 2,
5590 "225": 1,
5591 "242": 1,
5592 "243": 1,
5593 "254": 1,
5594 "255": 1,
5595 "256": 1,
5596 "281": 8,
5597 "290": 1
5598 },
5599 "fqnsFingerprint": "84a09185c2b53102c4b4a14dc6a404ec1fc33b72670d857182d16d6b0309669f"
5600 },
5601 "d5bc8c40131f14f668f17c659fd56d2196c36e115c7f23ded0f21b4db22da91e": {
5602 "translations": {
5603 "python": {
5604 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nexecute_command_log_configuration_property = ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(\n cloud_watch_encryption_enabled=False,\n cloud_watch_log_group_name=\"cloudWatchLogGroupName\",\n s3_bucket_name=\"s3BucketName\",\n s3_encryption_enabled=False,\n s3_key_prefix=\"s3KeyPrefix\"\n)",
5605 "version": "2"
5606 },
5607 "csharp": {
5608 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nExecuteCommandLogConfigurationProperty executeCommandLogConfigurationProperty = new ExecuteCommandLogConfigurationProperty {\n CloudWatchEncryptionEnabled = false,\n CloudWatchLogGroupName = \"cloudWatchLogGroupName\",\n S3BucketName = \"s3BucketName\",\n S3EncryptionEnabled = false,\n S3KeyPrefix = \"s3KeyPrefix\"\n};",
5609 "version": "1"
5610 },
5611 "java": {
5612 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nExecuteCommandLogConfigurationProperty executeCommandLogConfigurationProperty = ExecuteCommandLogConfigurationProperty.builder()\n .cloudWatchEncryptionEnabled(false)\n .cloudWatchLogGroupName(\"cloudWatchLogGroupName\")\n .s3BucketName(\"s3BucketName\")\n .s3EncryptionEnabled(false)\n .s3KeyPrefix(\"s3KeyPrefix\")\n .build();",
5613 "version": "1"
5614 },
5615 "go": {
5616 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nexecuteCommandLogConfigurationProperty := &executeCommandLogConfigurationProperty{\n\tcloudWatchEncryptionEnabled: jsii.Boolean(false),\n\tcloudWatchLogGroupName: jsii.String(\"cloudWatchLogGroupName\"),\n\ts3BucketName: jsii.String(\"s3BucketName\"),\n\ts3EncryptionEnabled: jsii.Boolean(false),\n\ts3KeyPrefix: jsii.String(\"s3KeyPrefix\"),\n}",
5617 "version": "1"
5618 },
5619 "$": {
5620 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst executeCommandLogConfigurationProperty: ecs.CfnCluster.ExecuteCommandLogConfigurationProperty = {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n};",
5621 "version": "0"
5622 }
5623 },
5624 "location": {
5625 "api": {
5626 "api": "type",
5627 "fqn": "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandLogConfigurationProperty"
5628 },
5629 "field": {
5630 "field": "example"
5631 }
5632 },
5633 "didCompile": true,
5634 "fqnsReferenced": [
5635 "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandLogConfigurationProperty"
5636 ],
5637 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst executeCommandLogConfigurationProperty: ecs.CfnCluster.ExecuteCommandLogConfigurationProperty = {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5638 "syntaxKindCounter": {
5639 "10": 4,
5640 "75": 10,
5641 "91": 2,
5642 "153": 2,
5643 "169": 1,
5644 "193": 1,
5645 "225": 1,
5646 "242": 1,
5647 "243": 1,
5648 "254": 1,
5649 "255": 1,
5650 "256": 1,
5651 "281": 5,
5652 "290": 1
5653 },
5654 "fqnsFingerprint": "ff41584a8de7bfce20ef20a3e97774568fbc9b90ee7f686938ae45ab4426cda1"
5655 },
5656 "426137e803a3f7172e85c538ecb67d504da451fafd981a691dae2dbce309c280": {
5657 "translations": {
5658 "python": {
5659 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_cluster_capacity_provider_associations = ecs.CfnClusterCapacityProviderAssociations(self, \"MyCfnClusterCapacityProviderAssociations\",\n capacity_providers=[\"capacityProviders\"],\n cluster=\"cluster\",\n default_capacity_provider_strategy=[ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )]\n)",
5660 "version": "2"
5661 },
5662 "csharp": {
5663 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnClusterCapacityProviderAssociations cfnClusterCapacityProviderAssociations = new CfnClusterCapacityProviderAssociations(this, \"MyCfnClusterCapacityProviderAssociations\", new CfnClusterCapacityProviderAssociationsProps {\n CapacityProviders = new [] { \"capacityProviders\" },\n Cluster = \"cluster\",\n DefaultCapacityProviderStrategy = new [] { new CapacityProviderStrategyProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } }\n});",
5664 "version": "1"
5665 },
5666 "java": {
5667 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnClusterCapacityProviderAssociations cfnClusterCapacityProviderAssociations = CfnClusterCapacityProviderAssociations.Builder.create(this, \"MyCfnClusterCapacityProviderAssociations\")\n .capacityProviders(List.of(\"capacityProviders\"))\n .cluster(\"cluster\")\n .defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .build();",
5668 "version": "1"
5669 },
5670 "go": {
5671 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnClusterCapacityProviderAssociations := ecs.NewCfnClusterCapacityProviderAssociations(this, jsii.String(\"MyCfnClusterCapacityProviderAssociations\"), &cfnClusterCapacityProviderAssociationsProps{\n\tcapacityProviders: []*string{\n\t\tjsii.String(\"capacityProviders\"),\n\t},\n\tcluster: jsii.String(\"cluster\"),\n\tdefaultCapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyProperty{\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t// the properties below are optional\n\t\t\tbase: jsii.Number(123),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n})",
5672 "version": "1"
5673 },
5674 "$": {
5675 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnClusterCapacityProviderAssociations = new ecs.CfnClusterCapacityProviderAssociations(this, 'MyCfnClusterCapacityProviderAssociations', {\n capacityProviders: ['capacityProviders'],\n cluster: 'cluster',\n defaultCapacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n});",
5676 "version": "0"
5677 }
5678 },
5679 "location": {
5680 "api": {
5681 "api": "type",
5682 "fqn": "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations"
5683 },
5684 "field": {
5685 "field": "example"
5686 }
5687 },
5688 "didCompile": true,
5689 "fqnsReferenced": [
5690 "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations",
5691 "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociationsProps",
5692 "@aws-cdk/core.Construct"
5693 ],
5694 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnClusterCapacityProviderAssociations = new ecs.CfnClusterCapacityProviderAssociations(this, 'MyCfnClusterCapacityProviderAssociations', {\n capacityProviders: ['capacityProviders'],\n cluster: 'cluster',\n defaultCapacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5695 "syntaxKindCounter": {
5696 "8": 2,
5697 "10": 5,
5698 "75": 10,
5699 "104": 1,
5700 "192": 2,
5701 "193": 2,
5702 "194": 1,
5703 "197": 1,
5704 "225": 1,
5705 "242": 1,
5706 "243": 1,
5707 "254": 1,
5708 "255": 1,
5709 "256": 1,
5710 "281": 6,
5711 "290": 1
5712 },
5713 "fqnsFingerprint": "c6364aab2928fbfa7390a8f3ad4329d89a17230097eba2eb6c46f9368e0f3a36"
5714 },
5715 "f042da0e92c1b23bc89966fc5d74b10ab442a96fa624ae86c7a98eb3f075283d": {
5716 "translations": {
5717 "python": {
5718 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncapacity_provider_strategy_property = ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n)",
5719 "version": "2"
5720 },
5721 "csharp": {
5722 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCapacityProviderStrategyProperty capacityProviderStrategyProperty = new CapacityProviderStrategyProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n};",
5723 "version": "1"
5724 },
5725 "java": {
5726 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCapacityProviderStrategyProperty capacityProviderStrategyProperty = CapacityProviderStrategyProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build();",
5727 "version": "1"
5728 },
5729 "go": {
5730 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncapacityProviderStrategyProperty := &capacityProviderStrategyProperty{\n\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t// the properties below are optional\n\tbase: jsii.Number(123),\n\tweight: jsii.Number(123),\n}",
5731 "version": "1"
5732 },
5733 "$": {
5734 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst capacityProviderStrategyProperty: ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty = {\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n};",
5735 "version": "0"
5736 }
5737 },
5738 "location": {
5739 "api": {
5740 "api": "type",
5741 "fqn": "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty"
5742 },
5743 "field": {
5744 "field": "example"
5745 }
5746 },
5747 "didCompile": true,
5748 "fqnsReferenced": [
5749 "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty"
5750 ],
5751 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst capacityProviderStrategyProperty: ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty = {\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5752 "syntaxKindCounter": {
5753 "8": 2,
5754 "10": 2,
5755 "75": 8,
5756 "153": 2,
5757 "169": 1,
5758 "193": 1,
5759 "225": 1,
5760 "242": 1,
5761 "243": 1,
5762 "254": 1,
5763 "255": 1,
5764 "256": 1,
5765 "281": 3,
5766 "290": 1
5767 },
5768 "fqnsFingerprint": "e2dd491c3afbcf8b2b79b7a0c50e7a5876372f56e60f40f688dd992aaf52c863"
5769 },
5770 "01734873a7c23a5919854b27ba78ed3f7963e157fbe46c8588e858ce90360873": {
5771 "translations": {
5772 "python": {
5773 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_cluster_capacity_provider_associations_props = ecs.CfnClusterCapacityProviderAssociationsProps(\n capacity_providers=[\"capacityProviders\"],\n cluster=\"cluster\",\n default_capacity_provider_strategy=[ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )]\n)",
5774 "version": "2"
5775 },
5776 "csharp": {
5777 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnClusterCapacityProviderAssociationsProps cfnClusterCapacityProviderAssociationsProps = new CfnClusterCapacityProviderAssociationsProps {\n CapacityProviders = new [] { \"capacityProviders\" },\n Cluster = \"cluster\",\n DefaultCapacityProviderStrategy = new [] { new CapacityProviderStrategyProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } }\n};",
5778 "version": "1"
5779 },
5780 "java": {
5781 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnClusterCapacityProviderAssociationsProps cfnClusterCapacityProviderAssociationsProps = CfnClusterCapacityProviderAssociationsProps.builder()\n .capacityProviders(List.of(\"capacityProviders\"))\n .cluster(\"cluster\")\n .defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .build();",
5782 "version": "1"
5783 },
5784 "go": {
5785 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnClusterCapacityProviderAssociationsProps := &cfnClusterCapacityProviderAssociationsProps{\n\tcapacityProviders: []*string{\n\t\tjsii.String(\"capacityProviders\"),\n\t},\n\tcluster: jsii.String(\"cluster\"),\n\tdefaultCapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyProperty{\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t// the properties below are optional\n\t\t\tbase: jsii.Number(123),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n}",
5786 "version": "1"
5787 },
5788 "$": {
5789 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnClusterCapacityProviderAssociationsProps: ecs.CfnClusterCapacityProviderAssociationsProps = {\n capacityProviders: ['capacityProviders'],\n cluster: 'cluster',\n defaultCapacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n};",
5790 "version": "0"
5791 }
5792 },
5793 "location": {
5794 "api": {
5795 "api": "type",
5796 "fqn": "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociationsProps"
5797 },
5798 "field": {
5799 "field": "example"
5800 }
5801 },
5802 "didCompile": true,
5803 "fqnsReferenced": [
5804 "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociationsProps"
5805 ],
5806 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnClusterCapacityProviderAssociationsProps: ecs.CfnClusterCapacityProviderAssociationsProps = {\n capacityProviders: ['capacityProviders'],\n cluster: 'cluster',\n defaultCapacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5807 "syntaxKindCounter": {
5808 "8": 2,
5809 "10": 4,
5810 "75": 10,
5811 "153": 1,
5812 "169": 1,
5813 "192": 2,
5814 "193": 2,
5815 "225": 1,
5816 "242": 1,
5817 "243": 1,
5818 "254": 1,
5819 "255": 1,
5820 "256": 1,
5821 "281": 6,
5822 "290": 1
5823 },
5824 "fqnsFingerprint": "4fee094ae022880945f78b6ab75f3ff0b7ac2d5f01fb78f70d9defc492d16cd3"
5825 },
5826 "481d9618a7e378c2e637bf15a12255e28514b0025b3792234b31f98eb4dca194": {
5827 "translations": {
5828 "python": {
5829 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_cluster_props = ecs.CfnClusterProps(\n capacity_providers=[\"capacityProviders\"],\n cluster_name=\"clusterName\",\n cluster_settings=[ecs.CfnCluster.ClusterSettingsProperty(\n name=\"name\",\n value=\"value\"\n )],\n configuration=ecs.CfnCluster.ClusterConfigurationProperty(\n execute_command_configuration=ecs.CfnCluster.ExecuteCommandConfigurationProperty(\n kms_key_id=\"kmsKeyId\",\n log_configuration=ecs.CfnCluster.ExecuteCommandLogConfigurationProperty(\n cloud_watch_encryption_enabled=False,\n cloud_watch_log_group_name=\"cloudWatchLogGroupName\",\n s3_bucket_name=\"s3BucketName\",\n s3_encryption_enabled=False,\n s3_key_prefix=\"s3KeyPrefix\"\n ),\n logging=\"logging\"\n )\n ),\n default_capacity_provider_strategy=[ecs.CfnCluster.CapacityProviderStrategyItemProperty(\n base=123,\n capacity_provider=\"capacityProvider\",\n weight=123\n )],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
5830 "version": "2"
5831 },
5832 "csharp": {
5833 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnClusterProps cfnClusterProps = new CfnClusterProps {\n CapacityProviders = new [] { \"capacityProviders\" },\n ClusterName = \"clusterName\",\n ClusterSettings = new [] { new ClusterSettingsProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n Configuration = new ClusterConfigurationProperty {\n ExecuteCommandConfiguration = new ExecuteCommandConfigurationProperty {\n KmsKeyId = \"kmsKeyId\",\n LogConfiguration = new ExecuteCommandLogConfigurationProperty {\n CloudWatchEncryptionEnabled = false,\n CloudWatchLogGroupName = \"cloudWatchLogGroupName\",\n S3BucketName = \"s3BucketName\",\n S3EncryptionEnabled = false,\n S3KeyPrefix = \"s3KeyPrefix\"\n },\n Logging = \"logging\"\n }\n },\n DefaultCapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n Base = 123,\n CapacityProvider = \"capacityProvider\",\n Weight = 123\n } },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
5834 "version": "1"
5835 },
5836 "java": {
5837 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnClusterProps cfnClusterProps = CfnClusterProps.builder()\n .capacityProviders(List.of(\"capacityProviders\"))\n .clusterName(\"clusterName\")\n .clusterSettings(List.of(ClusterSettingsProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .configuration(ClusterConfigurationProperty.builder()\n .executeCommandConfiguration(ExecuteCommandConfigurationProperty.builder()\n .kmsKeyId(\"kmsKeyId\")\n .logConfiguration(ExecuteCommandLogConfigurationProperty.builder()\n .cloudWatchEncryptionEnabled(false)\n .cloudWatchLogGroupName(\"cloudWatchLogGroupName\")\n .s3BucketName(\"s3BucketName\")\n .s3EncryptionEnabled(false)\n .s3KeyPrefix(\"s3KeyPrefix\")\n .build())\n .logging(\"logging\")\n .build())\n .build())\n .defaultCapacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .base(123)\n .capacityProvider(\"capacityProvider\")\n .weight(123)\n .build()))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
5838 "version": "1"
5839 },
5840 "go": {
5841 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnClusterProps := &cfnClusterProps{\n\tcapacityProviders: []*string{\n\t\tjsii.String(\"capacityProviders\"),\n\t},\n\tclusterName: jsii.String(\"clusterName\"),\n\tclusterSettings: []interface{}{\n\t\t&clusterSettingsProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tconfiguration: &clusterConfigurationProperty{\n\t\texecuteCommandConfiguration: &executeCommandConfigurationProperty{\n\t\t\tkmsKeyId: jsii.String(\"kmsKeyId\"),\n\t\t\tlogConfiguration: &executeCommandLogConfigurationProperty{\n\t\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(false),\n\t\t\t\tcloudWatchLogGroupName: jsii.String(\"cloudWatchLogGroupName\"),\n\t\t\t\ts3BucketName: jsii.String(\"s3BucketName\"),\n\t\t\t\ts3EncryptionEnabled: jsii.Boolean(false),\n\t\t\t\ts3KeyPrefix: jsii.String(\"s3KeyPrefix\"),\n\t\t\t},\n\t\t\tlogging: jsii.String(\"logging\"),\n\t\t},\n\t},\n\tdefaultCapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyItemProperty{\n\t\t\tbase: jsii.Number(123),\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
5842 "version": "1"
5843 },
5844 "$": {
5845 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnClusterProps: ecs.CfnClusterProps = {\n capacityProviders: ['capacityProviders'],\n clusterName: 'clusterName',\n clusterSettings: [{\n name: 'name',\n value: 'value',\n }],\n configuration: {\n executeCommandConfiguration: {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n },\n },\n defaultCapacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
5846 "version": "0"
5847 }
5848 },
5849 "location": {
5850 "api": {
5851 "api": "type",
5852 "fqn": "@aws-cdk/aws-ecs.CfnClusterProps"
5853 },
5854 "field": {
5855 "field": "example"
5856 }
5857 },
5858 "didCompile": true,
5859 "fqnsReferenced": [
5860 "@aws-cdk/aws-ecs.CfnClusterProps"
5861 ],
5862 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnClusterProps: ecs.CfnClusterProps = {\n capacityProviders: ['capacityProviders'],\n clusterName: 'clusterName',\n clusterSettings: [{\n name: 'name',\n value: 'value',\n }],\n configuration: {\n executeCommandConfiguration: {\n kmsKeyId: 'kmsKeyId',\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroupName: 'cloudWatchLogGroupName',\n s3BucketName: 's3BucketName',\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: 'logging',\n },\n },\n defaultCapacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5863 "syntaxKindCounter": {
5864 "8": 2,
5865 "10": 13,
5866 "75": 26,
5867 "91": 2,
5868 "153": 1,
5869 "169": 1,
5870 "192": 4,
5871 "193": 7,
5872 "225": 1,
5873 "242": 1,
5874 "243": 1,
5875 "254": 1,
5876 "255": 1,
5877 "256": 1,
5878 "281": 22,
5879 "290": 1
5880 },
5881 "fqnsFingerprint": "33ba1589999cef2edacc727649c2a866a6ee1fdb4bd9245710c32fb8f953e024"
5882 },
5883 "543a9f6857da26c1cd77bf31298e99c64cf362b83eac9b780f6d2a75f02422ee": {
5884 "translations": {
5885 "python": {
5886 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_primary_task_set = ecs.CfnPrimaryTaskSet(self, \"MyCfnPrimaryTaskSet\",\n cluster=\"cluster\",\n service=\"service\",\n task_set_id=\"taskSetId\"\n)",
5887 "version": "2"
5888 },
5889 "csharp": {
5890 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnPrimaryTaskSet cfnPrimaryTaskSet = new CfnPrimaryTaskSet(this, \"MyCfnPrimaryTaskSet\", new CfnPrimaryTaskSetProps {\n Cluster = \"cluster\",\n Service = \"service\",\n TaskSetId = \"taskSetId\"\n});",
5891 "version": "1"
5892 },
5893 "java": {
5894 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnPrimaryTaskSet cfnPrimaryTaskSet = CfnPrimaryTaskSet.Builder.create(this, \"MyCfnPrimaryTaskSet\")\n .cluster(\"cluster\")\n .service(\"service\")\n .taskSetId(\"taskSetId\")\n .build();",
5895 "version": "1"
5896 },
5897 "go": {
5898 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnPrimaryTaskSet := ecs.NewCfnPrimaryTaskSet(this, jsii.String(\"MyCfnPrimaryTaskSet\"), &cfnPrimaryTaskSetProps{\n\tcluster: jsii.String(\"cluster\"),\n\tservice: jsii.String(\"service\"),\n\ttaskSetId: jsii.String(\"taskSetId\"),\n})",
5899 "version": "1"
5900 },
5901 "$": {
5902 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnPrimaryTaskSet = new ecs.CfnPrimaryTaskSet(this, 'MyCfnPrimaryTaskSet', {\n cluster: 'cluster',\n service: 'service',\n taskSetId: 'taskSetId',\n});",
5903 "version": "0"
5904 }
5905 },
5906 "location": {
5907 "api": {
5908 "api": "type",
5909 "fqn": "@aws-cdk/aws-ecs.CfnPrimaryTaskSet"
5910 },
5911 "field": {
5912 "field": "example"
5913 }
5914 },
5915 "didCompile": true,
5916 "fqnsReferenced": [
5917 "@aws-cdk/aws-ecs.CfnPrimaryTaskSet",
5918 "@aws-cdk/aws-ecs.CfnPrimaryTaskSetProps",
5919 "@aws-cdk/core.Construct"
5920 ],
5921 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnPrimaryTaskSet = new ecs.CfnPrimaryTaskSet(this, 'MyCfnPrimaryTaskSet', {\n cluster: 'cluster',\n service: 'service',\n taskSetId: 'taskSetId',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5922 "syntaxKindCounter": {
5923 "10": 5,
5924 "75": 7,
5925 "104": 1,
5926 "193": 1,
5927 "194": 1,
5928 "197": 1,
5929 "225": 1,
5930 "242": 1,
5931 "243": 1,
5932 "254": 1,
5933 "255": 1,
5934 "256": 1,
5935 "281": 3,
5936 "290": 1
5937 },
5938 "fqnsFingerprint": "bd40914bbd7f62b960dbe0ae14c60d57b7c5cd625f14700deeea5988b860386c"
5939 },
5940 "e3c770045e7c9f6696f1796495064fee766439caaaf04a6693769f2651562d41": {
5941 "translations": {
5942 "python": {
5943 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_primary_task_set_props = ecs.CfnPrimaryTaskSetProps(\n cluster=\"cluster\",\n service=\"service\",\n task_set_id=\"taskSetId\"\n)",
5944 "version": "2"
5945 },
5946 "csharp": {
5947 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnPrimaryTaskSetProps cfnPrimaryTaskSetProps = new CfnPrimaryTaskSetProps {\n Cluster = \"cluster\",\n Service = \"service\",\n TaskSetId = \"taskSetId\"\n};",
5948 "version": "1"
5949 },
5950 "java": {
5951 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnPrimaryTaskSetProps cfnPrimaryTaskSetProps = CfnPrimaryTaskSetProps.builder()\n .cluster(\"cluster\")\n .service(\"service\")\n .taskSetId(\"taskSetId\")\n .build();",
5952 "version": "1"
5953 },
5954 "go": {
5955 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnPrimaryTaskSetProps := &cfnPrimaryTaskSetProps{\n\tcluster: jsii.String(\"cluster\"),\n\tservice: jsii.String(\"service\"),\n\ttaskSetId: jsii.String(\"taskSetId\"),\n}",
5956 "version": "1"
5957 },
5958 "$": {
5959 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnPrimaryTaskSetProps: ecs.CfnPrimaryTaskSetProps = {\n cluster: 'cluster',\n service: 'service',\n taskSetId: 'taskSetId',\n};",
5960 "version": "0"
5961 }
5962 },
5963 "location": {
5964 "api": {
5965 "api": "type",
5966 "fqn": "@aws-cdk/aws-ecs.CfnPrimaryTaskSetProps"
5967 },
5968 "field": {
5969 "field": "example"
5970 }
5971 },
5972 "didCompile": true,
5973 "fqnsReferenced": [
5974 "@aws-cdk/aws-ecs.CfnPrimaryTaskSetProps"
5975 ],
5976 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnPrimaryTaskSetProps: ecs.CfnPrimaryTaskSetProps = {\n cluster: 'cluster',\n service: 'service',\n taskSetId: 'taskSetId',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5977 "syntaxKindCounter": {
5978 "10": 4,
5979 "75": 7,
5980 "153": 1,
5981 "169": 1,
5982 "193": 1,
5983 "225": 1,
5984 "242": 1,
5985 "243": 1,
5986 "254": 1,
5987 "255": 1,
5988 "256": 1,
5989 "281": 3,
5990 "290": 1
5991 },
5992 "fqnsFingerprint": "9427b3cb68ff3b04a917c5e525261fd65af45c54077d424c260f20db257512d9"
5993 },
5994 "57ee5e1c49cea1f4a757604a60b1621dbb8839f497d85f4dc8e7d50d638fe8fb": {
5995 "translations": {
5996 "python": {
5997 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_service = ecs.CfnService(self, \"MyCfnService\",\n capacity_provider_strategy=[ecs.CfnService.CapacityProviderStrategyItemProperty(\n base=123,\n capacity_provider=\"capacityProvider\",\n weight=123\n )],\n cluster=\"cluster\",\n deployment_configuration=ecs.CfnService.DeploymentConfigurationProperty(\n deployment_circuit_breaker=ecs.CfnService.DeploymentCircuitBreakerProperty(\n enable=False,\n rollback=False\n ),\n maximum_percent=123,\n minimum_healthy_percent=123\n ),\n deployment_controller=ecs.CfnService.DeploymentControllerProperty(\n type=\"type\"\n ),\n desired_count=123,\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n health_check_grace_period_seconds=123,\n launch_type=\"launchType\",\n load_balancers=[ecs.CfnService.LoadBalancerProperty(\n container_port=123,\n\n # the properties below are optional\n container_name=\"containerName\",\n load_balancer_name=\"loadBalancerName\",\n target_group_arn=\"targetGroupArn\"\n )],\n network_configuration=ecs.CfnService.NetworkConfigurationProperty(\n awsvpc_configuration=ecs.CfnService.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n ),\n placement_constraints=[ecs.CfnService.PlacementConstraintProperty(\n type=\"type\",\n\n # the properties below are optional\n expression=\"expression\"\n )],\n placement_strategies=[ecs.CfnService.PlacementStrategyProperty(\n type=\"type\",\n\n # the properties below are optional\n field=\"field\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n role=\"role\",\n scheduling_strategy=\"schedulingStrategy\",\n service_name=\"serviceName\",\n service_registries=[ecs.CfnService.ServiceRegistryProperty(\n container_name=\"containerName\",\n container_port=123,\n port=123,\n registry_arn=\"registryArn\"\n )],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_definition=\"taskDefinition\"\n)",
5998 "version": "2"
5999 },
6000 "csharp": {
6001 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnService cfnService = new CfnService(this, \"MyCfnService\", new CfnServiceProps {\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n Base = 123,\n CapacityProvider = \"capacityProvider\",\n Weight = 123\n } },\n Cluster = \"cluster\",\n DeploymentConfiguration = new DeploymentConfigurationProperty {\n DeploymentCircuitBreaker = new DeploymentCircuitBreakerProperty {\n Enable = false,\n Rollback = false\n },\n MaximumPercent = 123,\n MinimumHealthyPercent = 123\n },\n DeploymentController = new DeploymentControllerProperty {\n Type = \"type\"\n },\n DesiredCount = 123,\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n HealthCheckGracePeriodSeconds = 123,\n LaunchType = \"launchType\",\n LoadBalancers = new [] { new LoadBalancerProperty {\n ContainerPort = 123,\n\n // the properties below are optional\n ContainerName = \"containerName\",\n LoadBalancerName = \"loadBalancerName\",\n TargetGroupArn = \"targetGroupArn\"\n } },\n NetworkConfiguration = new NetworkConfigurationProperty {\n AwsvpcConfiguration = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n }\n },\n PlacementConstraints = new [] { new PlacementConstraintProperty {\n Type = \"type\",\n\n // the properties below are optional\n Expression = \"expression\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Type = \"type\",\n\n // the properties below are optional\n Field = \"field\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n Role = \"role\",\n SchedulingStrategy = \"schedulingStrategy\",\n ServiceName = \"serviceName\",\n ServiceRegistries = new [] { new ServiceRegistryProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n Port = 123,\n RegistryArn = \"registryArn\"\n } },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskDefinition = \"taskDefinition\"\n});",
6002 "version": "1"
6003 },
6004 "java": {
6005 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnService cfnService = CfnService.Builder.create(this, \"MyCfnService\")\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .base(123)\n .capacityProvider(\"capacityProvider\")\n .weight(123)\n .build()))\n .cluster(\"cluster\")\n .deploymentConfiguration(DeploymentConfigurationProperty.builder()\n .deploymentCircuitBreaker(DeploymentCircuitBreakerProperty.builder()\n .enable(false)\n .rollback(false)\n .build())\n .maximumPercent(123)\n .minimumHealthyPercent(123)\n .build())\n .deploymentController(DeploymentControllerProperty.builder()\n .type(\"type\")\n .build())\n .desiredCount(123)\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .healthCheckGracePeriodSeconds(123)\n .launchType(\"launchType\")\n .loadBalancers(List.of(LoadBalancerProperty.builder()\n .containerPort(123)\n\n // the properties below are optional\n .containerName(\"containerName\")\n .loadBalancerName(\"loadBalancerName\")\n .targetGroupArn(\"targetGroupArn\")\n .build()))\n .networkConfiguration(NetworkConfigurationProperty.builder()\n .awsvpcConfiguration(AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build())\n .build())\n .placementConstraints(List.of(PlacementConstraintProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .expression(\"expression\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .field(\"field\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .role(\"role\")\n .schedulingStrategy(\"schedulingStrategy\")\n .serviceName(\"serviceName\")\n .serviceRegistries(List.of(ServiceRegistryProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .port(123)\n .registryArn(\"registryArn\")\n .build()))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskDefinition(\"taskDefinition\")\n .build();",
6006 "version": "1"
6007 },
6008 "go": {
6009 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnService := ecs.NewCfnService(this, jsii.String(\"MyCfnService\"), &cfnServiceProps{\n\tcapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyItemProperty{\n\t\t\tbase: jsii.Number(123),\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n\tcluster: jsii.String(\"cluster\"),\n\tdeploymentConfiguration: &deploymentConfigurationProperty{\n\t\tdeploymentCircuitBreaker: &deploymentCircuitBreakerProperty{\n\t\t\tenable: jsii.Boolean(false),\n\t\t\trollback: jsii.Boolean(false),\n\t\t},\n\t\tmaximumPercent: jsii.Number(123),\n\t\tminimumHealthyPercent: jsii.Number(123),\n\t},\n\tdeploymentController: &deploymentControllerProperty{\n\t\ttype: jsii.String(\"type\"),\n\t},\n\tdesiredCount: jsii.Number(123),\n\tenableEcsManagedTags: jsii.Boolean(false),\n\tenableExecuteCommand: jsii.Boolean(false),\n\thealthCheckGracePeriodSeconds: jsii.Number(123),\n\tlaunchType: jsii.String(\"launchType\"),\n\tloadBalancers: []interface{}{\n\t\t&loadBalancerProperty{\n\t\t\tcontainerPort: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tloadBalancerName: jsii.String(\"loadBalancerName\"),\n\t\t\ttargetGroupArn: jsii.String(\"targetGroupArn\"),\n\t\t},\n\t},\n\tnetworkConfiguration: &networkConfigurationProperty{\n\t\tawsvpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\tsubnets: []*string{\n\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\tsecurityGroups: []*string{\n\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t},\n\t\t},\n\t},\n\tplacementConstraints: []interface{}{\n\t\t&placementConstraintProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\n\t\t\t// the properties below are optional\n\t\t\texpression: jsii.String(\"expression\"),\n\t\t},\n\t},\n\tplacementStrategies: []interface{}{\n\t\t&placementStrategyProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\n\t\t\t// the properties below are optional\n\t\t\tfield: jsii.String(\"field\"),\n\t\t},\n\t},\n\tplatformVersion: jsii.String(\"platformVersion\"),\n\tpropagateTags: jsii.String(\"propagateTags\"),\n\trole: jsii.String(\"role\"),\n\tschedulingStrategy: jsii.String(\"schedulingStrategy\"),\n\tserviceName: jsii.String(\"serviceName\"),\n\tserviceRegistries: []interface{}{\n\t\t&serviceRegistryProperty{\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\tport: jsii.Number(123),\n\t\t\tregistryArn: jsii.String(\"registryArn\"),\n\t\t},\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\ttaskDefinition: jsii.String(\"taskDefinition\"),\n})",
6010 "version": "1"
6011 },
6012 "$": {
6013 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnService = new ecs.CfnService(this, 'MyCfnService', /* all optional props */ {\n capacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n cluster: 'cluster',\n deploymentConfiguration: {\n deploymentCircuitBreaker: {\n enable: false,\n rollback: false,\n },\n maximumPercent: 123,\n minimumHealthyPercent: 123,\n },\n deploymentController: {\n type: 'type',\n },\n desiredCount: 123,\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriodSeconds: 123,\n launchType: 'launchType',\n loadBalancers: [{\n containerPort: 123,\n\n // the properties below are optional\n containerName: 'containerName',\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsvpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n placementStrategies: [{\n type: 'type',\n\n // the properties below are optional\n field: 'field',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n role: 'role',\n schedulingStrategy: 'schedulingStrategy',\n serviceName: 'serviceName',\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskDefinition: 'taskDefinition',\n});",
6014 "version": "0"
6015 }
6016 },
6017 "location": {
6018 "api": {
6019 "api": "type",
6020 "fqn": "@aws-cdk/aws-ecs.CfnService"
6021 },
6022 "field": {
6023 "field": "example"
6024 }
6025 },
6026 "didCompile": true,
6027 "fqnsReferenced": [
6028 "@aws-cdk/aws-ecs.CfnService",
6029 "@aws-cdk/aws-ecs.CfnServiceProps",
6030 "@aws-cdk/core.Construct"
6031 ],
6032 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnService = new ecs.CfnService(this, 'MyCfnService', /* all optional props */ {\n capacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n cluster: 'cluster',\n deploymentConfiguration: {\n deploymentCircuitBreaker: {\n enable: false,\n rollback: false,\n },\n maximumPercent: 123,\n minimumHealthyPercent: 123,\n },\n deploymentController: {\n type: 'type',\n },\n desiredCount: 123,\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriodSeconds: 123,\n launchType: 'launchType',\n loadBalancers: [{\n containerPort: 123,\n\n // the properties below are optional\n containerName: 'containerName',\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsvpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n placementStrategies: [{\n type: 'type',\n\n // the properties below are optional\n field: 'field',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n role: 'role',\n schedulingStrategy: 'schedulingStrategy',\n serviceName: 'serviceName',\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskDefinition: 'taskDefinition',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6033 "syntaxKindCounter": {
6034 "8": 9,
6035 "10": 26,
6036 "75": 52,
6037 "91": 4,
6038 "104": 1,
6039 "192": 8,
6040 "193": 12,
6041 "194": 1,
6042 "197": 1,
6043 "225": 1,
6044 "242": 1,
6045 "243": 1,
6046 "254": 1,
6047 "255": 1,
6048 "256": 1,
6049 "281": 48,
6050 "290": 1
6051 },
6052 "fqnsFingerprint": "cd54503dbaf418ce990b16e8ce9b587cc8aa9bba64c3f19602ee73ecc8e32f9f"
6053 },
6054 "31ad37e54d2e4c264ffdf13ffaa8e70eeb699af0bf515272712c700e8ecb2d5d": {
6055 "translations": {
6056 "python": {
6057 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\naws_vpc_configuration_property = ecs.CfnService.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n)",
6058 "version": "2"
6059 },
6060 "csharp": {
6061 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAwsVpcConfigurationProperty awsVpcConfigurationProperty = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n};",
6062 "version": "1"
6063 },
6064 "java": {
6065 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAwsVpcConfigurationProperty awsVpcConfigurationProperty = AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build();",
6066 "version": "1"
6067 },
6068 "go": {
6069 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nawsVpcConfigurationProperty := &awsVpcConfigurationProperty{\n\tsubnets: []*string{\n\t\tjsii.String(\"subnets\"),\n\t},\n\n\t// the properties below are optional\n\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\tsecurityGroups: []*string{\n\t\tjsii.String(\"securityGroups\"),\n\t},\n}",
6070 "version": "1"
6071 },
6072 "$": {
6073 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst awsVpcConfigurationProperty: ecs.CfnService.AwsVpcConfigurationProperty = {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n};",
6074 "version": "0"
6075 }
6076 },
6077 "location": {
6078 "api": {
6079 "api": "type",
6080 "fqn": "@aws-cdk/aws-ecs.CfnService.AwsVpcConfigurationProperty"
6081 },
6082 "field": {
6083 "field": "example"
6084 }
6085 },
6086 "didCompile": true,
6087 "fqnsReferenced": [
6088 "@aws-cdk/aws-ecs.CfnService.AwsVpcConfigurationProperty"
6089 ],
6090 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst awsVpcConfigurationProperty: ecs.CfnService.AwsVpcConfigurationProperty = {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6091 "syntaxKindCounter": {
6092 "10": 4,
6093 "75": 8,
6094 "153": 2,
6095 "169": 1,
6096 "192": 2,
6097 "193": 1,
6098 "225": 1,
6099 "242": 1,
6100 "243": 1,
6101 "254": 1,
6102 "255": 1,
6103 "256": 1,
6104 "281": 3,
6105 "290": 1
6106 },
6107 "fqnsFingerprint": "cc604e5ab17a0a13a4fef2806a25e8757ab5a21e362670782fddb5be04d58af9"
6108 },
6109 "1caba174a5dd6250b2a8e6aa7849c9ae160700fab84147339af39f51f3b721b0": {
6110 "translations": {
6111 "python": {
6112 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncapacity_provider_strategy_item_property = ecs.CfnService.CapacityProviderStrategyItemProperty(\n base=123,\n capacity_provider=\"capacityProvider\",\n weight=123\n)",
6113 "version": "2"
6114 },
6115 "csharp": {
6116 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = new CapacityProviderStrategyItemProperty {\n Base = 123,\n CapacityProvider = \"capacityProvider\",\n Weight = 123\n};",
6117 "version": "1"
6118 },
6119 "java": {
6120 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = CapacityProviderStrategyItemProperty.builder()\n .base(123)\n .capacityProvider(\"capacityProvider\")\n .weight(123)\n .build();",
6121 "version": "1"
6122 },
6123 "go": {
6124 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncapacityProviderStrategyItemProperty := &capacityProviderStrategyItemProperty{\n\tbase: jsii.Number(123),\n\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\tweight: jsii.Number(123),\n}",
6125 "version": "1"
6126 },
6127 "$": {
6128 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst capacityProviderStrategyItemProperty: ecs.CfnService.CapacityProviderStrategyItemProperty = {\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n};",
6129 "version": "0"
6130 }
6131 },
6132 "location": {
6133 "api": {
6134 "api": "type",
6135 "fqn": "@aws-cdk/aws-ecs.CfnService.CapacityProviderStrategyItemProperty"
6136 },
6137 "field": {
6138 "field": "example"
6139 }
6140 },
6141 "didCompile": true,
6142 "fqnsReferenced": [
6143 "@aws-cdk/aws-ecs.CfnService.CapacityProviderStrategyItemProperty"
6144 ],
6145 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst capacityProviderStrategyItemProperty: ecs.CfnService.CapacityProviderStrategyItemProperty = {\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6146 "syntaxKindCounter": {
6147 "8": 2,
6148 "10": 2,
6149 "75": 8,
6150 "153": 2,
6151 "169": 1,
6152 "193": 1,
6153 "225": 1,
6154 "242": 1,
6155 "243": 1,
6156 "254": 1,
6157 "255": 1,
6158 "256": 1,
6159 "281": 3,
6160 "290": 1
6161 },
6162 "fqnsFingerprint": "ee4b78c398e74123ac59aa98c92715686c07e354cbc1befb341055991a03678e"
6163 },
6164 "6daaf9b63192ea7cc01387adf8a9877ae1a32f5a94a7c609fac44107708ce6d3": {
6165 "translations": {
6166 "python": {
6167 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndeployment_circuit_breaker_property = ecs.CfnService.DeploymentCircuitBreakerProperty(\n enable=False,\n rollback=False\n)",
6168 "version": "2"
6169 },
6170 "csharp": {
6171 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDeploymentCircuitBreakerProperty deploymentCircuitBreakerProperty = new DeploymentCircuitBreakerProperty {\n Enable = false,\n Rollback = false\n};",
6172 "version": "1"
6173 },
6174 "java": {
6175 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDeploymentCircuitBreakerProperty deploymentCircuitBreakerProperty = DeploymentCircuitBreakerProperty.builder()\n .enable(false)\n .rollback(false)\n .build();",
6176 "version": "1"
6177 },
6178 "go": {
6179 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndeploymentCircuitBreakerProperty := &deploymentCircuitBreakerProperty{\n\tenable: jsii.Boolean(false),\n\trollback: jsii.Boolean(false),\n}",
6180 "version": "1"
6181 },
6182 "$": {
6183 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst deploymentCircuitBreakerProperty: ecs.CfnService.DeploymentCircuitBreakerProperty = {\n enable: false,\n rollback: false,\n};",
6184 "version": "0"
6185 }
6186 },
6187 "location": {
6188 "api": {
6189 "api": "type",
6190 "fqn": "@aws-cdk/aws-ecs.CfnService.DeploymentCircuitBreakerProperty"
6191 },
6192 "field": {
6193 "field": "example"
6194 }
6195 },
6196 "didCompile": true,
6197 "fqnsReferenced": [
6198 "@aws-cdk/aws-ecs.CfnService.DeploymentCircuitBreakerProperty"
6199 ],
6200 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst deploymentCircuitBreakerProperty: ecs.CfnService.DeploymentCircuitBreakerProperty = {\n enable: false,\n rollback: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6201 "syntaxKindCounter": {
6202 "10": 1,
6203 "75": 7,
6204 "91": 2,
6205 "153": 2,
6206 "169": 1,
6207 "193": 1,
6208 "225": 1,
6209 "242": 1,
6210 "243": 1,
6211 "254": 1,
6212 "255": 1,
6213 "256": 1,
6214 "281": 2,
6215 "290": 1
6216 },
6217 "fqnsFingerprint": "76cba429177b3aab59c8d505e39bf7204f6f94be30d82b0bdd6863bc9401e39d"
6218 },
6219 "c4102edcca0986d04e5cff297cd63d43ae004f75cb2edef0c8053d2e117c4456": {
6220 "translations": {
6221 "python": {
6222 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndeployment_configuration_property = ecs.CfnService.DeploymentConfigurationProperty(\n deployment_circuit_breaker=ecs.CfnService.DeploymentCircuitBreakerProperty(\n enable=False,\n rollback=False\n ),\n maximum_percent=123,\n minimum_healthy_percent=123\n)",
6223 "version": "2"
6224 },
6225 "csharp": {
6226 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDeploymentConfigurationProperty deploymentConfigurationProperty = new DeploymentConfigurationProperty {\n DeploymentCircuitBreaker = new DeploymentCircuitBreakerProperty {\n Enable = false,\n Rollback = false\n },\n MaximumPercent = 123,\n MinimumHealthyPercent = 123\n};",
6227 "version": "1"
6228 },
6229 "java": {
6230 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDeploymentConfigurationProperty deploymentConfigurationProperty = DeploymentConfigurationProperty.builder()\n .deploymentCircuitBreaker(DeploymentCircuitBreakerProperty.builder()\n .enable(false)\n .rollback(false)\n .build())\n .maximumPercent(123)\n .minimumHealthyPercent(123)\n .build();",
6231 "version": "1"
6232 },
6233 "go": {
6234 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndeploymentConfigurationProperty := &deploymentConfigurationProperty{\n\tdeploymentCircuitBreaker: &deploymentCircuitBreakerProperty{\n\t\tenable: jsii.Boolean(false),\n\t\trollback: jsii.Boolean(false),\n\t},\n\tmaximumPercent: jsii.Number(123),\n\tminimumHealthyPercent: jsii.Number(123),\n}",
6235 "version": "1"
6236 },
6237 "$": {
6238 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst deploymentConfigurationProperty: ecs.CfnService.DeploymentConfigurationProperty = {\n deploymentCircuitBreaker: {\n enable: false,\n rollback: false,\n },\n maximumPercent: 123,\n minimumHealthyPercent: 123,\n};",
6239 "version": "0"
6240 }
6241 },
6242 "location": {
6243 "api": {
6244 "api": "type",
6245 "fqn": "@aws-cdk/aws-ecs.CfnService.DeploymentConfigurationProperty"
6246 },
6247 "field": {
6248 "field": "example"
6249 }
6250 },
6251 "didCompile": true,
6252 "fqnsReferenced": [
6253 "@aws-cdk/aws-ecs.CfnService.DeploymentConfigurationProperty"
6254 ],
6255 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst deploymentConfigurationProperty: ecs.CfnService.DeploymentConfigurationProperty = {\n deploymentCircuitBreaker: {\n enable: false,\n rollback: false,\n },\n maximumPercent: 123,\n minimumHealthyPercent: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6256 "syntaxKindCounter": {
6257 "8": 2,
6258 "10": 1,
6259 "75": 10,
6260 "91": 2,
6261 "153": 2,
6262 "169": 1,
6263 "193": 2,
6264 "225": 1,
6265 "242": 1,
6266 "243": 1,
6267 "254": 1,
6268 "255": 1,
6269 "256": 1,
6270 "281": 5,
6271 "290": 1
6272 },
6273 "fqnsFingerprint": "705b7cbf18a175f105b4696e70f86ec3a6fb40cb3cf24c46ca260edce023ab48"
6274 },
6275 "5b32d4dbc38e26fcbe3a3d1eb17cc57992a330fd4d456659672da24374ae1e72": {
6276 "translations": {
6277 "python": {
6278 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndeployment_controller_property = ecs.CfnService.DeploymentControllerProperty(\n type=\"type\"\n)",
6279 "version": "2"
6280 },
6281 "csharp": {
6282 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDeploymentControllerProperty deploymentControllerProperty = new DeploymentControllerProperty {\n Type = \"type\"\n};",
6283 "version": "1"
6284 },
6285 "java": {
6286 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDeploymentControllerProperty deploymentControllerProperty = DeploymentControllerProperty.builder()\n .type(\"type\")\n .build();",
6287 "version": "1"
6288 },
6289 "go": {
6290 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndeploymentControllerProperty := &deploymentControllerProperty{\n\ttype: jsii.String(\"type\"),\n}",
6291 "version": "1"
6292 },
6293 "$": {
6294 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst deploymentControllerProperty: ecs.CfnService.DeploymentControllerProperty = {\n type: 'type',\n};",
6295 "version": "0"
6296 }
6297 },
6298 "location": {
6299 "api": {
6300 "api": "type",
6301 "fqn": "@aws-cdk/aws-ecs.CfnService.DeploymentControllerProperty"
6302 },
6303 "field": {
6304 "field": "example"
6305 }
6306 },
6307 "didCompile": true,
6308 "fqnsReferenced": [
6309 "@aws-cdk/aws-ecs.CfnService.DeploymentControllerProperty"
6310 ],
6311 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst deploymentControllerProperty: ecs.CfnService.DeploymentControllerProperty = {\n type: 'type',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6312 "syntaxKindCounter": {
6313 "10": 2,
6314 "75": 6,
6315 "153": 2,
6316 "169": 1,
6317 "193": 1,
6318 "225": 1,
6319 "242": 1,
6320 "243": 1,
6321 "254": 1,
6322 "255": 1,
6323 "256": 1,
6324 "281": 1,
6325 "290": 1
6326 },
6327 "fqnsFingerprint": "0afe8d77f3e9df6e6abf0509125b8c907fa9902bf58aa2c06bc80bdaa251a083"
6328 },
6329 "05769022cd288b784e132d61cff36924da84f249a8ff1ce8ebdb7eb00f3b3f76": {
6330 "translations": {
6331 "python": {
6332 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nload_balancer_property = ecs.CfnService.LoadBalancerProperty(\n container_port=123,\n\n # the properties below are optional\n container_name=\"containerName\",\n load_balancer_name=\"loadBalancerName\",\n target_group_arn=\"targetGroupArn\"\n)",
6333 "version": "2"
6334 },
6335 "csharp": {
6336 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLoadBalancerProperty loadBalancerProperty = new LoadBalancerProperty {\n ContainerPort = 123,\n\n // the properties below are optional\n ContainerName = \"containerName\",\n LoadBalancerName = \"loadBalancerName\",\n TargetGroupArn = \"targetGroupArn\"\n};",
6337 "version": "1"
6338 },
6339 "java": {
6340 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLoadBalancerProperty loadBalancerProperty = LoadBalancerProperty.builder()\n .containerPort(123)\n\n // the properties below are optional\n .containerName(\"containerName\")\n .loadBalancerName(\"loadBalancerName\")\n .targetGroupArn(\"targetGroupArn\")\n .build();",
6341 "version": "1"
6342 },
6343 "go": {
6344 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nloadBalancerProperty := &loadBalancerProperty{\n\tcontainerPort: jsii.Number(123),\n\n\t// the properties below are optional\n\tcontainerName: jsii.String(\"containerName\"),\n\tloadBalancerName: jsii.String(\"loadBalancerName\"),\n\ttargetGroupArn: jsii.String(\"targetGroupArn\"),\n}",
6345 "version": "1"
6346 },
6347 "$": {
6348 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst loadBalancerProperty: ecs.CfnService.LoadBalancerProperty = {\n containerPort: 123,\n\n // the properties below are optional\n containerName: 'containerName',\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n};",
6349 "version": "0"
6350 }
6351 },
6352 "location": {
6353 "api": {
6354 "api": "type",
6355 "fqn": "@aws-cdk/aws-ecs.CfnService.LoadBalancerProperty"
6356 },
6357 "field": {
6358 "field": "example"
6359 }
6360 },
6361 "didCompile": true,
6362 "fqnsReferenced": [
6363 "@aws-cdk/aws-ecs.CfnService.LoadBalancerProperty"
6364 ],
6365 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst loadBalancerProperty: ecs.CfnService.LoadBalancerProperty = {\n containerPort: 123,\n\n // the properties below are optional\n containerName: 'containerName',\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6366 "syntaxKindCounter": {
6367 "8": 1,
6368 "10": 4,
6369 "75": 9,
6370 "153": 2,
6371 "169": 1,
6372 "193": 1,
6373 "225": 1,
6374 "242": 1,
6375 "243": 1,
6376 "254": 1,
6377 "255": 1,
6378 "256": 1,
6379 "281": 4,
6380 "290": 1
6381 },
6382 "fqnsFingerprint": "e7bd5bab6dd615884975c4ba8f32fc61dd109494f8038bab20ea4ebdb59ad161"
6383 },
6384 "a052831eb31bb7cdddd5d09161c0973ec3f890529a375cd7d03ed21952f321ff": {
6385 "translations": {
6386 "python": {
6387 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nnetwork_configuration_property = ecs.CfnService.NetworkConfigurationProperty(\n awsvpc_configuration=ecs.CfnService.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n)",
6388 "version": "2"
6389 },
6390 "csharp": {
6391 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nNetworkConfigurationProperty networkConfigurationProperty = new NetworkConfigurationProperty {\n AwsvpcConfiguration = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n }\n};",
6392 "version": "1"
6393 },
6394 "java": {
6395 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nNetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()\n .awsvpcConfiguration(AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build())\n .build();",
6396 "version": "1"
6397 },
6398 "go": {
6399 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nnetworkConfigurationProperty := &networkConfigurationProperty{\n\tawsvpcConfiguration: &awsVpcConfigurationProperty{\n\t\tsubnets: []*string{\n\t\t\tjsii.String(\"subnets\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\tsecurityGroups: []*string{\n\t\t\tjsii.String(\"securityGroups\"),\n\t\t},\n\t},\n}",
6400 "version": "1"
6401 },
6402 "$": {
6403 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst networkConfigurationProperty: ecs.CfnService.NetworkConfigurationProperty = {\n awsvpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n};",
6404 "version": "0"
6405 }
6406 },
6407 "location": {
6408 "api": {
6409 "api": "type",
6410 "fqn": "@aws-cdk/aws-ecs.CfnService.NetworkConfigurationProperty"
6411 },
6412 "field": {
6413 "field": "example"
6414 }
6415 },
6416 "didCompile": true,
6417 "fqnsReferenced": [
6418 "@aws-cdk/aws-ecs.CfnService.NetworkConfigurationProperty"
6419 ],
6420 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst networkConfigurationProperty: ecs.CfnService.NetworkConfigurationProperty = {\n awsvpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6421 "syntaxKindCounter": {
6422 "10": 4,
6423 "75": 9,
6424 "153": 2,
6425 "169": 1,
6426 "192": 2,
6427 "193": 2,
6428 "225": 1,
6429 "242": 1,
6430 "243": 1,
6431 "254": 1,
6432 "255": 1,
6433 "256": 1,
6434 "281": 4,
6435 "290": 1
6436 },
6437 "fqnsFingerprint": "60652aa37cb7e8047a9d93f01fd69d9b471ae8a53b32393fd3abb0e907f10ae7"
6438 },
6439 "b4f10b49970d1ce9c905831c17ea1e4bfc723704ee6f9f9f895c7aac778df924": {
6440 "translations": {
6441 "python": {
6442 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nplacement_constraint_property = ecs.CfnService.PlacementConstraintProperty(\n type=\"type\",\n\n # the properties below are optional\n expression=\"expression\"\n)",
6443 "version": "2"
6444 },
6445 "csharp": {
6446 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nPlacementConstraintProperty placementConstraintProperty = new PlacementConstraintProperty {\n Type = \"type\",\n\n // the properties below are optional\n Expression = \"expression\"\n};",
6447 "version": "1"
6448 },
6449 "java": {
6450 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nPlacementConstraintProperty placementConstraintProperty = PlacementConstraintProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .expression(\"expression\")\n .build();",
6451 "version": "1"
6452 },
6453 "go": {
6454 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nplacementConstraintProperty := &placementConstraintProperty{\n\ttype: jsii.String(\"type\"),\n\n\t// the properties below are optional\n\texpression: jsii.String(\"expression\"),\n}",
6455 "version": "1"
6456 },
6457 "$": {
6458 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst placementConstraintProperty: ecs.CfnService.PlacementConstraintProperty = {\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n};",
6459 "version": "0"
6460 }
6461 },
6462 "location": {
6463 "api": {
6464 "api": "type",
6465 "fqn": "@aws-cdk/aws-ecs.CfnService.PlacementConstraintProperty"
6466 },
6467 "field": {
6468 "field": "example"
6469 }
6470 },
6471 "didCompile": true,
6472 "fqnsReferenced": [
6473 "@aws-cdk/aws-ecs.CfnService.PlacementConstraintProperty"
6474 ],
6475 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst placementConstraintProperty: ecs.CfnService.PlacementConstraintProperty = {\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6476 "syntaxKindCounter": {
6477 "10": 3,
6478 "75": 7,
6479 "153": 2,
6480 "169": 1,
6481 "193": 1,
6482 "225": 1,
6483 "242": 1,
6484 "243": 1,
6485 "254": 1,
6486 "255": 1,
6487 "256": 1,
6488 "281": 2,
6489 "290": 1
6490 },
6491 "fqnsFingerprint": "928a984690590fccd425b8952e75edfea53d6fc85cff717eb22a08e67d1cf81f"
6492 },
6493 "9dcfa06f883573919dc7ae6c8da37c9b6736893a3028538ed77fab17b1bd0e4e": {
6494 "translations": {
6495 "python": {
6496 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nplacement_strategy_property = ecs.CfnService.PlacementStrategyProperty(\n type=\"type\",\n\n # the properties below are optional\n field=\"field\"\n)",
6497 "version": "2"
6498 },
6499 "csharp": {
6500 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nPlacementStrategyProperty placementStrategyProperty = new PlacementStrategyProperty {\n Type = \"type\",\n\n // the properties below are optional\n Field = \"field\"\n};",
6501 "version": "1"
6502 },
6503 "java": {
6504 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nPlacementStrategyProperty placementStrategyProperty = PlacementStrategyProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .field(\"field\")\n .build();",
6505 "version": "1"
6506 },
6507 "go": {
6508 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nplacementStrategyProperty := &placementStrategyProperty{\n\ttype: jsii.String(\"type\"),\n\n\t// the properties below are optional\n\tfield: jsii.String(\"field\"),\n}",
6509 "version": "1"
6510 },
6511 "$": {
6512 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst placementStrategyProperty: ecs.CfnService.PlacementStrategyProperty = {\n type: 'type',\n\n // the properties below are optional\n field: 'field',\n};",
6513 "version": "0"
6514 }
6515 },
6516 "location": {
6517 "api": {
6518 "api": "type",
6519 "fqn": "@aws-cdk/aws-ecs.CfnService.PlacementStrategyProperty"
6520 },
6521 "field": {
6522 "field": "example"
6523 }
6524 },
6525 "didCompile": true,
6526 "fqnsReferenced": [
6527 "@aws-cdk/aws-ecs.CfnService.PlacementStrategyProperty"
6528 ],
6529 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst placementStrategyProperty: ecs.CfnService.PlacementStrategyProperty = {\n type: 'type',\n\n // the properties below are optional\n field: 'field',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6530 "syntaxKindCounter": {
6531 "10": 3,
6532 "75": 7,
6533 "153": 2,
6534 "169": 1,
6535 "193": 1,
6536 "225": 1,
6537 "242": 1,
6538 "243": 1,
6539 "254": 1,
6540 "255": 1,
6541 "256": 1,
6542 "281": 2,
6543 "290": 1
6544 },
6545 "fqnsFingerprint": "af37a9bc713bcd49650e2972ae53133335cede51b1f996c1d96171fd0e5020c4"
6546 },
6547 "c94869f97a55846fda6ce3482ebcc5e02a03ecceaf9000a93ccfd2b63d876e0e": {
6548 "translations": {
6549 "python": {
6550 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nservice_registry_property = ecs.CfnService.ServiceRegistryProperty(\n container_name=\"containerName\",\n container_port=123,\n port=123,\n registry_arn=\"registryArn\"\n)",
6551 "version": "2"
6552 },
6553 "csharp": {
6554 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nServiceRegistryProperty serviceRegistryProperty = new ServiceRegistryProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n Port = 123,\n RegistryArn = \"registryArn\"\n};",
6555 "version": "1"
6556 },
6557 "java": {
6558 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nServiceRegistryProperty serviceRegistryProperty = ServiceRegistryProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .port(123)\n .registryArn(\"registryArn\")\n .build();",
6559 "version": "1"
6560 },
6561 "go": {
6562 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nserviceRegistryProperty := &serviceRegistryProperty{\n\tcontainerName: jsii.String(\"containerName\"),\n\tcontainerPort: jsii.Number(123),\n\tport: jsii.Number(123),\n\tregistryArn: jsii.String(\"registryArn\"),\n}",
6563 "version": "1"
6564 },
6565 "$": {
6566 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst serviceRegistryProperty: ecs.CfnService.ServiceRegistryProperty = {\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n};",
6567 "version": "0"
6568 }
6569 },
6570 "location": {
6571 "api": {
6572 "api": "type",
6573 "fqn": "@aws-cdk/aws-ecs.CfnService.ServiceRegistryProperty"
6574 },
6575 "field": {
6576 "field": "example"
6577 }
6578 },
6579 "didCompile": true,
6580 "fqnsReferenced": [
6581 "@aws-cdk/aws-ecs.CfnService.ServiceRegistryProperty"
6582 ],
6583 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst serviceRegistryProperty: ecs.CfnService.ServiceRegistryProperty = {\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6584 "syntaxKindCounter": {
6585 "8": 2,
6586 "10": 3,
6587 "75": 9,
6588 "153": 2,
6589 "169": 1,
6590 "193": 1,
6591 "225": 1,
6592 "242": 1,
6593 "243": 1,
6594 "254": 1,
6595 "255": 1,
6596 "256": 1,
6597 "281": 4,
6598 "290": 1
6599 },
6600 "fqnsFingerprint": "13b50abd234c1e9efe1727008a31a1959def8844089cea4122d88e5d0723913f"
6601 },
6602 "f1986d3020fb5bcc12e7d74365c2a08478ae8018ec6b89243c6be69784358538": {
6603 "translations": {
6604 "python": {
6605 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_service_props = ecs.CfnServiceProps(\n capacity_provider_strategy=[ecs.CfnService.CapacityProviderStrategyItemProperty(\n base=123,\n capacity_provider=\"capacityProvider\",\n weight=123\n )],\n cluster=\"cluster\",\n deployment_configuration=ecs.CfnService.DeploymentConfigurationProperty(\n deployment_circuit_breaker=ecs.CfnService.DeploymentCircuitBreakerProperty(\n enable=False,\n rollback=False\n ),\n maximum_percent=123,\n minimum_healthy_percent=123\n ),\n deployment_controller=ecs.CfnService.DeploymentControllerProperty(\n type=\"type\"\n ),\n desired_count=123,\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n health_check_grace_period_seconds=123,\n launch_type=\"launchType\",\n load_balancers=[ecs.CfnService.LoadBalancerProperty(\n container_port=123,\n\n # the properties below are optional\n container_name=\"containerName\",\n load_balancer_name=\"loadBalancerName\",\n target_group_arn=\"targetGroupArn\"\n )],\n network_configuration=ecs.CfnService.NetworkConfigurationProperty(\n awsvpc_configuration=ecs.CfnService.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n ),\n placement_constraints=[ecs.CfnService.PlacementConstraintProperty(\n type=\"type\",\n\n # the properties below are optional\n expression=\"expression\"\n )],\n placement_strategies=[ecs.CfnService.PlacementStrategyProperty(\n type=\"type\",\n\n # the properties below are optional\n field=\"field\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n role=\"role\",\n scheduling_strategy=\"schedulingStrategy\",\n service_name=\"serviceName\",\n service_registries=[ecs.CfnService.ServiceRegistryProperty(\n container_name=\"containerName\",\n container_port=123,\n port=123,\n registry_arn=\"registryArn\"\n )],\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_definition=\"taskDefinition\"\n)",
6606 "version": "2"
6607 },
6608 "csharp": {
6609 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnServiceProps cfnServiceProps = new CfnServiceProps {\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n Base = 123,\n CapacityProvider = \"capacityProvider\",\n Weight = 123\n } },\n Cluster = \"cluster\",\n DeploymentConfiguration = new DeploymentConfigurationProperty {\n DeploymentCircuitBreaker = new DeploymentCircuitBreakerProperty {\n Enable = false,\n Rollback = false\n },\n MaximumPercent = 123,\n MinimumHealthyPercent = 123\n },\n DeploymentController = new DeploymentControllerProperty {\n Type = \"type\"\n },\n DesiredCount = 123,\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n HealthCheckGracePeriodSeconds = 123,\n LaunchType = \"launchType\",\n LoadBalancers = new [] { new LoadBalancerProperty {\n ContainerPort = 123,\n\n // the properties below are optional\n ContainerName = \"containerName\",\n LoadBalancerName = \"loadBalancerName\",\n TargetGroupArn = \"targetGroupArn\"\n } },\n NetworkConfiguration = new NetworkConfigurationProperty {\n AwsvpcConfiguration = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n }\n },\n PlacementConstraints = new [] { new PlacementConstraintProperty {\n Type = \"type\",\n\n // the properties below are optional\n Expression = \"expression\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Type = \"type\",\n\n // the properties below are optional\n Field = \"field\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n Role = \"role\",\n SchedulingStrategy = \"schedulingStrategy\",\n ServiceName = \"serviceName\",\n ServiceRegistries = new [] { new ServiceRegistryProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n Port = 123,\n RegistryArn = \"registryArn\"\n } },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskDefinition = \"taskDefinition\"\n};",
6610 "version": "1"
6611 },
6612 "java": {
6613 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnServiceProps cfnServiceProps = CfnServiceProps.builder()\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .base(123)\n .capacityProvider(\"capacityProvider\")\n .weight(123)\n .build()))\n .cluster(\"cluster\")\n .deploymentConfiguration(DeploymentConfigurationProperty.builder()\n .deploymentCircuitBreaker(DeploymentCircuitBreakerProperty.builder()\n .enable(false)\n .rollback(false)\n .build())\n .maximumPercent(123)\n .minimumHealthyPercent(123)\n .build())\n .deploymentController(DeploymentControllerProperty.builder()\n .type(\"type\")\n .build())\n .desiredCount(123)\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .healthCheckGracePeriodSeconds(123)\n .launchType(\"launchType\")\n .loadBalancers(List.of(LoadBalancerProperty.builder()\n .containerPort(123)\n\n // the properties below are optional\n .containerName(\"containerName\")\n .loadBalancerName(\"loadBalancerName\")\n .targetGroupArn(\"targetGroupArn\")\n .build()))\n .networkConfiguration(NetworkConfigurationProperty.builder()\n .awsvpcConfiguration(AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build())\n .build())\n .placementConstraints(List.of(PlacementConstraintProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .expression(\"expression\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .field(\"field\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .role(\"role\")\n .schedulingStrategy(\"schedulingStrategy\")\n .serviceName(\"serviceName\")\n .serviceRegistries(List.of(ServiceRegistryProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .port(123)\n .registryArn(\"registryArn\")\n .build()))\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskDefinition(\"taskDefinition\")\n .build();",
6614 "version": "1"
6615 },
6616 "go": {
6617 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnServiceProps := &cfnServiceProps{\n\tcapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyItemProperty{\n\t\t\tbase: jsii.Number(123),\n\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\t\t\tweight: jsii.Number(123),\n\t\t},\n\t},\n\tcluster: jsii.String(\"cluster\"),\n\tdeploymentConfiguration: &deploymentConfigurationProperty{\n\t\tdeploymentCircuitBreaker: &deploymentCircuitBreakerProperty{\n\t\t\tenable: jsii.Boolean(false),\n\t\t\trollback: jsii.Boolean(false),\n\t\t},\n\t\tmaximumPercent: jsii.Number(123),\n\t\tminimumHealthyPercent: jsii.Number(123),\n\t},\n\tdeploymentController: &deploymentControllerProperty{\n\t\ttype: jsii.String(\"type\"),\n\t},\n\tdesiredCount: jsii.Number(123),\n\tenableEcsManagedTags: jsii.Boolean(false),\n\tenableExecuteCommand: jsii.Boolean(false),\n\thealthCheckGracePeriodSeconds: jsii.Number(123),\n\tlaunchType: jsii.String(\"launchType\"),\n\tloadBalancers: []interface{}{\n\t\t&loadBalancerProperty{\n\t\t\tcontainerPort: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tloadBalancerName: jsii.String(\"loadBalancerName\"),\n\t\t\ttargetGroupArn: jsii.String(\"targetGroupArn\"),\n\t\t},\n\t},\n\tnetworkConfiguration: &networkConfigurationProperty{\n\t\tawsvpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\tsubnets: []*string{\n\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\tsecurityGroups: []*string{\n\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t},\n\t\t},\n\t},\n\tplacementConstraints: []interface{}{\n\t\t&placementConstraintProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\n\t\t\t// the properties below are optional\n\t\t\texpression: jsii.String(\"expression\"),\n\t\t},\n\t},\n\tplacementStrategies: []interface{}{\n\t\t&placementStrategyProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\n\t\t\t// the properties below are optional\n\t\t\tfield: jsii.String(\"field\"),\n\t\t},\n\t},\n\tplatformVersion: jsii.String(\"platformVersion\"),\n\tpropagateTags: jsii.String(\"propagateTags\"),\n\trole: jsii.String(\"role\"),\n\tschedulingStrategy: jsii.String(\"schedulingStrategy\"),\n\tserviceName: jsii.String(\"serviceName\"),\n\tserviceRegistries: []interface{}{\n\t\t&serviceRegistryProperty{\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\tport: jsii.Number(123),\n\t\t\tregistryArn: jsii.String(\"registryArn\"),\n\t\t},\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\ttaskDefinition: jsii.String(\"taskDefinition\"),\n}",
6618 "version": "1"
6619 },
6620 "$": {
6621 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnServiceProps: ecs.CfnServiceProps = {\n capacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n cluster: 'cluster',\n deploymentConfiguration: {\n deploymentCircuitBreaker: {\n enable: false,\n rollback: false,\n },\n maximumPercent: 123,\n minimumHealthyPercent: 123,\n },\n deploymentController: {\n type: 'type',\n },\n desiredCount: 123,\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriodSeconds: 123,\n launchType: 'launchType',\n loadBalancers: [{\n containerPort: 123,\n\n // the properties below are optional\n containerName: 'containerName',\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsvpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n placementStrategies: [{\n type: 'type',\n\n // the properties below are optional\n field: 'field',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n role: 'role',\n schedulingStrategy: 'schedulingStrategy',\n serviceName: 'serviceName',\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskDefinition: 'taskDefinition',\n};",
6622 "version": "0"
6623 }
6624 },
6625 "location": {
6626 "api": {
6627 "api": "type",
6628 "fqn": "@aws-cdk/aws-ecs.CfnServiceProps"
6629 },
6630 "field": {
6631 "field": "example"
6632 }
6633 },
6634 "didCompile": true,
6635 "fqnsReferenced": [
6636 "@aws-cdk/aws-ecs.CfnServiceProps"
6637 ],
6638 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnServiceProps: ecs.CfnServiceProps = {\n capacityProviderStrategy: [{\n base: 123,\n capacityProvider: 'capacityProvider',\n weight: 123,\n }],\n cluster: 'cluster',\n deploymentConfiguration: {\n deploymentCircuitBreaker: {\n enable: false,\n rollback: false,\n },\n maximumPercent: 123,\n minimumHealthyPercent: 123,\n },\n deploymentController: {\n type: 'type',\n },\n desiredCount: 123,\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n healthCheckGracePeriodSeconds: 123,\n launchType: 'launchType',\n loadBalancers: [{\n containerPort: 123,\n\n // the properties below are optional\n containerName: 'containerName',\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsvpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n placementStrategies: [{\n type: 'type',\n\n // the properties below are optional\n field: 'field',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n role: 'role',\n schedulingStrategy: 'schedulingStrategy',\n serviceName: 'serviceName',\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskDefinition: 'taskDefinition',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6639 "syntaxKindCounter": {
6640 "8": 9,
6641 "10": 25,
6642 "75": 52,
6643 "91": 4,
6644 "153": 1,
6645 "169": 1,
6646 "192": 8,
6647 "193": 12,
6648 "225": 1,
6649 "242": 1,
6650 "243": 1,
6651 "254": 1,
6652 "255": 1,
6653 "256": 1,
6654 "281": 48,
6655 "290": 1
6656 },
6657 "fqnsFingerprint": "ac7e402c72b9e07efc2814d4805e0663559f89d0144723da1b7c1f1e774e6ff1"
6658 },
6659 "b4792b3e315c27785c1fc6c16ecfaffc13839ad30efd902665fe47c836d1ea3c": {
6660 "translations": {
6661 "python": {
6662 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_task_definition = ecs.CfnTaskDefinition(self, \"MyCfnTaskDefinition\",\n container_definitions=[ecs.CfnTaskDefinition.ContainerDefinitionProperty(\n command=[\"command\"],\n cpu=123,\n depends_on=[ecs.CfnTaskDefinition.ContainerDependencyProperty(\n condition=\"condition\",\n container_name=\"containerName\"\n )],\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment=[ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n )],\n environment_files=[ecs.CfnTaskDefinition.EnvironmentFileProperty(\n type=\"type\",\n value=\"value\"\n )],\n essential=False,\n extra_hosts=[ecs.CfnTaskDefinition.HostEntryProperty(\n hostname=\"hostname\",\n ip_address=\"ipAddress\"\n )],\n firelens_configuration=ecs.CfnTaskDefinition.FirelensConfigurationProperty(\n options={\n \"options_key\": \"options\"\n },\n type=\"type\"\n ),\n health_check=ecs.CfnTaskDefinition.HealthCheckProperty(\n command=[\"command\"],\n interval=123,\n retries=123,\n start_period=123,\n timeout=123\n ),\n hostname=\"hostname\",\n image=\"image\",\n interactive=False,\n links=[\"links\"],\n linux_parameters=ecs.CfnTaskDefinition.LinuxParametersProperty(\n capabilities=ecs.CfnTaskDefinition.KernelCapabilitiesProperty(\n add=[\"add\"],\n drop=[\"drop\"]\n ),\n devices=[ecs.CfnTaskDefinition.DeviceProperty(\n container_path=\"containerPath\",\n host_path=\"hostPath\",\n permissions=[\"permissions\"]\n )],\n init_process_enabled=False,\n max_swap=123,\n shared_memory_size=123,\n swappiness=123,\n tmpfs=[ecs.CfnTaskDefinition.TmpfsProperty(\n size=123,\n\n # the properties below are optional\n container_path=\"containerPath\",\n mount_options=[\"mountOptions\"]\n )]\n ),\n log_configuration=ecs.CfnTaskDefinition.LogConfigurationProperty(\n log_driver=\"logDriver\",\n\n # the properties below are optional\n options={\n \"options_key\": \"options\"\n },\n secret_options=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )]\n ),\n memory=123,\n memory_reservation=123,\n mount_points=[ecs.CfnTaskDefinition.MountPointProperty(\n container_path=\"containerPath\",\n read_only=False,\n source_volume=\"sourceVolume\"\n )],\n name=\"name\",\n port_mappings=[ecs.CfnTaskDefinition.PortMappingProperty(\n container_port=123,\n host_port=123,\n protocol=\"protocol\"\n )],\n privileged=False,\n pseudo_terminal=False,\n readonly_root_filesystem=False,\n repository_credentials=ecs.CfnTaskDefinition.RepositoryCredentialsProperty(\n credentials_parameter=\"credentialsParameter\"\n ),\n resource_requirements=[ecs.CfnTaskDefinition.ResourceRequirementProperty(\n type=\"type\",\n value=\"value\"\n )],\n secrets=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )],\n start_timeout=123,\n stop_timeout=123,\n system_controls=[ecs.CfnTaskDefinition.SystemControlProperty(\n namespace=\"namespace\",\n value=\"value\"\n )],\n ulimits=[ecs.CfnTaskDefinition.UlimitProperty(\n hard_limit=123,\n name=\"name\",\n soft_limit=123\n )],\n user=\"user\",\n volumes_from=[ecs.CfnTaskDefinition.VolumeFromProperty(\n read_only=False,\n source_container=\"sourceContainer\"\n )],\n working_directory=\"workingDirectory\"\n )],\n cpu=\"cpu\",\n ephemeral_storage=ecs.CfnTaskDefinition.EphemeralStorageProperty(\n size_in_gi_b=123\n ),\n execution_role_arn=\"executionRoleArn\",\n family=\"family\",\n inference_accelerators=[ecs.CfnTaskDefinition.InferenceAcceleratorProperty(\n device_name=\"deviceName\",\n device_type=\"deviceType\"\n )],\n ipc_mode=\"ipcMode\",\n memory=\"memory\",\n network_mode=\"networkMode\",\n pid_mode=\"pidMode\",\n placement_constraints=[ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty(\n type=\"type\",\n\n # the properties below are optional\n expression=\"expression\"\n )],\n proxy_configuration=ecs.CfnTaskDefinition.ProxyConfigurationProperty(\n container_name=\"containerName\",\n\n # the properties below are optional\n proxy_configuration_properties=[ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n )],\n type=\"type\"\n ),\n requires_compatibilities=[\"requiresCompatibilities\"],\n runtime_platform=ecs.CfnTaskDefinition.RuntimePlatformProperty(\n cpu_architecture=\"cpuArchitecture\",\n operating_system_family=\"operatingSystemFamily\"\n ),\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_role_arn=\"taskRoleArn\",\n volumes=[ecs.CfnTaskDefinition.VolumeProperty(\n docker_volume_configuration=ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty(\n autoprovision=False,\n driver=\"driver\",\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n },\n scope=\"scope\"\n ),\n efs_volume_configuration=ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty(\n filesystem_id=\"filesystemId\",\n\n # the properties below are optional\n authorization_config=ecs.CfnTaskDefinition.AuthorizationConfigProperty(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n ),\n host=ecs.CfnTaskDefinition.HostVolumePropertiesProperty(\n source_path=\"sourcePath\"\n ),\n name=\"name\"\n )]\n)",
6663 "version": "2"
6664 },
6665 "csharp": {
6666 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnTaskDefinition cfnTaskDefinition = new CfnTaskDefinition(this, \"MyCfnTaskDefinition\", new CfnTaskDefinitionProps {\n ContainerDefinitions = new [] { new ContainerDefinitionProperty {\n Command = new [] { \"command\" },\n Cpu = 123,\n DependsOn = new [] { new ContainerDependencyProperty {\n Condition = \"condition\",\n ContainerName = \"containerName\"\n } },\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new [] { new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n EnvironmentFiles = new [] { new EnvironmentFileProperty {\n Type = \"type\",\n Value = \"value\"\n } },\n Essential = false,\n ExtraHosts = new [] { new HostEntryProperty {\n Hostname = \"hostname\",\n IpAddress = \"ipAddress\"\n } },\n FirelensConfiguration = new FirelensConfigurationProperty {\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n Type = \"type\"\n },\n HealthCheck = new HealthCheckProperty {\n Command = new [] { \"command\" },\n Interval = 123,\n Retries = 123,\n StartPeriod = 123,\n Timeout = 123\n },\n Hostname = \"hostname\",\n Image = \"image\",\n Interactive = false,\n Links = new [] { \"links\" },\n LinuxParameters = new LinuxParametersProperty {\n Capabilities = new KernelCapabilitiesProperty {\n Add = new [] { \"add\" },\n Drop = new [] { \"drop\" }\n },\n Devices = new [] { new DeviceProperty {\n ContainerPath = \"containerPath\",\n HostPath = \"hostPath\",\n Permissions = new [] { \"permissions\" }\n } },\n InitProcessEnabled = false,\n MaxSwap = 123,\n SharedMemorySize = 123,\n Swappiness = 123,\n Tmpfs = new [] { new TmpfsProperty {\n Size = 123,\n\n // the properties below are optional\n ContainerPath = \"containerPath\",\n MountOptions = new [] { \"mountOptions\" }\n } }\n },\n LogConfiguration = new LogConfigurationProperty {\n LogDriver = \"logDriver\",\n\n // the properties below are optional\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n SecretOptions = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } }\n },\n Memory = 123,\n MemoryReservation = 123,\n MountPoints = new [] { new MountPointProperty {\n ContainerPath = \"containerPath\",\n ReadOnly = false,\n SourceVolume = \"sourceVolume\"\n } },\n Name = \"name\",\n PortMappings = new [] { new PortMappingProperty {\n ContainerPort = 123,\n HostPort = 123,\n Protocol = \"protocol\"\n } },\n Privileged = false,\n PseudoTerminal = false,\n ReadonlyRootFilesystem = false,\n RepositoryCredentials = new RepositoryCredentialsProperty {\n CredentialsParameter = \"credentialsParameter\"\n },\n ResourceRequirements = new [] { new ResourceRequirementProperty {\n Type = \"type\",\n Value = \"value\"\n } },\n Secrets = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } },\n StartTimeout = 123,\n StopTimeout = 123,\n SystemControls = new [] { new SystemControlProperty {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n Ulimits = new [] { new UlimitProperty {\n HardLimit = 123,\n Name = \"name\",\n SoftLimit = 123\n } },\n User = \"user\",\n VolumesFrom = new [] { new VolumeFromProperty {\n ReadOnly = false,\n SourceContainer = \"sourceContainer\"\n } },\n WorkingDirectory = \"workingDirectory\"\n } },\n Cpu = \"cpu\",\n EphemeralStorage = new EphemeralStorageProperty {\n SizeInGiB = 123\n },\n ExecutionRoleArn = \"executionRoleArn\",\n Family = \"family\",\n InferenceAccelerators = new [] { new InferenceAcceleratorProperty {\n DeviceName = \"deviceName\",\n DeviceType = \"deviceType\"\n } },\n IpcMode = \"ipcMode\",\n Memory = \"memory\",\n NetworkMode = \"networkMode\",\n PidMode = \"pidMode\",\n PlacementConstraints = new [] { new TaskDefinitionPlacementConstraintProperty {\n Type = \"type\",\n\n // the properties below are optional\n Expression = \"expression\"\n } },\n ProxyConfiguration = new ProxyConfigurationProperty {\n ContainerName = \"containerName\",\n\n // the properties below are optional\n ProxyConfigurationProperties = new [] { new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n Type = \"type\"\n },\n RequiresCompatibilities = new [] { \"requiresCompatibilities\" },\n RuntimePlatform = new RuntimePlatformProperty {\n CpuArchitecture = \"cpuArchitecture\",\n OperatingSystemFamily = \"operatingSystemFamily\"\n },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskRoleArn = \"taskRoleArn\",\n Volumes = new [] { new VolumeProperty {\n DockerVolumeConfiguration = new DockerVolumeConfigurationProperty {\n Autoprovision = false,\n Driver = \"driver\",\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n },\n Scope = \"scope\"\n },\n EfsVolumeConfiguration = new EFSVolumeConfigurationProperty {\n FilesystemId = \"filesystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfigProperty {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n },\n Host = new HostVolumePropertiesProperty {\n SourcePath = \"sourcePath\"\n },\n Name = \"name\"\n } }\n});",
6667 "version": "1"
6668 },
6669 "java": {
6670 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnTaskDefinition cfnTaskDefinition = CfnTaskDefinition.Builder.create(this, \"MyCfnTaskDefinition\")\n .containerDefinitions(List.of(ContainerDefinitionProperty.builder()\n .command(List.of(\"command\"))\n .cpu(123)\n .dependsOn(List.of(ContainerDependencyProperty.builder()\n .condition(\"condition\")\n .containerName(\"containerName\")\n .build()))\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(List.of(KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .environmentFiles(List.of(EnvironmentFileProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build()))\n .essential(false)\n .extraHosts(List.of(HostEntryProperty.builder()\n .hostname(\"hostname\")\n .ipAddress(\"ipAddress\")\n .build()))\n .firelensConfiguration(FirelensConfigurationProperty.builder()\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .type(\"type\")\n .build())\n .healthCheck(HealthCheckProperty.builder()\n .command(List.of(\"command\"))\n .interval(123)\n .retries(123)\n .startPeriod(123)\n .timeout(123)\n .build())\n .hostname(\"hostname\")\n .image(\"image\")\n .interactive(false)\n .links(List.of(\"links\"))\n .linuxParameters(LinuxParametersProperty.builder()\n .capabilities(KernelCapabilitiesProperty.builder()\n .add(List.of(\"add\"))\n .drop(List.of(\"drop\"))\n .build())\n .devices(List.of(DeviceProperty.builder()\n .containerPath(\"containerPath\")\n .hostPath(\"hostPath\")\n .permissions(List.of(\"permissions\"))\n .build()))\n .initProcessEnabled(false)\n .maxSwap(123)\n .sharedMemorySize(123)\n .swappiness(123)\n .tmpfs(List.of(TmpfsProperty.builder()\n .size(123)\n\n // the properties below are optional\n .containerPath(\"containerPath\")\n .mountOptions(List.of(\"mountOptions\"))\n .build()))\n .build())\n .logConfiguration(LogConfigurationProperty.builder()\n .logDriver(\"logDriver\")\n\n // the properties below are optional\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .secretOptions(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .build())\n .memory(123)\n .memoryReservation(123)\n .mountPoints(List.of(MountPointProperty.builder()\n .containerPath(\"containerPath\")\n .readOnly(false)\n .sourceVolume(\"sourceVolume\")\n .build()))\n .name(\"name\")\n .portMappings(List.of(PortMappingProperty.builder()\n .containerPort(123)\n .hostPort(123)\n .protocol(\"protocol\")\n .build()))\n .privileged(false)\n .pseudoTerminal(false)\n .readonlyRootFilesystem(false)\n .repositoryCredentials(RepositoryCredentialsProperty.builder()\n .credentialsParameter(\"credentialsParameter\")\n .build())\n .resourceRequirements(List.of(ResourceRequirementProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build()))\n .secrets(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .startTimeout(123)\n .stopTimeout(123)\n .systemControls(List.of(SystemControlProperty.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .ulimits(List.of(UlimitProperty.builder()\n .hardLimit(123)\n .name(\"name\")\n .softLimit(123)\n .build()))\n .user(\"user\")\n .volumesFrom(List.of(VolumeFromProperty.builder()\n .readOnly(false)\n .sourceContainer(\"sourceContainer\")\n .build()))\n .workingDirectory(\"workingDirectory\")\n .build()))\n .cpu(\"cpu\")\n .ephemeralStorage(EphemeralStorageProperty.builder()\n .sizeInGiB(123)\n .build())\n .executionRoleArn(\"executionRoleArn\")\n .family(\"family\")\n .inferenceAccelerators(List.of(InferenceAcceleratorProperty.builder()\n .deviceName(\"deviceName\")\n .deviceType(\"deviceType\")\n .build()))\n .ipcMode(\"ipcMode\")\n .memory(\"memory\")\n .networkMode(\"networkMode\")\n .pidMode(\"pidMode\")\n .placementConstraints(List.of(TaskDefinitionPlacementConstraintProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .expression(\"expression\")\n .build()))\n .proxyConfiguration(ProxyConfigurationProperty.builder()\n .containerName(\"containerName\")\n\n // the properties below are optional\n .proxyConfigurationProperties(List.of(KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .type(\"type\")\n .build())\n .requiresCompatibilities(List.of(\"requiresCompatibilities\"))\n .runtimePlatform(RuntimePlatformProperty.builder()\n .cpuArchitecture(\"cpuArchitecture\")\n .operatingSystemFamily(\"operatingSystemFamily\")\n .build())\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskRoleArn(\"taskRoleArn\")\n .volumes(List.of(VolumeProperty.builder()\n .dockerVolumeConfiguration(DockerVolumeConfigurationProperty.builder()\n .autoprovision(false)\n .driver(\"driver\")\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .scope(\"scope\")\n .build())\n .efsVolumeConfiguration(EFSVolumeConfigurationProperty.builder()\n .filesystemId(\"filesystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfigProperty.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build())\n .host(HostVolumePropertiesProperty.builder()\n .sourcePath(\"sourcePath\")\n .build())\n .name(\"name\")\n .build()))\n .build();",
6671 "version": "1"
6672 },
6673 "go": {
6674 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnTaskDefinition := ecs.NewCfnTaskDefinition(this, jsii.String(\"MyCfnTaskDefinition\"), &cfnTaskDefinitionProps{\n\tcontainerDefinitions: []interface{}{\n\t\t&containerDefinitionProperty{\n\t\t\tcommand: []*string{\n\t\t\t\tjsii.String(\"command\"),\n\t\t\t},\n\t\t\tcpu: jsii.Number(123),\n\t\t\tdependsOn: []interface{}{\n\t\t\t\t&containerDependencyProperty{\n\t\t\t\t\tcondition: jsii.String(\"condition\"),\n\t\t\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tdisableNetworking: jsii.Boolean(false),\n\t\t\tdnsSearchDomains: []*string{\n\t\t\t\tjsii.String(\"dnsSearchDomains\"),\n\t\t\t},\n\t\t\tdnsServers: []*string{\n\t\t\t\tjsii.String(\"dnsServers\"),\n\t\t\t},\n\t\t\tdockerLabels: map[string]*string{\n\t\t\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t\t\t},\n\t\t\tdockerSecurityOptions: []*string{\n\t\t\t\tjsii.String(\"dockerSecurityOptions\"),\n\t\t\t},\n\t\t\tentryPoint: []*string{\n\t\t\t\tjsii.String(\"entryPoint\"),\n\t\t\t},\n\t\t\tenvironment: []interface{}{\n\t\t\t\t&keyValuePairProperty{\n\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tenvironmentFiles: []interface{}{\n\t\t\t\t&environmentFileProperty{\n\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tessential: jsii.Boolean(false),\n\t\t\textraHosts: []interface{}{\n\t\t\t\t&hostEntryProperty{\n\t\t\t\t\thostname: jsii.String(\"hostname\"),\n\t\t\t\t\tipAddress: jsii.String(\"ipAddress\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tfirelensConfiguration: &firelensConfigurationProperty{\n\t\t\t\toptions: map[string]*string{\n\t\t\t\t\t\"optionsKey\": jsii.String(\"options\"),\n\t\t\t\t},\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t\thealthCheck: &healthCheckProperty{\n\t\t\t\tcommand: []*string{\n\t\t\t\t\tjsii.String(\"command\"),\n\t\t\t\t},\n\t\t\t\tinterval: jsii.Number(123),\n\t\t\t\tretries: jsii.Number(123),\n\t\t\t\tstartPeriod: jsii.Number(123),\n\t\t\t\ttimeout: jsii.Number(123),\n\t\t\t},\n\t\t\thostname: jsii.String(\"hostname\"),\n\t\t\timage: jsii.String(\"image\"),\n\t\t\tinteractive: jsii.Boolean(false),\n\t\t\tlinks: []*string{\n\t\t\t\tjsii.String(\"links\"),\n\t\t\t},\n\t\t\tlinuxParameters: &linuxParametersProperty{\n\t\t\t\tcapabilities: &kernelCapabilitiesProperty{\n\t\t\t\t\tadd: []*string{\n\t\t\t\t\t\tjsii.String(\"add\"),\n\t\t\t\t\t},\n\t\t\t\t\tdrop: []*string{\n\t\t\t\t\t\tjsii.String(\"drop\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdevices: []interface{}{\n\t\t\t\t\t&deviceProperty{\n\t\t\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\t\t\thostPath: jsii.String(\"hostPath\"),\n\t\t\t\t\t\tpermissions: []*string{\n\t\t\t\t\t\t\tjsii.String(\"permissions\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinitProcessEnabled: jsii.Boolean(false),\n\t\t\t\tmaxSwap: jsii.Number(123),\n\t\t\t\tsharedMemorySize: jsii.Number(123),\n\t\t\t\tswappiness: jsii.Number(123),\n\t\t\t\ttmpfs: []interface{}{\n\t\t\t\t\t&tmpfsProperty{\n\t\t\t\t\t\tsize: jsii.Number(123),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\t\t\tmountOptions: []*string{\n\t\t\t\t\t\t\tjsii.String(\"mountOptions\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tlogConfiguration: &logConfigurationProperty{\n\t\t\t\tlogDriver: jsii.String(\"logDriver\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\toptions: map[string]*string{\n\t\t\t\t\t\"optionsKey\": jsii.String(\"options\"),\n\t\t\t\t},\n\t\t\t\tsecretOptions: []interface{}{\n\t\t\t\t\t&secretProperty{\n\t\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tmemory: jsii.Number(123),\n\t\t\tmemoryReservation: jsii.Number(123),\n\t\t\tmountPoints: []interface{}{\n\t\t\t\t&mountPointProperty{\n\t\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\t\treadOnly: jsii.Boolean(false),\n\t\t\t\t\tsourceVolume: jsii.String(\"sourceVolume\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tportMappings: []interface{}{\n\t\t\t\t&portMappingProperty{\n\t\t\t\t\tcontainerPort: jsii.Number(123),\n\t\t\t\t\thostPort: jsii.Number(123),\n\t\t\t\t\tprotocol: jsii.String(\"protocol\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tprivileged: jsii.Boolean(false),\n\t\t\tpseudoTerminal: jsii.Boolean(false),\n\t\t\treadonlyRootFilesystem: jsii.Boolean(false),\n\t\t\trepositoryCredentials: &repositoryCredentialsProperty{\n\t\t\t\tcredentialsParameter: jsii.String(\"credentialsParameter\"),\n\t\t\t},\n\t\t\tresourceRequirements: []interface{}{\n\t\t\t\t&resourceRequirementProperty{\n\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tsecrets: []interface{}{\n\t\t\t\t&secretProperty{\n\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tstartTimeout: jsii.Number(123),\n\t\t\tstopTimeout: jsii.Number(123),\n\t\t\tsystemControls: []interface{}{\n\t\t\t\t&systemControlProperty{\n\t\t\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tulimits: []interface{}{\n\t\t\t\t&ulimitProperty{\n\t\t\t\t\thardLimit: jsii.Number(123),\n\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\tsoftLimit: jsii.Number(123),\n\t\t\t\t},\n\t\t\t},\n\t\t\tuser: jsii.String(\"user\"),\n\t\t\tvolumesFrom: []interface{}{\n\t\t\t\t&volumeFromProperty{\n\t\t\t\t\treadOnly: jsii.Boolean(false),\n\t\t\t\t\tsourceContainer: jsii.String(\"sourceContainer\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tworkingDirectory: jsii.String(\"workingDirectory\"),\n\t\t},\n\t},\n\tcpu: jsii.String(\"cpu\"),\n\tephemeralStorage: &ephemeralStorageProperty{\n\t\tsizeInGiB: jsii.Number(123),\n\t},\n\texecutionRoleArn: jsii.String(\"executionRoleArn\"),\n\tfamily: jsii.String(\"family\"),\n\tinferenceAccelerators: []interface{}{\n\t\t&inferenceAcceleratorProperty{\n\t\t\tdeviceName: jsii.String(\"deviceName\"),\n\t\t\tdeviceType: jsii.String(\"deviceType\"),\n\t\t},\n\t},\n\tipcMode: jsii.String(\"ipcMode\"),\n\tmemory: jsii.String(\"memory\"),\n\tnetworkMode: jsii.String(\"networkMode\"),\n\tpidMode: jsii.String(\"pidMode\"),\n\tplacementConstraints: []interface{}{\n\t\t&taskDefinitionPlacementConstraintProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\n\t\t\t// the properties below are optional\n\t\t\texpression: jsii.String(\"expression\"),\n\t\t},\n\t},\n\tproxyConfiguration: &proxyConfigurationProperty{\n\t\tcontainerName: jsii.String(\"containerName\"),\n\n\t\t// the properties below are optional\n\t\tproxyConfigurationProperties: []interface{}{\n\t\t\t&keyValuePairProperty{\n\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t},\n\t\t},\n\t\ttype: jsii.String(\"type\"),\n\t},\n\trequiresCompatibilities: []*string{\n\t\tjsii.String(\"requiresCompatibilities\"),\n\t},\n\truntimePlatform: &runtimePlatformProperty{\n\t\tcpuArchitecture: jsii.String(\"cpuArchitecture\"),\n\t\toperatingSystemFamily: jsii.String(\"operatingSystemFamily\"),\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\ttaskRoleArn: jsii.String(\"taskRoleArn\"),\n\tvolumes: []interface{}{\n\t\t&volumeProperty{\n\t\t\tdockerVolumeConfiguration: &dockerVolumeConfigurationProperty{\n\t\t\t\tautoprovision: jsii.Boolean(false),\n\t\t\t\tdriver: jsii.String(\"driver\"),\n\t\t\t\tdriverOpts: map[string]*string{\n\t\t\t\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t\t\t\t},\n\t\t\t\tlabels: map[string]*string{\n\t\t\t\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t\t\t\t},\n\t\t\t\tscope: jsii.String(\"scope\"),\n\t\t\t},\n\t\t\tefsVolumeConfiguration: &eFSVolumeConfigurationProperty{\n\t\t\t\tfilesystemId: jsii.String(\"filesystemId\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tauthorizationConfig: &authorizationConfigProperty{\n\t\t\t\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\t\t\t\tiam: jsii.String(\"iam\"),\n\t\t\t\t},\n\t\t\t\trootDirectory: jsii.String(\"rootDirectory\"),\n\t\t\t\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\t\t\t\ttransitEncryptionPort: jsii.Number(123),\n\t\t\t},\n\t\t\thost: &hostVolumePropertiesProperty{\n\t\t\t\tsourcePath: jsii.String(\"sourcePath\"),\n\t\t\t},\n\t\t\tname: jsii.String(\"name\"),\n\t\t},\n\t},\n})",
6675 "version": "1"
6676 },
6677 "$": {
6678 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnTaskDefinition = new ecs.CfnTaskDefinition(this, 'MyCfnTaskDefinition', /* all optional props */ {\n containerDefinitions: [{\n command: ['command'],\n cpu: 123,\n dependsOn: [{\n condition: 'condition',\n containerName: 'containerName',\n }],\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: [{\n name: 'name',\n value: 'value',\n }],\n environmentFiles: [{\n type: 'type',\n value: 'value',\n }],\n essential: false,\n extraHosts: [{\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n }],\n firelensConfiguration: {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n },\n healthCheck: {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n },\n hostname: 'hostname',\n image: 'image',\n interactive: false,\n links: ['links'],\n linuxParameters: {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n },\n logConfiguration: {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n },\n memory: 123,\n memoryReservation: 123,\n mountPoints: [{\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n }],\n name: 'name',\n portMappings: [{\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n }],\n privileged: false,\n pseudoTerminal: false,\n readonlyRootFilesystem: false,\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n resourceRequirements: [{\n type: 'type',\n value: 'value',\n }],\n secrets: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n startTimeout: 123,\n stopTimeout: 123,\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n ulimits: [{\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n }],\n user: 'user',\n volumesFrom: [{\n readOnly: false,\n sourceContainer: 'sourceContainer',\n }],\n workingDirectory: 'workingDirectory',\n }],\n cpu: 'cpu',\n ephemeralStorage: {\n sizeInGiB: 123,\n },\n executionRoleArn: 'executionRoleArn',\n family: 'family',\n inferenceAccelerators: [{\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n }],\n ipcMode: 'ipcMode',\n memory: 'memory',\n networkMode: 'networkMode',\n pidMode: 'pidMode',\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n proxyConfiguration: {\n containerName: 'containerName',\n\n // the properties below are optional\n proxyConfigurationProperties: [{\n name: 'name',\n value: 'value',\n }],\n type: 'type',\n },\n requiresCompatibilities: ['requiresCompatibilities'],\n runtimePlatform: {\n cpuArchitecture: 'cpuArchitecture',\n operatingSystemFamily: 'operatingSystemFamily',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskRoleArn: 'taskRoleArn',\n volumes: [{\n dockerVolumeConfiguration: {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n },\n efsVolumeConfiguration: {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n name: 'name',\n }],\n});",
6679 "version": "0"
6680 }
6681 },
6682 "location": {
6683 "api": {
6684 "api": "type",
6685 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition"
6686 },
6687 "field": {
6688 "field": "example"
6689 }
6690 },
6691 "didCompile": true,
6692 "fqnsReferenced": [
6693 "@aws-cdk/aws-ecs.CfnTaskDefinition",
6694 "@aws-cdk/aws-ecs.CfnTaskDefinitionProps",
6695 "@aws-cdk/core.Construct"
6696 ],
6697 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnTaskDefinition = new ecs.CfnTaskDefinition(this, 'MyCfnTaskDefinition', /* all optional props */ {\n containerDefinitions: [{\n command: ['command'],\n cpu: 123,\n dependsOn: [{\n condition: 'condition',\n containerName: 'containerName',\n }],\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: [{\n name: 'name',\n value: 'value',\n }],\n environmentFiles: [{\n type: 'type',\n value: 'value',\n }],\n essential: false,\n extraHosts: [{\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n }],\n firelensConfiguration: {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n },\n healthCheck: {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n },\n hostname: 'hostname',\n image: 'image',\n interactive: false,\n links: ['links'],\n linuxParameters: {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n },\n logConfiguration: {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n },\n memory: 123,\n memoryReservation: 123,\n mountPoints: [{\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n }],\n name: 'name',\n portMappings: [{\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n }],\n privileged: false,\n pseudoTerminal: false,\n readonlyRootFilesystem: false,\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n resourceRequirements: [{\n type: 'type',\n value: 'value',\n }],\n secrets: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n startTimeout: 123,\n stopTimeout: 123,\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n ulimits: [{\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n }],\n user: 'user',\n volumesFrom: [{\n readOnly: false,\n sourceContainer: 'sourceContainer',\n }],\n workingDirectory: 'workingDirectory',\n }],\n cpu: 'cpu',\n ephemeralStorage: {\n sizeInGiB: 123,\n },\n executionRoleArn: 'executionRoleArn',\n family: 'family',\n inferenceAccelerators: [{\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n }],\n ipcMode: 'ipcMode',\n memory: 'memory',\n networkMode: 'networkMode',\n pidMode: 'pidMode',\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n proxyConfiguration: {\n containerName: 'containerName',\n\n // the properties below are optional\n proxyConfigurationProperties: [{\n name: 'name',\n value: 'value',\n }],\n type: 'type',\n },\n requiresCompatibilities: ['requiresCompatibilities'],\n runtimePlatform: {\n cpuArchitecture: 'cpuArchitecture',\n operatingSystemFamily: 'operatingSystemFamily',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskRoleArn: 'taskRoleArn',\n volumes: [{\n dockerVolumeConfiguration: {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n },\n efsVolumeConfiguration: {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n name: 'name',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6698 "syntaxKindCounter": {
6699 "8": 19,
6700 "10": 80,
6701 "75": 149,
6702 "91": 10,
6703 "104": 1,
6704 "192": 32,
6705 "193": 39,
6706 "194": 1,
6707 "197": 1,
6708 "225": 1,
6709 "242": 1,
6710 "243": 1,
6711 "254": 1,
6712 "255": 1,
6713 "256": 1,
6714 "281": 145,
6715 "290": 1
6716 },
6717 "fqnsFingerprint": "5d6c38bb336dcfc75271f4c71be4019c36d8d3f8d81b1f6b640bf79b5c275635"
6718 },
6719 "6d50ed91782911db313ee4d423e8a1ec2d5ea18fd83012363a9b80edaf846510": {
6720 "translations": {
6721 "python": {
6722 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nauthorization_config_property = ecs.CfnTaskDefinition.AuthorizationConfigProperty(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n)",
6723 "version": "2"
6724 },
6725 "csharp": {
6726 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAuthorizationConfigProperty authorizationConfigProperty = new AuthorizationConfigProperty {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n};",
6727 "version": "1"
6728 },
6729 "java": {
6730 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAuthorizationConfigProperty authorizationConfigProperty = AuthorizationConfigProperty.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build();",
6731 "version": "1"
6732 },
6733 "go": {
6734 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nauthorizationConfigProperty := &authorizationConfigProperty{\n\taccessPointId: jsii.String(\"accessPointId\"),\n\tiam: jsii.String(\"iam\"),\n}",
6735 "version": "1"
6736 },
6737 "$": {
6738 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst authorizationConfigProperty: ecs.CfnTaskDefinition.AuthorizationConfigProperty = {\n accessPointId: 'accessPointId',\n iam: 'iam',\n};",
6739 "version": "0"
6740 }
6741 },
6742 "location": {
6743 "api": {
6744 "api": "type",
6745 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.AuthorizationConfigProperty"
6746 },
6747 "field": {
6748 "field": "example"
6749 }
6750 },
6751 "didCompile": true,
6752 "fqnsReferenced": [
6753 "@aws-cdk/aws-ecs.CfnTaskDefinition.AuthorizationConfigProperty"
6754 ],
6755 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst authorizationConfigProperty: ecs.CfnTaskDefinition.AuthorizationConfigProperty = {\n accessPointId: 'accessPointId',\n iam: 'iam',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6756 "syntaxKindCounter": {
6757 "10": 3,
6758 "75": 7,
6759 "153": 2,
6760 "169": 1,
6761 "193": 1,
6762 "225": 1,
6763 "242": 1,
6764 "243": 1,
6765 "254": 1,
6766 "255": 1,
6767 "256": 1,
6768 "281": 2,
6769 "290": 1
6770 },
6771 "fqnsFingerprint": "7b609ca3026aa6d756ccbfab254bf369f80739cb3ece3c0bd9e23da25cecca81"
6772 },
6773 "c8cd58d57c70c7d92525d6556ee072fd8aeb8a27218521a2d347444c894fd858": {
6774 "translations": {
6775 "python": {
6776 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncontainer_definition_property = ecs.CfnTaskDefinition.ContainerDefinitionProperty(\n command=[\"command\"],\n cpu=123,\n depends_on=[ecs.CfnTaskDefinition.ContainerDependencyProperty(\n condition=\"condition\",\n container_name=\"containerName\"\n )],\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment=[ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n )],\n environment_files=[ecs.CfnTaskDefinition.EnvironmentFileProperty(\n type=\"type\",\n value=\"value\"\n )],\n essential=False,\n extra_hosts=[ecs.CfnTaskDefinition.HostEntryProperty(\n hostname=\"hostname\",\n ip_address=\"ipAddress\"\n )],\n firelens_configuration=ecs.CfnTaskDefinition.FirelensConfigurationProperty(\n options={\n \"options_key\": \"options\"\n },\n type=\"type\"\n ),\n health_check=ecs.CfnTaskDefinition.HealthCheckProperty(\n command=[\"command\"],\n interval=123,\n retries=123,\n start_period=123,\n timeout=123\n ),\n hostname=\"hostname\",\n image=\"image\",\n interactive=False,\n links=[\"links\"],\n linux_parameters=ecs.CfnTaskDefinition.LinuxParametersProperty(\n capabilities=ecs.CfnTaskDefinition.KernelCapabilitiesProperty(\n add=[\"add\"],\n drop=[\"drop\"]\n ),\n devices=[ecs.CfnTaskDefinition.DeviceProperty(\n container_path=\"containerPath\",\n host_path=\"hostPath\",\n permissions=[\"permissions\"]\n )],\n init_process_enabled=False,\n max_swap=123,\n shared_memory_size=123,\n swappiness=123,\n tmpfs=[ecs.CfnTaskDefinition.TmpfsProperty(\n size=123,\n\n # the properties below are optional\n container_path=\"containerPath\",\n mount_options=[\"mountOptions\"]\n )]\n ),\n log_configuration=ecs.CfnTaskDefinition.LogConfigurationProperty(\n log_driver=\"logDriver\",\n\n # the properties below are optional\n options={\n \"options_key\": \"options\"\n },\n secret_options=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )]\n ),\n memory=123,\n memory_reservation=123,\n mount_points=[ecs.CfnTaskDefinition.MountPointProperty(\n container_path=\"containerPath\",\n read_only=False,\n source_volume=\"sourceVolume\"\n )],\n name=\"name\",\n port_mappings=[ecs.CfnTaskDefinition.PortMappingProperty(\n container_port=123,\n host_port=123,\n protocol=\"protocol\"\n )],\n privileged=False,\n pseudo_terminal=False,\n readonly_root_filesystem=False,\n repository_credentials=ecs.CfnTaskDefinition.RepositoryCredentialsProperty(\n credentials_parameter=\"credentialsParameter\"\n ),\n resource_requirements=[ecs.CfnTaskDefinition.ResourceRequirementProperty(\n type=\"type\",\n value=\"value\"\n )],\n secrets=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )],\n start_timeout=123,\n stop_timeout=123,\n system_controls=[ecs.CfnTaskDefinition.SystemControlProperty(\n namespace=\"namespace\",\n value=\"value\"\n )],\n ulimits=[ecs.CfnTaskDefinition.UlimitProperty(\n hard_limit=123,\n name=\"name\",\n soft_limit=123\n )],\n user=\"user\",\n volumes_from=[ecs.CfnTaskDefinition.VolumeFromProperty(\n read_only=False,\n source_container=\"sourceContainer\"\n )],\n working_directory=\"workingDirectory\"\n)",
6777 "version": "2"
6778 },
6779 "csharp": {
6780 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nContainerDefinitionProperty containerDefinitionProperty = new ContainerDefinitionProperty {\n Command = new [] { \"command\" },\n Cpu = 123,\n DependsOn = new [] { new ContainerDependencyProperty {\n Condition = \"condition\",\n ContainerName = \"containerName\"\n } },\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new [] { new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n EnvironmentFiles = new [] { new EnvironmentFileProperty {\n Type = \"type\",\n Value = \"value\"\n } },\n Essential = false,\n ExtraHosts = new [] { new HostEntryProperty {\n Hostname = \"hostname\",\n IpAddress = \"ipAddress\"\n } },\n FirelensConfiguration = new FirelensConfigurationProperty {\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n Type = \"type\"\n },\n HealthCheck = new HealthCheckProperty {\n Command = new [] { \"command\" },\n Interval = 123,\n Retries = 123,\n StartPeriod = 123,\n Timeout = 123\n },\n Hostname = \"hostname\",\n Image = \"image\",\n Interactive = false,\n Links = new [] { \"links\" },\n LinuxParameters = new LinuxParametersProperty {\n Capabilities = new KernelCapabilitiesProperty {\n Add = new [] { \"add\" },\n Drop = new [] { \"drop\" }\n },\n Devices = new [] { new DeviceProperty {\n ContainerPath = \"containerPath\",\n HostPath = \"hostPath\",\n Permissions = new [] { \"permissions\" }\n } },\n InitProcessEnabled = false,\n MaxSwap = 123,\n SharedMemorySize = 123,\n Swappiness = 123,\n Tmpfs = new [] { new TmpfsProperty {\n Size = 123,\n\n // the properties below are optional\n ContainerPath = \"containerPath\",\n MountOptions = new [] { \"mountOptions\" }\n } }\n },\n LogConfiguration = new LogConfigurationProperty {\n LogDriver = \"logDriver\",\n\n // the properties below are optional\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n SecretOptions = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } }\n },\n Memory = 123,\n MemoryReservation = 123,\n MountPoints = new [] { new MountPointProperty {\n ContainerPath = \"containerPath\",\n ReadOnly = false,\n SourceVolume = \"sourceVolume\"\n } },\n Name = \"name\",\n PortMappings = new [] { new PortMappingProperty {\n ContainerPort = 123,\n HostPort = 123,\n Protocol = \"protocol\"\n } },\n Privileged = false,\n PseudoTerminal = false,\n ReadonlyRootFilesystem = false,\n RepositoryCredentials = new RepositoryCredentialsProperty {\n CredentialsParameter = \"credentialsParameter\"\n },\n ResourceRequirements = new [] { new ResourceRequirementProperty {\n Type = \"type\",\n Value = \"value\"\n } },\n Secrets = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } },\n StartTimeout = 123,\n StopTimeout = 123,\n SystemControls = new [] { new SystemControlProperty {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n Ulimits = new [] { new UlimitProperty {\n HardLimit = 123,\n Name = \"name\",\n SoftLimit = 123\n } },\n User = \"user\",\n VolumesFrom = new [] { new VolumeFromProperty {\n ReadOnly = false,\n SourceContainer = \"sourceContainer\"\n } },\n WorkingDirectory = \"workingDirectory\"\n};",
6781 "version": "1"
6782 },
6783 "java": {
6784 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nContainerDefinitionProperty containerDefinitionProperty = ContainerDefinitionProperty.builder()\n .command(List.of(\"command\"))\n .cpu(123)\n .dependsOn(List.of(ContainerDependencyProperty.builder()\n .condition(\"condition\")\n .containerName(\"containerName\")\n .build()))\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(List.of(KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .environmentFiles(List.of(EnvironmentFileProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build()))\n .essential(false)\n .extraHosts(List.of(HostEntryProperty.builder()\n .hostname(\"hostname\")\n .ipAddress(\"ipAddress\")\n .build()))\n .firelensConfiguration(FirelensConfigurationProperty.builder()\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .type(\"type\")\n .build())\n .healthCheck(HealthCheckProperty.builder()\n .command(List.of(\"command\"))\n .interval(123)\n .retries(123)\n .startPeriod(123)\n .timeout(123)\n .build())\n .hostname(\"hostname\")\n .image(\"image\")\n .interactive(false)\n .links(List.of(\"links\"))\n .linuxParameters(LinuxParametersProperty.builder()\n .capabilities(KernelCapabilitiesProperty.builder()\n .add(List.of(\"add\"))\n .drop(List.of(\"drop\"))\n .build())\n .devices(List.of(DeviceProperty.builder()\n .containerPath(\"containerPath\")\n .hostPath(\"hostPath\")\n .permissions(List.of(\"permissions\"))\n .build()))\n .initProcessEnabled(false)\n .maxSwap(123)\n .sharedMemorySize(123)\n .swappiness(123)\n .tmpfs(List.of(TmpfsProperty.builder()\n .size(123)\n\n // the properties below are optional\n .containerPath(\"containerPath\")\n .mountOptions(List.of(\"mountOptions\"))\n .build()))\n .build())\n .logConfiguration(LogConfigurationProperty.builder()\n .logDriver(\"logDriver\")\n\n // the properties below are optional\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .secretOptions(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .build())\n .memory(123)\n .memoryReservation(123)\n .mountPoints(List.of(MountPointProperty.builder()\n .containerPath(\"containerPath\")\n .readOnly(false)\n .sourceVolume(\"sourceVolume\")\n .build()))\n .name(\"name\")\n .portMappings(List.of(PortMappingProperty.builder()\n .containerPort(123)\n .hostPort(123)\n .protocol(\"protocol\")\n .build()))\n .privileged(false)\n .pseudoTerminal(false)\n .readonlyRootFilesystem(false)\n .repositoryCredentials(RepositoryCredentialsProperty.builder()\n .credentialsParameter(\"credentialsParameter\")\n .build())\n .resourceRequirements(List.of(ResourceRequirementProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build()))\n .secrets(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .startTimeout(123)\n .stopTimeout(123)\n .systemControls(List.of(SystemControlProperty.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .ulimits(List.of(UlimitProperty.builder()\n .hardLimit(123)\n .name(\"name\")\n .softLimit(123)\n .build()))\n .user(\"user\")\n .volumesFrom(List.of(VolumeFromProperty.builder()\n .readOnly(false)\n .sourceContainer(\"sourceContainer\")\n .build()))\n .workingDirectory(\"workingDirectory\")\n .build();",
6785 "version": "1"
6786 },
6787 "go": {
6788 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncontainerDefinitionProperty := &containerDefinitionProperty{\n\tcommand: []*string{\n\t\tjsii.String(\"command\"),\n\t},\n\tcpu: jsii.Number(123),\n\tdependsOn: []interface{}{\n\t\t&containerDependencyProperty{\n\t\t\tcondition: jsii.String(\"condition\"),\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t},\n\t},\n\tdisableNetworking: jsii.Boolean(false),\n\tdnsSearchDomains: []*string{\n\t\tjsii.String(\"dnsSearchDomains\"),\n\t},\n\tdnsServers: []*string{\n\t\tjsii.String(\"dnsServers\"),\n\t},\n\tdockerLabels: map[string]*string{\n\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t},\n\tdockerSecurityOptions: []*string{\n\t\tjsii.String(\"dockerSecurityOptions\"),\n\t},\n\tentryPoint: []*string{\n\t\tjsii.String(\"entryPoint\"),\n\t},\n\tenvironment: []interface{}{\n\t\t&keyValuePairProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tenvironmentFiles: []interface{}{\n\t\t&environmentFileProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tessential: jsii.Boolean(false),\n\textraHosts: []interface{}{\n\t\t&hostEntryProperty{\n\t\t\thostname: jsii.String(\"hostname\"),\n\t\t\tipAddress: jsii.String(\"ipAddress\"),\n\t\t},\n\t},\n\tfirelensConfiguration: &firelensConfigurationProperty{\n\t\toptions: map[string]*string{\n\t\t\t\"optionsKey\": jsii.String(\"options\"),\n\t\t},\n\t\ttype: jsii.String(\"type\"),\n\t},\n\thealthCheck: &healthCheckProperty{\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"command\"),\n\t\t},\n\t\tinterval: jsii.Number(123),\n\t\tretries: jsii.Number(123),\n\t\tstartPeriod: jsii.Number(123),\n\t\ttimeout: jsii.Number(123),\n\t},\n\thostname: jsii.String(\"hostname\"),\n\timage: jsii.String(\"image\"),\n\tinteractive: jsii.Boolean(false),\n\tlinks: []*string{\n\t\tjsii.String(\"links\"),\n\t},\n\tlinuxParameters: &linuxParametersProperty{\n\t\tcapabilities: &kernelCapabilitiesProperty{\n\t\t\tadd: []*string{\n\t\t\t\tjsii.String(\"add\"),\n\t\t\t},\n\t\t\tdrop: []*string{\n\t\t\t\tjsii.String(\"drop\"),\n\t\t\t},\n\t\t},\n\t\tdevices: []interface{}{\n\t\t\t&deviceProperty{\n\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\thostPath: jsii.String(\"hostPath\"),\n\t\t\t\tpermissions: []*string{\n\t\t\t\t\tjsii.String(\"permissions\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tinitProcessEnabled: jsii.Boolean(false),\n\t\tmaxSwap: jsii.Number(123),\n\t\tsharedMemorySize: jsii.Number(123),\n\t\tswappiness: jsii.Number(123),\n\t\ttmpfs: []interface{}{\n\t\t\t&tmpfsProperty{\n\t\t\t\tsize: jsii.Number(123),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\tmountOptions: []*string{\n\t\t\t\t\tjsii.String(\"mountOptions\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tlogConfiguration: &logConfigurationProperty{\n\t\tlogDriver: jsii.String(\"logDriver\"),\n\n\t\t// the properties below are optional\n\t\toptions: map[string]*string{\n\t\t\t\"optionsKey\": jsii.String(\"options\"),\n\t\t},\n\t\tsecretOptions: []interface{}{\n\t\t\t&secretProperty{\n\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t\t},\n\t\t},\n\t},\n\tmemory: jsii.Number(123),\n\tmemoryReservation: jsii.Number(123),\n\tmountPoints: []interface{}{\n\t\t&mountPointProperty{\n\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\treadOnly: jsii.Boolean(false),\n\t\t\tsourceVolume: jsii.String(\"sourceVolume\"),\n\t\t},\n\t},\n\tname: jsii.String(\"name\"),\n\tportMappings: []interface{}{\n\t\t&portMappingProperty{\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\thostPort: jsii.Number(123),\n\t\t\tprotocol: jsii.String(\"protocol\"),\n\t\t},\n\t},\n\tprivileged: jsii.Boolean(false),\n\tpseudoTerminal: jsii.Boolean(false),\n\treadonlyRootFilesystem: jsii.Boolean(false),\n\trepositoryCredentials: &repositoryCredentialsProperty{\n\t\tcredentialsParameter: jsii.String(\"credentialsParameter\"),\n\t},\n\tresourceRequirements: []interface{}{\n\t\t&resourceRequirementProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tsecrets: []interface{}{\n\t\t&secretProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t},\n\t},\n\tstartTimeout: jsii.Number(123),\n\tstopTimeout: jsii.Number(123),\n\tsystemControls: []interface{}{\n\t\t&systemControlProperty{\n\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tulimits: []interface{}{\n\t\t&ulimitProperty{\n\t\t\thardLimit: jsii.Number(123),\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tsoftLimit: jsii.Number(123),\n\t\t},\n\t},\n\tuser: jsii.String(\"user\"),\n\tvolumesFrom: []interface{}{\n\t\t&volumeFromProperty{\n\t\t\treadOnly: jsii.Boolean(false),\n\t\t\tsourceContainer: jsii.String(\"sourceContainer\"),\n\t\t},\n\t},\n\tworkingDirectory: jsii.String(\"workingDirectory\"),\n}",
6789 "version": "1"
6790 },
6791 "$": {
6792 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst containerDefinitionProperty: ecs.CfnTaskDefinition.ContainerDefinitionProperty = {\n command: ['command'],\n cpu: 123,\n dependsOn: [{\n condition: 'condition',\n containerName: 'containerName',\n }],\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: [{\n name: 'name',\n value: 'value',\n }],\n environmentFiles: [{\n type: 'type',\n value: 'value',\n }],\n essential: false,\n extraHosts: [{\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n }],\n firelensConfiguration: {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n },\n healthCheck: {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n },\n hostname: 'hostname',\n image: 'image',\n interactive: false,\n links: ['links'],\n linuxParameters: {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n },\n logConfiguration: {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n },\n memory: 123,\n memoryReservation: 123,\n mountPoints: [{\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n }],\n name: 'name',\n portMappings: [{\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n }],\n privileged: false,\n pseudoTerminal: false,\n readonlyRootFilesystem: false,\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n resourceRequirements: [{\n type: 'type',\n value: 'value',\n }],\n secrets: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n startTimeout: 123,\n stopTimeout: 123,\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n ulimits: [{\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n }],\n user: 'user',\n volumesFrom: [{\n readOnly: false,\n sourceContainer: 'sourceContainer',\n }],\n workingDirectory: 'workingDirectory',\n};",
6793 "version": "0"
6794 }
6795 },
6796 "location": {
6797 "api": {
6798 "api": "type",
6799 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDefinitionProperty"
6800 },
6801 "field": {
6802 "field": "example"
6803 }
6804 },
6805 "didCompile": true,
6806 "fqnsReferenced": [
6807 "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDefinitionProperty"
6808 ],
6809 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst containerDefinitionProperty: ecs.CfnTaskDefinition.ContainerDefinitionProperty = {\n command: ['command'],\n cpu: 123,\n dependsOn: [{\n condition: 'condition',\n containerName: 'containerName',\n }],\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: [{\n name: 'name',\n value: 'value',\n }],\n environmentFiles: [{\n type: 'type',\n value: 'value',\n }],\n essential: false,\n extraHosts: [{\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n }],\n firelensConfiguration: {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n },\n healthCheck: {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n },\n hostname: 'hostname',\n image: 'image',\n interactive: false,\n links: ['links'],\n linuxParameters: {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n },\n logConfiguration: {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n },\n memory: 123,\n memoryReservation: 123,\n mountPoints: [{\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n }],\n name: 'name',\n portMappings: [{\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n }],\n privileged: false,\n pseudoTerminal: false,\n readonlyRootFilesystem: false,\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n resourceRequirements: [{\n type: 'type',\n value: 'value',\n }],\n secrets: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n startTimeout: 123,\n stopTimeout: 123,\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n ulimits: [{\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n }],\n user: 'user',\n volumesFrom: [{\n readOnly: false,\n sourceContainer: 'sourceContainer',\n }],\n workingDirectory: 'workingDirectory',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6810 "syntaxKindCounter": {
6811 "8": 17,
6812 "10": 47,
6813 "75": 100,
6814 "91": 9,
6815 "153": 2,
6816 "169": 1,
6817 "192": 25,
6818 "193": 24,
6819 "225": 1,
6820 "242": 1,
6821 "243": 1,
6822 "254": 1,
6823 "255": 1,
6824 "256": 1,
6825 "281": 95,
6826 "290": 1
6827 },
6828 "fqnsFingerprint": "f327759870caef309cb66a804bd2ba4dec0366740761304549e01a80d7013207"
6829 },
6830 "725aba7a546a4b755f877b9281a927e6997518e2bacfd1aad9d83609db7ffd52": {
6831 "translations": {
6832 "python": {
6833 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncontainer_dependency_property = ecs.CfnTaskDefinition.ContainerDependencyProperty(\n condition=\"condition\",\n container_name=\"containerName\"\n)",
6834 "version": "2"
6835 },
6836 "csharp": {
6837 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nContainerDependencyProperty containerDependencyProperty = new ContainerDependencyProperty {\n Condition = \"condition\",\n ContainerName = \"containerName\"\n};",
6838 "version": "1"
6839 },
6840 "java": {
6841 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nContainerDependencyProperty containerDependencyProperty = ContainerDependencyProperty.builder()\n .condition(\"condition\")\n .containerName(\"containerName\")\n .build();",
6842 "version": "1"
6843 },
6844 "go": {
6845 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncontainerDependencyProperty := &containerDependencyProperty{\n\tcondition: jsii.String(\"condition\"),\n\tcontainerName: jsii.String(\"containerName\"),\n}",
6846 "version": "1"
6847 },
6848 "$": {
6849 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst containerDependencyProperty: ecs.CfnTaskDefinition.ContainerDependencyProperty = {\n condition: 'condition',\n containerName: 'containerName',\n};",
6850 "version": "0"
6851 }
6852 },
6853 "location": {
6854 "api": {
6855 "api": "type",
6856 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDependencyProperty"
6857 },
6858 "field": {
6859 "field": "example"
6860 }
6861 },
6862 "didCompile": true,
6863 "fqnsReferenced": [
6864 "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDependencyProperty"
6865 ],
6866 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst containerDependencyProperty: ecs.CfnTaskDefinition.ContainerDependencyProperty = {\n condition: 'condition',\n containerName: 'containerName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6867 "syntaxKindCounter": {
6868 "10": 3,
6869 "75": 7,
6870 "153": 2,
6871 "169": 1,
6872 "193": 1,
6873 "225": 1,
6874 "242": 1,
6875 "243": 1,
6876 "254": 1,
6877 "255": 1,
6878 "256": 1,
6879 "281": 2,
6880 "290": 1
6881 },
6882 "fqnsFingerprint": "7d2b078c2283c0ebd9736168260ddbad71b36116eb308aeb173e1ebe566cdf46"
6883 },
6884 "a3cec9859ca8d2581561a45f5d31565e0ba09905720f37a86baceee1b8d9eceb": {
6885 "translations": {
6886 "python": {
6887 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndevice_property = ecs.CfnTaskDefinition.DeviceProperty(\n container_path=\"containerPath\",\n host_path=\"hostPath\",\n permissions=[\"permissions\"]\n)",
6888 "version": "2"
6889 },
6890 "csharp": {
6891 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDeviceProperty deviceProperty = new DeviceProperty {\n ContainerPath = \"containerPath\",\n HostPath = \"hostPath\",\n Permissions = new [] { \"permissions\" }\n};",
6892 "version": "1"
6893 },
6894 "java": {
6895 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDeviceProperty deviceProperty = DeviceProperty.builder()\n .containerPath(\"containerPath\")\n .hostPath(\"hostPath\")\n .permissions(List.of(\"permissions\"))\n .build();",
6896 "version": "1"
6897 },
6898 "go": {
6899 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndeviceProperty := &deviceProperty{\n\tcontainerPath: jsii.String(\"containerPath\"),\n\thostPath: jsii.String(\"hostPath\"),\n\tpermissions: []*string{\n\t\tjsii.String(\"permissions\"),\n\t},\n}",
6900 "version": "1"
6901 },
6902 "$": {
6903 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst deviceProperty: ecs.CfnTaskDefinition.DeviceProperty = {\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n};",
6904 "version": "0"
6905 }
6906 },
6907 "location": {
6908 "api": {
6909 "api": "type",
6910 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.DeviceProperty"
6911 },
6912 "field": {
6913 "field": "example"
6914 }
6915 },
6916 "didCompile": true,
6917 "fqnsReferenced": [
6918 "@aws-cdk/aws-ecs.CfnTaskDefinition.DeviceProperty"
6919 ],
6920 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst deviceProperty: ecs.CfnTaskDefinition.DeviceProperty = {\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6921 "syntaxKindCounter": {
6922 "10": 4,
6923 "75": 8,
6924 "153": 2,
6925 "169": 1,
6926 "192": 1,
6927 "193": 1,
6928 "225": 1,
6929 "242": 1,
6930 "243": 1,
6931 "254": 1,
6932 "255": 1,
6933 "256": 1,
6934 "281": 3,
6935 "290": 1
6936 },
6937 "fqnsFingerprint": "bdaef3c06a3c4c809aeea30342aef52d518c7008ff61ff861ebfd0fc08068829"
6938 },
6939 "edbe6731de2e03045e2567a7ba2399b31b1ff9a3786567e51e9c440f358226c2": {
6940 "translations": {
6941 "python": {
6942 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndocker_volume_configuration_property = ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty(\n autoprovision=False,\n driver=\"driver\",\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n },\n scope=\"scope\"\n)",
6943 "version": "2"
6944 },
6945 "csharp": {
6946 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDockerVolumeConfigurationProperty dockerVolumeConfigurationProperty = new DockerVolumeConfigurationProperty {\n Autoprovision = false,\n Driver = \"driver\",\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n },\n Scope = \"scope\"\n};",
6947 "version": "1"
6948 },
6949 "java": {
6950 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDockerVolumeConfigurationProperty dockerVolumeConfigurationProperty = DockerVolumeConfigurationProperty.builder()\n .autoprovision(false)\n .driver(\"driver\")\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .scope(\"scope\")\n .build();",
6951 "version": "1"
6952 },
6953 "go": {
6954 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndockerVolumeConfigurationProperty := &dockerVolumeConfigurationProperty{\n\tautoprovision: jsii.Boolean(false),\n\tdriver: jsii.String(\"driver\"),\n\tdriverOpts: map[string]*string{\n\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t},\n\tlabels: map[string]*string{\n\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t},\n\tscope: jsii.String(\"scope\"),\n}",
6955 "version": "1"
6956 },
6957 "$": {
6958 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst dockerVolumeConfigurationProperty: ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty = {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n};",
6959 "version": "0"
6960 }
6961 },
6962 "location": {
6963 "api": {
6964 "api": "type",
6965 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty"
6966 },
6967 "field": {
6968 "field": "example"
6969 }
6970 },
6971 "didCompile": true,
6972 "fqnsReferenced": [
6973 "@aws-cdk/aws-ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty"
6974 ],
6975 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst dockerVolumeConfigurationProperty: ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty = {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6976 "syntaxKindCounter": {
6977 "10": 5,
6978 "75": 12,
6979 "91": 1,
6980 "153": 2,
6981 "169": 1,
6982 "193": 3,
6983 "225": 1,
6984 "242": 1,
6985 "243": 1,
6986 "254": 1,
6987 "255": 1,
6988 "256": 1,
6989 "281": 7,
6990 "290": 1
6991 },
6992 "fqnsFingerprint": "6488c8c0fe4dbc6d0957745692a1c6b9e0561d444c20a5b1ae0d7056af01b058"
6993 },
6994 "e85ed055887edc36226287a9a1b89035370c450a46921485bd4d4d64879a5d61": {
6995 "translations": {
6996 "python": {
6997 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ne_fSVolume_configuration_property = ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty(\n filesystem_id=\"filesystemId\",\n\n # the properties below are optional\n authorization_config=ecs.CfnTaskDefinition.AuthorizationConfigProperty(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n)",
6998 "version": "2"
6999 },
7000 "csharp": {
7001 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nEFSVolumeConfigurationProperty eFSVolumeConfigurationProperty = new EFSVolumeConfigurationProperty {\n FilesystemId = \"filesystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfigProperty {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n};",
7002 "version": "1"
7003 },
7004 "java": {
7005 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nEFSVolumeConfigurationProperty eFSVolumeConfigurationProperty = EFSVolumeConfigurationProperty.builder()\n .filesystemId(\"filesystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfigProperty.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build();",
7006 "version": "1"
7007 },
7008 "go": {
7009 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\neFSVolumeConfigurationProperty := &eFSVolumeConfigurationProperty{\n\tfilesystemId: jsii.String(\"filesystemId\"),\n\n\t// the properties below are optional\n\tauthorizationConfig: &authorizationConfigProperty{\n\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\tiam: jsii.String(\"iam\"),\n\t},\n\trootDirectory: jsii.String(\"rootDirectory\"),\n\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\ttransitEncryptionPort: jsii.Number(123),\n}",
7010 "version": "1"
7011 },
7012 "$": {
7013 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst eFSVolumeConfigurationProperty: ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty = {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n};",
7014 "version": "0"
7015 }
7016 },
7017 "location": {
7018 "api": {
7019 "api": "type",
7020 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty"
7021 },
7022 "field": {
7023 "field": "example"
7024 }
7025 },
7026 "didCompile": true,
7027 "fqnsReferenced": [
7028 "@aws-cdk/aws-ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty"
7029 ],
7030 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst eFSVolumeConfigurationProperty: ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty = {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7031 "syntaxKindCounter": {
7032 "8": 1,
7033 "10": 6,
7034 "75": 12,
7035 "153": 2,
7036 "169": 1,
7037 "193": 2,
7038 "225": 1,
7039 "242": 1,
7040 "243": 1,
7041 "254": 1,
7042 "255": 1,
7043 "256": 1,
7044 "281": 7,
7045 "290": 1
7046 },
7047 "fqnsFingerprint": "3e376626953b3b69f298ec6f94b3858cac31a3f538c9a15faedac813044654e5"
7048 },
7049 "476bc45526fa8d1819114939c5f9e811aa0ae00a00379ad8878e1a691fc03c7d": {
7050 "translations": {
7051 "python": {
7052 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nenvironment_file_property = ecs.CfnTaskDefinition.EnvironmentFileProperty(\n type=\"type\",\n value=\"value\"\n)",
7053 "version": "2"
7054 },
7055 "csharp": {
7056 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nEnvironmentFileProperty environmentFileProperty = new EnvironmentFileProperty {\n Type = \"type\",\n Value = \"value\"\n};",
7057 "version": "1"
7058 },
7059 "java": {
7060 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nEnvironmentFileProperty environmentFileProperty = EnvironmentFileProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build();",
7061 "version": "1"
7062 },
7063 "go": {
7064 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nenvironmentFileProperty := &environmentFileProperty{\n\ttype: jsii.String(\"type\"),\n\tvalue: jsii.String(\"value\"),\n}",
7065 "version": "1"
7066 },
7067 "$": {
7068 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst environmentFileProperty: ecs.CfnTaskDefinition.EnvironmentFileProperty = {\n type: 'type',\n value: 'value',\n};",
7069 "version": "0"
7070 }
7071 },
7072 "location": {
7073 "api": {
7074 "api": "type",
7075 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.EnvironmentFileProperty"
7076 },
7077 "field": {
7078 "field": "example"
7079 }
7080 },
7081 "didCompile": true,
7082 "fqnsReferenced": [
7083 "@aws-cdk/aws-ecs.CfnTaskDefinition.EnvironmentFileProperty"
7084 ],
7085 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst environmentFileProperty: ecs.CfnTaskDefinition.EnvironmentFileProperty = {\n type: 'type',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7086 "syntaxKindCounter": {
7087 "10": 3,
7088 "75": 7,
7089 "153": 2,
7090 "169": 1,
7091 "193": 1,
7092 "225": 1,
7093 "242": 1,
7094 "243": 1,
7095 "254": 1,
7096 "255": 1,
7097 "256": 1,
7098 "281": 2,
7099 "290": 1
7100 },
7101 "fqnsFingerprint": "6f40420d90f405431f65a2ace982feb80b3e7395cb718dc10f7b8066dcdb400e"
7102 },
7103 "64d7887a519786dc7fb27ff42cdf72f034f7d7490f4c2a12ee66a645b52bb195": {
7104 "translations": {
7105 "python": {
7106 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nephemeral_storage_property = ecs.CfnTaskDefinition.EphemeralStorageProperty(\n size_in_gi_b=123\n)",
7107 "version": "2"
7108 },
7109 "csharp": {
7110 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nEphemeralStorageProperty ephemeralStorageProperty = new EphemeralStorageProperty {\n SizeInGiB = 123\n};",
7111 "version": "1"
7112 },
7113 "java": {
7114 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nEphemeralStorageProperty ephemeralStorageProperty = EphemeralStorageProperty.builder()\n .sizeInGiB(123)\n .build();",
7115 "version": "1"
7116 },
7117 "go": {
7118 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nephemeralStorageProperty := &ephemeralStorageProperty{\n\tsizeInGiB: jsii.Number(123),\n}",
7119 "version": "1"
7120 },
7121 "$": {
7122 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst ephemeralStorageProperty: ecs.CfnTaskDefinition.EphemeralStorageProperty = {\n sizeInGiB: 123,\n};",
7123 "version": "0"
7124 }
7125 },
7126 "location": {
7127 "api": {
7128 "api": "type",
7129 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.EphemeralStorageProperty"
7130 },
7131 "field": {
7132 "field": "example"
7133 }
7134 },
7135 "didCompile": true,
7136 "fqnsReferenced": [
7137 "@aws-cdk/aws-ecs.CfnTaskDefinition.EphemeralStorageProperty"
7138 ],
7139 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ephemeralStorageProperty: ecs.CfnTaskDefinition.EphemeralStorageProperty = {\n sizeInGiB: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7140 "syntaxKindCounter": {
7141 "8": 1,
7142 "10": 1,
7143 "75": 6,
7144 "153": 2,
7145 "169": 1,
7146 "193": 1,
7147 "225": 1,
7148 "242": 1,
7149 "243": 1,
7150 "254": 1,
7151 "255": 1,
7152 "256": 1,
7153 "281": 1,
7154 "290": 1
7155 },
7156 "fqnsFingerprint": "9000cba34d746cd5035765e8255dd3b5246d8d75a506540d0e7536c3f286afba"
7157 },
7158 "f6353b29981a80871d974116067e9676cfd49b4340858a3309ee5ff62cabe0d6": {
7159 "translations": {
7160 "python": {
7161 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nfirelens_configuration_property = ecs.CfnTaskDefinition.FirelensConfigurationProperty(\n options={\n \"options_key\": \"options\"\n },\n type=\"type\"\n)",
7162 "version": "2"
7163 },
7164 "csharp": {
7165 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nFirelensConfigurationProperty firelensConfigurationProperty = new FirelensConfigurationProperty {\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n Type = \"type\"\n};",
7166 "version": "1"
7167 },
7168 "java": {
7169 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nFirelensConfigurationProperty firelensConfigurationProperty = FirelensConfigurationProperty.builder()\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .type(\"type\")\n .build();",
7170 "version": "1"
7171 },
7172 "go": {
7173 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nfirelensConfigurationProperty := &firelensConfigurationProperty{\n\toptions: map[string]*string{\n\t\t\"optionsKey\": jsii.String(\"options\"),\n\t},\n\ttype: jsii.String(\"type\"),\n}",
7174 "version": "1"
7175 },
7176 "$": {
7177 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst firelensConfigurationProperty: ecs.CfnTaskDefinition.FirelensConfigurationProperty = {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n};",
7178 "version": "0"
7179 }
7180 },
7181 "location": {
7182 "api": {
7183 "api": "type",
7184 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.FirelensConfigurationProperty"
7185 },
7186 "field": {
7187 "field": "example"
7188 }
7189 },
7190 "didCompile": true,
7191 "fqnsReferenced": [
7192 "@aws-cdk/aws-ecs.CfnTaskDefinition.FirelensConfigurationProperty"
7193 ],
7194 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst firelensConfigurationProperty: ecs.CfnTaskDefinition.FirelensConfigurationProperty = {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7195 "syntaxKindCounter": {
7196 "10": 3,
7197 "75": 8,
7198 "153": 2,
7199 "169": 1,
7200 "193": 2,
7201 "225": 1,
7202 "242": 1,
7203 "243": 1,
7204 "254": 1,
7205 "255": 1,
7206 "256": 1,
7207 "281": 3,
7208 "290": 1
7209 },
7210 "fqnsFingerprint": "cf9329123d9a4c4e71359ede6248fa17d6f86bdc2ce39bf1d9f590a31fd273d9"
7211 },
7212 "52ecdc12d693a30d9e7585ebf94c5d6a59917272c9bd7eab25e41aae99978e09": {
7213 "translations": {
7214 "python": {
7215 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nhealth_check_property = ecs.CfnTaskDefinition.HealthCheckProperty(\n command=[\"command\"],\n interval=123,\n retries=123,\n start_period=123,\n timeout=123\n)",
7216 "version": "2"
7217 },
7218 "csharp": {
7219 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nHealthCheckProperty healthCheckProperty = new HealthCheckProperty {\n Command = new [] { \"command\" },\n Interval = 123,\n Retries = 123,\n StartPeriod = 123,\n Timeout = 123\n};",
7220 "version": "1"
7221 },
7222 "java": {
7223 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nHealthCheckProperty healthCheckProperty = HealthCheckProperty.builder()\n .command(List.of(\"command\"))\n .interval(123)\n .retries(123)\n .startPeriod(123)\n .timeout(123)\n .build();",
7224 "version": "1"
7225 },
7226 "go": {
7227 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nhealthCheckProperty := &healthCheckProperty{\n\tcommand: []*string{\n\t\tjsii.String(\"command\"),\n\t},\n\tinterval: jsii.Number(123),\n\tretries: jsii.Number(123),\n\tstartPeriod: jsii.Number(123),\n\ttimeout: jsii.Number(123),\n}",
7228 "version": "1"
7229 },
7230 "$": {
7231 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst healthCheckProperty: ecs.CfnTaskDefinition.HealthCheckProperty = {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n};",
7232 "version": "0"
7233 }
7234 },
7235 "location": {
7236 "api": {
7237 "api": "type",
7238 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.HealthCheckProperty"
7239 },
7240 "field": {
7241 "field": "example"
7242 }
7243 },
7244 "didCompile": true,
7245 "fqnsReferenced": [
7246 "@aws-cdk/aws-ecs.CfnTaskDefinition.HealthCheckProperty"
7247 ],
7248 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst healthCheckProperty: ecs.CfnTaskDefinition.HealthCheckProperty = {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7249 "syntaxKindCounter": {
7250 "8": 4,
7251 "10": 2,
7252 "75": 10,
7253 "153": 2,
7254 "169": 1,
7255 "192": 1,
7256 "193": 1,
7257 "225": 1,
7258 "242": 1,
7259 "243": 1,
7260 "254": 1,
7261 "255": 1,
7262 "256": 1,
7263 "281": 5,
7264 "290": 1
7265 },
7266 "fqnsFingerprint": "f66ef3b458dbaaf279346f271803b3e4bf286ed7ac5741dee0229c6675c3ac6d"
7267 },
7268 "18e76fbfacc248f48c7c53ad3191ed10b05de6c46744081073c3ded9d42deb8f": {
7269 "translations": {
7270 "python": {
7271 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nhost_entry_property = ecs.CfnTaskDefinition.HostEntryProperty(\n hostname=\"hostname\",\n ip_address=\"ipAddress\"\n)",
7272 "version": "2"
7273 },
7274 "csharp": {
7275 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nHostEntryProperty hostEntryProperty = new HostEntryProperty {\n Hostname = \"hostname\",\n IpAddress = \"ipAddress\"\n};",
7276 "version": "1"
7277 },
7278 "java": {
7279 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nHostEntryProperty hostEntryProperty = HostEntryProperty.builder()\n .hostname(\"hostname\")\n .ipAddress(\"ipAddress\")\n .build();",
7280 "version": "1"
7281 },
7282 "go": {
7283 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nhostEntryProperty := &hostEntryProperty{\n\thostname: jsii.String(\"hostname\"),\n\tipAddress: jsii.String(\"ipAddress\"),\n}",
7284 "version": "1"
7285 },
7286 "$": {
7287 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst hostEntryProperty: ecs.CfnTaskDefinition.HostEntryProperty = {\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n};",
7288 "version": "0"
7289 }
7290 },
7291 "location": {
7292 "api": {
7293 "api": "type",
7294 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.HostEntryProperty"
7295 },
7296 "field": {
7297 "field": "example"
7298 }
7299 },
7300 "didCompile": true,
7301 "fqnsReferenced": [
7302 "@aws-cdk/aws-ecs.CfnTaskDefinition.HostEntryProperty"
7303 ],
7304 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst hostEntryProperty: ecs.CfnTaskDefinition.HostEntryProperty = {\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7305 "syntaxKindCounter": {
7306 "10": 3,
7307 "75": 7,
7308 "153": 2,
7309 "169": 1,
7310 "193": 1,
7311 "225": 1,
7312 "242": 1,
7313 "243": 1,
7314 "254": 1,
7315 "255": 1,
7316 "256": 1,
7317 "281": 2,
7318 "290": 1
7319 },
7320 "fqnsFingerprint": "9a4349573bececdea55b3b06e53572a43b17f691603a01f74a99dcf8dfea37c8"
7321 },
7322 "e91b091b1aabf86fc4ed7f0e877ea24f12000e8dac976a5b9780fb61e70171f2": {
7323 "translations": {
7324 "python": {
7325 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nhost_volume_properties_property = ecs.CfnTaskDefinition.HostVolumePropertiesProperty(\n source_path=\"sourcePath\"\n)",
7326 "version": "2"
7327 },
7328 "csharp": {
7329 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nHostVolumePropertiesProperty hostVolumePropertiesProperty = new HostVolumePropertiesProperty {\n SourcePath = \"sourcePath\"\n};",
7330 "version": "1"
7331 },
7332 "java": {
7333 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nHostVolumePropertiesProperty hostVolumePropertiesProperty = HostVolumePropertiesProperty.builder()\n .sourcePath(\"sourcePath\")\n .build();",
7334 "version": "1"
7335 },
7336 "go": {
7337 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nhostVolumePropertiesProperty := &hostVolumePropertiesProperty{\n\tsourcePath: jsii.String(\"sourcePath\"),\n}",
7338 "version": "1"
7339 },
7340 "$": {
7341 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst hostVolumePropertiesProperty: ecs.CfnTaskDefinition.HostVolumePropertiesProperty = {\n sourcePath: 'sourcePath',\n};",
7342 "version": "0"
7343 }
7344 },
7345 "location": {
7346 "api": {
7347 "api": "type",
7348 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.HostVolumePropertiesProperty"
7349 },
7350 "field": {
7351 "field": "example"
7352 }
7353 },
7354 "didCompile": true,
7355 "fqnsReferenced": [
7356 "@aws-cdk/aws-ecs.CfnTaskDefinition.HostVolumePropertiesProperty"
7357 ],
7358 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst hostVolumePropertiesProperty: ecs.CfnTaskDefinition.HostVolumePropertiesProperty = {\n sourcePath: 'sourcePath',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7359 "syntaxKindCounter": {
7360 "10": 2,
7361 "75": 6,
7362 "153": 2,
7363 "169": 1,
7364 "193": 1,
7365 "225": 1,
7366 "242": 1,
7367 "243": 1,
7368 "254": 1,
7369 "255": 1,
7370 "256": 1,
7371 "281": 1,
7372 "290": 1
7373 },
7374 "fqnsFingerprint": "c4c1d99e6de1a0d2aefb7b3fa97bed6fe027af2021b4038e4aba7718636b1155"
7375 },
7376 "0710a1e2de375a221c11485176209d8f3496366e2253a8dc605b1ab6c975dbb0": {
7377 "translations": {
7378 "python": {
7379 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ninference_accelerator_property = ecs.CfnTaskDefinition.InferenceAcceleratorProperty(\n device_name=\"deviceName\",\n device_type=\"deviceType\"\n)",
7380 "version": "2"
7381 },
7382 "csharp": {
7383 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nInferenceAcceleratorProperty inferenceAcceleratorProperty = new InferenceAcceleratorProperty {\n DeviceName = \"deviceName\",\n DeviceType = \"deviceType\"\n};",
7384 "version": "1"
7385 },
7386 "java": {
7387 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nInferenceAcceleratorProperty inferenceAcceleratorProperty = InferenceAcceleratorProperty.builder()\n .deviceName(\"deviceName\")\n .deviceType(\"deviceType\")\n .build();",
7388 "version": "1"
7389 },
7390 "go": {
7391 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ninferenceAcceleratorProperty := &inferenceAcceleratorProperty{\n\tdeviceName: jsii.String(\"deviceName\"),\n\tdeviceType: jsii.String(\"deviceType\"),\n}",
7392 "version": "1"
7393 },
7394 "$": {
7395 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst inferenceAcceleratorProperty: ecs.CfnTaskDefinition.InferenceAcceleratorProperty = {\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n};",
7396 "version": "0"
7397 }
7398 },
7399 "location": {
7400 "api": {
7401 "api": "type",
7402 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.InferenceAcceleratorProperty"
7403 },
7404 "field": {
7405 "field": "example"
7406 }
7407 },
7408 "didCompile": true,
7409 "fqnsReferenced": [
7410 "@aws-cdk/aws-ecs.CfnTaskDefinition.InferenceAcceleratorProperty"
7411 ],
7412 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst inferenceAcceleratorProperty: ecs.CfnTaskDefinition.InferenceAcceleratorProperty = {\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7413 "syntaxKindCounter": {
7414 "10": 3,
7415 "75": 7,
7416 "153": 2,
7417 "169": 1,
7418 "193": 1,
7419 "225": 1,
7420 "242": 1,
7421 "243": 1,
7422 "254": 1,
7423 "255": 1,
7424 "256": 1,
7425 "281": 2,
7426 "290": 1
7427 },
7428 "fqnsFingerprint": "1fd8febc13b0dbea2740e53de6a29cec042c8d97692ff4d996fc643ebc22c186"
7429 },
7430 "41d5b5ffd7543d259d321c3423562922b7dc4d912035714e2d9b1d23d918f402": {
7431 "translations": {
7432 "python": {
7433 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nkernel_capabilities_property = ecs.CfnTaskDefinition.KernelCapabilitiesProperty(\n add=[\"add\"],\n drop=[\"drop\"]\n)",
7434 "version": "2"
7435 },
7436 "csharp": {
7437 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nKernelCapabilitiesProperty kernelCapabilitiesProperty = new KernelCapabilitiesProperty {\n Add = new [] { \"add\" },\n Drop = new [] { \"drop\" }\n};",
7438 "version": "1"
7439 },
7440 "java": {
7441 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nKernelCapabilitiesProperty kernelCapabilitiesProperty = KernelCapabilitiesProperty.builder()\n .add(List.of(\"add\"))\n .drop(List.of(\"drop\"))\n .build();",
7442 "version": "1"
7443 },
7444 "go": {
7445 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nkernelCapabilitiesProperty := &kernelCapabilitiesProperty{\n\tadd: []*string{\n\t\tjsii.String(\"add\"),\n\t},\n\tdrop: []*string{\n\t\tjsii.String(\"drop\"),\n\t},\n}",
7446 "version": "1"
7447 },
7448 "$": {
7449 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst kernelCapabilitiesProperty: ecs.CfnTaskDefinition.KernelCapabilitiesProperty = {\n add: ['add'],\n drop: ['drop'],\n};",
7450 "version": "0"
7451 }
7452 },
7453 "location": {
7454 "api": {
7455 "api": "type",
7456 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.KernelCapabilitiesProperty"
7457 },
7458 "field": {
7459 "field": "example"
7460 }
7461 },
7462 "didCompile": true,
7463 "fqnsReferenced": [
7464 "@aws-cdk/aws-ecs.CfnTaskDefinition.KernelCapabilitiesProperty"
7465 ],
7466 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst kernelCapabilitiesProperty: ecs.CfnTaskDefinition.KernelCapabilitiesProperty = {\n add: ['add'],\n drop: ['drop'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7467 "syntaxKindCounter": {
7468 "10": 3,
7469 "75": 7,
7470 "153": 2,
7471 "169": 1,
7472 "192": 2,
7473 "193": 1,
7474 "225": 1,
7475 "242": 1,
7476 "243": 1,
7477 "254": 1,
7478 "255": 1,
7479 "256": 1,
7480 "281": 2,
7481 "290": 1
7482 },
7483 "fqnsFingerprint": "360a0771f0a9247cd6c3caf465c65ff9be0214d294edc25f18db81bb89d49bb1"
7484 },
7485 "0c60b8c33af34fc86e959b344578a18e57dc3ff3bfc8989ec634dd03bb03971d": {
7486 "translations": {
7487 "python": {
7488 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nkey_value_pair_property = ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n)",
7489 "version": "2"
7490 },
7491 "csharp": {
7492 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nKeyValuePairProperty keyValuePairProperty = new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n};",
7493 "version": "1"
7494 },
7495 "java": {
7496 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nKeyValuePairProperty keyValuePairProperty = KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build();",
7497 "version": "1"
7498 },
7499 "go": {
7500 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nkeyValuePairProperty := &keyValuePairProperty{\n\tname: jsii.String(\"name\"),\n\tvalue: jsii.String(\"value\"),\n}",
7501 "version": "1"
7502 },
7503 "$": {
7504 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst keyValuePairProperty: ecs.CfnTaskDefinition.KeyValuePairProperty = {\n name: 'name',\n value: 'value',\n};",
7505 "version": "0"
7506 }
7507 },
7508 "location": {
7509 "api": {
7510 "api": "type",
7511 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.KeyValuePairProperty"
7512 },
7513 "field": {
7514 "field": "example"
7515 }
7516 },
7517 "didCompile": true,
7518 "fqnsReferenced": [
7519 "@aws-cdk/aws-ecs.CfnTaskDefinition.KeyValuePairProperty"
7520 ],
7521 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst keyValuePairProperty: ecs.CfnTaskDefinition.KeyValuePairProperty = {\n name: 'name',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7522 "syntaxKindCounter": {
7523 "10": 3,
7524 "75": 7,
7525 "153": 2,
7526 "169": 1,
7527 "193": 1,
7528 "225": 1,
7529 "242": 1,
7530 "243": 1,
7531 "254": 1,
7532 "255": 1,
7533 "256": 1,
7534 "281": 2,
7535 "290": 1
7536 },
7537 "fqnsFingerprint": "89278a2f9108e1f897e1b7efb0acb09aa19718bf80e80b6fb94bcf2e581c384a"
7538 },
7539 "f33e6f7c1df90493a14caf8d6fddf3b5214e6d744346014f8b66a37bb2521f29": {
7540 "translations": {
7541 "python": {
7542 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nlinux_parameters_property = ecs.CfnTaskDefinition.LinuxParametersProperty(\n capabilities=ecs.CfnTaskDefinition.KernelCapabilitiesProperty(\n add=[\"add\"],\n drop=[\"drop\"]\n ),\n devices=[ecs.CfnTaskDefinition.DeviceProperty(\n container_path=\"containerPath\",\n host_path=\"hostPath\",\n permissions=[\"permissions\"]\n )],\n init_process_enabled=False,\n max_swap=123,\n shared_memory_size=123,\n swappiness=123,\n tmpfs=[ecs.CfnTaskDefinition.TmpfsProperty(\n size=123,\n\n # the properties below are optional\n container_path=\"containerPath\",\n mount_options=[\"mountOptions\"]\n )]\n)",
7543 "version": "2"
7544 },
7545 "csharp": {
7546 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLinuxParametersProperty linuxParametersProperty = new LinuxParametersProperty {\n Capabilities = new KernelCapabilitiesProperty {\n Add = new [] { \"add\" },\n Drop = new [] { \"drop\" }\n },\n Devices = new [] { new DeviceProperty {\n ContainerPath = \"containerPath\",\n HostPath = \"hostPath\",\n Permissions = new [] { \"permissions\" }\n } },\n InitProcessEnabled = false,\n MaxSwap = 123,\n SharedMemorySize = 123,\n Swappiness = 123,\n Tmpfs = new [] { new TmpfsProperty {\n Size = 123,\n\n // the properties below are optional\n ContainerPath = \"containerPath\",\n MountOptions = new [] { \"mountOptions\" }\n } }\n};",
7547 "version": "1"
7548 },
7549 "java": {
7550 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLinuxParametersProperty linuxParametersProperty = LinuxParametersProperty.builder()\n .capabilities(KernelCapabilitiesProperty.builder()\n .add(List.of(\"add\"))\n .drop(List.of(\"drop\"))\n .build())\n .devices(List.of(DeviceProperty.builder()\n .containerPath(\"containerPath\")\n .hostPath(\"hostPath\")\n .permissions(List.of(\"permissions\"))\n .build()))\n .initProcessEnabled(false)\n .maxSwap(123)\n .sharedMemorySize(123)\n .swappiness(123)\n .tmpfs(List.of(TmpfsProperty.builder()\n .size(123)\n\n // the properties below are optional\n .containerPath(\"containerPath\")\n .mountOptions(List.of(\"mountOptions\"))\n .build()))\n .build();",
7551 "version": "1"
7552 },
7553 "go": {
7554 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nlinuxParametersProperty := &linuxParametersProperty{\n\tcapabilities: &kernelCapabilitiesProperty{\n\t\tadd: []*string{\n\t\t\tjsii.String(\"add\"),\n\t\t},\n\t\tdrop: []*string{\n\t\t\tjsii.String(\"drop\"),\n\t\t},\n\t},\n\tdevices: []interface{}{\n\t\t&deviceProperty{\n\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\thostPath: jsii.String(\"hostPath\"),\n\t\t\tpermissions: []*string{\n\t\t\t\tjsii.String(\"permissions\"),\n\t\t\t},\n\t\t},\n\t},\n\tinitProcessEnabled: jsii.Boolean(false),\n\tmaxSwap: jsii.Number(123),\n\tsharedMemorySize: jsii.Number(123),\n\tswappiness: jsii.Number(123),\n\ttmpfs: []interface{}{\n\t\t&tmpfsProperty{\n\t\t\tsize: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\tmountOptions: []*string{\n\t\t\t\tjsii.String(\"mountOptions\"),\n\t\t\t},\n\t\t},\n\t},\n}",
7555 "version": "1"
7556 },
7557 "$": {
7558 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst linuxParametersProperty: ecs.CfnTaskDefinition.LinuxParametersProperty = {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n};",
7559 "version": "0"
7560 }
7561 },
7562 "location": {
7563 "api": {
7564 "api": "type",
7565 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.LinuxParametersProperty"
7566 },
7567 "field": {
7568 "field": "example"
7569 }
7570 },
7571 "didCompile": true,
7572 "fqnsReferenced": [
7573 "@aws-cdk/aws-ecs.CfnTaskDefinition.LinuxParametersProperty"
7574 ],
7575 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst linuxParametersProperty: ecs.CfnTaskDefinition.LinuxParametersProperty = {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7576 "syntaxKindCounter": {
7577 "8": 4,
7578 "10": 8,
7579 "75": 20,
7580 "91": 1,
7581 "153": 2,
7582 "169": 1,
7583 "192": 6,
7584 "193": 4,
7585 "225": 1,
7586 "242": 1,
7587 "243": 1,
7588 "254": 1,
7589 "255": 1,
7590 "256": 1,
7591 "281": 15,
7592 "290": 1
7593 },
7594 "fqnsFingerprint": "af190decd2476b996887e47ed6581f6bcfdbecdc436e9207a8321e91e5965e5d"
7595 },
7596 "04b6d69ddae9d4ff0982cc3cb91b437aa6bb96ad231beddc18055725c984dd02": {
7597 "translations": {
7598 "python": {
7599 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nlog_configuration_property = ecs.CfnTaskDefinition.LogConfigurationProperty(\n log_driver=\"logDriver\",\n\n # the properties below are optional\n options={\n \"options_key\": \"options\"\n },\n secret_options=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )]\n)",
7600 "version": "2"
7601 },
7602 "csharp": {
7603 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLogConfigurationProperty logConfigurationProperty = new LogConfigurationProperty {\n LogDriver = \"logDriver\",\n\n // the properties below are optional\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n SecretOptions = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } }\n};",
7604 "version": "1"
7605 },
7606 "java": {
7607 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLogConfigurationProperty logConfigurationProperty = LogConfigurationProperty.builder()\n .logDriver(\"logDriver\")\n\n // the properties below are optional\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .secretOptions(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .build();",
7608 "version": "1"
7609 },
7610 "go": {
7611 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nlogConfigurationProperty := &logConfigurationProperty{\n\tlogDriver: jsii.String(\"logDriver\"),\n\n\t// the properties below are optional\n\toptions: map[string]*string{\n\t\t\"optionsKey\": jsii.String(\"options\"),\n\t},\n\tsecretOptions: []interface{}{\n\t\t&secretProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t},\n\t},\n}",
7612 "version": "1"
7613 },
7614 "$": {
7615 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst logConfigurationProperty: ecs.CfnTaskDefinition.LogConfigurationProperty = {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n};",
7616 "version": "0"
7617 }
7618 },
7619 "location": {
7620 "api": {
7621 "api": "type",
7622 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.LogConfigurationProperty"
7623 },
7624 "field": {
7625 "field": "example"
7626 }
7627 },
7628 "didCompile": true,
7629 "fqnsReferenced": [
7630 "@aws-cdk/aws-ecs.CfnTaskDefinition.LogConfigurationProperty"
7631 ],
7632 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst logConfigurationProperty: ecs.CfnTaskDefinition.LogConfigurationProperty = {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7633 "syntaxKindCounter": {
7634 "10": 5,
7635 "75": 11,
7636 "153": 2,
7637 "169": 1,
7638 "192": 1,
7639 "193": 3,
7640 "225": 1,
7641 "242": 1,
7642 "243": 1,
7643 "254": 1,
7644 "255": 1,
7645 "256": 1,
7646 "281": 6,
7647 "290": 1
7648 },
7649 "fqnsFingerprint": "52d5b64d954c8215e0ed242717775b1478c0293d6b0e1615a539120cb8021194"
7650 },
7651 "4b386c950f9a57f54efc1235c9ef502dc4948da009fa1913e7e13e273fbd5dad": {
7652 "translations": {
7653 "python": {
7654 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nmount_point_property = ecs.CfnTaskDefinition.MountPointProperty(\n container_path=\"containerPath\",\n read_only=False,\n source_volume=\"sourceVolume\"\n)",
7655 "version": "2"
7656 },
7657 "csharp": {
7658 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nMountPointProperty mountPointProperty = new MountPointProperty {\n ContainerPath = \"containerPath\",\n ReadOnly = false,\n SourceVolume = \"sourceVolume\"\n};",
7659 "version": "1"
7660 },
7661 "java": {
7662 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nMountPointProperty mountPointProperty = MountPointProperty.builder()\n .containerPath(\"containerPath\")\n .readOnly(false)\n .sourceVolume(\"sourceVolume\")\n .build();",
7663 "version": "1"
7664 },
7665 "go": {
7666 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nmountPointProperty := &mountPointProperty{\n\tcontainerPath: jsii.String(\"containerPath\"),\n\treadOnly: jsii.Boolean(false),\n\tsourceVolume: jsii.String(\"sourceVolume\"),\n}",
7667 "version": "1"
7668 },
7669 "$": {
7670 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst mountPointProperty: ecs.CfnTaskDefinition.MountPointProperty = {\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n};",
7671 "version": "0"
7672 }
7673 },
7674 "location": {
7675 "api": {
7676 "api": "type",
7677 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.MountPointProperty"
7678 },
7679 "field": {
7680 "field": "example"
7681 }
7682 },
7683 "didCompile": true,
7684 "fqnsReferenced": [
7685 "@aws-cdk/aws-ecs.CfnTaskDefinition.MountPointProperty"
7686 ],
7687 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst mountPointProperty: ecs.CfnTaskDefinition.MountPointProperty = {\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7688 "syntaxKindCounter": {
7689 "10": 3,
7690 "75": 8,
7691 "91": 1,
7692 "153": 2,
7693 "169": 1,
7694 "193": 1,
7695 "225": 1,
7696 "242": 1,
7697 "243": 1,
7698 "254": 1,
7699 "255": 1,
7700 "256": 1,
7701 "281": 3,
7702 "290": 1
7703 },
7704 "fqnsFingerprint": "35735f8c562d8fa70de3d263a48490ce10dcb5051f38d8aee97d3070e251e14c"
7705 },
7706 "d7c952d5ec99c8029fb9dc9c98c4a0f81b9ac441afd922988f1bdd4d65a30fa5": {
7707 "translations": {
7708 "python": {
7709 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nport_mapping_property = ecs.CfnTaskDefinition.PortMappingProperty(\n container_port=123,\n host_port=123,\n protocol=\"protocol\"\n)",
7710 "version": "2"
7711 },
7712 "csharp": {
7713 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nPortMappingProperty portMappingProperty = new PortMappingProperty {\n ContainerPort = 123,\n HostPort = 123,\n Protocol = \"protocol\"\n};",
7714 "version": "1"
7715 },
7716 "java": {
7717 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nPortMappingProperty portMappingProperty = PortMappingProperty.builder()\n .containerPort(123)\n .hostPort(123)\n .protocol(\"protocol\")\n .build();",
7718 "version": "1"
7719 },
7720 "go": {
7721 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nportMappingProperty := &portMappingProperty{\n\tcontainerPort: jsii.Number(123),\n\thostPort: jsii.Number(123),\n\tprotocol: jsii.String(\"protocol\"),\n}",
7722 "version": "1"
7723 },
7724 "$": {
7725 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst portMappingProperty: ecs.CfnTaskDefinition.PortMappingProperty = {\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n};",
7726 "version": "0"
7727 }
7728 },
7729 "location": {
7730 "api": {
7731 "api": "type",
7732 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.PortMappingProperty"
7733 },
7734 "field": {
7735 "field": "example"
7736 }
7737 },
7738 "didCompile": true,
7739 "fqnsReferenced": [
7740 "@aws-cdk/aws-ecs.CfnTaskDefinition.PortMappingProperty"
7741 ],
7742 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst portMappingProperty: ecs.CfnTaskDefinition.PortMappingProperty = {\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7743 "syntaxKindCounter": {
7744 "8": 2,
7745 "10": 2,
7746 "75": 8,
7747 "153": 2,
7748 "169": 1,
7749 "193": 1,
7750 "225": 1,
7751 "242": 1,
7752 "243": 1,
7753 "254": 1,
7754 "255": 1,
7755 "256": 1,
7756 "281": 3,
7757 "290": 1
7758 },
7759 "fqnsFingerprint": "7571c1605ae78240b241849ac6d06d513f04de1204c20b29bcc1ae2697f8f6f8"
7760 },
7761 "e0e3eead94db27d370dab70bcbb1079555ed3e88a1873aa4e2a1b6dbdf1b561d": {
7762 "translations": {
7763 "python": {
7764 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nproxy_configuration_property = ecs.CfnTaskDefinition.ProxyConfigurationProperty(\n container_name=\"containerName\",\n\n # the properties below are optional\n proxy_configuration_properties=[ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n )],\n type=\"type\"\n)",
7765 "version": "2"
7766 },
7767 "csharp": {
7768 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nProxyConfigurationProperty proxyConfigurationProperty = new ProxyConfigurationProperty {\n ContainerName = \"containerName\",\n\n // the properties below are optional\n ProxyConfigurationProperties = new [] { new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n Type = \"type\"\n};",
7769 "version": "1"
7770 },
7771 "java": {
7772 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nProxyConfigurationProperty proxyConfigurationProperty = ProxyConfigurationProperty.builder()\n .containerName(\"containerName\")\n\n // the properties below are optional\n .proxyConfigurationProperties(List.of(KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .type(\"type\")\n .build();",
7773 "version": "1"
7774 },
7775 "go": {
7776 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nproxyConfigurationProperty := &proxyConfigurationProperty{\n\tcontainerName: jsii.String(\"containerName\"),\n\n\t// the properties below are optional\n\tproxyConfigurationProperties: []interface{}{\n\t\t&keyValuePairProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\ttype: jsii.String(\"type\"),\n}",
7777 "version": "1"
7778 },
7779 "$": {
7780 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst proxyConfigurationProperty: ecs.CfnTaskDefinition.ProxyConfigurationProperty = {\n containerName: 'containerName',\n\n // the properties below are optional\n proxyConfigurationProperties: [{\n name: 'name',\n value: 'value',\n }],\n type: 'type',\n};",
7781 "version": "0"
7782 }
7783 },
7784 "location": {
7785 "api": {
7786 "api": "type",
7787 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ProxyConfigurationProperty"
7788 },
7789 "field": {
7790 "field": "example"
7791 }
7792 },
7793 "didCompile": true,
7794 "fqnsReferenced": [
7795 "@aws-cdk/aws-ecs.CfnTaskDefinition.ProxyConfigurationProperty"
7796 ],
7797 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst proxyConfigurationProperty: ecs.CfnTaskDefinition.ProxyConfigurationProperty = {\n containerName: 'containerName',\n\n // the properties below are optional\n proxyConfigurationProperties: [{\n name: 'name',\n value: 'value',\n }],\n type: 'type',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7798 "syntaxKindCounter": {
7799 "10": 5,
7800 "75": 10,
7801 "153": 2,
7802 "169": 1,
7803 "192": 1,
7804 "193": 2,
7805 "225": 1,
7806 "242": 1,
7807 "243": 1,
7808 "254": 1,
7809 "255": 1,
7810 "256": 1,
7811 "281": 5,
7812 "290": 1
7813 },
7814 "fqnsFingerprint": "4c69665368f9a0d5fb7b041159394c10a96fc5d1dfb473e17ee3cadf2b1f170d"
7815 },
7816 "67f2284abb8a338a4fdbac6000206eb06f7dfe473180913130864a0810234c84": {
7817 "translations": {
7818 "python": {
7819 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nrepository_credentials_property = ecs.CfnTaskDefinition.RepositoryCredentialsProperty(\n credentials_parameter=\"credentialsParameter\"\n)",
7820 "version": "2"
7821 },
7822 "csharp": {
7823 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nRepositoryCredentialsProperty repositoryCredentialsProperty = new RepositoryCredentialsProperty {\n CredentialsParameter = \"credentialsParameter\"\n};",
7824 "version": "1"
7825 },
7826 "java": {
7827 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nRepositoryCredentialsProperty repositoryCredentialsProperty = RepositoryCredentialsProperty.builder()\n .credentialsParameter(\"credentialsParameter\")\n .build();",
7828 "version": "1"
7829 },
7830 "go": {
7831 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nrepositoryCredentialsProperty := &repositoryCredentialsProperty{\n\tcredentialsParameter: jsii.String(\"credentialsParameter\"),\n}",
7832 "version": "1"
7833 },
7834 "$": {
7835 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst repositoryCredentialsProperty: ecs.CfnTaskDefinition.RepositoryCredentialsProperty = {\n credentialsParameter: 'credentialsParameter',\n};",
7836 "version": "0"
7837 }
7838 },
7839 "location": {
7840 "api": {
7841 "api": "type",
7842 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.RepositoryCredentialsProperty"
7843 },
7844 "field": {
7845 "field": "example"
7846 }
7847 },
7848 "didCompile": true,
7849 "fqnsReferenced": [
7850 "@aws-cdk/aws-ecs.CfnTaskDefinition.RepositoryCredentialsProperty"
7851 ],
7852 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst repositoryCredentialsProperty: ecs.CfnTaskDefinition.RepositoryCredentialsProperty = {\n credentialsParameter: 'credentialsParameter',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7853 "syntaxKindCounter": {
7854 "10": 2,
7855 "75": 6,
7856 "153": 2,
7857 "169": 1,
7858 "193": 1,
7859 "225": 1,
7860 "242": 1,
7861 "243": 1,
7862 "254": 1,
7863 "255": 1,
7864 "256": 1,
7865 "281": 1,
7866 "290": 1
7867 },
7868 "fqnsFingerprint": "9c2b2a7ebe7a850c6ce9448186ebee7ec0cf45e77368f2f7963677fe7bf1e022"
7869 },
7870 "bb1a18567342a8799737ec1ccd5ecbca84f01ab579a88f2141d4128a8675a3b5": {
7871 "translations": {
7872 "python": {
7873 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nresource_requirement_property = ecs.CfnTaskDefinition.ResourceRequirementProperty(\n type=\"type\",\n value=\"value\"\n)",
7874 "version": "2"
7875 },
7876 "csharp": {
7877 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nResourceRequirementProperty resourceRequirementProperty = new ResourceRequirementProperty {\n Type = \"type\",\n Value = \"value\"\n};",
7878 "version": "1"
7879 },
7880 "java": {
7881 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nResourceRequirementProperty resourceRequirementProperty = ResourceRequirementProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build();",
7882 "version": "1"
7883 },
7884 "go": {
7885 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nresourceRequirementProperty := &resourceRequirementProperty{\n\ttype: jsii.String(\"type\"),\n\tvalue: jsii.String(\"value\"),\n}",
7886 "version": "1"
7887 },
7888 "$": {
7889 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst resourceRequirementProperty: ecs.CfnTaskDefinition.ResourceRequirementProperty = {\n type: 'type',\n value: 'value',\n};",
7890 "version": "0"
7891 }
7892 },
7893 "location": {
7894 "api": {
7895 "api": "type",
7896 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ResourceRequirementProperty"
7897 },
7898 "field": {
7899 "field": "example"
7900 }
7901 },
7902 "didCompile": true,
7903 "fqnsReferenced": [
7904 "@aws-cdk/aws-ecs.CfnTaskDefinition.ResourceRequirementProperty"
7905 ],
7906 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst resourceRequirementProperty: ecs.CfnTaskDefinition.ResourceRequirementProperty = {\n type: 'type',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7907 "syntaxKindCounter": {
7908 "10": 3,
7909 "75": 7,
7910 "153": 2,
7911 "169": 1,
7912 "193": 1,
7913 "225": 1,
7914 "242": 1,
7915 "243": 1,
7916 "254": 1,
7917 "255": 1,
7918 "256": 1,
7919 "281": 2,
7920 "290": 1
7921 },
7922 "fqnsFingerprint": "4787176dd7b1d5dde7717fdc566b2e92e6cf6f4d71720ce53eaca013d9d06e6c"
7923 },
7924 "d8f39c11e23c55baf531bd8702bd7d92fe18ca402df58ee3fdfb3d78170f877f": {
7925 "translations": {
7926 "python": {
7927 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nruntime_platform_property = ecs.CfnTaskDefinition.RuntimePlatformProperty(\n cpu_architecture=\"cpuArchitecture\",\n operating_system_family=\"operatingSystemFamily\"\n)",
7928 "version": "2"
7929 },
7930 "csharp": {
7931 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nRuntimePlatformProperty runtimePlatformProperty = new RuntimePlatformProperty {\n CpuArchitecture = \"cpuArchitecture\",\n OperatingSystemFamily = \"operatingSystemFamily\"\n};",
7932 "version": "1"
7933 },
7934 "java": {
7935 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nRuntimePlatformProperty runtimePlatformProperty = RuntimePlatformProperty.builder()\n .cpuArchitecture(\"cpuArchitecture\")\n .operatingSystemFamily(\"operatingSystemFamily\")\n .build();",
7936 "version": "1"
7937 },
7938 "go": {
7939 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nruntimePlatformProperty := &runtimePlatformProperty{\n\tcpuArchitecture: jsii.String(\"cpuArchitecture\"),\n\toperatingSystemFamily: jsii.String(\"operatingSystemFamily\"),\n}",
7940 "version": "1"
7941 },
7942 "$": {
7943 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst runtimePlatformProperty: ecs.CfnTaskDefinition.RuntimePlatformProperty = {\n cpuArchitecture: 'cpuArchitecture',\n operatingSystemFamily: 'operatingSystemFamily',\n};",
7944 "version": "0"
7945 }
7946 },
7947 "location": {
7948 "api": {
7949 "api": "type",
7950 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.RuntimePlatformProperty"
7951 },
7952 "field": {
7953 "field": "example"
7954 }
7955 },
7956 "didCompile": true,
7957 "fqnsReferenced": [
7958 "@aws-cdk/aws-ecs.CfnTaskDefinition.RuntimePlatformProperty"
7959 ],
7960 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst runtimePlatformProperty: ecs.CfnTaskDefinition.RuntimePlatformProperty = {\n cpuArchitecture: 'cpuArchitecture',\n operatingSystemFamily: 'operatingSystemFamily',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7961 "syntaxKindCounter": {
7962 "10": 3,
7963 "75": 7,
7964 "153": 2,
7965 "169": 1,
7966 "193": 1,
7967 "225": 1,
7968 "242": 1,
7969 "243": 1,
7970 "254": 1,
7971 "255": 1,
7972 "256": 1,
7973 "281": 2,
7974 "290": 1
7975 },
7976 "fqnsFingerprint": "0dd4a08937d9a317b57af7ac464641276e64838bf6b5ae28a7aecef946bb56f3"
7977 },
7978 "ba075ff0cc80ef372a4ce35feab33af0a53ef29dd7c3d69f8ea0c4bbfc19ae20": {
7979 "translations": {
7980 "python": {
7981 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nsecret_property = ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n)",
7982 "version": "2"
7983 },
7984 "csharp": {
7985 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nSecretProperty secretProperty = new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n};",
7986 "version": "1"
7987 },
7988 "java": {
7989 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nSecretProperty secretProperty = SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build();",
7990 "version": "1"
7991 },
7992 "go": {
7993 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nsecretProperty := &secretProperty{\n\tname: jsii.String(\"name\"),\n\tvalueFrom: jsii.String(\"valueFrom\"),\n}",
7994 "version": "1"
7995 },
7996 "$": {
7997 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst secretProperty: ecs.CfnTaskDefinition.SecretProperty = {\n name: 'name',\n valueFrom: 'valueFrom',\n};",
7998 "version": "0"
7999 }
8000 },
8001 "location": {
8002 "api": {
8003 "api": "type",
8004 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.SecretProperty"
8005 },
8006 "field": {
8007 "field": "example"
8008 }
8009 },
8010 "didCompile": true,
8011 "fqnsReferenced": [
8012 "@aws-cdk/aws-ecs.CfnTaskDefinition.SecretProperty"
8013 ],
8014 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst secretProperty: ecs.CfnTaskDefinition.SecretProperty = {\n name: 'name',\n valueFrom: 'valueFrom',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8015 "syntaxKindCounter": {
8016 "10": 3,
8017 "75": 7,
8018 "153": 2,
8019 "169": 1,
8020 "193": 1,
8021 "225": 1,
8022 "242": 1,
8023 "243": 1,
8024 "254": 1,
8025 "255": 1,
8026 "256": 1,
8027 "281": 2,
8028 "290": 1
8029 },
8030 "fqnsFingerprint": "48d72cd242c9f8a6a9349195145b25eb6942b6a274c922127225001a39ce0699"
8031 },
8032 "cd7ef25664a9808ba4d4eb3ce30456a5d5b631158c686910d48cfc051ca6bf7e": {
8033 "translations": {
8034 "python": {
8035 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nsystem_control_property = ecs.CfnTaskDefinition.SystemControlProperty(\n namespace=\"namespace\",\n value=\"value\"\n)",
8036 "version": "2"
8037 },
8038 "csharp": {
8039 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nSystemControlProperty systemControlProperty = new SystemControlProperty {\n Namespace = \"namespace\",\n Value = \"value\"\n};",
8040 "version": "1"
8041 },
8042 "java": {
8043 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nSystemControlProperty systemControlProperty = SystemControlProperty.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build();",
8044 "version": "1"
8045 },
8046 "go": {
8047 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nsystemControlProperty := &systemControlProperty{\n\tnamespace: jsii.String(\"namespace\"),\n\tvalue: jsii.String(\"value\"),\n}",
8048 "version": "1"
8049 },
8050 "$": {
8051 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst systemControlProperty: ecs.CfnTaskDefinition.SystemControlProperty = {\n namespace: 'namespace',\n value: 'value',\n};",
8052 "version": "0"
8053 }
8054 },
8055 "location": {
8056 "api": {
8057 "api": "type",
8058 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.SystemControlProperty"
8059 },
8060 "field": {
8061 "field": "example"
8062 }
8063 },
8064 "didCompile": true,
8065 "fqnsReferenced": [
8066 "@aws-cdk/aws-ecs.CfnTaskDefinition.SystemControlProperty"
8067 ],
8068 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst systemControlProperty: ecs.CfnTaskDefinition.SystemControlProperty = {\n namespace: 'namespace',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8069 "syntaxKindCounter": {
8070 "10": 3,
8071 "75": 7,
8072 "153": 2,
8073 "169": 1,
8074 "193": 1,
8075 "225": 1,
8076 "242": 1,
8077 "243": 1,
8078 "254": 1,
8079 "255": 1,
8080 "256": 1,
8081 "281": 2,
8082 "290": 1
8083 },
8084 "fqnsFingerprint": "e03d66feffeb8f71a47604484673eb4261b431e3c251804cdba77884725c6ece"
8085 },
8086 "d2c7e69d27a8ef8a55b6c9c87641c02b4e4cf8101f74618f64a6d747443f3e61": {
8087 "translations": {
8088 "python": {
8089 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ntask_definition_placement_constraint_property = ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty(\n type=\"type\",\n\n # the properties below are optional\n expression=\"expression\"\n)",
8090 "version": "2"
8091 },
8092 "csharp": {
8093 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nTaskDefinitionPlacementConstraintProperty taskDefinitionPlacementConstraintProperty = new TaskDefinitionPlacementConstraintProperty {\n Type = \"type\",\n\n // the properties below are optional\n Expression = \"expression\"\n};",
8094 "version": "1"
8095 },
8096 "java": {
8097 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nTaskDefinitionPlacementConstraintProperty taskDefinitionPlacementConstraintProperty = TaskDefinitionPlacementConstraintProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .expression(\"expression\")\n .build();",
8098 "version": "1"
8099 },
8100 "go": {
8101 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ntaskDefinitionPlacementConstraintProperty := &taskDefinitionPlacementConstraintProperty{\n\ttype: jsii.String(\"type\"),\n\n\t// the properties below are optional\n\texpression: jsii.String(\"expression\"),\n}",
8102 "version": "1"
8103 },
8104 "$": {
8105 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst taskDefinitionPlacementConstraintProperty: ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty = {\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n};",
8106 "version": "0"
8107 }
8108 },
8109 "location": {
8110 "api": {
8111 "api": "type",
8112 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty"
8113 },
8114 "field": {
8115 "field": "example"
8116 }
8117 },
8118 "didCompile": true,
8119 "fqnsReferenced": [
8120 "@aws-cdk/aws-ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty"
8121 ],
8122 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst taskDefinitionPlacementConstraintProperty: ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty = {\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8123 "syntaxKindCounter": {
8124 "10": 3,
8125 "75": 7,
8126 "153": 2,
8127 "169": 1,
8128 "193": 1,
8129 "225": 1,
8130 "242": 1,
8131 "243": 1,
8132 "254": 1,
8133 "255": 1,
8134 "256": 1,
8135 "281": 2,
8136 "290": 1
8137 },
8138 "fqnsFingerprint": "78cf813a80a24a4217dce1090424ad2e803d49f4fa4813c268987af27e3f7111"
8139 },
8140 "a3e21f483cda3f344c8de9e56ec90aded849cbe39ac3588d0b86a431411756e0": {
8141 "translations": {
8142 "python": {
8143 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ntmpfs_property = ecs.CfnTaskDefinition.TmpfsProperty(\n size=123,\n\n # the properties below are optional\n container_path=\"containerPath\",\n mount_options=[\"mountOptions\"]\n)",
8144 "version": "2"
8145 },
8146 "csharp": {
8147 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nTmpfsProperty tmpfsProperty = new TmpfsProperty {\n Size = 123,\n\n // the properties below are optional\n ContainerPath = \"containerPath\",\n MountOptions = new [] { \"mountOptions\" }\n};",
8148 "version": "1"
8149 },
8150 "java": {
8151 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nTmpfsProperty tmpfsProperty = TmpfsProperty.builder()\n .size(123)\n\n // the properties below are optional\n .containerPath(\"containerPath\")\n .mountOptions(List.of(\"mountOptions\"))\n .build();",
8152 "version": "1"
8153 },
8154 "go": {
8155 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ntmpfsProperty := &tmpfsProperty{\n\tsize: jsii.Number(123),\n\n\t// the properties below are optional\n\tcontainerPath: jsii.String(\"containerPath\"),\n\tmountOptions: []*string{\n\t\tjsii.String(\"mountOptions\"),\n\t},\n}",
8156 "version": "1"
8157 },
8158 "$": {
8159 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst tmpfsProperty: ecs.CfnTaskDefinition.TmpfsProperty = {\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n};",
8160 "version": "0"
8161 }
8162 },
8163 "location": {
8164 "api": {
8165 "api": "type",
8166 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.TmpfsProperty"
8167 },
8168 "field": {
8169 "field": "example"
8170 }
8171 },
8172 "didCompile": true,
8173 "fqnsReferenced": [
8174 "@aws-cdk/aws-ecs.CfnTaskDefinition.TmpfsProperty"
8175 ],
8176 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst tmpfsProperty: ecs.CfnTaskDefinition.TmpfsProperty = {\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8177 "syntaxKindCounter": {
8178 "8": 1,
8179 "10": 3,
8180 "75": 8,
8181 "153": 2,
8182 "169": 1,
8183 "192": 1,
8184 "193": 1,
8185 "225": 1,
8186 "242": 1,
8187 "243": 1,
8188 "254": 1,
8189 "255": 1,
8190 "256": 1,
8191 "281": 3,
8192 "290": 1
8193 },
8194 "fqnsFingerprint": "bf95e62f475db79819134eaa1caa98e2b396427c2c689b4fbbb2214f9c99c050"
8195 },
8196 "4ed8d26d8b4460de7162473ea7220b97c6eb319777d84e95cdd5ca2c4eafaf8c": {
8197 "translations": {
8198 "python": {
8199 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nulimit_property = ecs.CfnTaskDefinition.UlimitProperty(\n hard_limit=123,\n name=\"name\",\n soft_limit=123\n)",
8200 "version": "2"
8201 },
8202 "csharp": {
8203 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nUlimitProperty ulimitProperty = new UlimitProperty {\n HardLimit = 123,\n Name = \"name\",\n SoftLimit = 123\n};",
8204 "version": "1"
8205 },
8206 "java": {
8207 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nUlimitProperty ulimitProperty = UlimitProperty.builder()\n .hardLimit(123)\n .name(\"name\")\n .softLimit(123)\n .build();",
8208 "version": "1"
8209 },
8210 "go": {
8211 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nulimitProperty := &ulimitProperty{\n\thardLimit: jsii.Number(123),\n\tname: jsii.String(\"name\"),\n\tsoftLimit: jsii.Number(123),\n}",
8212 "version": "1"
8213 },
8214 "$": {
8215 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst ulimitProperty: ecs.CfnTaskDefinition.UlimitProperty = {\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n};",
8216 "version": "0"
8217 }
8218 },
8219 "location": {
8220 "api": {
8221 "api": "type",
8222 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.UlimitProperty"
8223 },
8224 "field": {
8225 "field": "example"
8226 }
8227 },
8228 "didCompile": true,
8229 "fqnsReferenced": [
8230 "@aws-cdk/aws-ecs.CfnTaskDefinition.UlimitProperty"
8231 ],
8232 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ulimitProperty: ecs.CfnTaskDefinition.UlimitProperty = {\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8233 "syntaxKindCounter": {
8234 "8": 2,
8235 "10": 2,
8236 "75": 8,
8237 "153": 2,
8238 "169": 1,
8239 "193": 1,
8240 "225": 1,
8241 "242": 1,
8242 "243": 1,
8243 "254": 1,
8244 "255": 1,
8245 "256": 1,
8246 "281": 3,
8247 "290": 1
8248 },
8249 "fqnsFingerprint": "661c68c4f0dff9c7d00fafe4f7719995a9dcff6ed90c3d4f19f3bb8abe891b2f"
8250 },
8251 "c03483ec790431f734b19765118f3f9e43c3f095b190f1dd6ee1bb2a2d9ce5a0": {
8252 "translations": {
8253 "python": {
8254 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nvolume_from_property = ecs.CfnTaskDefinition.VolumeFromProperty(\n read_only=False,\n source_container=\"sourceContainer\"\n)",
8255 "version": "2"
8256 },
8257 "csharp": {
8258 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nVolumeFromProperty volumeFromProperty = new VolumeFromProperty {\n ReadOnly = false,\n SourceContainer = \"sourceContainer\"\n};",
8259 "version": "1"
8260 },
8261 "java": {
8262 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nVolumeFromProperty volumeFromProperty = VolumeFromProperty.builder()\n .readOnly(false)\n .sourceContainer(\"sourceContainer\")\n .build();",
8263 "version": "1"
8264 },
8265 "go": {
8266 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvolumeFromProperty := &volumeFromProperty{\n\treadOnly: jsii.Boolean(false),\n\tsourceContainer: jsii.String(\"sourceContainer\"),\n}",
8267 "version": "1"
8268 },
8269 "$": {
8270 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst volumeFromProperty: ecs.CfnTaskDefinition.VolumeFromProperty = {\n readOnly: false,\n sourceContainer: 'sourceContainer',\n};",
8271 "version": "0"
8272 }
8273 },
8274 "location": {
8275 "api": {
8276 "api": "type",
8277 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeFromProperty"
8278 },
8279 "field": {
8280 "field": "example"
8281 }
8282 },
8283 "didCompile": true,
8284 "fqnsReferenced": [
8285 "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeFromProperty"
8286 ],
8287 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst volumeFromProperty: ecs.CfnTaskDefinition.VolumeFromProperty = {\n readOnly: false,\n sourceContainer: 'sourceContainer',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8288 "syntaxKindCounter": {
8289 "10": 2,
8290 "75": 7,
8291 "91": 1,
8292 "153": 2,
8293 "169": 1,
8294 "193": 1,
8295 "225": 1,
8296 "242": 1,
8297 "243": 1,
8298 "254": 1,
8299 "255": 1,
8300 "256": 1,
8301 "281": 2,
8302 "290": 1
8303 },
8304 "fqnsFingerprint": "19508737b9b4b7588b6cbba05c692db152fe758be1109a4a732664d0bb3e993b"
8305 },
8306 "708762178ef20a55338c2bc648049fcde7491b3dfd1f69ff2808a9a0213b2656": {
8307 "translations": {
8308 "python": {
8309 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nvolume_property = ecs.CfnTaskDefinition.VolumeProperty(\n docker_volume_configuration=ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty(\n autoprovision=False,\n driver=\"driver\",\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n },\n scope=\"scope\"\n ),\n efs_volume_configuration=ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty(\n filesystem_id=\"filesystemId\",\n\n # the properties below are optional\n authorization_config=ecs.CfnTaskDefinition.AuthorizationConfigProperty(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n ),\n host=ecs.CfnTaskDefinition.HostVolumePropertiesProperty(\n source_path=\"sourcePath\"\n ),\n name=\"name\"\n)",
8310 "version": "2"
8311 },
8312 "csharp": {
8313 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nVolumeProperty volumeProperty = new VolumeProperty {\n DockerVolumeConfiguration = new DockerVolumeConfigurationProperty {\n Autoprovision = false,\n Driver = \"driver\",\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n },\n Scope = \"scope\"\n },\n EfsVolumeConfiguration = new EFSVolumeConfigurationProperty {\n FilesystemId = \"filesystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfigProperty {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n },\n Host = new HostVolumePropertiesProperty {\n SourcePath = \"sourcePath\"\n },\n Name = \"name\"\n};",
8314 "version": "1"
8315 },
8316 "java": {
8317 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nVolumeProperty volumeProperty = VolumeProperty.builder()\n .dockerVolumeConfiguration(DockerVolumeConfigurationProperty.builder()\n .autoprovision(false)\n .driver(\"driver\")\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .scope(\"scope\")\n .build())\n .efsVolumeConfiguration(EFSVolumeConfigurationProperty.builder()\n .filesystemId(\"filesystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfigProperty.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build())\n .host(HostVolumePropertiesProperty.builder()\n .sourcePath(\"sourcePath\")\n .build())\n .name(\"name\")\n .build();",
8318 "version": "1"
8319 },
8320 "go": {
8321 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvolumeProperty := &volumeProperty{\n\tdockerVolumeConfiguration: &dockerVolumeConfigurationProperty{\n\t\tautoprovision: jsii.Boolean(false),\n\t\tdriver: jsii.String(\"driver\"),\n\t\tdriverOpts: map[string]*string{\n\t\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t\t},\n\t\tlabels: map[string]*string{\n\t\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t\t},\n\t\tscope: jsii.String(\"scope\"),\n\t},\n\tefsVolumeConfiguration: &eFSVolumeConfigurationProperty{\n\t\tfilesystemId: jsii.String(\"filesystemId\"),\n\n\t\t// the properties below are optional\n\t\tauthorizationConfig: &authorizationConfigProperty{\n\t\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\t\tiam: jsii.String(\"iam\"),\n\t\t},\n\t\trootDirectory: jsii.String(\"rootDirectory\"),\n\t\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\t\ttransitEncryptionPort: jsii.Number(123),\n\t},\n\thost: &hostVolumePropertiesProperty{\n\t\tsourcePath: jsii.String(\"sourcePath\"),\n\t},\n\tname: jsii.String(\"name\"),\n}",
8322 "version": "1"
8323 },
8324 "$": {
8325 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst volumeProperty: ecs.CfnTaskDefinition.VolumeProperty = {\n dockerVolumeConfiguration: {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n },\n efsVolumeConfiguration: {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n name: 'name',\n};",
8326 "version": "0"
8327 }
8328 },
8329 "location": {
8330 "api": {
8331 "api": "type",
8332 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeProperty"
8333 },
8334 "field": {
8335 "field": "example"
8336 }
8337 },
8338 "didCompile": true,
8339 "fqnsReferenced": [
8340 "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeProperty"
8341 ],
8342 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst volumeProperty: ecs.CfnTaskDefinition.VolumeProperty = {\n dockerVolumeConfiguration: {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n },\n efsVolumeConfiguration: {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n name: 'name',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8343 "syntaxKindCounter": {
8344 "8": 1,
8345 "10": 12,
8346 "75": 24,
8347 "91": 1,
8348 "153": 2,
8349 "169": 1,
8350 "193": 7,
8351 "225": 1,
8352 "242": 1,
8353 "243": 1,
8354 "254": 1,
8355 "255": 1,
8356 "256": 1,
8357 "281": 19,
8358 "290": 1
8359 },
8360 "fqnsFingerprint": "54a6c79893fb539a5edc3f93b164745cf64cf212b728d18748c4a3521dc6854c"
8361 },
8362 "f0026f008ed7691d6af1ff04edf0dc01e1acc51401856f2acdac3f571e85f56c": {
8363 "translations": {
8364 "python": {
8365 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_task_definition_props = ecs.CfnTaskDefinitionProps(\n container_definitions=[ecs.CfnTaskDefinition.ContainerDefinitionProperty(\n command=[\"command\"],\n cpu=123,\n depends_on=[ecs.CfnTaskDefinition.ContainerDependencyProperty(\n condition=\"condition\",\n container_name=\"containerName\"\n )],\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment=[ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n )],\n environment_files=[ecs.CfnTaskDefinition.EnvironmentFileProperty(\n type=\"type\",\n value=\"value\"\n )],\n essential=False,\n extra_hosts=[ecs.CfnTaskDefinition.HostEntryProperty(\n hostname=\"hostname\",\n ip_address=\"ipAddress\"\n )],\n firelens_configuration=ecs.CfnTaskDefinition.FirelensConfigurationProperty(\n options={\n \"options_key\": \"options\"\n },\n type=\"type\"\n ),\n health_check=ecs.CfnTaskDefinition.HealthCheckProperty(\n command=[\"command\"],\n interval=123,\n retries=123,\n start_period=123,\n timeout=123\n ),\n hostname=\"hostname\",\n image=\"image\",\n interactive=False,\n links=[\"links\"],\n linux_parameters=ecs.CfnTaskDefinition.LinuxParametersProperty(\n capabilities=ecs.CfnTaskDefinition.KernelCapabilitiesProperty(\n add=[\"add\"],\n drop=[\"drop\"]\n ),\n devices=[ecs.CfnTaskDefinition.DeviceProperty(\n container_path=\"containerPath\",\n host_path=\"hostPath\",\n permissions=[\"permissions\"]\n )],\n init_process_enabled=False,\n max_swap=123,\n shared_memory_size=123,\n swappiness=123,\n tmpfs=[ecs.CfnTaskDefinition.TmpfsProperty(\n size=123,\n\n # the properties below are optional\n container_path=\"containerPath\",\n mount_options=[\"mountOptions\"]\n )]\n ),\n log_configuration=ecs.CfnTaskDefinition.LogConfigurationProperty(\n log_driver=\"logDriver\",\n\n # the properties below are optional\n options={\n \"options_key\": \"options\"\n },\n secret_options=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )]\n ),\n memory=123,\n memory_reservation=123,\n mount_points=[ecs.CfnTaskDefinition.MountPointProperty(\n container_path=\"containerPath\",\n read_only=False,\n source_volume=\"sourceVolume\"\n )],\n name=\"name\",\n port_mappings=[ecs.CfnTaskDefinition.PortMappingProperty(\n container_port=123,\n host_port=123,\n protocol=\"protocol\"\n )],\n privileged=False,\n pseudo_terminal=False,\n readonly_root_filesystem=False,\n repository_credentials=ecs.CfnTaskDefinition.RepositoryCredentialsProperty(\n credentials_parameter=\"credentialsParameter\"\n ),\n resource_requirements=[ecs.CfnTaskDefinition.ResourceRequirementProperty(\n type=\"type\",\n value=\"value\"\n )],\n secrets=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )],\n start_timeout=123,\n stop_timeout=123,\n system_controls=[ecs.CfnTaskDefinition.SystemControlProperty(\n namespace=\"namespace\",\n value=\"value\"\n )],\n ulimits=[ecs.CfnTaskDefinition.UlimitProperty(\n hard_limit=123,\n name=\"name\",\n soft_limit=123\n )],\n user=\"user\",\n volumes_from=[ecs.CfnTaskDefinition.VolumeFromProperty(\n read_only=False,\n source_container=\"sourceContainer\"\n )],\n working_directory=\"workingDirectory\"\n )],\n cpu=\"cpu\",\n ephemeral_storage=ecs.CfnTaskDefinition.EphemeralStorageProperty(\n size_in_gi_b=123\n ),\n execution_role_arn=\"executionRoleArn\",\n family=\"family\",\n inference_accelerators=[ecs.CfnTaskDefinition.InferenceAcceleratorProperty(\n device_name=\"deviceName\",\n device_type=\"deviceType\"\n )],\n ipc_mode=\"ipcMode\",\n memory=\"memory\",\n network_mode=\"networkMode\",\n pid_mode=\"pidMode\",\n placement_constraints=[ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty(\n type=\"type\",\n\n # the properties below are optional\n expression=\"expression\"\n )],\n proxy_configuration=ecs.CfnTaskDefinition.ProxyConfigurationProperty(\n container_name=\"containerName\",\n\n # the properties below are optional\n proxy_configuration_properties=[ecs.CfnTaskDefinition.KeyValuePairProperty(\n name=\"name\",\n value=\"value\"\n )],\n type=\"type\"\n ),\n requires_compatibilities=[\"requiresCompatibilities\"],\n runtime_platform=ecs.CfnTaskDefinition.RuntimePlatformProperty(\n cpu_architecture=\"cpuArchitecture\",\n operating_system_family=\"operatingSystemFamily\"\n ),\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_role_arn=\"taskRoleArn\",\n volumes=[ecs.CfnTaskDefinition.VolumeProperty(\n docker_volume_configuration=ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty(\n autoprovision=False,\n driver=\"driver\",\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n },\n scope=\"scope\"\n ),\n efs_volume_configuration=ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty(\n filesystem_id=\"filesystemId\",\n\n # the properties below are optional\n authorization_config=ecs.CfnTaskDefinition.AuthorizationConfigProperty(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n ),\n host=ecs.CfnTaskDefinition.HostVolumePropertiesProperty(\n source_path=\"sourcePath\"\n ),\n name=\"name\"\n )]\n)",
8366 "version": "2"
8367 },
8368 "csharp": {
8369 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnTaskDefinitionProps cfnTaskDefinitionProps = new CfnTaskDefinitionProps {\n ContainerDefinitions = new [] { new ContainerDefinitionProperty {\n Command = new [] { \"command\" },\n Cpu = 123,\n DependsOn = new [] { new ContainerDependencyProperty {\n Condition = \"condition\",\n ContainerName = \"containerName\"\n } },\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new [] { new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n EnvironmentFiles = new [] { new EnvironmentFileProperty {\n Type = \"type\",\n Value = \"value\"\n } },\n Essential = false,\n ExtraHosts = new [] { new HostEntryProperty {\n Hostname = \"hostname\",\n IpAddress = \"ipAddress\"\n } },\n FirelensConfiguration = new FirelensConfigurationProperty {\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n Type = \"type\"\n },\n HealthCheck = new HealthCheckProperty {\n Command = new [] { \"command\" },\n Interval = 123,\n Retries = 123,\n StartPeriod = 123,\n Timeout = 123\n },\n Hostname = \"hostname\",\n Image = \"image\",\n Interactive = false,\n Links = new [] { \"links\" },\n LinuxParameters = new LinuxParametersProperty {\n Capabilities = new KernelCapabilitiesProperty {\n Add = new [] { \"add\" },\n Drop = new [] { \"drop\" }\n },\n Devices = new [] { new DeviceProperty {\n ContainerPath = \"containerPath\",\n HostPath = \"hostPath\",\n Permissions = new [] { \"permissions\" }\n } },\n InitProcessEnabled = false,\n MaxSwap = 123,\n SharedMemorySize = 123,\n Swappiness = 123,\n Tmpfs = new [] { new TmpfsProperty {\n Size = 123,\n\n // the properties below are optional\n ContainerPath = \"containerPath\",\n MountOptions = new [] { \"mountOptions\" }\n } }\n },\n LogConfiguration = new LogConfigurationProperty {\n LogDriver = \"logDriver\",\n\n // the properties below are optional\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n SecretOptions = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } }\n },\n Memory = 123,\n MemoryReservation = 123,\n MountPoints = new [] { new MountPointProperty {\n ContainerPath = \"containerPath\",\n ReadOnly = false,\n SourceVolume = \"sourceVolume\"\n } },\n Name = \"name\",\n PortMappings = new [] { new PortMappingProperty {\n ContainerPort = 123,\n HostPort = 123,\n Protocol = \"protocol\"\n } },\n Privileged = false,\n PseudoTerminal = false,\n ReadonlyRootFilesystem = false,\n RepositoryCredentials = new RepositoryCredentialsProperty {\n CredentialsParameter = \"credentialsParameter\"\n },\n ResourceRequirements = new [] { new ResourceRequirementProperty {\n Type = \"type\",\n Value = \"value\"\n } },\n Secrets = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } },\n StartTimeout = 123,\n StopTimeout = 123,\n SystemControls = new [] { new SystemControlProperty {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n Ulimits = new [] { new UlimitProperty {\n HardLimit = 123,\n Name = \"name\",\n SoftLimit = 123\n } },\n User = \"user\",\n VolumesFrom = new [] { new VolumeFromProperty {\n ReadOnly = false,\n SourceContainer = \"sourceContainer\"\n } },\n WorkingDirectory = \"workingDirectory\"\n } },\n Cpu = \"cpu\",\n EphemeralStorage = new EphemeralStorageProperty {\n SizeInGiB = 123\n },\n ExecutionRoleArn = \"executionRoleArn\",\n Family = \"family\",\n InferenceAccelerators = new [] { new InferenceAcceleratorProperty {\n DeviceName = \"deviceName\",\n DeviceType = \"deviceType\"\n } },\n IpcMode = \"ipcMode\",\n Memory = \"memory\",\n NetworkMode = \"networkMode\",\n PidMode = \"pidMode\",\n PlacementConstraints = new [] { new TaskDefinitionPlacementConstraintProperty {\n Type = \"type\",\n\n // the properties below are optional\n Expression = \"expression\"\n } },\n ProxyConfiguration = new ProxyConfigurationProperty {\n ContainerName = \"containerName\",\n\n // the properties below are optional\n ProxyConfigurationProperties = new [] { new KeyValuePairProperty {\n Name = \"name\",\n Value = \"value\"\n } },\n Type = \"type\"\n },\n RequiresCompatibilities = new [] { \"requiresCompatibilities\" },\n RuntimePlatform = new RuntimePlatformProperty {\n CpuArchitecture = \"cpuArchitecture\",\n OperatingSystemFamily = \"operatingSystemFamily\"\n },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskRoleArn = \"taskRoleArn\",\n Volumes = new [] { new VolumeProperty {\n DockerVolumeConfiguration = new DockerVolumeConfigurationProperty {\n Autoprovision = false,\n Driver = \"driver\",\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n },\n Scope = \"scope\"\n },\n EfsVolumeConfiguration = new EFSVolumeConfigurationProperty {\n FilesystemId = \"filesystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfigProperty {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n },\n Host = new HostVolumePropertiesProperty {\n SourcePath = \"sourcePath\"\n },\n Name = \"name\"\n } }\n};",
8370 "version": "1"
8371 },
8372 "java": {
8373 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnTaskDefinitionProps cfnTaskDefinitionProps = CfnTaskDefinitionProps.builder()\n .containerDefinitions(List.of(ContainerDefinitionProperty.builder()\n .command(List.of(\"command\"))\n .cpu(123)\n .dependsOn(List.of(ContainerDependencyProperty.builder()\n .condition(\"condition\")\n .containerName(\"containerName\")\n .build()))\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(List.of(KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .environmentFiles(List.of(EnvironmentFileProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build()))\n .essential(false)\n .extraHosts(List.of(HostEntryProperty.builder()\n .hostname(\"hostname\")\n .ipAddress(\"ipAddress\")\n .build()))\n .firelensConfiguration(FirelensConfigurationProperty.builder()\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .type(\"type\")\n .build())\n .healthCheck(HealthCheckProperty.builder()\n .command(List.of(\"command\"))\n .interval(123)\n .retries(123)\n .startPeriod(123)\n .timeout(123)\n .build())\n .hostname(\"hostname\")\n .image(\"image\")\n .interactive(false)\n .links(List.of(\"links\"))\n .linuxParameters(LinuxParametersProperty.builder()\n .capabilities(KernelCapabilitiesProperty.builder()\n .add(List.of(\"add\"))\n .drop(List.of(\"drop\"))\n .build())\n .devices(List.of(DeviceProperty.builder()\n .containerPath(\"containerPath\")\n .hostPath(\"hostPath\")\n .permissions(List.of(\"permissions\"))\n .build()))\n .initProcessEnabled(false)\n .maxSwap(123)\n .sharedMemorySize(123)\n .swappiness(123)\n .tmpfs(List.of(TmpfsProperty.builder()\n .size(123)\n\n // the properties below are optional\n .containerPath(\"containerPath\")\n .mountOptions(List.of(\"mountOptions\"))\n .build()))\n .build())\n .logConfiguration(LogConfigurationProperty.builder()\n .logDriver(\"logDriver\")\n\n // the properties below are optional\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .secretOptions(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .build())\n .memory(123)\n .memoryReservation(123)\n .mountPoints(List.of(MountPointProperty.builder()\n .containerPath(\"containerPath\")\n .readOnly(false)\n .sourceVolume(\"sourceVolume\")\n .build()))\n .name(\"name\")\n .portMappings(List.of(PortMappingProperty.builder()\n .containerPort(123)\n .hostPort(123)\n .protocol(\"protocol\")\n .build()))\n .privileged(false)\n .pseudoTerminal(false)\n .readonlyRootFilesystem(false)\n .repositoryCredentials(RepositoryCredentialsProperty.builder()\n .credentialsParameter(\"credentialsParameter\")\n .build())\n .resourceRequirements(List.of(ResourceRequirementProperty.builder()\n .type(\"type\")\n .value(\"value\")\n .build()))\n .secrets(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .startTimeout(123)\n .stopTimeout(123)\n .systemControls(List.of(SystemControlProperty.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .ulimits(List.of(UlimitProperty.builder()\n .hardLimit(123)\n .name(\"name\")\n .softLimit(123)\n .build()))\n .user(\"user\")\n .volumesFrom(List.of(VolumeFromProperty.builder()\n .readOnly(false)\n .sourceContainer(\"sourceContainer\")\n .build()))\n .workingDirectory(\"workingDirectory\")\n .build()))\n .cpu(\"cpu\")\n .ephemeralStorage(EphemeralStorageProperty.builder()\n .sizeInGiB(123)\n .build())\n .executionRoleArn(\"executionRoleArn\")\n .family(\"family\")\n .inferenceAccelerators(List.of(InferenceAcceleratorProperty.builder()\n .deviceName(\"deviceName\")\n .deviceType(\"deviceType\")\n .build()))\n .ipcMode(\"ipcMode\")\n .memory(\"memory\")\n .networkMode(\"networkMode\")\n .pidMode(\"pidMode\")\n .placementConstraints(List.of(TaskDefinitionPlacementConstraintProperty.builder()\n .type(\"type\")\n\n // the properties below are optional\n .expression(\"expression\")\n .build()))\n .proxyConfiguration(ProxyConfigurationProperty.builder()\n .containerName(\"containerName\")\n\n // the properties below are optional\n .proxyConfigurationProperties(List.of(KeyValuePairProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .type(\"type\")\n .build())\n .requiresCompatibilities(List.of(\"requiresCompatibilities\"))\n .runtimePlatform(RuntimePlatformProperty.builder()\n .cpuArchitecture(\"cpuArchitecture\")\n .operatingSystemFamily(\"operatingSystemFamily\")\n .build())\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskRoleArn(\"taskRoleArn\")\n .volumes(List.of(VolumeProperty.builder()\n .dockerVolumeConfiguration(DockerVolumeConfigurationProperty.builder()\n .autoprovision(false)\n .driver(\"driver\")\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .scope(\"scope\")\n .build())\n .efsVolumeConfiguration(EFSVolumeConfigurationProperty.builder()\n .filesystemId(\"filesystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfigProperty.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build())\n .host(HostVolumePropertiesProperty.builder()\n .sourcePath(\"sourcePath\")\n .build())\n .name(\"name\")\n .build()))\n .build();",
8374 "version": "1"
8375 },
8376 "go": {
8377 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnTaskDefinitionProps := &cfnTaskDefinitionProps{\n\tcontainerDefinitions: []interface{}{\n\t\t&containerDefinitionProperty{\n\t\t\tcommand: []*string{\n\t\t\t\tjsii.String(\"command\"),\n\t\t\t},\n\t\t\tcpu: jsii.Number(123),\n\t\t\tdependsOn: []interface{}{\n\t\t\t\t&containerDependencyProperty{\n\t\t\t\t\tcondition: jsii.String(\"condition\"),\n\t\t\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tdisableNetworking: jsii.Boolean(false),\n\t\t\tdnsSearchDomains: []*string{\n\t\t\t\tjsii.String(\"dnsSearchDomains\"),\n\t\t\t},\n\t\t\tdnsServers: []*string{\n\t\t\t\tjsii.String(\"dnsServers\"),\n\t\t\t},\n\t\t\tdockerLabels: map[string]*string{\n\t\t\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t\t\t},\n\t\t\tdockerSecurityOptions: []*string{\n\t\t\t\tjsii.String(\"dockerSecurityOptions\"),\n\t\t\t},\n\t\t\tentryPoint: []*string{\n\t\t\t\tjsii.String(\"entryPoint\"),\n\t\t\t},\n\t\t\tenvironment: []interface{}{\n\t\t\t\t&keyValuePairProperty{\n\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tenvironmentFiles: []interface{}{\n\t\t\t\t&environmentFileProperty{\n\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tessential: jsii.Boolean(false),\n\t\t\textraHosts: []interface{}{\n\t\t\t\t&hostEntryProperty{\n\t\t\t\t\thostname: jsii.String(\"hostname\"),\n\t\t\t\t\tipAddress: jsii.String(\"ipAddress\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tfirelensConfiguration: &firelensConfigurationProperty{\n\t\t\t\toptions: map[string]*string{\n\t\t\t\t\t\"optionsKey\": jsii.String(\"options\"),\n\t\t\t\t},\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t\thealthCheck: &healthCheckProperty{\n\t\t\t\tcommand: []*string{\n\t\t\t\t\tjsii.String(\"command\"),\n\t\t\t\t},\n\t\t\t\tinterval: jsii.Number(123),\n\t\t\t\tretries: jsii.Number(123),\n\t\t\t\tstartPeriod: jsii.Number(123),\n\t\t\t\ttimeout: jsii.Number(123),\n\t\t\t},\n\t\t\thostname: jsii.String(\"hostname\"),\n\t\t\timage: jsii.String(\"image\"),\n\t\t\tinteractive: jsii.Boolean(false),\n\t\t\tlinks: []*string{\n\t\t\t\tjsii.String(\"links\"),\n\t\t\t},\n\t\t\tlinuxParameters: &linuxParametersProperty{\n\t\t\t\tcapabilities: &kernelCapabilitiesProperty{\n\t\t\t\t\tadd: []*string{\n\t\t\t\t\t\tjsii.String(\"add\"),\n\t\t\t\t\t},\n\t\t\t\t\tdrop: []*string{\n\t\t\t\t\t\tjsii.String(\"drop\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tdevices: []interface{}{\n\t\t\t\t\t&deviceProperty{\n\t\t\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\t\t\thostPath: jsii.String(\"hostPath\"),\n\t\t\t\t\t\tpermissions: []*string{\n\t\t\t\t\t\t\tjsii.String(\"permissions\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tinitProcessEnabled: jsii.Boolean(false),\n\t\t\t\tmaxSwap: jsii.Number(123),\n\t\t\t\tsharedMemorySize: jsii.Number(123),\n\t\t\t\tswappiness: jsii.Number(123),\n\t\t\t\ttmpfs: []interface{}{\n\t\t\t\t\t&tmpfsProperty{\n\t\t\t\t\t\tsize: jsii.Number(123),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\t\t\tmountOptions: []*string{\n\t\t\t\t\t\t\tjsii.String(\"mountOptions\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tlogConfiguration: &logConfigurationProperty{\n\t\t\t\tlogDriver: jsii.String(\"logDriver\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\toptions: map[string]*string{\n\t\t\t\t\t\"optionsKey\": jsii.String(\"options\"),\n\t\t\t\t},\n\t\t\t\tsecretOptions: []interface{}{\n\t\t\t\t\t&secretProperty{\n\t\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tmemory: jsii.Number(123),\n\t\t\tmemoryReservation: jsii.Number(123),\n\t\t\tmountPoints: []interface{}{\n\t\t\t\t&mountPointProperty{\n\t\t\t\t\tcontainerPath: jsii.String(\"containerPath\"),\n\t\t\t\t\treadOnly: jsii.Boolean(false),\n\t\t\t\t\tsourceVolume: jsii.String(\"sourceVolume\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tportMappings: []interface{}{\n\t\t\t\t&portMappingProperty{\n\t\t\t\t\tcontainerPort: jsii.Number(123),\n\t\t\t\t\thostPort: jsii.Number(123),\n\t\t\t\t\tprotocol: jsii.String(\"protocol\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tprivileged: jsii.Boolean(false),\n\t\t\tpseudoTerminal: jsii.Boolean(false),\n\t\t\treadonlyRootFilesystem: jsii.Boolean(false),\n\t\t\trepositoryCredentials: &repositoryCredentialsProperty{\n\t\t\t\tcredentialsParameter: jsii.String(\"credentialsParameter\"),\n\t\t\t},\n\t\t\tresourceRequirements: []interface{}{\n\t\t\t\t&resourceRequirementProperty{\n\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tsecrets: []interface{}{\n\t\t\t\t&secretProperty{\n\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tstartTimeout: jsii.Number(123),\n\t\t\tstopTimeout: jsii.Number(123),\n\t\t\tsystemControls: []interface{}{\n\t\t\t\t&systemControlProperty{\n\t\t\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tulimits: []interface{}{\n\t\t\t\t&ulimitProperty{\n\t\t\t\t\thardLimit: jsii.Number(123),\n\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\tsoftLimit: jsii.Number(123),\n\t\t\t\t},\n\t\t\t},\n\t\t\tuser: jsii.String(\"user\"),\n\t\t\tvolumesFrom: []interface{}{\n\t\t\t\t&volumeFromProperty{\n\t\t\t\t\treadOnly: jsii.Boolean(false),\n\t\t\t\t\tsourceContainer: jsii.String(\"sourceContainer\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tworkingDirectory: jsii.String(\"workingDirectory\"),\n\t\t},\n\t},\n\tcpu: jsii.String(\"cpu\"),\n\tephemeralStorage: &ephemeralStorageProperty{\n\t\tsizeInGiB: jsii.Number(123),\n\t},\n\texecutionRoleArn: jsii.String(\"executionRoleArn\"),\n\tfamily: jsii.String(\"family\"),\n\tinferenceAccelerators: []interface{}{\n\t\t&inferenceAcceleratorProperty{\n\t\t\tdeviceName: jsii.String(\"deviceName\"),\n\t\t\tdeviceType: jsii.String(\"deviceType\"),\n\t\t},\n\t},\n\tipcMode: jsii.String(\"ipcMode\"),\n\tmemory: jsii.String(\"memory\"),\n\tnetworkMode: jsii.String(\"networkMode\"),\n\tpidMode: jsii.String(\"pidMode\"),\n\tplacementConstraints: []interface{}{\n\t\t&taskDefinitionPlacementConstraintProperty{\n\t\t\ttype: jsii.String(\"type\"),\n\n\t\t\t// the properties below are optional\n\t\t\texpression: jsii.String(\"expression\"),\n\t\t},\n\t},\n\tproxyConfiguration: &proxyConfigurationProperty{\n\t\tcontainerName: jsii.String(\"containerName\"),\n\n\t\t// the properties below are optional\n\t\tproxyConfigurationProperties: []interface{}{\n\t\t\t&keyValuePairProperty{\n\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t},\n\t\t},\n\t\ttype: jsii.String(\"type\"),\n\t},\n\trequiresCompatibilities: []*string{\n\t\tjsii.String(\"requiresCompatibilities\"),\n\t},\n\truntimePlatform: &runtimePlatformProperty{\n\t\tcpuArchitecture: jsii.String(\"cpuArchitecture\"),\n\t\toperatingSystemFamily: jsii.String(\"operatingSystemFamily\"),\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\ttaskRoleArn: jsii.String(\"taskRoleArn\"),\n\tvolumes: []interface{}{\n\t\t&volumeProperty{\n\t\t\tdockerVolumeConfiguration: &dockerVolumeConfigurationProperty{\n\t\t\t\tautoprovision: jsii.Boolean(false),\n\t\t\t\tdriver: jsii.String(\"driver\"),\n\t\t\t\tdriverOpts: map[string]*string{\n\t\t\t\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t\t\t\t},\n\t\t\t\tlabels: map[string]*string{\n\t\t\t\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t\t\t\t},\n\t\t\t\tscope: jsii.String(\"scope\"),\n\t\t\t},\n\t\t\tefsVolumeConfiguration: &eFSVolumeConfigurationProperty{\n\t\t\t\tfilesystemId: jsii.String(\"filesystemId\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tauthorizationConfig: &authorizationConfigProperty{\n\t\t\t\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\t\t\t\tiam: jsii.String(\"iam\"),\n\t\t\t\t},\n\t\t\t\trootDirectory: jsii.String(\"rootDirectory\"),\n\t\t\t\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\t\t\t\ttransitEncryptionPort: jsii.Number(123),\n\t\t\t},\n\t\t\thost: &hostVolumePropertiesProperty{\n\t\t\t\tsourcePath: jsii.String(\"sourcePath\"),\n\t\t\t},\n\t\t\tname: jsii.String(\"name\"),\n\t\t},\n\t},\n}",
8378 "version": "1"
8379 },
8380 "$": {
8381 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnTaskDefinitionProps: ecs.CfnTaskDefinitionProps = {\n containerDefinitions: [{\n command: ['command'],\n cpu: 123,\n dependsOn: [{\n condition: 'condition',\n containerName: 'containerName',\n }],\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: [{\n name: 'name',\n value: 'value',\n }],\n environmentFiles: [{\n type: 'type',\n value: 'value',\n }],\n essential: false,\n extraHosts: [{\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n }],\n firelensConfiguration: {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n },\n healthCheck: {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n },\n hostname: 'hostname',\n image: 'image',\n interactive: false,\n links: ['links'],\n linuxParameters: {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n },\n logConfiguration: {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n },\n memory: 123,\n memoryReservation: 123,\n mountPoints: [{\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n }],\n name: 'name',\n portMappings: [{\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n }],\n privileged: false,\n pseudoTerminal: false,\n readonlyRootFilesystem: false,\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n resourceRequirements: [{\n type: 'type',\n value: 'value',\n }],\n secrets: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n startTimeout: 123,\n stopTimeout: 123,\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n ulimits: [{\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n }],\n user: 'user',\n volumesFrom: [{\n readOnly: false,\n sourceContainer: 'sourceContainer',\n }],\n workingDirectory: 'workingDirectory',\n }],\n cpu: 'cpu',\n ephemeralStorage: {\n sizeInGiB: 123,\n },\n executionRoleArn: 'executionRoleArn',\n family: 'family',\n inferenceAccelerators: [{\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n }],\n ipcMode: 'ipcMode',\n memory: 'memory',\n networkMode: 'networkMode',\n pidMode: 'pidMode',\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n proxyConfiguration: {\n containerName: 'containerName',\n\n // the properties below are optional\n proxyConfigurationProperties: [{\n name: 'name',\n value: 'value',\n }],\n type: 'type',\n },\n requiresCompatibilities: ['requiresCompatibilities'],\n runtimePlatform: {\n cpuArchitecture: 'cpuArchitecture',\n operatingSystemFamily: 'operatingSystemFamily',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskRoleArn: 'taskRoleArn',\n volumes: [{\n dockerVolumeConfiguration: {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n },\n efsVolumeConfiguration: {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n name: 'name',\n }],\n};",
8382 "version": "0"
8383 }
8384 },
8385 "location": {
8386 "api": {
8387 "api": "type",
8388 "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinitionProps"
8389 },
8390 "field": {
8391 "field": "example"
8392 }
8393 },
8394 "didCompile": true,
8395 "fqnsReferenced": [
8396 "@aws-cdk/aws-ecs.CfnTaskDefinitionProps"
8397 ],
8398 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnTaskDefinitionProps: ecs.CfnTaskDefinitionProps = {\n containerDefinitions: [{\n command: ['command'],\n cpu: 123,\n dependsOn: [{\n condition: 'condition',\n containerName: 'containerName',\n }],\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: [{\n name: 'name',\n value: 'value',\n }],\n environmentFiles: [{\n type: 'type',\n value: 'value',\n }],\n essential: false,\n extraHosts: [{\n hostname: 'hostname',\n ipAddress: 'ipAddress',\n }],\n firelensConfiguration: {\n options: {\n optionsKey: 'options',\n },\n type: 'type',\n },\n healthCheck: {\n command: ['command'],\n interval: 123,\n retries: 123,\n startPeriod: 123,\n timeout: 123,\n },\n hostname: 'hostname',\n image: 'image',\n interactive: false,\n links: ['links'],\n linuxParameters: {\n capabilities: {\n add: ['add'],\n drop: ['drop'],\n },\n devices: [{\n containerPath: 'containerPath',\n hostPath: 'hostPath',\n permissions: ['permissions'],\n }],\n initProcessEnabled: false,\n maxSwap: 123,\n sharedMemorySize: 123,\n swappiness: 123,\n tmpfs: [{\n size: 123,\n\n // the properties below are optional\n containerPath: 'containerPath',\n mountOptions: ['mountOptions'],\n }],\n },\n logConfiguration: {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n },\n memory: 123,\n memoryReservation: 123,\n mountPoints: [{\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n }],\n name: 'name',\n portMappings: [{\n containerPort: 123,\n hostPort: 123,\n protocol: 'protocol',\n }],\n privileged: false,\n pseudoTerminal: false,\n readonlyRootFilesystem: false,\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n resourceRequirements: [{\n type: 'type',\n value: 'value',\n }],\n secrets: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n startTimeout: 123,\n stopTimeout: 123,\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n ulimits: [{\n hardLimit: 123,\n name: 'name',\n softLimit: 123,\n }],\n user: 'user',\n volumesFrom: [{\n readOnly: false,\n sourceContainer: 'sourceContainer',\n }],\n workingDirectory: 'workingDirectory',\n }],\n cpu: 'cpu',\n ephemeralStorage: {\n sizeInGiB: 123,\n },\n executionRoleArn: 'executionRoleArn',\n family: 'family',\n inferenceAccelerators: [{\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n }],\n ipcMode: 'ipcMode',\n memory: 'memory',\n networkMode: 'networkMode',\n pidMode: 'pidMode',\n placementConstraints: [{\n type: 'type',\n\n // the properties below are optional\n expression: 'expression',\n }],\n proxyConfiguration: {\n containerName: 'containerName',\n\n // the properties below are optional\n proxyConfigurationProperties: [{\n name: 'name',\n value: 'value',\n }],\n type: 'type',\n },\n requiresCompatibilities: ['requiresCompatibilities'],\n runtimePlatform: {\n cpuArchitecture: 'cpuArchitecture',\n operatingSystemFamily: 'operatingSystemFamily',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n taskRoleArn: 'taskRoleArn',\n volumes: [{\n dockerVolumeConfiguration: {\n autoprovision: false,\n driver: 'driver',\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n scope: 'scope',\n },\n efsVolumeConfiguration: {\n filesystemId: 'filesystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n name: 'name',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8399 "syntaxKindCounter": {
8400 "8": 19,
8401 "10": 79,
8402 "75": 149,
8403 "91": 10,
8404 "153": 1,
8405 "169": 1,
8406 "192": 32,
8407 "193": 39,
8408 "225": 1,
8409 "242": 1,
8410 "243": 1,
8411 "254": 1,
8412 "255": 1,
8413 "256": 1,
8414 "281": 145,
8415 "290": 1
8416 },
8417 "fqnsFingerprint": "f0c7e17d0f8155be280929c7dcabcf7f5d74a1180779cefc142fd101bb571bc7"
8418 },
8419 "487b21171557743ccd5a9929034c4f644b9d5a726d7e1533f7d5d83ba27aec29": {
8420 "translations": {
8421 "python": {
8422 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_task_set = ecs.CfnTaskSet(self, \"MyCfnTaskSet\",\n cluster=\"cluster\",\n service=\"service\",\n task_definition=\"taskDefinition\",\n\n # the properties below are optional\n external_id=\"externalId\",\n launch_type=\"launchType\",\n load_balancers=[ecs.CfnTaskSet.LoadBalancerProperty(\n container_name=\"containerName\",\n container_port=123,\n load_balancer_name=\"loadBalancerName\",\n target_group_arn=\"targetGroupArn\"\n )],\n network_configuration=ecs.CfnTaskSet.NetworkConfigurationProperty(\n aws_vpc_configuration=ecs.CfnTaskSet.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n ),\n platform_version=\"platformVersion\",\n scale=ecs.CfnTaskSet.ScaleProperty(\n unit=\"unit\",\n value=123\n ),\n service_registries=[ecs.CfnTaskSet.ServiceRegistryProperty(\n container_name=\"containerName\",\n container_port=123,\n port=123,\n registry_arn=\"registryArn\"\n )]\n)",
8423 "version": "2"
8424 },
8425 "csharp": {
8426 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnTaskSet cfnTaskSet = new CfnTaskSet(this, \"MyCfnTaskSet\", new CfnTaskSetProps {\n Cluster = \"cluster\",\n Service = \"service\",\n TaskDefinition = \"taskDefinition\",\n\n // the properties below are optional\n ExternalId = \"externalId\",\n LaunchType = \"launchType\",\n LoadBalancers = new [] { new LoadBalancerProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n LoadBalancerName = \"loadBalancerName\",\n TargetGroupArn = \"targetGroupArn\"\n } },\n NetworkConfiguration = new NetworkConfigurationProperty {\n AwsVpcConfiguration = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n }\n },\n PlatformVersion = \"platformVersion\",\n Scale = new ScaleProperty {\n Unit = \"unit\",\n Value = 123\n },\n ServiceRegistries = new [] { new ServiceRegistryProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n Port = 123,\n RegistryArn = \"registryArn\"\n } }\n});",
8427 "version": "1"
8428 },
8429 "java": {
8430 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnTaskSet cfnTaskSet = CfnTaskSet.Builder.create(this, \"MyCfnTaskSet\")\n .cluster(\"cluster\")\n .service(\"service\")\n .taskDefinition(\"taskDefinition\")\n\n // the properties below are optional\n .externalId(\"externalId\")\n .launchType(\"launchType\")\n .loadBalancers(List.of(LoadBalancerProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .loadBalancerName(\"loadBalancerName\")\n .targetGroupArn(\"targetGroupArn\")\n .build()))\n .networkConfiguration(NetworkConfigurationProperty.builder()\n .awsVpcConfiguration(AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build())\n .build())\n .platformVersion(\"platformVersion\")\n .scale(ScaleProperty.builder()\n .unit(\"unit\")\n .value(123)\n .build())\n .serviceRegistries(List.of(ServiceRegistryProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .port(123)\n .registryArn(\"registryArn\")\n .build()))\n .build();",
8431 "version": "1"
8432 },
8433 "go": {
8434 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnTaskSet := ecs.NewCfnTaskSet(this, jsii.String(\"MyCfnTaskSet\"), &cfnTaskSetProps{\n\tcluster: jsii.String(\"cluster\"),\n\tservice: jsii.String(\"service\"),\n\ttaskDefinition: jsii.String(\"taskDefinition\"),\n\n\t// the properties below are optional\n\texternalId: jsii.String(\"externalId\"),\n\tlaunchType: jsii.String(\"launchType\"),\n\tloadBalancers: []interface{}{\n\t\t&loadBalancerProperty{\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\tloadBalancerName: jsii.String(\"loadBalancerName\"),\n\t\t\ttargetGroupArn: jsii.String(\"targetGroupArn\"),\n\t\t},\n\t},\n\tnetworkConfiguration: &networkConfigurationProperty{\n\t\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\tsubnets: []*string{\n\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\tsecurityGroups: []*string{\n\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t},\n\t\t},\n\t},\n\tplatformVersion: jsii.String(\"platformVersion\"),\n\tscale: &scaleProperty{\n\t\tunit: jsii.String(\"unit\"),\n\t\tvalue: jsii.Number(123),\n\t},\n\tserviceRegistries: []interface{}{\n\t\t&serviceRegistryProperty{\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\tport: jsii.Number(123),\n\t\t\tregistryArn: jsii.String(\"registryArn\"),\n\t\t},\n\t},\n})",
8435 "version": "1"
8436 },
8437 "$": {
8438 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnTaskSet = new ecs.CfnTaskSet(this, 'MyCfnTaskSet', {\n cluster: 'cluster',\n service: 'service',\n taskDefinition: 'taskDefinition',\n\n // the properties below are optional\n externalId: 'externalId',\n launchType: 'launchType',\n loadBalancers: [{\n containerName: 'containerName',\n containerPort: 123,\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n platformVersion: 'platformVersion',\n scale: {\n unit: 'unit',\n value: 123,\n },\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n});",
8439 "version": "0"
8440 }
8441 },
8442 "location": {
8443 "api": {
8444 "api": "type",
8445 "fqn": "@aws-cdk/aws-ecs.CfnTaskSet"
8446 },
8447 "field": {
8448 "field": "example"
8449 }
8450 },
8451 "didCompile": true,
8452 "fqnsReferenced": [
8453 "@aws-cdk/aws-ecs.CfnTaskSet",
8454 "@aws-cdk/aws-ecs.CfnTaskSetProps",
8455 "@aws-cdk/core.Construct"
8456 ],
8457 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnTaskSet = new ecs.CfnTaskSet(this, 'MyCfnTaskSet', {\n cluster: 'cluster',\n service: 'service',\n taskDefinition: 'taskDefinition',\n\n // the properties below are optional\n externalId: 'externalId',\n launchType: 'launchType',\n loadBalancers: [{\n containerName: 'containerName',\n containerPort: 123,\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n platformVersion: 'platformVersion',\n scale: {\n unit: 'unit',\n value: 123,\n },\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8458 "syntaxKindCounter": {
8459 "8": 4,
8460 "10": 17,
8461 "75": 28,
8462 "104": 1,
8463 "192": 4,
8464 "193": 6,
8465 "194": 1,
8466 "197": 1,
8467 "225": 1,
8468 "242": 1,
8469 "243": 1,
8470 "254": 1,
8471 "255": 1,
8472 "256": 1,
8473 "281": 24,
8474 "290": 1
8475 },
8476 "fqnsFingerprint": "781450eec4db56873999cb5e8d341a03452083e39f826179b88e932907ae95b2"
8477 },
8478 "ea43e5765c428e954a952cf9be46f05945d7a76dd92bbfa88e8f66ddbc6fdb91": {
8479 "translations": {
8480 "python": {
8481 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\naws_vpc_configuration_property = ecs.CfnTaskSet.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n)",
8482 "version": "2"
8483 },
8484 "csharp": {
8485 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nAwsVpcConfigurationProperty awsVpcConfigurationProperty = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n};",
8486 "version": "1"
8487 },
8488 "java": {
8489 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nAwsVpcConfigurationProperty awsVpcConfigurationProperty = AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build();",
8490 "version": "1"
8491 },
8492 "go": {
8493 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nawsVpcConfigurationProperty := &awsVpcConfigurationProperty{\n\tsubnets: []*string{\n\t\tjsii.String(\"subnets\"),\n\t},\n\n\t// the properties below are optional\n\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\tsecurityGroups: []*string{\n\t\tjsii.String(\"securityGroups\"),\n\t},\n}",
8494 "version": "1"
8495 },
8496 "$": {
8497 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst awsVpcConfigurationProperty: ecs.CfnTaskSet.AwsVpcConfigurationProperty = {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n};",
8498 "version": "0"
8499 }
8500 },
8501 "location": {
8502 "api": {
8503 "api": "type",
8504 "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.AwsVpcConfigurationProperty"
8505 },
8506 "field": {
8507 "field": "example"
8508 }
8509 },
8510 "didCompile": true,
8511 "fqnsReferenced": [
8512 "@aws-cdk/aws-ecs.CfnTaskSet.AwsVpcConfigurationProperty"
8513 ],
8514 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst awsVpcConfigurationProperty: ecs.CfnTaskSet.AwsVpcConfigurationProperty = {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8515 "syntaxKindCounter": {
8516 "10": 4,
8517 "75": 8,
8518 "153": 2,
8519 "169": 1,
8520 "192": 2,
8521 "193": 1,
8522 "225": 1,
8523 "242": 1,
8524 "243": 1,
8525 "254": 1,
8526 "255": 1,
8527 "256": 1,
8528 "281": 3,
8529 "290": 1
8530 },
8531 "fqnsFingerprint": "ef544ab2b838270e9eb1283708a3fb1f437b39dc6048d4219e27f96ef7919a3e"
8532 },
8533 "d751418524b18f47b4290ce3a9cf9b59145030ef8b0ccf08684adad5035b6ef4": {
8534 "translations": {
8535 "python": {
8536 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nload_balancer_property = ecs.CfnTaskSet.LoadBalancerProperty(\n container_name=\"containerName\",\n container_port=123,\n load_balancer_name=\"loadBalancerName\",\n target_group_arn=\"targetGroupArn\"\n)",
8537 "version": "2"
8538 },
8539 "csharp": {
8540 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLoadBalancerProperty loadBalancerProperty = new LoadBalancerProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n LoadBalancerName = \"loadBalancerName\",\n TargetGroupArn = \"targetGroupArn\"\n};",
8541 "version": "1"
8542 },
8543 "java": {
8544 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLoadBalancerProperty loadBalancerProperty = LoadBalancerProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .loadBalancerName(\"loadBalancerName\")\n .targetGroupArn(\"targetGroupArn\")\n .build();",
8545 "version": "1"
8546 },
8547 "go": {
8548 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nloadBalancerProperty := &loadBalancerProperty{\n\tcontainerName: jsii.String(\"containerName\"),\n\tcontainerPort: jsii.Number(123),\n\tloadBalancerName: jsii.String(\"loadBalancerName\"),\n\ttargetGroupArn: jsii.String(\"targetGroupArn\"),\n}",
8549 "version": "1"
8550 },
8551 "$": {
8552 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst loadBalancerProperty: ecs.CfnTaskSet.LoadBalancerProperty = {\n containerName: 'containerName',\n containerPort: 123,\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n};",
8553 "version": "0"
8554 }
8555 },
8556 "location": {
8557 "api": {
8558 "api": "type",
8559 "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.LoadBalancerProperty"
8560 },
8561 "field": {
8562 "field": "example"
8563 }
8564 },
8565 "didCompile": true,
8566 "fqnsReferenced": [
8567 "@aws-cdk/aws-ecs.CfnTaskSet.LoadBalancerProperty"
8568 ],
8569 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst loadBalancerProperty: ecs.CfnTaskSet.LoadBalancerProperty = {\n containerName: 'containerName',\n containerPort: 123,\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8570 "syntaxKindCounter": {
8571 "8": 1,
8572 "10": 4,
8573 "75": 9,
8574 "153": 2,
8575 "169": 1,
8576 "193": 1,
8577 "225": 1,
8578 "242": 1,
8579 "243": 1,
8580 "254": 1,
8581 "255": 1,
8582 "256": 1,
8583 "281": 4,
8584 "290": 1
8585 },
8586 "fqnsFingerprint": "56d788264606fbd698e1cbdbae7bbd99c017a3ffcecab16e4b0e25a19fe78593"
8587 },
8588 "eca52a1d9362b62e35e13b261085de40cb2a0162e8acb19a4593819c4b16858e": {
8589 "translations": {
8590 "python": {
8591 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nnetwork_configuration_property = ecs.CfnTaskSet.NetworkConfigurationProperty(\n aws_vpc_configuration=ecs.CfnTaskSet.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n)",
8592 "version": "2"
8593 },
8594 "csharp": {
8595 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nNetworkConfigurationProperty networkConfigurationProperty = new NetworkConfigurationProperty {\n AwsVpcConfiguration = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n }\n};",
8596 "version": "1"
8597 },
8598 "java": {
8599 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nNetworkConfigurationProperty networkConfigurationProperty = NetworkConfigurationProperty.builder()\n .awsVpcConfiguration(AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build())\n .build();",
8600 "version": "1"
8601 },
8602 "go": {
8603 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nnetworkConfigurationProperty := &networkConfigurationProperty{\n\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\tsubnets: []*string{\n\t\t\tjsii.String(\"subnets\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\tsecurityGroups: []*string{\n\t\t\tjsii.String(\"securityGroups\"),\n\t\t},\n\t},\n}",
8604 "version": "1"
8605 },
8606 "$": {
8607 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst networkConfigurationProperty: ecs.CfnTaskSet.NetworkConfigurationProperty = {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n};",
8608 "version": "0"
8609 }
8610 },
8611 "location": {
8612 "api": {
8613 "api": "type",
8614 "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.NetworkConfigurationProperty"
8615 },
8616 "field": {
8617 "field": "example"
8618 }
8619 },
8620 "didCompile": true,
8621 "fqnsReferenced": [
8622 "@aws-cdk/aws-ecs.CfnTaskSet.NetworkConfigurationProperty"
8623 ],
8624 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst networkConfigurationProperty: ecs.CfnTaskSet.NetworkConfigurationProperty = {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8625 "syntaxKindCounter": {
8626 "10": 4,
8627 "75": 9,
8628 "153": 2,
8629 "169": 1,
8630 "192": 2,
8631 "193": 2,
8632 "225": 1,
8633 "242": 1,
8634 "243": 1,
8635 "254": 1,
8636 "255": 1,
8637 "256": 1,
8638 "281": 4,
8639 "290": 1
8640 },
8641 "fqnsFingerprint": "3414aadb04cfa6bf837d2866658944938153a0b85a4ccd63169fa6f2d8919b40"
8642 },
8643 "13fb9cd2e084b75fbdb92d72ea12b4290a10e34831511b5e3b10d01b9b3a3db9": {
8644 "translations": {
8645 "python": {
8646 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nscale_property = ecs.CfnTaskSet.ScaleProperty(\n unit=\"unit\",\n value=123\n)",
8647 "version": "2"
8648 },
8649 "csharp": {
8650 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nScaleProperty scaleProperty = new ScaleProperty {\n Unit = \"unit\",\n Value = 123\n};",
8651 "version": "1"
8652 },
8653 "java": {
8654 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nScaleProperty scaleProperty = ScaleProperty.builder()\n .unit(\"unit\")\n .value(123)\n .build();",
8655 "version": "1"
8656 },
8657 "go": {
8658 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nscaleProperty := &scaleProperty{\n\tunit: jsii.String(\"unit\"),\n\tvalue: jsii.Number(123),\n}",
8659 "version": "1"
8660 },
8661 "$": {
8662 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst scaleProperty: ecs.CfnTaskSet.ScaleProperty = {\n unit: 'unit',\n value: 123,\n};",
8663 "version": "0"
8664 }
8665 },
8666 "location": {
8667 "api": {
8668 "api": "type",
8669 "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.ScaleProperty"
8670 },
8671 "field": {
8672 "field": "example"
8673 }
8674 },
8675 "didCompile": true,
8676 "fqnsReferenced": [
8677 "@aws-cdk/aws-ecs.CfnTaskSet.ScaleProperty"
8678 ],
8679 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst scaleProperty: ecs.CfnTaskSet.ScaleProperty = {\n unit: 'unit',\n value: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8680 "syntaxKindCounter": {
8681 "8": 1,
8682 "10": 2,
8683 "75": 7,
8684 "153": 2,
8685 "169": 1,
8686 "193": 1,
8687 "225": 1,
8688 "242": 1,
8689 "243": 1,
8690 "254": 1,
8691 "255": 1,
8692 "256": 1,
8693 "281": 2,
8694 "290": 1
8695 },
8696 "fqnsFingerprint": "7ce0e6aeaa3c9972e3bbd372ae9254a34efe1337c941e769a41e1bd5caf9702b"
8697 },
8698 "0d2d89f7bc7e2b0829a13e08cf9905b43e3eaa018a9c48db249f9ecdeb2a0938": {
8699 "translations": {
8700 "python": {
8701 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nservice_registry_property = ecs.CfnTaskSet.ServiceRegistryProperty(\n container_name=\"containerName\",\n container_port=123,\n port=123,\n registry_arn=\"registryArn\"\n)",
8702 "version": "2"
8703 },
8704 "csharp": {
8705 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nServiceRegistryProperty serviceRegistryProperty = new ServiceRegistryProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n Port = 123,\n RegistryArn = \"registryArn\"\n};",
8706 "version": "1"
8707 },
8708 "java": {
8709 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nServiceRegistryProperty serviceRegistryProperty = ServiceRegistryProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .port(123)\n .registryArn(\"registryArn\")\n .build();",
8710 "version": "1"
8711 },
8712 "go": {
8713 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nserviceRegistryProperty := &serviceRegistryProperty{\n\tcontainerName: jsii.String(\"containerName\"),\n\tcontainerPort: jsii.Number(123),\n\tport: jsii.Number(123),\n\tregistryArn: jsii.String(\"registryArn\"),\n}",
8714 "version": "1"
8715 },
8716 "$": {
8717 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst serviceRegistryProperty: ecs.CfnTaskSet.ServiceRegistryProperty = {\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n};",
8718 "version": "0"
8719 }
8720 },
8721 "location": {
8722 "api": {
8723 "api": "type",
8724 "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.ServiceRegistryProperty"
8725 },
8726 "field": {
8727 "field": "example"
8728 }
8729 },
8730 "didCompile": true,
8731 "fqnsReferenced": [
8732 "@aws-cdk/aws-ecs.CfnTaskSet.ServiceRegistryProperty"
8733 ],
8734 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst serviceRegistryProperty: ecs.CfnTaskSet.ServiceRegistryProperty = {\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8735 "syntaxKindCounter": {
8736 "8": 2,
8737 "10": 3,
8738 "75": 9,
8739 "153": 2,
8740 "169": 1,
8741 "193": 1,
8742 "225": 1,
8743 "242": 1,
8744 "243": 1,
8745 "254": 1,
8746 "255": 1,
8747 "256": 1,
8748 "281": 4,
8749 "290": 1
8750 },
8751 "fqnsFingerprint": "0e92abee8b9d4bdd1b6c28cfef46ee186e52c0a3a6c0d546f8728f31d5eb2bdc"
8752 },
8753 "c1c0d97388c9640c30f339ab4117a0fd7fe6c7b59438347607d34064407998de": {
8754 "translations": {
8755 "python": {
8756 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncfn_task_set_props = ecs.CfnTaskSetProps(\n cluster=\"cluster\",\n service=\"service\",\n task_definition=\"taskDefinition\",\n\n # the properties below are optional\n external_id=\"externalId\",\n launch_type=\"launchType\",\n load_balancers=[ecs.CfnTaskSet.LoadBalancerProperty(\n container_name=\"containerName\",\n container_port=123,\n load_balancer_name=\"loadBalancerName\",\n target_group_arn=\"targetGroupArn\"\n )],\n network_configuration=ecs.CfnTaskSet.NetworkConfigurationProperty(\n aws_vpc_configuration=ecs.CfnTaskSet.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n ),\n platform_version=\"platformVersion\",\n scale=ecs.CfnTaskSet.ScaleProperty(\n unit=\"unit\",\n value=123\n ),\n service_registries=[ecs.CfnTaskSet.ServiceRegistryProperty(\n container_name=\"containerName\",\n container_port=123,\n port=123,\n registry_arn=\"registryArn\"\n )]\n)",
8757 "version": "2"
8758 },
8759 "csharp": {
8760 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCfnTaskSetProps cfnTaskSetProps = new CfnTaskSetProps {\n Cluster = \"cluster\",\n Service = \"service\",\n TaskDefinition = \"taskDefinition\",\n\n // the properties below are optional\n ExternalId = \"externalId\",\n LaunchType = \"launchType\",\n LoadBalancers = new [] { new LoadBalancerProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n LoadBalancerName = \"loadBalancerName\",\n TargetGroupArn = \"targetGroupArn\"\n } },\n NetworkConfiguration = new NetworkConfigurationProperty {\n AwsVpcConfiguration = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n }\n },\n PlatformVersion = \"platformVersion\",\n Scale = new ScaleProperty {\n Unit = \"unit\",\n Value = 123\n },\n ServiceRegistries = new [] { new ServiceRegistryProperty {\n ContainerName = \"containerName\",\n ContainerPort = 123,\n Port = 123,\n RegistryArn = \"registryArn\"\n } }\n};",
8761 "version": "1"
8762 },
8763 "java": {
8764 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCfnTaskSetProps cfnTaskSetProps = CfnTaskSetProps.builder()\n .cluster(\"cluster\")\n .service(\"service\")\n .taskDefinition(\"taskDefinition\")\n\n // the properties below are optional\n .externalId(\"externalId\")\n .launchType(\"launchType\")\n .loadBalancers(List.of(LoadBalancerProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .loadBalancerName(\"loadBalancerName\")\n .targetGroupArn(\"targetGroupArn\")\n .build()))\n .networkConfiguration(NetworkConfigurationProperty.builder()\n .awsVpcConfiguration(AwsVpcConfigurationProperty.builder()\n .subnets(List.of(\"subnets\"))\n\n // the properties below are optional\n .assignPublicIp(\"assignPublicIp\")\n .securityGroups(List.of(\"securityGroups\"))\n .build())\n .build())\n .platformVersion(\"platformVersion\")\n .scale(ScaleProperty.builder()\n .unit(\"unit\")\n .value(123)\n .build())\n .serviceRegistries(List.of(ServiceRegistryProperty.builder()\n .containerName(\"containerName\")\n .containerPort(123)\n .port(123)\n .registryArn(\"registryArn\")\n .build()))\n .build();",
8765 "version": "1"
8766 },
8767 "go": {
8768 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncfnTaskSetProps := &cfnTaskSetProps{\n\tcluster: jsii.String(\"cluster\"),\n\tservice: jsii.String(\"service\"),\n\ttaskDefinition: jsii.String(\"taskDefinition\"),\n\n\t// the properties below are optional\n\texternalId: jsii.String(\"externalId\"),\n\tlaunchType: jsii.String(\"launchType\"),\n\tloadBalancers: []interface{}{\n\t\t&loadBalancerProperty{\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\tloadBalancerName: jsii.String(\"loadBalancerName\"),\n\t\t\ttargetGroupArn: jsii.String(\"targetGroupArn\"),\n\t\t},\n\t},\n\tnetworkConfiguration: &networkConfigurationProperty{\n\t\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\tsubnets: []*string{\n\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\tsecurityGroups: []*string{\n\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t},\n\t\t},\n\t},\n\tplatformVersion: jsii.String(\"platformVersion\"),\n\tscale: &scaleProperty{\n\t\tunit: jsii.String(\"unit\"),\n\t\tvalue: jsii.Number(123),\n\t},\n\tserviceRegistries: []interface{}{\n\t\t&serviceRegistryProperty{\n\t\t\tcontainerName: jsii.String(\"containerName\"),\n\t\t\tcontainerPort: jsii.Number(123),\n\t\t\tport: jsii.Number(123),\n\t\t\tregistryArn: jsii.String(\"registryArn\"),\n\t\t},\n\t},\n}",
8769 "version": "1"
8770 },
8771 "$": {
8772 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst cfnTaskSetProps: ecs.CfnTaskSetProps = {\n cluster: 'cluster',\n service: 'service',\n taskDefinition: 'taskDefinition',\n\n // the properties below are optional\n externalId: 'externalId',\n launchType: 'launchType',\n loadBalancers: [{\n containerName: 'containerName',\n containerPort: 123,\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n platformVersion: 'platformVersion',\n scale: {\n unit: 'unit',\n value: 123,\n },\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n};",
8773 "version": "0"
8774 }
8775 },
8776 "location": {
8777 "api": {
8778 "api": "type",
8779 "fqn": "@aws-cdk/aws-ecs.CfnTaskSetProps"
8780 },
8781 "field": {
8782 "field": "example"
8783 }
8784 },
8785 "didCompile": true,
8786 "fqnsReferenced": [
8787 "@aws-cdk/aws-ecs.CfnTaskSetProps"
8788 ],
8789 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnTaskSetProps: ecs.CfnTaskSetProps = {\n cluster: 'cluster',\n service: 'service',\n taskDefinition: 'taskDefinition',\n\n // the properties below are optional\n externalId: 'externalId',\n launchType: 'launchType',\n loadBalancers: [{\n containerName: 'containerName',\n containerPort: 123,\n loadBalancerName: 'loadBalancerName',\n targetGroupArn: 'targetGroupArn',\n }],\n networkConfiguration: {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n },\n platformVersion: 'platformVersion',\n scale: {\n unit: 'unit',\n value: 123,\n },\n serviceRegistries: [{\n containerName: 'containerName',\n containerPort: 123,\n port: 123,\n registryArn: 'registryArn',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8790 "syntaxKindCounter": {
8791 "8": 4,
8792 "10": 16,
8793 "75": 28,
8794 "153": 1,
8795 "169": 1,
8796 "192": 4,
8797 "193": 6,
8798 "225": 1,
8799 "242": 1,
8800 "243": 1,
8801 "254": 1,
8802 "255": 1,
8803 "256": 1,
8804 "281": 24,
8805 "290": 1
8806 },
8807 "fqnsFingerprint": "bb9697fcd3644d64916b11fd46f887f524f35e16e9cda45e3bbee44fdd9135ea"
8808 },
8809 "1818c3e90c192cfd1bd808eb2ec7bbebcedb05196de9d466d4b5d14ca0a29cd6": {
8810 "translations": {
8811 "python": {
8812 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ec2 as ec2\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_servicediscovery as servicediscovery\n\n# vpc: ec2.Vpc\n\ncloud_map_namespace_options = ecs.CloudMapNamespaceOptions(\n name=\"name\",\n\n # the properties below are optional\n type=servicediscovery.NamespaceType.HTTP,\n vpc=vpc\n)",
8813 "version": "2"
8814 },
8815 "csharp": {
8816 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.ServiceDiscovery;\n\nVpc vpc;\n\nCloudMapNamespaceOptions cloudMapNamespaceOptions = new CloudMapNamespaceOptions {\n Name = \"name\",\n\n // the properties below are optional\n Type = NamespaceType.HTTP,\n Vpc = vpc\n};",
8817 "version": "1"
8818 },
8819 "java": {
8820 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ec2.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.servicediscovery.*;\n\nVpc vpc;\n\nCloudMapNamespaceOptions cloudMapNamespaceOptions = CloudMapNamespaceOptions.builder()\n .name(\"name\")\n\n // the properties below are optional\n .type(NamespaceType.HTTP)\n .vpc(vpc)\n .build();",
8821 "version": "1"
8822 },
8823 "go": {
8824 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ec2 \"github.com/aws-samples/dummy/awscdkawsec2\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport servicediscovery \"github.com/aws-samples/dummy/awscdkawsservicediscovery\"\n\nvar vpc vpc\n\ncloudMapNamespaceOptions := &cloudMapNamespaceOptions{\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\ttype: servicediscovery.namespaceType_HTTP,\n\tvpc: vpc,\n}",
8825 "version": "1"
8826 },
8827 "$": {
8828 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\n\ndeclare const vpc: ec2.Vpc;\nconst cloudMapNamespaceOptions: ecs.CloudMapNamespaceOptions = {\n name: 'name',\n\n // the properties below are optional\n type: servicediscovery.NamespaceType.HTTP,\n vpc: vpc,\n};",
8829 "version": "0"
8830 }
8831 },
8832 "location": {
8833 "api": {
8834 "api": "type",
8835 "fqn": "@aws-cdk/aws-ecs.CloudMapNamespaceOptions"
8836 },
8837 "field": {
8838 "field": "example"
8839 }
8840 },
8841 "didCompile": true,
8842 "fqnsReferenced": [
8843 "@aws-cdk/aws-ec2.IVpc",
8844 "@aws-cdk/aws-ecs.CloudMapNamespaceOptions",
8845 "@aws-cdk/aws-servicediscovery.NamespaceType",
8846 "@aws-cdk/aws-servicediscovery.NamespaceType#HTTP"
8847 ],
8848 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\n\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cloudMapNamespaceOptions: ecs.CloudMapNamespaceOptions = {\n name: 'name',\n\n // the properties below are optional\n type: servicediscovery.NamespaceType.HTTP,\n vpc: vpc,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8849 "syntaxKindCounter": {
8850 "10": 4,
8851 "75": 16,
8852 "130": 1,
8853 "153": 2,
8854 "169": 2,
8855 "193": 1,
8856 "194": 2,
8857 "225": 2,
8858 "242": 2,
8859 "243": 2,
8860 "254": 3,
8861 "255": 3,
8862 "256": 3,
8863 "281": 3,
8864 "290": 1
8865 },
8866 "fqnsFingerprint": "517e9921389899fe2f99abd8c96a0380fddafa13dadfbd9c5060e6cf2dccaac0"
8867 },
8868 "52e4cde21120d51675431c484d5d4ac4d99a4202f719b28f7640aba71d57af72": {
8869 "translations": {
8870 "python": {
8871 "source": "# task_definition: ecs.TaskDefinition\n# cluster: ecs.Cluster\n\n\nservice = ecs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n cloud_map_options=ecs.CloudMapOptions(\n # Create A records - useful for AWSVPC network mode.\n dns_record_type=cloudmap.DnsRecordType.A\n )\n)",
8872 "version": "2"
8873 },
8874 "csharp": {
8875 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CloudMapOptions = new CloudMapOptions {\n // Create A records - useful for AWSVPC network mode.\n DnsRecordType = DnsRecordType.A\n }\n});",
8876 "version": "1"
8877 },
8878 "java": {
8879 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .cloudMapOptions(CloudMapOptions.builder()\n // Create A records - useful for AWSVPC network mode.\n .dnsRecordType(DnsRecordType.A)\n .build())\n .build();",
8880 "version": "1"
8881 },
8882 "go": {
8883 "source": "var taskDefinition taskDefinition\nvar cluster cluster\n\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcloudMapOptions: &cloudMapOptions{\n\t\t// Create A records - useful for AWSVPC network mode.\n\t\tdnsRecordType: cloudmap.dnsRecordType_A,\n\t},\n})",
8884 "version": "1"
8885 },
8886 "$": {
8887 "source": "declare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n\nconst service = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create A records - useful for AWSVPC network mode.\n dnsRecordType: cloudmap.DnsRecordType.A,\n },\n});",
8888 "version": "0"
8889 }
8890 },
8891 "location": {
8892 "api": {
8893 "api": "type",
8894 "fqn": "@aws-cdk/aws-ecs.CloudMapOptions"
8895 },
8896 "field": {
8897 "field": "example"
8898 }
8899 },
8900 "didCompile": true,
8901 "fqnsReferenced": [
8902 "@aws-cdk/aws-ecs.CloudMapOptions",
8903 "@aws-cdk/aws-ecs.Ec2Service",
8904 "@aws-cdk/aws-ecs.Ec2ServiceProps",
8905 "@aws-cdk/aws-ecs.ICluster",
8906 "@aws-cdk/aws-ecs.TaskDefinition",
8907 "@aws-cdk/aws-servicediscovery.DnsRecordType",
8908 "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
8909 "constructs.Construct"
8910 ],
8911 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create A records - useful for AWSVPC network mode.\n dnsRecordType: cloudmap.DnsRecordType.A,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8912 "syntaxKindCounter": {
8913 "10": 1,
8914 "75": 16,
8915 "104": 1,
8916 "130": 2,
8917 "153": 2,
8918 "169": 2,
8919 "193": 2,
8920 "194": 3,
8921 "197": 1,
8922 "225": 3,
8923 "242": 3,
8924 "243": 3,
8925 "281": 2,
8926 "282": 2,
8927 "290": 1
8928 },
8929 "fqnsFingerprint": "d6bb6a410918906abe0ef298af5f5fc46095a796c8015c70625190f85b07e644"
8930 },
8931 "a3e3c1934e6c762889b8e3e482a443514b03d82d2d09e7d6320285d7744506ad": {
8932 "translations": {
8933 "python": {
8934 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.micro\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux2(),\n min_capacity=0,\n max_capacity=100\n)\n\ncapacity_provider = ecs.AsgCapacityProvider(self, \"AsgCapacityProvider\",\n auto_scaling_group=auto_scaling_group\n)\ncluster.add_asg_capacity_provider(capacity_provider)\n\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"web\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_reservation_mi_b=256\n)\n\necs.Ec2Service(self, \"EC2Service\",\n cluster=cluster,\n task_definition=task_definition,\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=capacity_provider.capacity_provider_name,\n weight=1\n )\n ]\n)",
8935 "version": "2"
8936 },
8937 "csharp": {
8938 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.micro\"),\n MachineImage = EcsOptimizedImage.AmazonLinux2(),\n MinCapacity = 0,\n MaxCapacity = 100\n});\n\nAsgCapacityProvider capacityProvider = new AsgCapacityProvider(this, \"AsgCapacityProvider\", new AsgCapacityProviderProps {\n AutoScalingGroup = autoScalingGroup\n});\ncluster.AddAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"web\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryReservationMiB = 256\n});\n\nnew Ec2Service(this, \"EC2Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = capacityProvider.CapacityProviderName,\n Weight = 1\n } }\n});",
8939 "version": "1"
8940 },
8941 "java": {
8942 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.micro\"))\n .machineImage(EcsOptimizedImage.amazonLinux2())\n .minCapacity(0)\n .maxCapacity(100)\n .build();\n\nAsgCapacityProvider capacityProvider = AsgCapacityProvider.Builder.create(this, \"AsgCapacityProvider\")\n .autoScalingGroup(autoScalingGroup)\n .build();\ncluster.addAsgCapacityProvider(capacityProvider);\n\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"web\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryReservationMiB(256)\n .build());\n\nEc2Service.Builder.create(this, \"EC2Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(capacityProvider.getCapacityProviderName())\n .weight(1)\n .build()))\n .build();",
8943 "version": "1"
8944 },
8945 "go": {
8946 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux2(),\n\tminCapacity: jsii.Number(0),\n\tmaxCapacity: jsii.Number(100),\n})\n\ncapacityProvider := ecs.NewAsgCapacityProvider(this, jsii.String(\"AsgCapacityProvider\"), &asgCapacityProviderProps{\n\tautoScalingGroup: autoScalingGroup,\n})\ncluster.addAsgCapacityProvider(capacityProvider)\n\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"web\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryReservationMiB: jsii.Number(256),\n})\n\necs.NewEc2Service(this, jsii.String(\"EC2Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: capacityProvider.capacityProviderName,\n\t\t\tweight: jsii.Number(1),\n\t\t},\n\t},\n})",
8947 "version": "1"
8948 },
8949 "$": {
8950 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});",
8951 "version": "0"
8952 }
8953 },
8954 "location": {
8955 "api": {
8956 "api": "type",
8957 "fqn": "@aws-cdk/aws-ecs.Cluster"
8958 },
8959 "field": {
8960 "field": "example"
8961 }
8962 },
8963 "didCompile": true,
8964 "fqnsReferenced": [
8965 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
8966 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
8967 "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
8968 "@aws-cdk/aws-ec2.IMachineImage",
8969 "@aws-cdk/aws-ec2.IVpc",
8970 "@aws-cdk/aws-ec2.InstanceType",
8971 "@aws-cdk/aws-ecs.AsgCapacityProvider",
8972 "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
8973 "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
8974 "@aws-cdk/aws-ecs.Cluster",
8975 "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
8976 "@aws-cdk/aws-ecs.ClusterProps",
8977 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
8978 "@aws-cdk/aws-ecs.ContainerImage",
8979 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
8980 "@aws-cdk/aws-ecs.Ec2Service",
8981 "@aws-cdk/aws-ecs.Ec2ServiceProps",
8982 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
8983 "@aws-cdk/aws-ecs.EcsOptimizedImage",
8984 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
8985 "@aws-cdk/aws-ecs.ICluster",
8986 "@aws-cdk/aws-ecs.TaskDefinition",
8987 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
8988 "constructs.Construct"
8989 ],
8990 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux2(),\n minCapacity: 0,\n maxCapacity: 100,\n});\n\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryReservationMiB: 256,\n});\n\nnew ecs.Ec2Service(this, 'EC2Service', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: capacityProvider.capacityProviderName,\n weight: 1,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8991 "syntaxKindCounter": {
8992 "8": 4,
8993 "10": 8,
8994 "75": 46,
8995 "104": 5,
8996 "130": 1,
8997 "153": 1,
8998 "169": 1,
8999 "192": 1,
9000 "193": 6,
9001 "194": 13,
9002 "196": 4,
9003 "197": 6,
9004 "225": 5,
9005 "226": 3,
9006 "242": 5,
9007 "243": 5,
9008 "281": 9,
9009 "282": 5,
9010 "290": 1
9011 },
9012 "fqnsFingerprint": "6dce71b202240df801b09aa15a7a4a07a0308f946fe9ea27bebc2976a9a7e9d1"
9013 },
9014 "70d3e7c6490ed66f2ea7ffbe3139e1d94ee432b6b12119b38f46852f9f98b87d": {
9015 "translations": {
9016 "python": {
9017 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_autoscaling as autoscaling\nimport aws_cdk.aws_ec2 as ec2\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_kms as kms\nimport aws_cdk.aws_logs as logs\nimport aws_cdk.aws_s3 as s3\nimport aws_cdk.aws_servicediscovery as servicediscovery\n\n# auto_scaling_group: autoscaling.AutoScalingGroup\n# bucket: s3.Bucket\n# key: kms.Key\n# log_group: logs.LogGroup\n# namespace: servicediscovery.INamespace\n# security_group: ec2.SecurityGroup\n# vpc: ec2.Vpc\n\ncluster_attributes = ecs.ClusterAttributes(\n cluster_name=\"clusterName\",\n security_groups=[security_group],\n vpc=vpc,\n\n # the properties below are optional\n autoscaling_group=auto_scaling_group,\n cluster_arn=\"clusterArn\",\n default_cloud_map_namespace=namespace,\n execute_command_configuration=ecs.ExecuteCommandConfiguration(\n kms_key=key,\n log_configuration=ecs.ExecuteCommandLogConfiguration(\n cloud_watch_encryption_enabled=False,\n cloud_watch_log_group=log_group,\n s3_bucket=bucket,\n s3_encryption_enabled=False,\n s3_key_prefix=\"s3KeyPrefix\"\n ),\n logging=ecs.ExecuteCommandLogging.NONE\n ),\n has_ec2_capacity=False\n)",
9018 "version": "2"
9019 },
9020 "csharp": {
9021 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.AutoScaling;\nusing Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.KMS;\nusing Amazon.CDK.AWS.Logs;\nusing Amazon.CDK.AWS.S3;\nusing Amazon.CDK.AWS.ServiceDiscovery;\n\nAutoScalingGroup autoScalingGroup;\nBucket bucket;\nKey key;\nLogGroup logGroup;\nINamespace namespace;\nSecurityGroup securityGroup;\nVpc vpc;\n\nClusterAttributes clusterAttributes = new ClusterAttributes {\n ClusterName = \"clusterName\",\n SecurityGroups = new [] { securityGroup },\n Vpc = vpc,\n\n // the properties below are optional\n AutoscalingGroup = autoScalingGroup,\n ClusterArn = \"clusterArn\",\n DefaultCloudMapNamespace = namespace,\n ExecuteCommandConfiguration = new ExecuteCommandConfiguration {\n KmsKey = key,\n LogConfiguration = new ExecuteCommandLogConfiguration {\n CloudWatchEncryptionEnabled = false,\n CloudWatchLogGroup = logGroup,\n S3Bucket = bucket,\n S3EncryptionEnabled = false,\n S3KeyPrefix = \"s3KeyPrefix\"\n },\n Logging = ExecuteCommandLogging.NONE\n },\n HasEc2Capacity = false\n};",
9022 "version": "1"
9023 },
9024 "java": {
9025 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.autoscaling.*;\nimport software.amazon.awscdk.services.ec2.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.kms.*;\nimport software.amazon.awscdk.services.logs.*;\nimport software.amazon.awscdk.services.s3.*;\nimport software.amazon.awscdk.services.servicediscovery.*;\n\nAutoScalingGroup autoScalingGroup;\nBucket bucket;\nKey key;\nLogGroup logGroup;\nINamespace namespace;\nSecurityGroup securityGroup;\nVpc vpc;\n\nClusterAttributes clusterAttributes = ClusterAttributes.builder()\n .clusterName(\"clusterName\")\n .securityGroups(List.of(securityGroup))\n .vpc(vpc)\n\n // the properties below are optional\n .autoscalingGroup(autoScalingGroup)\n .clusterArn(\"clusterArn\")\n .defaultCloudMapNamespace(namespace)\n .executeCommandConfiguration(ExecuteCommandConfiguration.builder()\n .kmsKey(key)\n .logConfiguration(ExecuteCommandLogConfiguration.builder()\n .cloudWatchEncryptionEnabled(false)\n .cloudWatchLogGroup(logGroup)\n .s3Bucket(bucket)\n .s3EncryptionEnabled(false)\n .s3KeyPrefix(\"s3KeyPrefix\")\n .build())\n .logging(ExecuteCommandLogging.NONE)\n .build())\n .hasEc2Capacity(false)\n .build();",
9026 "version": "1"
9027 },
9028 "go": {
9029 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport autoscaling \"github.com/aws-samples/dummy/awscdkawsautoscaling\"\nimport ec2 \"github.com/aws-samples/dummy/awscdkawsec2\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport kms \"github.com/aws-samples/dummy/awscdkawskms\"\nimport logs \"github.com/aws-samples/dummy/awscdkawslogs\"\nimport s3 \"github.com/aws-samples/dummy/awscdkawss3\"\nimport servicediscovery \"github.com/aws-samples/dummy/awscdkawsservicediscovery\"\n\nvar autoScalingGroup autoScalingGroup\nvar bucket bucket\nvar key key\nvar logGroup logGroup\nvar namespace iNamespace\nvar securityGroup securityGroup\nvar vpc vpc\n\nclusterAttributes := &clusterAttributes{\n\tclusterName: jsii.String(\"clusterName\"),\n\tsecurityGroups: []iSecurityGroup{\n\t\tsecurityGroup,\n\t},\n\tvpc: vpc,\n\n\t// the properties below are optional\n\tautoscalingGroup: autoScalingGroup,\n\tclusterArn: jsii.String(\"clusterArn\"),\n\tdefaultCloudMapNamespace: namespace,\n\texecuteCommandConfiguration: &executeCommandConfiguration{\n\t\tkmsKey: key,\n\t\tlogConfiguration: &executeCommandLogConfiguration{\n\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(false),\n\t\t\tcloudWatchLogGroup: logGroup,\n\t\t\ts3Bucket: bucket,\n\t\t\ts3EncryptionEnabled: jsii.Boolean(false),\n\t\t\ts3KeyPrefix: jsii.String(\"s3KeyPrefix\"),\n\t\t},\n\t\tlogging: ecs.executeCommandLogging_NONE,\n\t},\n\thasEc2Capacity: jsii.Boolean(false),\n}",
9030 "version": "1"
9031 },
9032 "$": {
9033 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as autoscaling from '@aws-cdk/aws-autoscaling';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\n\ndeclare const autoScalingGroup: autoscaling.AutoScalingGroup;\ndeclare const bucket: s3.Bucket;\ndeclare const key: kms.Key;\ndeclare const logGroup: logs.LogGroup;\ndeclare const namespace: servicediscovery.INamespace;\ndeclare const securityGroup: ec2.SecurityGroup;\ndeclare const vpc: ec2.Vpc;\nconst clusterAttributes: ecs.ClusterAttributes = {\n clusterName: 'clusterName',\n securityGroups: [securityGroup],\n vpc: vpc,\n\n // the properties below are optional\n autoscalingGroup: autoScalingGroup,\n clusterArn: 'clusterArn',\n defaultCloudMapNamespace: namespace,\n executeCommandConfiguration: {\n kmsKey: key,\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroup: logGroup,\n s3Bucket: bucket,\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: ecs.ExecuteCommandLogging.NONE,\n },\n hasEc2Capacity: false,\n};",
9034 "version": "0"
9035 }
9036 },
9037 "location": {
9038 "api": {
9039 "api": "type",
9040 "fqn": "@aws-cdk/aws-ecs.ClusterAttributes"
9041 },
9042 "field": {
9043 "field": "example"
9044 }
9045 },
9046 "didCompile": true,
9047 "fqnsReferenced": [
9048 "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
9049 "@aws-cdk/aws-ec2.IVpc",
9050 "@aws-cdk/aws-ecs.ClusterAttributes",
9051 "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
9052 "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
9053 "@aws-cdk/aws-ecs.ExecuteCommandLogging",
9054 "@aws-cdk/aws-ecs.ExecuteCommandLogging#NONE",
9055 "@aws-cdk/aws-kms.IKey",
9056 "@aws-cdk/aws-logs.ILogGroup",
9057 "@aws-cdk/aws-s3.IBucket",
9058 "@aws-cdk/aws-servicediscovery.INamespace"
9059 ],
9060 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as autoscaling from '@aws-cdk/aws-autoscaling';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as kms from '@aws-cdk/aws-kms';\nimport * as logs from '@aws-cdk/aws-logs';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as servicediscovery from '@aws-cdk/aws-servicediscovery';\n\ndeclare const autoScalingGroup: autoscaling.AutoScalingGroup;\ndeclare const bucket: s3.Bucket;\ndeclare const key: kms.Key;\ndeclare const logGroup: logs.LogGroup;\ndeclare const namespace: servicediscovery.INamespace;\ndeclare const securityGroup: ec2.SecurityGroup;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clusterAttributes: ecs.ClusterAttributes = {\n clusterName: 'clusterName',\n securityGroups: [securityGroup],\n vpc: vpc,\n\n // the properties below are optional\n autoscalingGroup: autoScalingGroup,\n clusterArn: 'clusterArn',\n defaultCloudMapNamespace: namespace,\n executeCommandConfiguration: {\n kmsKey: key,\n logConfiguration: {\n cloudWatchEncryptionEnabled: false,\n cloudWatchLogGroup: logGroup,\n s3Bucket: bucket,\n s3EncryptionEnabled: false,\n s3KeyPrefix: 's3KeyPrefix',\n },\n logging: ecs.ExecuteCommandLogging.NONE,\n },\n hasEc2Capacity: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9061 "syntaxKindCounter": {
9062 "10": 10,
9063 "75": 57,
9064 "91": 3,
9065 "130": 7,
9066 "153": 8,
9067 "169": 8,
9068 "192": 1,
9069 "193": 3,
9070 "194": 2,
9071 "225": 8,
9072 "242": 8,
9073 "243": 8,
9074 "254": 7,
9075 "255": 7,
9076 "256": 7,
9077 "281": 16,
9078 "290": 1
9079 },
9080 "fqnsFingerprint": "5bb3c09137963fcd1b042df8038007c8686c09a82b64694251f6999860655008"
9081 },
9082 "f7738eeb757dc1be01b718b7b0387879439fc8a738cf8705bc3f16f98b7b8067": {
9083 "translations": {
9084 "python": {
9085 "source": "vpc = ec2.Vpc.from_lookup(self, \"Vpc\",\n is_default=True\n)\n\ncluster = ecs.Cluster(self, \"FargateCluster\", vpc=vpc)\n\ntask_definition = ecs.TaskDefinition(self, \"TD\",\n memory_mi_b=\"512\",\n cpu=\"256\",\n compatibility=ecs.Compatibility.FARGATE\n)\n\ncontainer_definition = task_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"foo/bar\"),\n memory_limit_mi_b=256\n)\n\nrun_task = tasks.EcsRunTask(self, \"RunFargate\",\n integration_pattern=sfn.IntegrationPattern.RUN_JOB,\n cluster=cluster,\n task_definition=task_definition,\n assign_public_ip=True,\n container_overrides=[tasks.ContainerOverride(\n container_definition=container_definition,\n environment=[tasks.TaskEnvironmentVariable(name=\"SOME_KEY\", value=sfn.JsonPath.string_at(\"$.SomeKey\"))]\n )],\n launch_target=tasks.EcsFargateLaunchTarget()\n)",
9086 "version": "2"
9087 },
9088 "csharp": {
9089 "source": "IVpc vpc = Vpc.FromLookup(this, \"Vpc\", new VpcLookupOptions {\n IsDefault = true\n});\n\nCluster cluster = new Cluster(this, \"FargateCluster\", new ClusterProps { Vpc = vpc });\n\nTaskDefinition taskDefinition = new TaskDefinition(this, \"TD\", new TaskDefinitionProps {\n MemoryMiB = \"512\",\n Cpu = \"256\",\n Compatibility = Compatibility.FARGATE\n});\n\nContainerDefinition containerDefinition = taskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"foo/bar\"),\n MemoryLimitMiB = 256\n});\n\nEcsRunTask runTask = new EcsRunTask(this, \"RunFargate\", new EcsRunTaskProps {\n IntegrationPattern = IntegrationPattern.RUN_JOB,\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n AssignPublicIp = true,\n ContainerOverrides = new [] { new ContainerOverride {\n ContainerDefinition = containerDefinition,\n Environment = new [] { new TaskEnvironmentVariable { Name = \"SOME_KEY\", Value = JsonPath.StringAt(\"$.SomeKey\") } }\n } },\n LaunchTarget = new EcsFargateLaunchTarget()\n});",
9090 "version": "1"
9091 },
9092 "java": {
9093 "source": "IVpc vpc = Vpc.fromLookup(this, \"Vpc\", VpcLookupOptions.builder()\n .isDefault(true)\n .build());\n\nCluster cluster = Cluster.Builder.create(this, \"FargateCluster\").vpc(vpc).build();\n\nTaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TD\")\n .memoryMiB(\"512\")\n .cpu(\"256\")\n .compatibility(Compatibility.FARGATE)\n .build();\n\nContainerDefinition containerDefinition = taskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"foo/bar\"))\n .memoryLimitMiB(256)\n .build());\n\nEcsRunTask runTask = EcsRunTask.Builder.create(this, \"RunFargate\")\n .integrationPattern(IntegrationPattern.RUN_JOB)\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .assignPublicIp(true)\n .containerOverrides(List.of(ContainerOverride.builder()\n .containerDefinition(containerDefinition)\n .environment(List.of(TaskEnvironmentVariable.builder().name(\"SOME_KEY\").value(JsonPath.stringAt(\"$.SomeKey\")).build()))\n .build()))\n .launchTarget(new EcsFargateLaunchTarget())\n .build();",
9094 "version": "1"
9095 },
9096 "go": {
9097 "source": "vpc := ec2.vpc.fromLookup(this, jsii.String(\"Vpc\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"FargateCluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\ntaskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TD\"), &taskDefinitionProps{\n\tmemoryMiB: jsii.String(\"512\"),\n\tcpu: jsii.String(\"256\"),\n\tcompatibility: ecs.compatibility_FARGATE,\n})\n\ncontainerDefinition := taskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"foo/bar\")),\n\tmemoryLimitMiB: jsii.Number(256),\n})\n\nrunTask := tasks.NewEcsRunTask(this, jsii.String(\"RunFargate\"), &ecsRunTaskProps{\n\tintegrationPattern: sfn.integrationPattern_RUN_JOB,\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tassignPublicIp: jsii.Boolean(true),\n\tcontainerOverrides: []containerOverride{\n\t\t&containerOverride{\n\t\t\tcontainerDefinition: containerDefinition,\n\t\t\tenvironment: []taskEnvironmentVariable{\n\t\t\t\t&taskEnvironmentVariable{\n\t\t\t\t\tname: jsii.String(\"SOME_KEY\"),\n\t\t\t\t\tvalue: sfn.jsonPath.stringAt(jsii.String(\"$.SomeKey\")),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tlaunchTarget: tasks.NewEcsFargateLaunchTarget(),\n})",
9098 "version": "1"
9099 },
9100 "$": {
9101 "source": "const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'FargateCluster', { vpc });\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n memoryMiB: '512',\n cpu: '256',\n compatibility: ecs.Compatibility.FARGATE,\n});\n\nconst containerDefinition = taskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'RunFargate', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n assignPublicIp: true,\n containerOverrides: [{\n containerDefinition,\n environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }],\n }],\n launchTarget: new tasks.EcsFargateLaunchTarget(),\n});",
9102 "version": "0"
9103 }
9104 },
9105 "location": {
9106 "api": {
9107 "api": "type",
9108 "fqn": "@aws-cdk/aws-ecs.ClusterProps"
9109 },
9110 "field": {
9111 "field": "example"
9112 }
9113 },
9114 "didCompile": true,
9115 "fqnsReferenced": [
9116 "@aws-cdk/aws-ec2.IVpc",
9117 "@aws-cdk/aws-ec2.Vpc",
9118 "@aws-cdk/aws-ec2.Vpc#fromLookup",
9119 "@aws-cdk/aws-ec2.VpcLookupOptions",
9120 "@aws-cdk/aws-ecs.Cluster",
9121 "@aws-cdk/aws-ecs.ClusterProps",
9122 "@aws-cdk/aws-ecs.Compatibility",
9123 "@aws-cdk/aws-ecs.Compatibility#FARGATE",
9124 "@aws-cdk/aws-ecs.ContainerDefinition",
9125 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
9126 "@aws-cdk/aws-ecs.ContainerImage",
9127 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
9128 "@aws-cdk/aws-ecs.ICluster",
9129 "@aws-cdk/aws-ecs.TaskDefinition",
9130 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
9131 "@aws-cdk/aws-ecs.TaskDefinitionProps",
9132 "@aws-cdk/aws-stepfunctions-tasks.EcsFargateLaunchTarget",
9133 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
9134 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
9135 "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
9136 "@aws-cdk/aws-stepfunctions.IntegrationPattern",
9137 "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
9138 "@aws-cdk/aws-stepfunctions.JsonPath",
9139 "@aws-cdk/aws-stepfunctions.JsonPath#stringAt",
9140 "constructs.Construct"
9141 ],
9142 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, Size, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as tasks from '@aws-cdk/aws-stepfunctions-tasks';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'FargateCluster', { vpc });\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n memoryMiB: '512',\n cpu: '256',\n compatibility: ecs.Compatibility.FARGATE,\n});\n\nconst containerDefinition = taskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'RunFargate', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n assignPublicIp: true,\n containerOverrides: [{\n containerDefinition,\n environment: [{ name: 'SOME_KEY', value: sfn.JsonPath.stringAt('$.SomeKey') }],\n }],\n launchTarget: new tasks.EcsFargateLaunchTarget(),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9143 "syntaxKindCounter": {
9144 "8": 1,
9145 "10": 10,
9146 "75": 47,
9147 "104": 4,
9148 "106": 2,
9149 "192": 2,
9150 "193": 7,
9151 "194": 15,
9152 "196": 4,
9153 "197": 4,
9154 "225": 5,
9155 "242": 5,
9156 "243": 5,
9157 "281": 13,
9158 "282": 4
9159 },
9160 "fqnsFingerprint": "40980435ce064cc9da8d29bfa43e163dbf12d60848c83eea654bc8b5c34f174b"
9161 },
9162 "ceddedc4c3ec5f87e2bfb7198dc29c27cd9f4890e1d70beb76ec9fe195223c02": {
9163 "translations": {
9164 "python": {
9165 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# role: iam.Role\n\ncommon_task_definition_attributes = ecs.CommonTaskDefinitionAttributes(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n network_mode=ecs.NetworkMode.NONE,\n task_role=role\n)",
9166 "version": "2"
9167 },
9168 "csharp": {
9169 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nRole role;\n\nCommonTaskDefinitionAttributes commonTaskDefinitionAttributes = new CommonTaskDefinitionAttributes {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n NetworkMode = NetworkMode.NONE,\n TaskRole = role\n};",
9170 "version": "1"
9171 },
9172 "java": {
9173 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nCommonTaskDefinitionAttributes commonTaskDefinitionAttributes = CommonTaskDefinitionAttributes.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .networkMode(NetworkMode.NONE)\n .taskRole(role)\n .build();",
9174 "version": "1"
9175 },
9176 "go": {
9177 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar role role\n\ncommonTaskDefinitionAttributes := &commonTaskDefinitionAttributes{\n\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t// the properties below are optional\n\tnetworkMode: ecs.networkMode_NONE,\n\ttaskRole: role,\n}",
9178 "version": "1"
9179 },
9180 "$": {
9181 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\nconst commonTaskDefinitionAttributes: ecs.CommonTaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};",
9182 "version": "0"
9183 }
9184 },
9185 "location": {
9186 "api": {
9187 "api": "type",
9188 "fqn": "@aws-cdk/aws-ecs.CommonTaskDefinitionAttributes"
9189 },
9190 "field": {
9191 "field": "example"
9192 }
9193 },
9194 "didCompile": true,
9195 "fqnsReferenced": [
9196 "@aws-cdk/aws-ecs.CommonTaskDefinitionAttributes",
9197 "@aws-cdk/aws-ecs.NetworkMode",
9198 "@aws-cdk/aws-ecs.NetworkMode#NONE",
9199 "@aws-cdk/aws-iam.IRole"
9200 ],
9201 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst commonTaskDefinitionAttributes: ecs.CommonTaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9202 "syntaxKindCounter": {
9203 "10": 3,
9204 "75": 15,
9205 "130": 1,
9206 "153": 2,
9207 "169": 2,
9208 "193": 1,
9209 "194": 2,
9210 "225": 2,
9211 "242": 2,
9212 "243": 2,
9213 "254": 2,
9214 "255": 2,
9215 "256": 2,
9216 "281": 3,
9217 "290": 1
9218 },
9219 "fqnsFingerprint": "ffe55373060c53cd33dd2d54de5bd590006ec6a23d125eb2344dcfd23906874c"
9220 },
9221 "add6922652836abae37b932854c5b4fdcffb9d82a34bcee20dd49af0551b1a3d": {
9222 "translations": {
9223 "python": {
9224 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# proxy_configuration: ecs.ProxyConfiguration\n# role: iam.Role\n\ncommon_task_definition_props = ecs.CommonTaskDefinitionProps(\n execution_role=role,\n family=\"family\",\n proxy_configuration=proxy_configuration,\n task_role=role,\n volumes=[ecs.Volume(\n name=\"name\",\n\n # the properties below are optional\n docker_volume_configuration=ecs.DockerVolumeConfiguration(\n driver=\"driver\",\n scope=ecs.Scope.TASK,\n\n # the properties below are optional\n autoprovision=False,\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n }\n ),\n efs_volume_configuration=ecs.EfsVolumeConfiguration(\n file_system_id=\"fileSystemId\",\n\n # the properties below are optional\n authorization_config=ecs.AuthorizationConfig(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n ),\n host=ecs.Host(\n source_path=\"sourcePath\"\n )\n )]\n)",
9225 "version": "2"
9226 },
9227 "csharp": {
9228 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nProxyConfiguration proxyConfiguration;\nRole role;\n\nCommonTaskDefinitionProps commonTaskDefinitionProps = new CommonTaskDefinitionProps {\n ExecutionRole = role,\n Family = \"family\",\n ProxyConfiguration = proxyConfiguration,\n TaskRole = role,\n Volumes = new [] { new Volume {\n Name = \"name\",\n\n // the properties below are optional\n DockerVolumeConfiguration = new DockerVolumeConfiguration {\n Driver = \"driver\",\n Scope = Scope.TASK,\n\n // the properties below are optional\n Autoprovision = false,\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n }\n },\n EfsVolumeConfiguration = new EfsVolumeConfiguration {\n FileSystemId = \"fileSystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfig {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n },\n Host = new Host {\n SourcePath = \"sourcePath\"\n }\n } }\n};",
9229 "version": "1"
9230 },
9231 "java": {
9232 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nProxyConfiguration proxyConfiguration;\nRole role;\n\nCommonTaskDefinitionProps commonTaskDefinitionProps = CommonTaskDefinitionProps.builder()\n .executionRole(role)\n .family(\"family\")\n .proxyConfiguration(proxyConfiguration)\n .taskRole(role)\n .volumes(List.of(Volume.builder()\n .name(\"name\")\n\n // the properties below are optional\n .dockerVolumeConfiguration(DockerVolumeConfiguration.builder()\n .driver(\"driver\")\n .scope(Scope.TASK)\n\n // the properties below are optional\n .autoprovision(false)\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .build())\n .efsVolumeConfiguration(EfsVolumeConfiguration.builder()\n .fileSystemId(\"fileSystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfig.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build())\n .host(Host.builder()\n .sourcePath(\"sourcePath\")\n .build())\n .build()))\n .build();",
9233 "version": "1"
9234 },
9235 "go": {
9236 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar proxyConfiguration proxyConfiguration\nvar role role\n\ncommonTaskDefinitionProps := &commonTaskDefinitionProps{\n\texecutionRole: role,\n\tfamily: jsii.String(\"family\"),\n\tproxyConfiguration: proxyConfiguration,\n\ttaskRole: role,\n\tvolumes: []volume{\n\t\t&volume{\n\t\t\tname: jsii.String(\"name\"),\n\n\t\t\t// the properties below are optional\n\t\t\tdockerVolumeConfiguration: &dockerVolumeConfiguration{\n\t\t\t\tdriver: jsii.String(\"driver\"),\n\t\t\t\tscope: ecs.scope_TASK,\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tautoprovision: jsii.Boolean(false),\n\t\t\t\tdriverOpts: map[string]*string{\n\t\t\t\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t\t\t\t},\n\t\t\t\tlabels: map[string]*string{\n\t\t\t\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tefsVolumeConfiguration: &efsVolumeConfiguration{\n\t\t\t\tfileSystemId: jsii.String(\"fileSystemId\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tauthorizationConfig: &authorizationConfig{\n\t\t\t\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\t\t\t\tiam: jsii.String(\"iam\"),\n\t\t\t\t},\n\t\t\t\trootDirectory: jsii.String(\"rootDirectory\"),\n\t\t\t\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\t\t\t\ttransitEncryptionPort: jsii.Number(123),\n\t\t\t},\n\t\t\thost: &host{\n\t\t\t\tsourcePath: jsii.String(\"sourcePath\"),\n\t\t\t},\n\t\t},\n\t},\n}",
9237 "version": "1"
9238 },
9239 "$": {
9240 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const proxyConfiguration: ecs.ProxyConfiguration;\ndeclare const role: iam.Role;\nconst commonTaskDefinitionProps: ecs.CommonTaskDefinitionProps = {\n executionRole: role,\n family: 'family',\n proxyConfiguration: proxyConfiguration,\n taskRole: role,\n volumes: [{\n name: 'name',\n\n // the properties below are optional\n dockerVolumeConfiguration: {\n driver: 'driver',\n scope: ecs.Scope.TASK,\n\n // the properties below are optional\n autoprovision: false,\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n },\n efsVolumeConfiguration: {\n fileSystemId: 'fileSystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n }],\n};",
9241 "version": "0"
9242 }
9243 },
9244 "location": {
9245 "api": {
9246 "api": "type",
9247 "fqn": "@aws-cdk/aws-ecs.CommonTaskDefinitionProps"
9248 },
9249 "field": {
9250 "field": "example"
9251 }
9252 },
9253 "didCompile": true,
9254 "fqnsReferenced": [
9255 "@aws-cdk/aws-ecs.AuthorizationConfig",
9256 "@aws-cdk/aws-ecs.CommonTaskDefinitionProps",
9257 "@aws-cdk/aws-ecs.DockerVolumeConfiguration",
9258 "@aws-cdk/aws-ecs.EfsVolumeConfiguration",
9259 "@aws-cdk/aws-ecs.Host",
9260 "@aws-cdk/aws-ecs.ProxyConfiguration",
9261 "@aws-cdk/aws-ecs.Scope",
9262 "@aws-cdk/aws-ecs.Scope#TASK",
9263 "@aws-cdk/aws-iam.IRole"
9264 ],
9265 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const proxyConfiguration: ecs.ProxyConfiguration;\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst commonTaskDefinitionProps: ecs.CommonTaskDefinitionProps = {\n executionRole: role,\n family: 'family',\n proxyConfiguration: proxyConfiguration,\n taskRole: role,\n volumes: [{\n name: 'name',\n\n // the properties below are optional\n dockerVolumeConfiguration: {\n driver: 'driver',\n scope: ecs.Scope.TASK,\n\n // the properties below are optional\n autoprovision: false,\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n },\n efsVolumeConfiguration: {\n fileSystemId: 'fileSystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9266 "syntaxKindCounter": {
9267 "8": 1,
9268 "10": 13,
9269 "75": 41,
9270 "91": 1,
9271 "130": 2,
9272 "153": 3,
9273 "169": 3,
9274 "192": 1,
9275 "193": 8,
9276 "194": 2,
9277 "225": 3,
9278 "242": 3,
9279 "243": 3,
9280 "254": 2,
9281 "255": 2,
9282 "256": 2,
9283 "281": 24,
9284 "290": 1
9285 },
9286 "fqnsFingerprint": "fb88f827fd4e2631909f7160e627b8fdffefda6d2c86e5d1ce28467d24819616"
9287 },
9288 "a3750479f5769f761144d92cc8ad7c3ee4481f653c3e8706e8722045e21ea790": {
9289 "translations": {
9290 "python": {
9291 "source": "vpc = ec2.Vpc.from_lookup(self, \"Vpc\",\n is_default=True\n)\n\ncluster = ecs.Cluster(self, \"Ec2Cluster\", vpc=vpc)\ncluster.add_capacity(\"DefaultAutoScalingGroup\",\n instance_type=ec2.InstanceType(\"t2.micro\"),\n vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC)\n)\n\ntask_definition = ecs.TaskDefinition(self, \"TD\",\n compatibility=ecs.Compatibility.EC2\n)\n\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"foo/bar\"),\n memory_limit_mi_b=256\n)\n\nrun_task = tasks.EcsRunTask(self, \"Run\",\n integration_pattern=sfn.IntegrationPattern.RUN_JOB,\n cluster=cluster,\n task_definition=task_definition,\n launch_target=tasks.EcsEc2LaunchTarget(\n placement_strategies=[\n ecs.PlacementStrategy.spread_across_instances(),\n ecs.PlacementStrategy.packed_by_cpu(),\n ecs.PlacementStrategy.randomly()\n ],\n placement_constraints=[\n ecs.PlacementConstraint.member_of(\"blieptuut\")\n ]\n )\n)",
9292 "version": "2"
9293 },
9294 "csharp": {
9295 "source": "IVpc vpc = Vpc.FromLookup(this, \"Vpc\", new VpcLookupOptions {\n IsDefault = true\n});\n\nCluster cluster = new Cluster(this, \"Ec2Cluster\", new ClusterProps { Vpc = vpc });\ncluster.AddCapacity(\"DefaultAutoScalingGroup\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.micro\"),\n VpcSubnets = new SubnetSelection { SubnetType = SubnetType.PUBLIC }\n});\n\nTaskDefinition taskDefinition = new TaskDefinition(this, \"TD\", new TaskDefinitionProps {\n Compatibility = Compatibility.EC2\n});\n\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"foo/bar\"),\n MemoryLimitMiB = 256\n});\n\nEcsRunTask runTask = new EcsRunTask(this, \"Run\", new EcsRunTaskProps {\n IntegrationPattern = IntegrationPattern.RUN_JOB,\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n LaunchTarget = new EcsEc2LaunchTarget(new EcsEc2LaunchTargetOptions {\n PlacementStrategies = new [] { PlacementStrategy.SpreadAcrossInstances(), PlacementStrategy.PackedByCpu(), PlacementStrategy.Randomly() },\n PlacementConstraints = new [] { PlacementConstraint.MemberOf(\"blieptuut\") }\n })\n});",
9296 "version": "1"
9297 },
9298 "java": {
9299 "source": "IVpc vpc = Vpc.fromLookup(this, \"Vpc\", VpcLookupOptions.builder()\n .isDefault(true)\n .build());\n\nCluster cluster = Cluster.Builder.create(this, \"Ec2Cluster\").vpc(vpc).build();\ncluster.addCapacity(\"DefaultAutoScalingGroup\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.micro\"))\n .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())\n .build());\n\nTaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TD\")\n .compatibility(Compatibility.EC2)\n .build();\n\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"foo/bar\"))\n .memoryLimitMiB(256)\n .build());\n\nEcsRunTask runTask = EcsRunTask.Builder.create(this, \"Run\")\n .integrationPattern(IntegrationPattern.RUN_JOB)\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .launchTarget(EcsEc2LaunchTarget.Builder.create()\n .placementStrategies(List.of(PlacementStrategy.spreadAcrossInstances(), PlacementStrategy.packedByCpu(), PlacementStrategy.randomly()))\n .placementConstraints(List.of(PlacementConstraint.memberOf(\"blieptuut\")))\n .build())\n .build();",
9300 "version": "1"
9301 },
9302 "go": {
9303 "source": "vpc := ec2.vpc.fromLookup(this, jsii.String(\"Vpc\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Ec2Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroup\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tvpcSubnets: &subnetSelection{\n\t\tsubnetType: ec2.subnetType_PUBLIC,\n\t},\n})\n\ntaskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TD\"), &taskDefinitionProps{\n\tcompatibility: ecs.compatibility_EC2,\n})\n\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"foo/bar\")),\n\tmemoryLimitMiB: jsii.Number(256),\n})\n\nrunTask := tasks.NewEcsRunTask(this, jsii.String(\"Run\"), &ecsRunTaskProps{\n\tintegrationPattern: sfn.integrationPattern_RUN_JOB,\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tlaunchTarget: tasks.NewEcsEc2LaunchTarget(&ecsEc2LaunchTargetOptions{\n\t\tplacementStrategies: []placementStrategy{\n\t\t\tecs.*placementStrategy.spreadAcrossInstances(),\n\t\t\tecs.*placementStrategy.packedByCpu(),\n\t\t\tecs.*placementStrategy.randomly(),\n\t\t},\n\t\tplacementConstraints: []placementConstraint{\n\t\t\tecs.*placementConstraint.memberOf(jsii.String(\"blieptuut\")),\n\t\t},\n\t}),\n})",
9304 "version": "1"
9305 },
9306 "$": {
9307 "source": "const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});",
9308 "version": "0"
9309 }
9310 },
9311 "location": {
9312 "api": {
9313 "api": "type",
9314 "fqn": "@aws-cdk/aws-ecs.Compatibility"
9315 },
9316 "field": {
9317 "field": "example"
9318 }
9319 },
9320 "didCompile": true,
9321 "fqnsReferenced": [
9322 "@aws-cdk/aws-ec2.IVpc",
9323 "@aws-cdk/aws-ec2.InstanceType",
9324 "@aws-cdk/aws-ec2.SubnetSelection",
9325 "@aws-cdk/aws-ec2.SubnetType",
9326 "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
9327 "@aws-cdk/aws-ec2.Vpc",
9328 "@aws-cdk/aws-ec2.Vpc#fromLookup",
9329 "@aws-cdk/aws-ec2.VpcLookupOptions",
9330 "@aws-cdk/aws-ecs.AddCapacityOptions",
9331 "@aws-cdk/aws-ecs.Cluster",
9332 "@aws-cdk/aws-ecs.Cluster#addCapacity",
9333 "@aws-cdk/aws-ecs.ClusterProps",
9334 "@aws-cdk/aws-ecs.Compatibility",
9335 "@aws-cdk/aws-ecs.Compatibility#EC2",
9336 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
9337 "@aws-cdk/aws-ecs.ContainerImage",
9338 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
9339 "@aws-cdk/aws-ecs.ICluster",
9340 "@aws-cdk/aws-ecs.PlacementConstraint",
9341 "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
9342 "@aws-cdk/aws-ecs.PlacementStrategy",
9343 "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
9344 "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
9345 "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
9346 "@aws-cdk/aws-ecs.TaskDefinition",
9347 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
9348 "@aws-cdk/aws-ecs.TaskDefinitionProps",
9349 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
9350 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
9351 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
9352 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
9353 "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
9354 "@aws-cdk/aws-stepfunctions.IntegrationPattern",
9355 "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
9356 "constructs.Construct"
9357 ],
9358 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, Size, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as tasks from '@aws-cdk/aws-stepfunctions-tasks';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9359 "syntaxKindCounter": {
9360 "8": 1,
9361 "10": 9,
9362 "75": 59,
9363 "104": 4,
9364 "106": 1,
9365 "192": 2,
9366 "193": 8,
9367 "194": 25,
9368 "196": 8,
9369 "197": 5,
9370 "225": 4,
9371 "226": 2,
9372 "242": 4,
9373 "243": 4,
9374 "281": 11,
9375 "282": 3
9376 },
9377 "fqnsFingerprint": "7c4cfea5d71f37296088c696c03af6d0292b86c8ee199f3bcfd0cb71632cc12c"
9378 },
9379 "cebacc29d0b155646cd97375a9821359fa1c3315da925bb9da579b3162e3db48": {
9380 "translations": {
9381 "python": {
9382 "source": "# task_definition: ecs.TaskDefinition\n# cluster: ecs.Cluster\n\n\n# Add a container to the task definition\nspecific_container = task_definition.add_container(\"Container\",\n image=ecs.ContainerImage.from_registry(\"/aws/aws-example-app\"),\n memory_limit_mi_b=2048\n)\n\n# Add a port mapping\nspecific_container.add_port_mappings(\n container_port=7600,\n protocol=ecs.Protocol.TCP\n)\n\necs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n cloud_map_options=ecs.CloudMapOptions(\n # Create SRV records - useful for bridge networking\n dns_record_type=cloudmap.DnsRecordType.SRV,\n # Targets port TCP port 7600 `specificContainer`\n container=specific_container,\n container_port=7600\n )\n)",
9383 "version": "2"
9384 },
9385 "csharp": {
9386 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.AddContainer(\"Container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"/aws/aws-example-app\"),\n MemoryLimitMiB = 2048\n});\n\n// Add a port mapping\nspecificContainer.AddPortMappings(new PortMapping {\n ContainerPort = 7600,\n Protocol = Protocol.TCP\n});\n\nnew Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CloudMapOptions = new CloudMapOptions {\n // Create SRV records - useful for bridge networking\n DnsRecordType = DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n Container = specificContainer,\n ContainerPort = 7600\n }\n});",
9387 "version": "1"
9388 },
9389 "java": {
9390 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.addContainer(\"Container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"/aws/aws-example-app\"))\n .memoryLimitMiB(2048)\n .build());\n\n// Add a port mapping\nspecificContainer.addPortMappings(PortMapping.builder()\n .containerPort(7600)\n .protocol(Protocol.TCP)\n .build());\n\nEc2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .cloudMapOptions(CloudMapOptions.builder()\n // Create SRV records - useful for bridge networking\n .dnsRecordType(DnsRecordType.SRV)\n // Targets port TCP port 7600 `specificContainer`\n .container(specificContainer)\n .containerPort(7600)\n .build())\n .build();",
9391 "version": "1"
9392 },
9393 "go": {
9394 "source": "var taskDefinition taskDefinition\nvar cluster cluster\n\n\n// Add a container to the task definition\nspecificContainer := taskDefinition.addContainer(jsii.String(\"Container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"/aws/aws-example-app\")),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\n// Add a port mapping\nspecificContainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(7600),\n\tprotocol: ecs.protocol_TCP,\n})\n\necs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcloudMapOptions: &cloudMapOptions{\n\t\t// Create SRV records - useful for bridge networking\n\t\tdnsRecordType: cloudmap.dnsRecordType_SRV,\n\t\t// Targets port TCP port 7600 `specificContainer`\n\t\tcontainer: specificContainer,\n\t\tcontainerPort: jsii.Number(7600),\n\t},\n})",
9395 "version": "1"
9396 },
9397 "$": {
9398 "source": "declare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});",
9399 "version": "0"
9400 }
9401 },
9402 "location": {
9403 "api": {
9404 "api": "type",
9405 "fqn": "@aws-cdk/aws-ecs.ContainerDefinition"
9406 },
9407 "field": {
9408 "field": "example"
9409 }
9410 },
9411 "didCompile": true,
9412 "fqnsReferenced": [
9413 "@aws-cdk/aws-ecs.CloudMapOptions",
9414 "@aws-cdk/aws-ecs.ContainerDefinition",
9415 "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
9416 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
9417 "@aws-cdk/aws-ecs.ContainerImage",
9418 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
9419 "@aws-cdk/aws-ecs.Ec2Service",
9420 "@aws-cdk/aws-ecs.Ec2ServiceProps",
9421 "@aws-cdk/aws-ecs.ICluster",
9422 "@aws-cdk/aws-ecs.PortMapping",
9423 "@aws-cdk/aws-ecs.Protocol",
9424 "@aws-cdk/aws-ecs.Protocol#TCP",
9425 "@aws-cdk/aws-ecs.TaskDefinition",
9426 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
9427 "@aws-cdk/aws-servicediscovery.DnsRecordType",
9428 "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
9429 "constructs.Construct"
9430 ],
9431 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9432 "syntaxKindCounter": {
9433 "8": 3,
9434 "10": 3,
9435 "75": 33,
9436 "104": 1,
9437 "130": 2,
9438 "153": 2,
9439 "169": 2,
9440 "193": 4,
9441 "194": 9,
9442 "196": 3,
9443 "197": 1,
9444 "225": 3,
9445 "226": 2,
9446 "242": 3,
9447 "243": 3,
9448 "281": 8,
9449 "282": 2,
9450 "290": 1
9451 },
9452 "fqnsFingerprint": "fe47e6d021ce9e021f3af813ab3208dd6bca9a232a8c7409dc2c365505e822ff"
9453 },
9454 "d04750ccbe6bfb9f3062dce7fe41055ee757d82f7860993d4aa5062557c8e3cd": {
9455 "translations": {
9456 "python": {
9457 "source": "# task_definition: ecs.TaskDefinition\n# cluster: ecs.Cluster\n\n\n# Add a container to the task definition\nspecific_container = task_definition.add_container(\"Container\",\n image=ecs.ContainerImage.from_registry(\"/aws/aws-example-app\"),\n memory_limit_mi_b=2048\n)\n\n# Add a port mapping\nspecific_container.add_port_mappings(\n container_port=7600,\n protocol=ecs.Protocol.TCP\n)\n\necs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n cloud_map_options=ecs.CloudMapOptions(\n # Create SRV records - useful for bridge networking\n dns_record_type=cloudmap.DnsRecordType.SRV,\n # Targets port TCP port 7600 `specificContainer`\n container=specific_container,\n container_port=7600\n )\n)",
9458 "version": "2"
9459 },
9460 "csharp": {
9461 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.AddContainer(\"Container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"/aws/aws-example-app\"),\n MemoryLimitMiB = 2048\n});\n\n// Add a port mapping\nspecificContainer.AddPortMappings(new PortMapping {\n ContainerPort = 7600,\n Protocol = Protocol.TCP\n});\n\nnew Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CloudMapOptions = new CloudMapOptions {\n // Create SRV records - useful for bridge networking\n DnsRecordType = DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n Container = specificContainer,\n ContainerPort = 7600\n }\n});",
9462 "version": "1"
9463 },
9464 "java": {
9465 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.addContainer(\"Container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"/aws/aws-example-app\"))\n .memoryLimitMiB(2048)\n .build());\n\n// Add a port mapping\nspecificContainer.addPortMappings(PortMapping.builder()\n .containerPort(7600)\n .protocol(Protocol.TCP)\n .build());\n\nEc2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .cloudMapOptions(CloudMapOptions.builder()\n // Create SRV records - useful for bridge networking\n .dnsRecordType(DnsRecordType.SRV)\n // Targets port TCP port 7600 `specificContainer`\n .container(specificContainer)\n .containerPort(7600)\n .build())\n .build();",
9466 "version": "1"
9467 },
9468 "go": {
9469 "source": "var taskDefinition taskDefinition\nvar cluster cluster\n\n\n// Add a container to the task definition\nspecificContainer := taskDefinition.addContainer(jsii.String(\"Container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"/aws/aws-example-app\")),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\n// Add a port mapping\nspecificContainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(7600),\n\tprotocol: ecs.protocol_TCP,\n})\n\necs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcloudMapOptions: &cloudMapOptions{\n\t\t// Create SRV records - useful for bridge networking\n\t\tdnsRecordType: cloudmap.dnsRecordType_SRV,\n\t\t// Targets port TCP port 7600 `specificContainer`\n\t\tcontainer: specificContainer,\n\t\tcontainerPort: jsii.Number(7600),\n\t},\n})",
9470 "version": "1"
9471 },
9472 "$": {
9473 "source": "declare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});",
9474 "version": "0"
9475 }
9476 },
9477 "location": {
9478 "api": {
9479 "api": "type",
9480 "fqn": "@aws-cdk/aws-ecs.ContainerDefinitionOptions"
9481 },
9482 "field": {
9483 "field": "example"
9484 }
9485 },
9486 "didCompile": true,
9487 "fqnsReferenced": [
9488 "@aws-cdk/aws-ecs.CloudMapOptions",
9489 "@aws-cdk/aws-ecs.ContainerDefinition",
9490 "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
9491 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
9492 "@aws-cdk/aws-ecs.ContainerImage",
9493 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
9494 "@aws-cdk/aws-ecs.Ec2Service",
9495 "@aws-cdk/aws-ecs.Ec2ServiceProps",
9496 "@aws-cdk/aws-ecs.ICluster",
9497 "@aws-cdk/aws-ecs.PortMapping",
9498 "@aws-cdk/aws-ecs.Protocol",
9499 "@aws-cdk/aws-ecs.Protocol#TCP",
9500 "@aws-cdk/aws-ecs.TaskDefinition",
9501 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
9502 "@aws-cdk/aws-servicediscovery.DnsRecordType",
9503 "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
9504 "constructs.Construct"
9505 ],
9506 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9507 "syntaxKindCounter": {
9508 "8": 3,
9509 "10": 3,
9510 "75": 33,
9511 "104": 1,
9512 "130": 2,
9513 "153": 2,
9514 "169": 2,
9515 "193": 4,
9516 "194": 9,
9517 "196": 3,
9518 "197": 1,
9519 "225": 3,
9520 "226": 2,
9521 "242": 3,
9522 "243": 3,
9523 "281": 8,
9524 "282": 2,
9525 "290": 1
9526 },
9527 "fqnsFingerprint": "fe47e6d021ce9e021f3af813ab3208dd6bca9a232a8c7409dc2c365505e822ff"
9528 },
9529 "75a4ca9e00176445eef021ba73866b0be6f2e84888d938530c4044086bc08101": {
9530 "translations": {
9531 "python": {
9532 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# container_image: ecs.ContainerImage\n# environment_file: ecs.EnvironmentFile\n# linux_parameters: ecs.LinuxParameters\n# log_driver: ecs.LogDriver\n# secret: ecs.Secret\n# task_definition: ecs.TaskDefinition\n\ncontainer_definition_props = ecs.ContainerDefinitionProps(\n image=container_image,\n task_definition=task_definition,\n\n # the properties below are optional\n command=[\"command\"],\n container_name=\"containerName\",\n cpu=123,\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment={\n \"environment_key\": \"environment\"\n },\n environment_files=[environment_file],\n essential=False,\n extra_hosts={\n \"extra_hosts_key\": \"extraHosts\"\n },\n gpu_count=123,\n health_check=ecs.HealthCheck(\n command=[\"command\"],\n\n # the properties below are optional\n interval=cdk.Duration.minutes(30),\n retries=123,\n start_period=cdk.Duration.minutes(30),\n timeout=cdk.Duration.minutes(30)\n ),\n hostname=\"hostname\",\n inference_accelerator_resources=[\"inferenceAcceleratorResources\"],\n linux_parameters=linux_parameters,\n logging=log_driver,\n memory_limit_mi_b=123,\n memory_reservation_mi_b=123,\n port_mappings=[ecs.PortMapping(\n container_port=123,\n\n # the properties below are optional\n host_port=123,\n protocol=ecs.Protocol.TCP\n )],\n privileged=False,\n readonly_root_filesystem=False,\n secrets={\n \"secrets_key\": secret\n },\n start_timeout=cdk.Duration.minutes(30),\n stop_timeout=cdk.Duration.minutes(30),\n system_controls=[ecs.SystemControl(\n namespace=\"namespace\",\n value=\"value\"\n )],\n user=\"user\",\n working_directory=\"workingDirectory\"\n)",
9533 "version": "2"
9534 },
9535 "csharp": {
9536 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nTaskDefinition taskDefinition;\nContainerDefinitionProps containerDefinitionProps = new ContainerDefinitionProps {\n Image = containerImage,\n TaskDefinition = taskDefinition,\n\n // the properties below are optional\n Command = new [] { \"command\" },\n ContainerName = \"containerName\",\n Cpu = 123,\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new Dictionary<string, string> {\n { \"environmentKey\", \"environment\" }\n },\n EnvironmentFiles = new [] { environmentFile },\n Essential = false,\n ExtraHosts = new Dictionary<string, string> {\n { \"extraHostsKey\", \"extraHosts\" }\n },\n GpuCount = 123,\n HealthCheck = new HealthCheck {\n Command = new [] { \"command\" },\n\n // the properties below are optional\n Interval = Duration.Minutes(30),\n Retries = 123,\n StartPeriod = Duration.Minutes(30),\n Timeout = Duration.Minutes(30)\n },\n Hostname = \"hostname\",\n InferenceAcceleratorResources = new [] { \"inferenceAcceleratorResources\" },\n LinuxParameters = linuxParameters,\n Logging = logDriver,\n MemoryLimitMiB = 123,\n MemoryReservationMiB = 123,\n PortMappings = new [] { new PortMapping {\n ContainerPort = 123,\n\n // the properties below are optional\n HostPort = 123,\n Protocol = Protocol.TCP\n } },\n Privileged = false,\n ReadonlyRootFilesystem = false,\n Secrets = new Dictionary<string, Secret> {\n { \"secretsKey\", secret }\n },\n StartTimeout = Duration.Minutes(30),\n StopTimeout = Duration.Minutes(30),\n SystemControls = new [] { new SystemControl {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n User = \"user\",\n WorkingDirectory = \"workingDirectory\"\n};",
9537 "version": "1"
9538 },
9539 "java": {
9540 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nTaskDefinition taskDefinition;\n\nContainerDefinitionProps containerDefinitionProps = ContainerDefinitionProps.builder()\n .image(containerImage)\n .taskDefinition(taskDefinition)\n\n // the properties below are optional\n .command(List.of(\"command\"))\n .containerName(\"containerName\")\n .cpu(123)\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(Map.of(\n \"environmentKey\", \"environment\"))\n .environmentFiles(List.of(environmentFile))\n .essential(false)\n .extraHosts(Map.of(\n \"extraHostsKey\", \"extraHosts\"))\n .gpuCount(123)\n .healthCheck(HealthCheck.builder()\n .command(List.of(\"command\"))\n\n // the properties below are optional\n .interval(Duration.minutes(30))\n .retries(123)\n .startPeriod(Duration.minutes(30))\n .timeout(Duration.minutes(30))\n .build())\n .hostname(\"hostname\")\n .inferenceAcceleratorResources(List.of(\"inferenceAcceleratorResources\"))\n .linuxParameters(linuxParameters)\n .logging(logDriver)\n .memoryLimitMiB(123)\n .memoryReservationMiB(123)\n .portMappings(List.of(PortMapping.builder()\n .containerPort(123)\n\n // the properties below are optional\n .hostPort(123)\n .protocol(Protocol.TCP)\n .build()))\n .privileged(false)\n .readonlyRootFilesystem(false)\n .secrets(Map.of(\n \"secretsKey\", secret))\n .startTimeout(Duration.minutes(30))\n .stopTimeout(Duration.minutes(30))\n .systemControls(List.of(SystemControl.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .user(\"user\")\n .workingDirectory(\"workingDirectory\")\n .build();",
9541 "version": "1"
9542 },
9543 "go": {
9544 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar containerImage containerImage\nvar environmentFile environmentFile\nvar linuxParameters linuxParameters\nvar logDriver logDriver\nvar secret secret\nvar taskDefinition taskDefinition\n\ncontainerDefinitionProps := &containerDefinitionProps{\n\timage: containerImage,\n\ttaskDefinition: taskDefinition,\n\n\t// the properties below are optional\n\tcommand: []*string{\n\t\tjsii.String(\"command\"),\n\t},\n\tcontainerName: jsii.String(\"containerName\"),\n\tcpu: jsii.Number(123),\n\tdisableNetworking: jsii.Boolean(false),\n\tdnsSearchDomains: []*string{\n\t\tjsii.String(\"dnsSearchDomains\"),\n\t},\n\tdnsServers: []*string{\n\t\tjsii.String(\"dnsServers\"),\n\t},\n\tdockerLabels: map[string]*string{\n\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t},\n\tdockerSecurityOptions: []*string{\n\t\tjsii.String(\"dockerSecurityOptions\"),\n\t},\n\tentryPoint: []*string{\n\t\tjsii.String(\"entryPoint\"),\n\t},\n\tenvironment: map[string]*string{\n\t\t\"environmentKey\": jsii.String(\"environment\"),\n\t},\n\tenvironmentFiles: []*environmentFile{\n\t\tenvironmentFile,\n\t},\n\tessential: jsii.Boolean(false),\n\textraHosts: map[string]*string{\n\t\t\"extraHostsKey\": jsii.String(\"extraHosts\"),\n\t},\n\tgpuCount: jsii.Number(123),\n\thealthCheck: &healthCheck{\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"command\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tinterval: cdk.duration.minutes(jsii.Number(30)),\n\t\tretries: jsii.Number(123),\n\t\tstartPeriod: cdk.*duration.minutes(jsii.Number(30)),\n\t\ttimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t},\n\thostname: jsii.String(\"hostname\"),\n\tinferenceAcceleratorResources: []*string{\n\t\tjsii.String(\"inferenceAcceleratorResources\"),\n\t},\n\tlinuxParameters: linuxParameters,\n\tlogging: logDriver,\n\tmemoryLimitMiB: jsii.Number(123),\n\tmemoryReservationMiB: jsii.Number(123),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\thostPort: jsii.Number(123),\n\t\t\tprotocol: ecs.protocol_TCP,\n\t\t},\n\t},\n\tprivileged: jsii.Boolean(false),\n\treadonlyRootFilesystem: jsii.Boolean(false),\n\tsecrets: map[string]*secret{\n\t\t\"secretsKey\": secret,\n\t},\n\tstartTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tstopTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tsystemControls: []systemControl{\n\t\t&systemControl{\n\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tuser: jsii.String(\"user\"),\n\tworkingDirectory: jsii.String(\"workingDirectory\"),\n}",
9545 "version": "1"
9546 },
9547 "$": {
9548 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\ndeclare const taskDefinition: ecs.TaskDefinition;\nconst containerDefinitionProps: ecs.ContainerDefinitionProps = {\n image: containerImage,\n taskDefinition: taskDefinition,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n};",
9549 "version": "0"
9550 }
9551 },
9552 "location": {
9553 "api": {
9554 "api": "type",
9555 "fqn": "@aws-cdk/aws-ecs.ContainerDefinitionProps"
9556 },
9557 "field": {
9558 "field": "example"
9559 }
9560 },
9561 "didCompile": true,
9562 "fqnsReferenced": [
9563 "@aws-cdk/aws-ecs.ContainerDefinitionProps",
9564 "@aws-cdk/aws-ecs.ContainerImage",
9565 "@aws-cdk/aws-ecs.HealthCheck",
9566 "@aws-cdk/aws-ecs.LinuxParameters",
9567 "@aws-cdk/aws-ecs.LogDriver",
9568 "@aws-cdk/aws-ecs.Protocol",
9569 "@aws-cdk/aws-ecs.Protocol#TCP",
9570 "@aws-cdk/aws-ecs.Secret",
9571 "@aws-cdk/aws-ecs.TaskDefinition",
9572 "@aws-cdk/core.Duration",
9573 "@aws-cdk/core.Duration#minutes"
9574 ],
9575 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst containerDefinitionProps: ecs.ContainerDefinitionProps = {\n image: containerImage,\n taskDefinition: taskDefinition,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9576 "syntaxKindCounter": {
9577 "8": 12,
9578 "10": 18,
9579 "75": 93,
9580 "91": 4,
9581 "130": 6,
9582 "153": 7,
9583 "169": 7,
9584 "192": 10,
9585 "193": 8,
9586 "194": 12,
9587 "196": 5,
9588 "225": 7,
9589 "242": 7,
9590 "243": 7,
9591 "254": 2,
9592 "255": 2,
9593 "256": 2,
9594 "281": 46,
9595 "290": 1
9596 },
9597 "fqnsFingerprint": "4db448b231ef2d15d6699bce0e61cb8ccbe2177bb7344f663e016e026f32db54"
9598 },
9599 "3b93f6b2c41b19c22c905d02d68598b1d536f8408fd3a4fed1725870c8a874da": {
9600 "translations": {
9601 "python": {
9602 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\n# container_definition: ecs.ContainerDefinition\n\ncontainer_dependency = ecs.ContainerDependency(\n container=container_definition,\n\n # the properties below are optional\n condition=ecs.ContainerDependencyCondition.START\n)",
9603 "version": "2"
9604 },
9605 "csharp": {
9606 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nContainerDefinition containerDefinition;\n\nContainerDependency containerDependency = new ContainerDependency {\n Container = containerDefinition,\n\n // the properties below are optional\n Condition = ContainerDependencyCondition.START\n};",
9607 "version": "1"
9608 },
9609 "java": {
9610 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nContainerDefinition containerDefinition;\n\nContainerDependency containerDependency = ContainerDependency.builder()\n .container(containerDefinition)\n\n // the properties below are optional\n .condition(ContainerDependencyCondition.START)\n .build();",
9611 "version": "1"
9612 },
9613 "go": {
9614 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvar containerDefinition containerDefinition\n\ncontainerDependency := &containerDependency{\n\tcontainer: containerDefinition,\n\n\t// the properties below are optional\n\tcondition: ecs.containerDependencyCondition_START,\n}",
9615 "version": "1"
9616 },
9617 "$": {
9618 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const containerDefinition: ecs.ContainerDefinition;\nconst containerDependency: ecs.ContainerDependency = {\n container: containerDefinition,\n\n // the properties below are optional\n condition: ecs.ContainerDependencyCondition.START,\n};",
9619 "version": "0"
9620 }
9621 },
9622 "location": {
9623 "api": {
9624 "api": "type",
9625 "fqn": "@aws-cdk/aws-ecs.ContainerDependency"
9626 },
9627 "field": {
9628 "field": "example"
9629 }
9630 },
9631 "didCompile": true,
9632 "fqnsReferenced": [
9633 "@aws-cdk/aws-ecs.ContainerDefinition",
9634 "@aws-cdk/aws-ecs.ContainerDependency",
9635 "@aws-cdk/aws-ecs.ContainerDependencyCondition",
9636 "@aws-cdk/aws-ecs.ContainerDependencyCondition#START"
9637 ],
9638 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const containerDefinition: ecs.ContainerDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst containerDependency: ecs.ContainerDependency = {\n container: containerDefinition,\n\n // the properties below are optional\n condition: ecs.ContainerDependencyCondition.START,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9639 "syntaxKindCounter": {
9640 "10": 1,
9641 "75": 13,
9642 "130": 1,
9643 "153": 2,
9644 "169": 2,
9645 "193": 1,
9646 "194": 2,
9647 "225": 2,
9648 "242": 2,
9649 "243": 2,
9650 "254": 1,
9651 "255": 1,
9652 "256": 1,
9653 "281": 2,
9654 "290": 1
9655 },
9656 "fqnsFingerprint": "4fd9c1ab50586e235396e497938fe485ba753382c24ba9a5f3975f306b1496df"
9657 },
9658 "72f0855afa22e04897cfdfb195c64da0939648cbb3bcd7a73e259d6470301912": {
9659 "translations": {
9660 "python": {
9661 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"FargateCPCluster\",\n vpc=vpc,\n enable_fargate_capacity_providers=True\n)\n\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\")\n\ntask_definition.add_container(\"web\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n)\n\necs.FargateService(self, \"FargateService\",\n cluster=cluster,\n task_definition=task_definition,\n capacity_provider_strategies=[ecs.CapacityProviderStrategy(\n capacity_provider=\"FARGATE_SPOT\",\n weight=2\n ), ecs.CapacityProviderStrategy(\n capacity_provider=\"FARGATE\",\n weight=1\n )\n ]\n)",
9662 "version": "2"
9663 },
9664 "csharp": {
9665 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"FargateCPCluster\", new ClusterProps {\n Vpc = vpc,\n EnableFargateCapacityProviders = true\n});\n\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.AddContainer(\"web\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n});\n\nnew FargateService(this, \"FargateService\", new FargateServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CapacityProviderStrategies = new [] { new CapacityProviderStrategy {\n CapacityProvider = \"FARGATE_SPOT\",\n Weight = 2\n }, new CapacityProviderStrategy {\n CapacityProvider = \"FARGATE\",\n Weight = 1\n } }\n});",
9666 "version": "1"
9667 },
9668 "java": {
9669 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"FargateCPCluster\")\n .vpc(vpc)\n .enableFargateCapacityProviders(true)\n .build();\n\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\");\n\ntaskDefinition.addContainer(\"web\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build());\n\nFargateService.Builder.create(this, \"FargateService\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .capacityProviderStrategies(List.of(CapacityProviderStrategy.builder()\n .capacityProvider(\"FARGATE_SPOT\")\n .weight(2)\n .build(), CapacityProviderStrategy.builder()\n .capacityProvider(\"FARGATE\")\n .weight(1)\n .build()))\n .build();",
9670 "version": "1"
9671 },
9672 "go": {
9673 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"FargateCPCluster\"), &clusterProps{\n\tvpc: vpc,\n\tenableFargateCapacityProviders: jsii.Boolean(true),\n})\n\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"))\n\ntaskDefinition.addContainer(jsii.String(\"web\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n})\n\necs.NewFargateService(this, jsii.String(\"FargateService\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcapacityProviderStrategies: []capacityProviderStrategy{\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: jsii.String(\"FARGATE_SPOT\"),\n\t\t\tweight: jsii.Number(2),\n\t\t},\n\t\t&capacityProviderStrategy{\n\t\t\tcapacityProvider: jsii.String(\"FARGATE\"),\n\t\t\tweight: jsii.Number(1),\n\t\t},\n\t},\n})",
9674 "version": "1"
9675 },
9676 "$": {
9677 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'FargateCPCluster', {\n vpc,\n enableFargateCapacityProviders: true,\n});\n\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n});\n\nnew ecs.FargateService(this, 'FargateService', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: 'FARGATE_SPOT',\n weight: 2,\n },\n {\n capacityProvider: 'FARGATE',\n weight: 1,\n },\n ],\n});",
9678 "version": "0"
9679 }
9680 },
9681 "location": {
9682 "api": {
9683 "api": "type",
9684 "fqn": "@aws-cdk/aws-ecs.ContainerImage"
9685 },
9686 "field": {
9687 "field": "example"
9688 }
9689 },
9690 "didCompile": true,
9691 "fqnsReferenced": [
9692 "@aws-cdk/aws-ec2.IVpc",
9693 "@aws-cdk/aws-ecs.Cluster",
9694 "@aws-cdk/aws-ecs.ClusterProps",
9695 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
9696 "@aws-cdk/aws-ecs.ContainerImage",
9697 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
9698 "@aws-cdk/aws-ecs.FargateService",
9699 "@aws-cdk/aws-ecs.FargateServiceProps",
9700 "@aws-cdk/aws-ecs.FargateTaskDefinition",
9701 "@aws-cdk/aws-ecs.ICluster",
9702 "@aws-cdk/aws-ecs.TaskDefinition",
9703 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
9704 "constructs.Construct"
9705 ],
9706 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'FargateCPCluster', {\n vpc,\n enableFargateCapacityProviders: true,\n});\n\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef');\n\ntaskDefinition.addContainer('web', {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n});\n\nnew ecs.FargateService(this, 'FargateService', {\n cluster,\n taskDefinition,\n capacityProviderStrategies: [\n {\n capacityProvider: 'FARGATE_SPOT',\n weight: 2,\n },\n {\n capacityProvider: 'FARGATE',\n weight: 1,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9707 "syntaxKindCounter": {
9708 "8": 2,
9709 "10": 7,
9710 "75": 26,
9711 "104": 3,
9712 "106": 1,
9713 "130": 1,
9714 "153": 1,
9715 "169": 1,
9716 "192": 1,
9717 "193": 5,
9718 "194": 6,
9719 "196": 2,
9720 "197": 3,
9721 "225": 3,
9722 "226": 2,
9723 "242": 3,
9724 "243": 3,
9725 "281": 7,
9726 "282": 3,
9727 "290": 1
9728 },
9729 "fqnsFingerprint": "cec890d50776a6452e6f34332d9f602e814b27dfb9186ac60d2a4f8662da4448"
9730 },
9731 "2b00aea382f7ac3cf035029a7a0ec0965ef1a040d30040e7adb589e820206140": {
9732 "translations": {
9733 "python": {
9734 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ncontainer_image_config = ecs.ContainerImageConfig(\n image_name=\"imageName\",\n\n # the properties below are optional\n repository_credentials=ecs.CfnTaskDefinition.RepositoryCredentialsProperty(\n credentials_parameter=\"credentialsParameter\"\n )\n)",
9735 "version": "2"
9736 },
9737 "csharp": {
9738 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nContainerImageConfig containerImageConfig = new ContainerImageConfig {\n ImageName = \"imageName\",\n\n // the properties below are optional\n RepositoryCredentials = new RepositoryCredentialsProperty {\n CredentialsParameter = \"credentialsParameter\"\n }\n};",
9739 "version": "1"
9740 },
9741 "java": {
9742 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nContainerImageConfig containerImageConfig = ContainerImageConfig.builder()\n .imageName(\"imageName\")\n\n // the properties below are optional\n .repositoryCredentials(RepositoryCredentialsProperty.builder()\n .credentialsParameter(\"credentialsParameter\")\n .build())\n .build();",
9743 "version": "1"
9744 },
9745 "go": {
9746 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ncontainerImageConfig := &containerImageConfig{\n\timageName: jsii.String(\"imageName\"),\n\n\t// the properties below are optional\n\trepositoryCredentials: &repositoryCredentialsProperty{\n\t\tcredentialsParameter: jsii.String(\"credentialsParameter\"),\n\t},\n}",
9747 "version": "1"
9748 },
9749 "$": {
9750 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst containerImageConfig: ecs.ContainerImageConfig = {\n imageName: 'imageName',\n\n // the properties below are optional\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n};",
9751 "version": "0"
9752 }
9753 },
9754 "location": {
9755 "api": {
9756 "api": "type",
9757 "fqn": "@aws-cdk/aws-ecs.ContainerImageConfig"
9758 },
9759 "field": {
9760 "field": "example"
9761 }
9762 },
9763 "didCompile": true,
9764 "fqnsReferenced": [
9765 "@aws-cdk/aws-ecs.CfnTaskDefinition.RepositoryCredentialsProperty",
9766 "@aws-cdk/aws-ecs.ContainerImageConfig"
9767 ],
9768 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst containerImageConfig: ecs.ContainerImageConfig = {\n imageName: 'imageName',\n\n // the properties below are optional\n repositoryCredentials: {\n credentialsParameter: 'credentialsParameter',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9769 "syntaxKindCounter": {
9770 "10": 3,
9771 "75": 7,
9772 "153": 1,
9773 "169": 1,
9774 "193": 2,
9775 "225": 1,
9776 "242": 1,
9777 "243": 1,
9778 "254": 1,
9779 "255": 1,
9780 "256": 1,
9781 "281": 3,
9782 "290": 1
9783 },
9784 "fqnsFingerprint": "a5cd6bb2234df650cbff0a316d9e41cb6669e414591141e073d90f64a3aeff32"
9785 },
9786 "97608df19b94ac81752da2454976ba8454019ab0608cc2cb33d4b8f225b15433": {
9787 "translations": {
9788 "python": {
9789 "source": "# Create a Task Definition for the Windows container to start\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n runtime_platform=ecs.RuntimePlatform(\n operating_system_family=ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpu_architecture=ecs.CpuArchitecture.X86_64\n ),\n cpu=1024,\n memory_limit_mi_b=2048\n)\n\ntask_definition.add_container(\"windowsservercore\",\n logging=ecs.LogDriver.aws_logs(stream_prefix=\"win-iis-on-fargate\"),\n port_mappings=[ecs.PortMapping(container_port=80)],\n image=ecs.ContainerImage.from_registry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n)",
9790 "version": "2"
9791 },
9792 "csharp": {
9793 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n RuntimePlatform = new RuntimePlatform {\n OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n CpuArchitecture = CpuArchitecture.X86_64\n },\n Cpu = 1024,\n MemoryLimitMiB = 2048\n});\n\ntaskDefinition.AddContainer(\"windowsservercore\", new ContainerDefinitionOptions {\n Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"win-iis-on-fargate\" }),\n PortMappings = new [] { new PortMapping { ContainerPort = 80 } },\n Image = ContainerImage.FromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n});",
9794 "version": "1"
9795 },
9796 "java": {
9797 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .runtimePlatform(RuntimePlatform.builder()\n .operatingSystemFamily(OperatingSystemFamily.WINDOWS_SERVER_2019_CORE)\n .cpuArchitecture(CpuArchitecture.X86_64)\n .build())\n .cpu(1024)\n .memoryLimitMiB(2048)\n .build();\n\ntaskDefinition.addContainer(\"windowsservercore\", ContainerDefinitionOptions.builder()\n .logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"win-iis-on-fargate\").build()))\n .portMappings(List.of(PortMapping.builder().containerPort(80).build()))\n .image(ContainerImage.fromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\"))\n .build());",
9798 "version": "1"
9799 },
9800 "go": {
9801 "source": "// Create a Task Definition for the Windows container to start\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\truntimePlatform: &runtimePlatform{\n\t\toperatingSystemFamily: ecs.operatingSystemFamily_WINDOWS_SERVER_2019_CORE(),\n\t\tcpuArchitecture: ecs.cpuArchitecture_X86_64(),\n\t},\n\tcpu: jsii.Number(1024),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\ntaskDefinition.addContainer(jsii.String(\"windowsservercore\"), &containerDefinitionOptions{\n\tlogging: ecs.logDriver.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"win-iis-on-fargate\"),\n\t}),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(80),\n\t\t},\n\t},\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")),\n})",
9802 "version": "1"
9803 },
9804 "$": {
9805 "source": "// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});",
9806 "version": "0"
9807 }
9808 },
9809 "location": {
9810 "api": {
9811 "api": "type",
9812 "fqn": "@aws-cdk/aws-ecs.CpuArchitecture"
9813 },
9814 "field": {
9815 "field": "example"
9816 }
9817 },
9818 "didCompile": true,
9819 "fqnsReferenced": [
9820 "@aws-cdk/aws-ecs.AwsLogDriverProps",
9821 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
9822 "@aws-cdk/aws-ecs.ContainerImage",
9823 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
9824 "@aws-cdk/aws-ecs.CpuArchitecture",
9825 "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
9826 "@aws-cdk/aws-ecs.FargateTaskDefinition",
9827 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
9828 "@aws-cdk/aws-ecs.LogDriver",
9829 "@aws-cdk/aws-ecs.LogDriver#awsLogs",
9830 "@aws-cdk/aws-ecs.OperatingSystemFamily",
9831 "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
9832 "@aws-cdk/aws-ecs.RuntimePlatform",
9833 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
9834 "constructs.Construct"
9835 ],
9836 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9837 "syntaxKindCounter": {
9838 "8": 3,
9839 "10": 4,
9840 "75": 27,
9841 "104": 1,
9842 "192": 1,
9843 "193": 5,
9844 "194": 10,
9845 "196": 3,
9846 "197": 1,
9847 "225": 1,
9848 "226": 1,
9849 "242": 1,
9850 "243": 1,
9851 "281": 10
9852 },
9853 "fqnsFingerprint": "d670aad91d3b8aaae82769324f3a2f855bbb99ef3ac45066fc4e9e4f6aae906d"
9854 },
9855 "098b10291fb0eff7bc41bb825922a1670788d3b6faa872bd1db18f506dd571c8": {
9856 "translations": {
9857 "python": {
9858 "source": "# target: elbv2.ApplicationTargetGroup\n# service: ecs.BaseService\n\nscaling = service.auto_scale_task_count(max_capacity=10)\nscaling.scale_on_cpu_utilization(\"CpuScaling\",\n target_utilization_percent=50\n)\n\nscaling.scale_on_request_count(\"RequestScaling\",\n requests_per_target=10000,\n target_group=target\n)",
9859 "version": "2"
9860 },
9861 "csharp": {
9862 "source": "ApplicationTargetGroup target;\nBaseService service;\n\nScalableTaskCount scaling = service.AutoScaleTaskCount(new EnableScalingProps { MaxCapacity = 10 });\nscaling.ScaleOnCpuUtilization(\"CpuScaling\", new CpuUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});\n\nscaling.ScaleOnRequestCount(\"RequestScaling\", new RequestCountScalingProps {\n RequestsPerTarget = 10000,\n TargetGroup = target\n});",
9863 "version": "1"
9864 },
9865 "java": {
9866 "source": "ApplicationTargetGroup target;\nBaseService service;\n\nScalableTaskCount scaling = service.autoScaleTaskCount(EnableScalingProps.builder().maxCapacity(10).build());\nscaling.scaleOnCpuUtilization(\"CpuScaling\", CpuUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());\n\nscaling.scaleOnRequestCount(\"RequestScaling\", RequestCountScalingProps.builder()\n .requestsPerTarget(10000)\n .targetGroup(target)\n .build());",
9867 "version": "1"
9868 },
9869 "go": {
9870 "source": "var target applicationTargetGroup\nvar service baseService\n\nscaling := service.autoScaleTaskCount(&enableScalingProps{\n\tmaxCapacity: jsii.Number(10),\n})\nscaling.scaleOnCpuUtilization(jsii.String(\"CpuScaling\"), &cpuUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})\n\nscaling.scaleOnRequestCount(jsii.String(\"RequestScaling\"), &requestCountScalingProps{\n\trequestsPerTarget: jsii.Number(10000),\n\ttargetGroup: target,\n})",
9871 "version": "1"
9872 },
9873 "$": {
9874 "source": "declare const target: elbv2.ApplicationTargetGroup;\ndeclare const service: ecs.BaseService;\nconst scaling = service.autoScaleTaskCount({ maxCapacity: 10 });\nscaling.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscaling.scaleOnRequestCount('RequestScaling', {\n requestsPerTarget: 10000,\n targetGroup: target,\n});",
9875 "version": "0"
9876 }
9877 },
9878 "location": {
9879 "api": {
9880 "api": "type",
9881 "fqn": "@aws-cdk/aws-ecs.CpuUtilizationScalingProps"
9882 },
9883 "field": {
9884 "field": "example"
9885 }
9886 },
9887 "didCompile": true,
9888 "fqnsReferenced": [
9889 "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
9890 "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
9891 "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
9892 "@aws-cdk/aws-ecs.RequestCountScalingProps",
9893 "@aws-cdk/aws-ecs.ScalableTaskCount",
9894 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
9895 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnRequestCount",
9896 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup"
9897 ],
9898 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const target: elbv2.ApplicationTargetGroup;\ndeclare const service: ecs.BaseService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst scaling = service.autoScaleTaskCount({ maxCapacity: 10 });\nscaling.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscaling.scaleOnRequestCount('RequestScaling', {\n requestsPerTarget: 10000,\n targetGroup: target,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9899 "syntaxKindCounter": {
9900 "8": 3,
9901 "10": 2,
9902 "75": 18,
9903 "130": 2,
9904 "153": 2,
9905 "169": 2,
9906 "193": 3,
9907 "194": 3,
9908 "196": 3,
9909 "225": 3,
9910 "226": 2,
9911 "242": 3,
9912 "243": 3,
9913 "281": 4,
9914 "290": 1
9915 },
9916 "fqnsFingerprint": "f8cccbe970f5760a364762f8c8835c35ec0f1d170fe848eb3db54b0d1653a5d2"
9917 },
9918 "4c85abdefa398d8cdab8652b6bb51da1d6eb5b4796d82305036c9d0b0f7354d8": {
9919 "translations": {
9920 "python": {
9921 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\nservice = ecs.FargateService(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n circuit_breaker=ecs.DeploymentCircuitBreaker(rollback=True)\n)",
9922 "version": "2"
9923 },
9924 "csharp": {
9925 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CircuitBreaker = new DeploymentCircuitBreaker { Rollback = true }\n});",
9926 "version": "1"
9927 },
9928 "java": {
9929 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\nFargateService service = FargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .circuitBreaker(DeploymentCircuitBreaker.builder().rollback(true).build())\n .build();",
9930 "version": "1"
9931 },
9932 "go": {
9933 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcircuitBreaker: &deploymentCircuitBreaker{\n\t\trollback: jsii.Boolean(true),\n\t},\n})",
9934 "version": "1"
9935 },
9936 "$": {
9937 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\nconst service = new ecs.FargateService(this, 'Service', {\n cluster,\n taskDefinition,\n circuitBreaker: { rollback: true },\n});",
9938 "version": "0"
9939 }
9940 },
9941 "location": {
9942 "api": {
9943 "api": "type",
9944 "fqn": "@aws-cdk/aws-ecs.DeploymentCircuitBreaker"
9945 },
9946 "field": {
9947 "field": "example"
9948 }
9949 },
9950 "didCompile": true,
9951 "fqnsReferenced": [
9952 "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
9953 "@aws-cdk/aws-ecs.FargateService",
9954 "@aws-cdk/aws-ecs.FargateServiceProps",
9955 "@aws-cdk/aws-ecs.ICluster",
9956 "@aws-cdk/aws-ecs.TaskDefinition",
9957 "constructs.Construct"
9958 ],
9959 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', {\n cluster,\n taskDefinition,\n circuitBreaker: { rollback: true },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9960 "syntaxKindCounter": {
9961 "10": 1,
9962 "75": 13,
9963 "104": 1,
9964 "106": 1,
9965 "130": 2,
9966 "153": 2,
9967 "169": 2,
9968 "193": 2,
9969 "194": 1,
9970 "197": 1,
9971 "225": 3,
9972 "242": 3,
9973 "243": 3,
9974 "281": 2,
9975 "282": 2,
9976 "290": 1
9977 },
9978 "fqnsFingerprint": "d444c7d840f88eee81c523b9e752f104ec2a6662e0de7830c945aa3a5d8f1686"
9979 },
9980 "a3708ef7cbd5aa7878e2f2456bbc703be68fb8f5975ab3d64d67774e06a33950": {
9981 "translations": {
9982 "python": {
9983 "source": "# cluster: ecs.Cluster\n\nload_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, \"Service\",\n cluster=cluster,\n memory_limit_mi_b=1024,\n desired_count=1,\n cpu=512,\n task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n ),\n deployment_controller=ecs.DeploymentController(\n type=ecs.DeploymentControllerType.CODE_DEPLOY\n )\n)",
9984 "version": "2"
9985 },
9986 "csharp": {
9987 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = new ApplicationLoadBalancedFargateService(this, \"Service\", new ApplicationLoadBalancedFargateServiceProps {\n Cluster = cluster,\n MemoryLimitMiB = 1024,\n DesiredCount = 1,\n Cpu = 512,\n TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n },\n DeploymentController = new DeploymentController {\n Type = DeploymentControllerType.CODE_DEPLOY\n }\n});",
9988 "version": "1"
9989 },
9990 "java": {
9991 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .memoryLimitMiB(1024)\n .desiredCount(1)\n .cpu(512)\n .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build())\n .deploymentController(DeploymentController.builder()\n .type(DeploymentControllerType.CODE_DEPLOY)\n .build())\n .build();",
9992 "version": "1"
9993 },
9994 "go": {
9995 "source": "var cluster cluster\n\nloadBalancedFargateService := ecsPatterns.NewApplicationLoadBalancedFargateService(this, jsii.String(\"Service\"), &applicationLoadBalancedFargateServiceProps{\n\tcluster: cluster,\n\tmemoryLimitMiB: jsii.Number(1024),\n\tdesiredCount: jsii.Number(1),\n\tcpu: jsii.Number(512),\n\ttaskImageOptions: &applicationLoadBalancedTaskImageOptions{\n\t\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\t},\n\tdeploymentController: &deploymentController{\n\t\ttype: ecs.deploymentControllerType_CODE_DEPLOY,\n\t},\n})",
9996 "version": "1"
9997 },
9998 "$": {
9999 "source": "declare const cluster: ecs.Cluster;\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.CODE_DEPLOY,\n },\n});",
10000 "version": "0"
10001 }
10002 },
10003 "location": {
10004 "api": {
10005 "api": "type",
10006 "fqn": "@aws-cdk/aws-ecs.DeploymentController"
10007 },
10008 "field": {
10009 "field": "example"
10010 }
10011 },
10012 "didCompile": true,
10013 "fqnsReferenced": [
10014 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
10015 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
10016 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
10017 "@aws-cdk/aws-ecs.ContainerImage",
10018 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
10019 "@aws-cdk/aws-ecs.DeploymentController",
10020 "@aws-cdk/aws-ecs.DeploymentControllerType",
10021 "@aws-cdk/aws-ecs.DeploymentControllerType#CODE_DEPLOY",
10022 "@aws-cdk/aws-ecs.ICluster",
10023 "constructs.Construct"
10024 ],
10025 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as cxapi from '@aws-cdk/cx-api';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n \n // Code snippet begins after !show marker below\n/// !show\n\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.CODE_DEPLOY,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
10026 "syntaxKindCounter": {
10027 "8": 3,
10028 "10": 2,
10029 "75": 20,
10030 "104": 1,
10031 "130": 1,
10032 "153": 1,
10033 "169": 1,
10034 "193": 3,
10035 "194": 5,
10036 "196": 1,
10037 "197": 1,
10038 "225": 2,
10039 "242": 2,
10040 "243": 2,
10041 "281": 7,
10042 "282": 1,
10043 "290": 1
10044 },
10045 "fqnsFingerprint": "dca22d70eaebec1b88eb29722fa3ab69bed8f2a4d3239de4af78711e2022ea6a"
10046 },
10047 "ca6f496411e8248abb1edf8cdfbeac19f86c94cffad21c368fe6b7700a13b32b": {
10048 "translations": {
10049 "python": {
10050 "source": "# cluster: ecs.Cluster\n\nload_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, \"Service\",\n cluster=cluster,\n memory_limit_mi_b=1024,\n desired_count=1,\n cpu=512,\n task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n ),\n deployment_controller=ecs.DeploymentController(\n type=ecs.DeploymentControllerType.CODE_DEPLOY\n )\n)",
10051 "version": "2"
10052 },
10053 "csharp": {
10054 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = new ApplicationLoadBalancedFargateService(this, \"Service\", new ApplicationLoadBalancedFargateServiceProps {\n Cluster = cluster,\n MemoryLimitMiB = 1024,\n DesiredCount = 1,\n Cpu = 512,\n TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n },\n DeploymentController = new DeploymentController {\n Type = DeploymentControllerType.CODE_DEPLOY\n }\n});",
10055 "version": "1"
10056 },
10057 "java": {
10058 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .memoryLimitMiB(1024)\n .desiredCount(1)\n .cpu(512)\n .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build())\n .deploymentController(DeploymentController.builder()\n .type(DeploymentControllerType.CODE_DEPLOY)\n .build())\n .build();",
10059 "version": "1"
10060 },
10061 "go": {
10062 "source": "var cluster cluster\n\nloadBalancedFargateService := ecsPatterns.NewApplicationLoadBalancedFargateService(this, jsii.String(\"Service\"), &applicationLoadBalancedFargateServiceProps{\n\tcluster: cluster,\n\tmemoryLimitMiB: jsii.Number(1024),\n\tdesiredCount: jsii.Number(1),\n\tcpu: jsii.Number(512),\n\ttaskImageOptions: &applicationLoadBalancedTaskImageOptions{\n\t\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\t},\n\tdeploymentController: &deploymentController{\n\t\ttype: ecs.deploymentControllerType_CODE_DEPLOY,\n\t},\n})",
10063 "version": "1"
10064 },
10065 "$": {
10066 "source": "declare const cluster: ecs.Cluster;\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.CODE_DEPLOY,\n },\n});",
10067 "version": "0"
10068 }
10069 },
10070 "location": {
10071 "api": {
10072 "api": "type",
10073 "fqn": "@aws-cdk/aws-ecs.DeploymentControllerType"
10074 },
10075 "field": {
10076 "field": "example"
10077 }
10078 },
10079 "didCompile": true,
10080 "fqnsReferenced": [
10081 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
10082 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
10083 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
10084 "@aws-cdk/aws-ecs.ContainerImage",
10085 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
10086 "@aws-cdk/aws-ecs.DeploymentController",
10087 "@aws-cdk/aws-ecs.DeploymentControllerType",
10088 "@aws-cdk/aws-ecs.DeploymentControllerType#CODE_DEPLOY",
10089 "@aws-cdk/aws-ecs.ICluster",
10090 "constructs.Construct"
10091 ],
10092 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as cxapi from '@aws-cdk/cx-api';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n \n // Code snippet begins after !show marker below\n/// !show\n\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n deploymentController: {\n type: ecs.DeploymentControllerType.CODE_DEPLOY,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
10093 "syntaxKindCounter": {
10094 "8": 3,
10095 "10": 2,
10096 "75": 20,
10097 "104": 1,
10098 "130": 1,
10099 "153": 1,
10100 "169": 1,
10101 "193": 3,
10102 "194": 5,
10103 "196": 1,
10104 "197": 1,
10105 "225": 2,
10106 "242": 2,
10107 "243": 2,
10108 "281": 7,
10109 "282": 1,
10110 "290": 1
10111 },
10112 "fqnsFingerprint": "dca22d70eaebec1b88eb29722fa3ab69bed8f2a4d3239de4af78711e2022ea6a"
10113 },
10114 "8919e0663c66cc3a875c0cd82a13619703137a0f329b46ac1cbfa618b57f514e": {
10115 "translations": {
10116 "python": {
10117 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndevice = ecs.Device(\n host_path=\"hostPath\",\n\n # the properties below are optional\n container_path=\"containerPath\",\n permissions=[ecs.DevicePermission.READ]\n)",
10118 "version": "2"
10119 },
10120 "csharp": {
10121 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDevice device = new Device {\n HostPath = \"hostPath\",\n\n // the properties below are optional\n ContainerPath = \"containerPath\",\n Permissions = new [] { DevicePermission.READ }\n};",
10122 "version": "1"
10123 },
10124 "java": {
10125 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDevice device = Device.builder()\n .hostPath(\"hostPath\")\n\n // the properties below are optional\n .containerPath(\"containerPath\")\n .permissions(List.of(DevicePermission.READ))\n .build();",
10126 "version": "1"
10127 },
10128 "go": {
10129 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndevice := &device{\n\thostPath: jsii.String(\"hostPath\"),\n\n\t// the properties below are optional\n\tcontainerPath: jsii.String(\"containerPath\"),\n\tpermissions: []devicePermission{\n\t\tecs.*devicePermission_READ,\n\t},\n}",
10130 "version": "1"
10131 },
10132 "$": {
10133 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst device: ecs.Device = {\n hostPath: 'hostPath',\n\n // the properties below are optional\n containerPath: 'containerPath',\n permissions: [ecs.DevicePermission.READ],\n};",
10134 "version": "0"
10135 }
10136 },
10137 "location": {
10138 "api": {
10139 "api": "type",
10140 "fqn": "@aws-cdk/aws-ecs.Device"
10141 },
10142 "field": {
10143 "field": "example"
10144 }
10145 },
10146 "didCompile": true,
10147 "fqnsReferenced": [
10148 "@aws-cdk/aws-ecs.Device",
10149 "@aws-cdk/aws-ecs.DevicePermission",
10150 "@aws-cdk/aws-ecs.DevicePermission#READ"
10151 ],
10152 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst device: ecs.Device = {\n hostPath: 'hostPath',\n\n // the properties below are optional\n containerPath: 'containerPath',\n permissions: [ecs.DevicePermission.READ],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10153 "syntaxKindCounter": {
10154 "10": 3,
10155 "75": 10,
10156 "153": 1,
10157 "169": 1,
10158 "192": 1,
10159 "193": 1,
10160 "194": 2,
10161 "225": 1,
10162 "242": 1,
10163 "243": 1,
10164 "254": 1,
10165 "255": 1,
10166 "256": 1,
10167 "281": 3,
10168 "290": 1
10169 },
10170 "fqnsFingerprint": "8879109dd4f7aeeb80974d0b5a5ab0f642e8ce22d1dcfb4a96b558c27bb61e58"
10171 },
10172 "038c4fa61f148c3b45bbc08a3fdd5d5052c25709f22d8e8a4781d0512c698e14": {
10173 "translations": {
10174 "python": {
10175 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ndocker_volume_configuration = ecs.DockerVolumeConfiguration(\n driver=\"driver\",\n scope=ecs.Scope.TASK,\n\n # the properties below are optional\n autoprovision=False,\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n }\n)",
10176 "version": "2"
10177 },
10178 "csharp": {
10179 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nDockerVolumeConfiguration dockerVolumeConfiguration = new DockerVolumeConfiguration {\n Driver = \"driver\",\n Scope = Scope.TASK,\n\n // the properties below are optional\n Autoprovision = false,\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n }\n};",
10180 "version": "1"
10181 },
10182 "java": {
10183 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nDockerVolumeConfiguration dockerVolumeConfiguration = DockerVolumeConfiguration.builder()\n .driver(\"driver\")\n .scope(Scope.TASK)\n\n // the properties below are optional\n .autoprovision(false)\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .build();",
10184 "version": "1"
10185 },
10186 "go": {
10187 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ndockerVolumeConfiguration := &dockerVolumeConfiguration{\n\tdriver: jsii.String(\"driver\"),\n\tscope: ecs.scope_TASK,\n\n\t// the properties below are optional\n\tautoprovision: jsii.Boolean(false),\n\tdriverOpts: map[string]*string{\n\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t},\n\tlabels: map[string]*string{\n\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t},\n}",
10188 "version": "1"
10189 },
10190 "$": {
10191 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst dockerVolumeConfiguration: ecs.DockerVolumeConfiguration = {\n driver: 'driver',\n scope: ecs.Scope.TASK,\n\n // the properties below are optional\n autoprovision: false,\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n};",
10192 "version": "0"
10193 }
10194 },
10195 "location": {
10196 "api": {
10197 "api": "type",
10198 "fqn": "@aws-cdk/aws-ecs.DockerVolumeConfiguration"
10199 },
10200 "field": {
10201 "field": "example"
10202 }
10203 },
10204 "didCompile": true,
10205 "fqnsReferenced": [
10206 "@aws-cdk/aws-ecs.DockerVolumeConfiguration",
10207 "@aws-cdk/aws-ecs.Scope",
10208 "@aws-cdk/aws-ecs.Scope#TASK"
10209 ],
10210 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst dockerVolumeConfiguration: ecs.DockerVolumeConfiguration = {\n driver: 'driver',\n scope: ecs.Scope.TASK,\n\n // the properties below are optional\n autoprovision: false,\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10211 "syntaxKindCounter": {
10212 "10": 4,
10213 "75": 14,
10214 "91": 1,
10215 "153": 1,
10216 "169": 1,
10217 "193": 3,
10218 "194": 2,
10219 "225": 1,
10220 "242": 1,
10221 "243": 1,
10222 "254": 1,
10223 "255": 1,
10224 "256": 1,
10225 "281": 7,
10226 "290": 1
10227 },
10228 "fqnsFingerprint": "8c2bca7cc77cb1414476120fefea0c135a35195bc1dd380abeae9dbd46afb1af"
10229 },
10230 "1180e5e6b7c8e1434b524eb5c3fd9b599ff33e96bebd94eebc945a7650fe6092": {
10231 "translations": {
10232 "python": {
10233 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.Ec2Service(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elb.LoadBalancer(self, \"LB\", vpc=vpc)\nlb.add_listener(external_port=80)\nlb.add_target(service.load_balancer_target(\n container_name=\"MyContainer\",\n container_port=80\n))",
10234 "version": "2"
10235 },
10236 "csharp": {
10237 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nLoadBalancer lb = new LoadBalancer(this, \"LB\", new LoadBalancerProps { Vpc = vpc });\nlb.AddListener(new LoadBalancerListener { ExternalPort = 80 });\nlb.AddTarget(service.LoadBalancerTarget(new LoadBalancerTargetOptions {\n ContainerName = \"MyContainer\",\n ContainerPort = 80\n}));",
10238 "version": "1"
10239 },
10240 "java": {
10241 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nLoadBalancer lb = LoadBalancer.Builder.create(this, \"LB\").vpc(vpc).build();\nlb.addListener(LoadBalancerListener.builder().externalPort(80).build());\nlb.addTarget(service.loadBalancerTarget(LoadBalancerTargetOptions.builder()\n .containerName(\"MyContainer\")\n .containerPort(80)\n .build()));",
10242 "version": "1"
10243 },
10244 "go": {
10245 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elb.NewLoadBalancer(this, jsii.String(\"LB\"), &loadBalancerProps{\n\tvpc: vpc,\n})\nlb.addListener(&loadBalancerListener{\n\texternalPort: jsii.Number(80),\n})\nlb.addTarget(service.loadBalancerTarget(&loadBalancerTargetOptions{\n\tcontainerName: jsii.String(\"MyContainer\"),\n\tcontainerPort: jsii.Number(80),\n}))",
10246 "version": "1"
10247 },
10248 "$": {
10249 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));",
10250 "version": "0"
10251 }
10252 },
10253 "location": {
10254 "api": {
10255 "api": "type",
10256 "fqn": "@aws-cdk/aws-ecs.Ec2Service"
10257 },
10258 "field": {
10259 "field": "example"
10260 }
10261 },
10262 "didCompile": true,
10263 "fqnsReferenced": [
10264 "@aws-cdk/aws-ec2.IVpc",
10265 "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
10266 "@aws-cdk/aws-ecs.Ec2Service",
10267 "@aws-cdk/aws-ecs.Ec2ServiceProps",
10268 "@aws-cdk/aws-ecs.ICluster",
10269 "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
10270 "@aws-cdk/aws-ecs.TaskDefinition",
10271 "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
10272 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
10273 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
10274 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
10275 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
10276 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
10277 "constructs.Construct"
10278 ],
10279 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10280 "syntaxKindCounter": {
10281 "8": 2,
10282 "10": 3,
10283 "75": 27,
10284 "104": 2,
10285 "130": 3,
10286 "153": 3,
10287 "169": 3,
10288 "193": 4,
10289 "194": 5,
10290 "196": 3,
10291 "197": 2,
10292 "225": 5,
10293 "226": 2,
10294 "242": 5,
10295 "243": 5,
10296 "281": 3,
10297 "282": 3,
10298 "290": 1
10299 },
10300 "fqnsFingerprint": "6903bbec8210e946e5b1d9c427f7349b8410f2b3d7c838f4172111966ed3f8bb"
10301 },
10302 "683f3fa378095c1bc1bb68a312cc49c64dfc81fa500f11da8d48005b345ecd33": {
10303 "translations": {
10304 "python": {
10305 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\n# cluster: ecs.Cluster\n\nec2_service_attributes = ecs.Ec2ServiceAttributes(\n cluster=cluster,\n\n # the properties below are optional\n service_arn=\"serviceArn\",\n service_name=\"serviceName\"\n)",
10306 "version": "2"
10307 },
10308 "csharp": {
10309 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCluster cluster;\n\nEc2ServiceAttributes ec2ServiceAttributes = new Ec2ServiceAttributes {\n Cluster = cluster,\n\n // the properties below are optional\n ServiceArn = \"serviceArn\",\n ServiceName = \"serviceName\"\n};",
10310 "version": "1"
10311 },
10312 "java": {
10313 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCluster cluster;\n\nEc2ServiceAttributes ec2ServiceAttributes = Ec2ServiceAttributes.builder()\n .cluster(cluster)\n\n // the properties below are optional\n .serviceArn(\"serviceArn\")\n .serviceName(\"serviceName\")\n .build();",
10314 "version": "1"
10315 },
10316 "go": {
10317 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvar cluster cluster\n\nec2ServiceAttributes := &ec2ServiceAttributes{\n\tcluster: cluster,\n\n\t// the properties below are optional\n\tserviceArn: jsii.String(\"serviceArn\"),\n\tserviceName: jsii.String(\"serviceName\"),\n}",
10318 "version": "1"
10319 },
10320 "$": {
10321 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const cluster: ecs.Cluster;\nconst ec2ServiceAttributes: ecs.Ec2ServiceAttributes = {\n cluster: cluster,\n\n // the properties below are optional\n serviceArn: 'serviceArn',\n serviceName: 'serviceName',\n};",
10322 "version": "0"
10323 }
10324 },
10325 "location": {
10326 "api": {
10327 "api": "type",
10328 "fqn": "@aws-cdk/aws-ecs.Ec2ServiceAttributes"
10329 },
10330 "field": {
10331 "field": "example"
10332 }
10333 },
10334 "didCompile": true,
10335 "fqnsReferenced": [
10336 "@aws-cdk/aws-ecs.Ec2ServiceAttributes",
10337 "@aws-cdk/aws-ecs.ICluster"
10338 ],
10339 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ec2ServiceAttributes: ecs.Ec2ServiceAttributes = {\n cluster: cluster,\n\n // the properties below are optional\n serviceArn: 'serviceArn',\n serviceName: 'serviceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10340 "syntaxKindCounter": {
10341 "10": 3,
10342 "75": 11,
10343 "130": 1,
10344 "153": 2,
10345 "169": 2,
10346 "193": 1,
10347 "225": 2,
10348 "242": 2,
10349 "243": 2,
10350 "254": 1,
10351 "255": 1,
10352 "256": 1,
10353 "281": 3,
10354 "290": 1
10355 },
10356 "fqnsFingerprint": "abdde93653d47ea3c24c249f98bb886451b9e4009b24239b821ad1127965122e"
10357 },
10358 "d539111a2cd2d1ca26a91f39d729a261e262f86686544b682be4a7d0ab17a4e9": {
10359 "translations": {
10360 "python": {
10361 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.Ec2Service(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elb.LoadBalancer(self, \"LB\", vpc=vpc)\nlb.add_listener(external_port=80)\nlb.add_target(service.load_balancer_target(\n container_name=\"MyContainer\",\n container_port=80\n))",
10362 "version": "2"
10363 },
10364 "csharp": {
10365 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nLoadBalancer lb = new LoadBalancer(this, \"LB\", new LoadBalancerProps { Vpc = vpc });\nlb.AddListener(new LoadBalancerListener { ExternalPort = 80 });\nlb.AddTarget(service.LoadBalancerTarget(new LoadBalancerTargetOptions {\n ContainerName = \"MyContainer\",\n ContainerPort = 80\n}));",
10366 "version": "1"
10367 },
10368 "java": {
10369 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nLoadBalancer lb = LoadBalancer.Builder.create(this, \"LB\").vpc(vpc).build();\nlb.addListener(LoadBalancerListener.builder().externalPort(80).build());\nlb.addTarget(service.loadBalancerTarget(LoadBalancerTargetOptions.builder()\n .containerName(\"MyContainer\")\n .containerPort(80)\n .build()));",
10370 "version": "1"
10371 },
10372 "go": {
10373 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elb.NewLoadBalancer(this, jsii.String(\"LB\"), &loadBalancerProps{\n\tvpc: vpc,\n})\nlb.addListener(&loadBalancerListener{\n\texternalPort: jsii.Number(80),\n})\nlb.addTarget(service.loadBalancerTarget(&loadBalancerTargetOptions{\n\tcontainerName: jsii.String(\"MyContainer\"),\n\tcontainerPort: jsii.Number(80),\n}))",
10374 "version": "1"
10375 },
10376 "$": {
10377 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));",
10378 "version": "0"
10379 }
10380 },
10381 "location": {
10382 "api": {
10383 "api": "type",
10384 "fqn": "@aws-cdk/aws-ecs.Ec2ServiceProps"
10385 },
10386 "field": {
10387 "field": "example"
10388 }
10389 },
10390 "didCompile": true,
10391 "fqnsReferenced": [
10392 "@aws-cdk/aws-ec2.IVpc",
10393 "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
10394 "@aws-cdk/aws-ecs.Ec2Service",
10395 "@aws-cdk/aws-ecs.Ec2ServiceProps",
10396 "@aws-cdk/aws-ecs.ICluster",
10397 "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
10398 "@aws-cdk/aws-ecs.TaskDefinition",
10399 "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
10400 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
10401 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
10402 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
10403 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
10404 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
10405 "constructs.Construct"
10406 ],
10407 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10408 "syntaxKindCounter": {
10409 "8": 2,
10410 "10": 3,
10411 "75": 27,
10412 "104": 2,
10413 "130": 3,
10414 "153": 3,
10415 "169": 3,
10416 "193": 4,
10417 "194": 5,
10418 "196": 3,
10419 "197": 2,
10420 "225": 5,
10421 "226": 2,
10422 "242": 5,
10423 "243": 5,
10424 "281": 3,
10425 "282": 3,
10426 "290": 1
10427 },
10428 "fqnsFingerprint": "6903bbec8210e946e5b1d9c427f7349b8410f2b3d7c838f4172111966ed3f8bb"
10429 },
10430 "f828b210dcaba337c461f26ce5e15de95b5fc3180888a3ca7b770b2f21be1abe": {
10431 "translations": {
10432 "python": {
10433 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.splunk(\n token=SecretValue.secrets_manager(\"my-splunk-token\"),\n url=\"my-splunk-url\"\n )\n)",
10434 "version": "2"
10435 },
10436 "csharp": {
10437 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Splunk(new SplunkLogDriverProps {\n Token = SecretValue.SecretsManager(\"my-splunk-token\"),\n Url = \"my-splunk-url\"\n })\n});",
10438 "version": "1"
10439 },
10440 "java": {
10441 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.splunk(SplunkLogDriverProps.builder()\n .token(SecretValue.secretsManager(\"my-splunk-token\"))\n .url(\"my-splunk-url\")\n .build()))\n .build());",
10442 "version": "1"
10443 },
10444 "go": {
10445 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.splunk(&splunkLogDriverProps{\n\t\ttoken: *awscdkcore.SecretValue.secretsManager(jsii.String(\"my-splunk-token\")),\n\t\turl: jsii.String(\"my-splunk-url\"),\n\t}),\n})",
10446 "version": "1"
10447 },
10448 "$": {
10449 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});",
10450 "version": "0"
10451 }
10452 },
10453 "location": {
10454 "api": {
10455 "api": "type",
10456 "fqn": "@aws-cdk/aws-ecs.Ec2TaskDefinition"
10457 },
10458 "field": {
10459 "field": "example"
10460 }
10461 },
10462 "didCompile": true,
10463 "fqnsReferenced": [
10464 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
10465 "@aws-cdk/aws-ecs.ContainerImage",
10466 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
10467 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
10468 "@aws-cdk/aws-ecs.LogDriver",
10469 "@aws-cdk/aws-ecs.LogDrivers",
10470 "@aws-cdk/aws-ecs.LogDrivers#splunk",
10471 "@aws-cdk/aws-ecs.SplunkLogDriverProps",
10472 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
10473 "@aws-cdk/core.SecretValue",
10474 "@aws-cdk/core.SecretValue#secretsManager",
10475 "constructs.Construct"
10476 ],
10477 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10478 "syntaxKindCounter": {
10479 "8": 1,
10480 "10": 5,
10481 "75": 18,
10482 "104": 1,
10483 "193": 2,
10484 "194": 7,
10485 "196": 4,
10486 "197": 1,
10487 "225": 1,
10488 "226": 1,
10489 "242": 1,
10490 "243": 1,
10491 "281": 5
10492 },
10493 "fqnsFingerprint": "cd6c265656766ea5017c47b7887118fcc13ab7e9488868f335215354fc75c563"
10494 },
10495 "3a8f44a8259b91909df393f0b91b2018cdecebec1a46fe396e2704e85b2b1233": {
10496 "translations": {
10497 "python": {
10498 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# role: iam.Role\n\nec2_task_definition_attributes = ecs.Ec2TaskDefinitionAttributes(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n network_mode=ecs.NetworkMode.NONE,\n task_role=role\n)",
10499 "version": "2"
10500 },
10501 "csharp": {
10502 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nRole role;\n\nEc2TaskDefinitionAttributes ec2TaskDefinitionAttributes = new Ec2TaskDefinitionAttributes {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n NetworkMode = NetworkMode.NONE,\n TaskRole = role\n};",
10503 "version": "1"
10504 },
10505 "java": {
10506 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nEc2TaskDefinitionAttributes ec2TaskDefinitionAttributes = Ec2TaskDefinitionAttributes.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .networkMode(NetworkMode.NONE)\n .taskRole(role)\n .build();",
10507 "version": "1"
10508 },
10509 "go": {
10510 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar role role\n\nec2TaskDefinitionAttributes := &ec2TaskDefinitionAttributes{\n\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t// the properties below are optional\n\tnetworkMode: ecs.networkMode_NONE,\n\ttaskRole: role,\n}",
10511 "version": "1"
10512 },
10513 "$": {
10514 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\nconst ec2TaskDefinitionAttributes: ecs.Ec2TaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};",
10515 "version": "0"
10516 }
10517 },
10518 "location": {
10519 "api": {
10520 "api": "type",
10521 "fqn": "@aws-cdk/aws-ecs.Ec2TaskDefinitionAttributes"
10522 },
10523 "field": {
10524 "field": "example"
10525 }
10526 },
10527 "didCompile": true,
10528 "fqnsReferenced": [
10529 "@aws-cdk/aws-ecs.Ec2TaskDefinitionAttributes",
10530 "@aws-cdk/aws-ecs.NetworkMode",
10531 "@aws-cdk/aws-ecs.NetworkMode#NONE",
10532 "@aws-cdk/aws-iam.IRole"
10533 ],
10534 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ec2TaskDefinitionAttributes: ecs.Ec2TaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10535 "syntaxKindCounter": {
10536 "10": 3,
10537 "75": 15,
10538 "130": 1,
10539 "153": 2,
10540 "169": 2,
10541 "193": 1,
10542 "194": 2,
10543 "225": 2,
10544 "242": 2,
10545 "243": 2,
10546 "254": 2,
10547 "255": 2,
10548 "256": 2,
10549 "281": 3,
10550 "290": 1
10551 },
10552 "fqnsFingerprint": "460501b93bf8bfd4378657872a2e97b69fe5e48aad7d7ee3475f119fb7286a44"
10553 },
10554 "0ec64f64d92495d8999d5855ec85539ef307eab8191fd739262aa5c46e9616b6": {
10555 "translations": {
10556 "python": {
10557 "source": "ec2_task_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\",\n network_mode=ecs.NetworkMode.BRIDGE\n)\n\ncontainer = ec2_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024\n)",
10558 "version": "2"
10559 },
10560 "csharp": {
10561 "source": "Ec2TaskDefinition ec2TaskDefinition = new Ec2TaskDefinition(this, \"TaskDef\", new Ec2TaskDefinitionProps {\n NetworkMode = NetworkMode.BRIDGE\n});\n\nContainerDefinition container = ec2TaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024\n});",
10562 "version": "1"
10563 },
10564 "java": {
10565 "source": "Ec2TaskDefinition ec2TaskDefinition = Ec2TaskDefinition.Builder.create(this, \"TaskDef\")\n .networkMode(NetworkMode.BRIDGE)\n .build();\n\nContainerDefinition container = ec2TaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .build());",
10566 "version": "1"
10567 },
10568 "go": {
10569 "source": "ec2TaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"), &ec2TaskDefinitionProps{\n\tnetworkMode: ecs.networkMode_BRIDGE,\n})\n\ncontainer := ec2TaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n})",
10570 "version": "1"
10571 },
10572 "$": {
10573 "source": "const ec2TaskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef', {\n networkMode: ecs.NetworkMode.BRIDGE,\n});\n\nconst container = ec2TaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});",
10574 "version": "0"
10575 }
10576 },
10577 "location": {
10578 "api": {
10579 "api": "type",
10580 "fqn": "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps"
10581 },
10582 "field": {
10583 "field": "example"
10584 }
10585 },
10586 "didCompile": true,
10587 "fqnsReferenced": [
10588 "@aws-cdk/aws-ecs.ContainerDefinition",
10589 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
10590 "@aws-cdk/aws-ecs.ContainerImage",
10591 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
10592 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
10593 "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
10594 "@aws-cdk/aws-ecs.NetworkMode",
10595 "@aws-cdk/aws-ecs.NetworkMode#BRIDGE",
10596 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
10597 "constructs.Construct"
10598 ],
10599 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst ec2TaskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef', {\n networkMode: ecs.NetworkMode.BRIDGE,\n});\n\nconst container = ec2TaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10600 "syntaxKindCounter": {
10601 "8": 1,
10602 "10": 3,
10603 "75": 15,
10604 "104": 1,
10605 "193": 2,
10606 "194": 6,
10607 "196": 2,
10608 "197": 1,
10609 "225": 2,
10610 "242": 2,
10611 "243": 2,
10612 "281": 3
10613 },
10614 "fqnsFingerprint": "3a3545ab580227152b50d324c49d7ee51c7fd5bcc939b9dfad98070b91538526"
10615 },
10616 "76df5c04098e7c11144bb59f0acc8ea9c612d0f2cd8bba4eeb729ce83f63892d": {
10617 "translations": {
10618 "python": {
10619 "source": "import aws_cdk.aws_ecr as ecr\n\n\nrepo = ecr.Repository.from_repository_name(self, \"batch-job-repo\", \"todo-list\")\n\nbatch.JobDefinition(self, \"batch-job-def-from-ecr\",\n container=batch.JobDefinitionContainer(\n image=ecs.EcrImage(repo, \"latest\")\n )\n)",
10620 "version": "2"
10621 },
10622 "csharp": {
10623 "source": "using Amazon.CDK.AWS.ECR;\n\n\nIRepository repo = Repository.FromRepositoryName(this, \"batch-job-repo\", \"todo-list\");\n\nnew JobDefinition(this, \"batch-job-def-from-ecr\", new JobDefinitionProps {\n Container = new JobDefinitionContainer {\n Image = new EcrImage(repo, \"latest\")\n }\n});",
10624 "version": "1"
10625 },
10626 "java": {
10627 "source": "import software.amazon.awscdk.services.ecr.*;\n\n\nIRepository repo = Repository.fromRepositoryName(this, \"batch-job-repo\", \"todo-list\");\n\nJobDefinition.Builder.create(this, \"batch-job-def-from-ecr\")\n .container(JobDefinitionContainer.builder()\n .image(new EcrImage(repo, \"latest\"))\n .build())\n .build();",
10628 "version": "1"
10629 },
10630 "go": {
10631 "source": "import ecr \"github.com/aws-samples/dummy/awscdkawsecr\"\n\n\nrepo := ecr.repository.fromRepositoryName(this, jsii.String(\"batch-job-repo\"), jsii.String(\"todo-list\"))\n\nbatch.NewJobDefinition(this, jsii.String(\"batch-job-def-from-ecr\"), &jobDefinitionProps{\n\tcontainer: &jobDefinitionContainer{\n\t\timage: ecs.NewEcrImage(repo, jsii.String(\"latest\")),\n\t},\n})",
10632 "version": "1"
10633 },
10634 "$": {
10635 "source": "import * as ecr from '@aws-cdk/aws-ecr';\n\nconst repo = ecr.Repository.fromRepositoryName(this, 'batch-job-repo', 'todo-list');\n\nnew batch.JobDefinition(this, 'batch-job-def-from-ecr', {\n container: {\n image: new ecs.EcrImage(repo, 'latest'),\n },\n});",
10636 "version": "0"
10637 }
10638 },
10639 "location": {
10640 "api": {
10641 "api": "type",
10642 "fqn": "@aws-cdk/aws-ecs.EcrImage"
10643 },
10644 "field": {
10645 "field": "example"
10646 }
10647 },
10648 "didCompile": true,
10649 "fqnsReferenced": [
10650 "@aws-cdk/aws-batch.JobDefinition",
10651 "@aws-cdk/aws-batch.JobDefinitionContainer",
10652 "@aws-cdk/aws-batch.JobDefinitionProps",
10653 "@aws-cdk/aws-ecr.IRepository",
10654 "@aws-cdk/aws-ecr.Repository",
10655 "@aws-cdk/aws-ecr.Repository#fromRepositoryName",
10656 "@aws-cdk/aws-ecs.ContainerImage",
10657 "@aws-cdk/aws-ecs.EcrImage",
10658 "constructs.Construct"
10659 ],
10660 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as ecr from '@aws-cdk/aws-ecr';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack } from '@aws-cdk/core';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as batch from '@aws-cdk/aws-batch';\nimport * as ecs from '@aws-cdk/aws-ecs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst repo = ecr.Repository.fromRepositoryName(this, 'batch-job-repo', 'todo-list');\n\nnew batch.JobDefinition(this, 'batch-job-def-from-ecr', {\n container: {\n image: new ecs.EcrImage(repo, 'latest'),\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10661 "syntaxKindCounter": {
10662 "10": 5,
10663 "75": 12,
10664 "104": 2,
10665 "193": 2,
10666 "194": 4,
10667 "196": 1,
10668 "197": 2,
10669 "225": 1,
10670 "226": 1,
10671 "242": 1,
10672 "243": 1,
10673 "254": 1,
10674 "255": 1,
10675 "256": 1,
10676 "281": 2,
10677 "290": 1
10678 },
10679 "fqnsFingerprint": "62fd493f6ee74580315e03b1b22fad83cbb958ee2f7a3f6f93fe4f01a6b06153"
10680 },
10681 "c03a612f3f42a53bfa906015670934b04958ea8707dd96c5c67397e646ec004e": {
10682 "translations": {
10683 "python": {
10684 "source": "# vpc: ec2.Vpc\n\nmy_compute_env = batch.ComputeEnvironment(self, \"ComputeEnv\",\n compute_resources=batch.ComputeResources(\n image=ecs.EcsOptimizedAmi(\n generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2\n ),\n vpc=vpc\n )\n)",
10685 "version": "2"
10686 },
10687 "csharp": {
10688 "source": "Vpc vpc;\n\nComputeEnvironment myComputeEnv = new ComputeEnvironment(this, \"ComputeEnv\", new ComputeEnvironmentProps {\n ComputeResources = new ComputeResources {\n Image = new EcsOptimizedAmi(new EcsOptimizedAmiProps {\n Generation = AmazonLinuxGeneration.AMAZON_LINUX_2\n }),\n Vpc = vpc\n }\n});",
10689 "version": "1"
10690 },
10691 "java": {
10692 "source": "Vpc vpc;\n\nComputeEnvironment myComputeEnv = ComputeEnvironment.Builder.create(this, \"ComputeEnv\")\n .computeResources(ComputeResources.builder()\n .image(EcsOptimizedAmi.Builder.create()\n .generation(AmazonLinuxGeneration.AMAZON_LINUX_2)\n .build())\n .vpc(vpc)\n .build())\n .build();",
10693 "version": "1"
10694 },
10695 "go": {
10696 "source": "var vpc vpc\n\nmyComputeEnv := batch.NewComputeEnvironment(this, jsii.String(\"ComputeEnv\"), &computeEnvironmentProps{\n\tcomputeResources: &computeResources{\n\t\timage: ecs.NewEcsOptimizedAmi(&ecsOptimizedAmiProps{\n\t\t\tgeneration: ec2.amazonLinuxGeneration_AMAZON_LINUX_2,\n\t\t}),\n\t\tvpc: vpc,\n\t},\n})",
10697 "version": "1"
10698 },
10699 "$": {
10700 "source": "declare const vpc: ec2.Vpc;\nconst myComputeEnv = new batch.ComputeEnvironment(this, 'ComputeEnv', {\n computeResources: {\n image: new ecs.EcsOptimizedAmi({\n generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,\n }),\n vpc,\n }\n});",
10701 "version": "0"
10702 }
10703 },
10704 "location": {
10705 "api": {
10706 "api": "type",
10707 "fqn": "@aws-cdk/aws-ecs.EcsOptimizedAmi"
10708 },
10709 "field": {
10710 "field": "example"
10711 }
10712 },
10713 "didCompile": true,
10714 "fqnsReferenced": [
10715 "@aws-cdk/aws-batch.ComputeEnvironment",
10716 "@aws-cdk/aws-batch.ComputeEnvironmentProps",
10717 "@aws-cdk/aws-batch.ComputeResources",
10718 "@aws-cdk/aws-ec2.AmazonLinuxGeneration",
10719 "@aws-cdk/aws-ec2.AmazonLinuxGeneration#AMAZON_LINUX_2",
10720 "@aws-cdk/aws-ec2.IMachineImage",
10721 "@aws-cdk/aws-ec2.IVpc",
10722 "@aws-cdk/aws-ecs.EcsOptimizedAmi",
10723 "@aws-cdk/aws-ecs.EcsOptimizedAmiProps",
10724 "constructs.Construct"
10725 ],
10726 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack } from '@aws-cdk/core';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as batch from '@aws-cdk/aws-batch';\nimport * as ecs from '@aws-cdk/aws-ecs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst myComputeEnv = new batch.ComputeEnvironment(this, 'ComputeEnv', {\n computeResources: {\n image: new ecs.EcsOptimizedAmi({\n generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,\n }),\n vpc,\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10727 "syntaxKindCounter": {
10728 "10": 1,
10729 "75": 15,
10730 "104": 1,
10731 "130": 1,
10732 "153": 1,
10733 "169": 1,
10734 "193": 3,
10735 "194": 4,
10736 "197": 2,
10737 "225": 2,
10738 "242": 2,
10739 "243": 2,
10740 "281": 3,
10741 "282": 1,
10742 "290": 1
10743 },
10744 "fqnsFingerprint": "affbc1b9a2cf01230cb4d1c7c09d0018d993eca8e4cbb923af2e8f819b534bd9"
10745 },
10746 "234eff489226dbb4aec27573324bd641ba77aa1bad41a6433aebcbd5bcc676da": {
10747 "translations": {
10748 "python": {
10749 "source": "# vpc: ec2.Vpc\n\nmy_compute_env = batch.ComputeEnvironment(self, \"ComputeEnv\",\n compute_resources=batch.ComputeResources(\n image=ecs.EcsOptimizedAmi(\n generation=ec2.AmazonLinuxGeneration.AMAZON_LINUX_2\n ),\n vpc=vpc\n )\n)",
10750 "version": "2"
10751 },
10752 "csharp": {
10753 "source": "Vpc vpc;\n\nComputeEnvironment myComputeEnv = new ComputeEnvironment(this, \"ComputeEnv\", new ComputeEnvironmentProps {\n ComputeResources = new ComputeResources {\n Image = new EcsOptimizedAmi(new EcsOptimizedAmiProps {\n Generation = AmazonLinuxGeneration.AMAZON_LINUX_2\n }),\n Vpc = vpc\n }\n});",
10754 "version": "1"
10755 },
10756 "java": {
10757 "source": "Vpc vpc;\n\nComputeEnvironment myComputeEnv = ComputeEnvironment.Builder.create(this, \"ComputeEnv\")\n .computeResources(ComputeResources.builder()\n .image(EcsOptimizedAmi.Builder.create()\n .generation(AmazonLinuxGeneration.AMAZON_LINUX_2)\n .build())\n .vpc(vpc)\n .build())\n .build();",
10758 "version": "1"
10759 },
10760 "go": {
10761 "source": "var vpc vpc\n\nmyComputeEnv := batch.NewComputeEnvironment(this, jsii.String(\"ComputeEnv\"), &computeEnvironmentProps{\n\tcomputeResources: &computeResources{\n\t\timage: ecs.NewEcsOptimizedAmi(&ecsOptimizedAmiProps{\n\t\t\tgeneration: ec2.amazonLinuxGeneration_AMAZON_LINUX_2,\n\t\t}),\n\t\tvpc: vpc,\n\t},\n})",
10762 "version": "1"
10763 },
10764 "$": {
10765 "source": "declare const vpc: ec2.Vpc;\nconst myComputeEnv = new batch.ComputeEnvironment(this, 'ComputeEnv', {\n computeResources: {\n image: new ecs.EcsOptimizedAmi({\n generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,\n }),\n vpc,\n }\n});",
10766 "version": "0"
10767 }
10768 },
10769 "location": {
10770 "api": {
10771 "api": "type",
10772 "fqn": "@aws-cdk/aws-ecs.EcsOptimizedAmiProps"
10773 },
10774 "field": {
10775 "field": "example"
10776 }
10777 },
10778 "didCompile": true,
10779 "fqnsReferenced": [
10780 "@aws-cdk/aws-batch.ComputeEnvironment",
10781 "@aws-cdk/aws-batch.ComputeEnvironmentProps",
10782 "@aws-cdk/aws-batch.ComputeResources",
10783 "@aws-cdk/aws-ec2.AmazonLinuxGeneration",
10784 "@aws-cdk/aws-ec2.AmazonLinuxGeneration#AMAZON_LINUX_2",
10785 "@aws-cdk/aws-ec2.IMachineImage",
10786 "@aws-cdk/aws-ec2.IVpc",
10787 "@aws-cdk/aws-ecs.EcsOptimizedAmi",
10788 "@aws-cdk/aws-ecs.EcsOptimizedAmiProps",
10789 "constructs.Construct"
10790 ],
10791 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack } from '@aws-cdk/core';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as batch from '@aws-cdk/aws-batch';\nimport * as ecs from '@aws-cdk/aws-ecs';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst myComputeEnv = new batch.ComputeEnvironment(this, 'ComputeEnv', {\n computeResources: {\n image: new ecs.EcsOptimizedAmi({\n generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,\n }),\n vpc,\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10792 "syntaxKindCounter": {
10793 "10": 1,
10794 "75": 15,
10795 "104": 1,
10796 "130": 1,
10797 "153": 1,
10798 "169": 1,
10799 "193": 3,
10800 "194": 4,
10801 "197": 2,
10802 "225": 2,
10803 "242": 2,
10804 "243": 2,
10805 "281": 3,
10806 "282": 1,
10807 "290": 1
10808 },
10809 "fqnsFingerprint": "affbc1b9a2cf01230cb4d1c7c09d0018d993eca8e4cbb923af2e8f819b534bd9"
10810 },
10811 "a700261abeb75030e621bd820ccb14b37b472ef01ae1b4e1c0c4844dd256afa0": {
10812 "translations": {
10813 "python": {
10814 "source": "# vpc: ec2.Vpc\n\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc\n)\n\n# Either add default capacity\ncluster.add_capacity(\"DefaultAutoScalingGroupCapacity\",\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n desired_capacity=3\n)\n\n# Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.xlarge\"),\n machine_image=ecs.EcsOptimizedImage.amazon_linux(),\n # Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n # machineImage: EcsOptimizedImage.amazonLinux2(),\n desired_capacity=3\n)\n\ncluster.add_auto_scaling_group(auto_scaling_group)",
10815 "version": "2"
10816 },
10817 "csharp": {
10818 "source": "Vpc vpc;\n\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc\n});\n\n// Either add default capacity\ncluster.AddCapacity(\"DefaultAutoScalingGroupCapacity\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.xlarge\"),\n DesiredCapacity = 3\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.xlarge\"),\n MachineImage = EcsOptimizedImage.AmazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n DesiredCapacity = 3\n});\n\ncluster.AddAutoScalingGroup(autoScalingGroup);",
10819 "version": "1"
10820 },
10821 "java": {
10822 "source": "Vpc vpc;\n\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .build();\n\n// Either add default capacity\ncluster.addCapacity(\"DefaultAutoScalingGroupCapacity\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .desiredCapacity(3)\n .build());\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.xlarge\"))\n .machineImage(EcsOptimizedImage.amazonLinux())\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n .desiredCapacity(3)\n .build();\n\ncluster.addAutoScalingGroup(autoScalingGroup);",
10823 "version": "1"
10824 },
10825 "go": {
10826 "source": "var vpc vpc\n\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\n\n// Either add default capacity\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroupCapacity\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tdesiredCapacity: jsii.Number(3),\n})\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.xlarge\")),\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux(),\n\t// Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n\t// machineImage: EcsOptimizedImage.amazonLinux2(),\n\tdesiredCapacity: jsii.Number(3),\n})\n\ncluster.addAutoScalingGroup(autoScalingGroup)",
10827 "version": "1"
10828 },
10829 "$": {
10830 "source": "declare const vpc: ec2.Vpc;\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Either add default capacity\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.xlarge'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n desiredCapacity: 3,\n // ... other options here ...\n});\n\ncluster.addAutoScalingGroup(autoScalingGroup);",
10831 "version": "0"
10832 }
10833 },
10834 "location": {
10835 "api": {
10836 "api": "type",
10837 "fqn": "@aws-cdk/aws-ecs.EcsOptimizedImage"
10838 },
10839 "field": {
10840 "field": "example"
10841 }
10842 },
10843 "didCompile": true,
10844 "fqnsReferenced": [
10845 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
10846 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
10847 "@aws-cdk/aws-ec2.IMachineImage",
10848 "@aws-cdk/aws-ec2.IVpc",
10849 "@aws-cdk/aws-ec2.InstanceType",
10850 "@aws-cdk/aws-ecs.AddCapacityOptions",
10851 "@aws-cdk/aws-ecs.Cluster",
10852 "@aws-cdk/aws-ecs.Cluster#addAutoScalingGroup",
10853 "@aws-cdk/aws-ecs.Cluster#addCapacity",
10854 "@aws-cdk/aws-ecs.ClusterProps",
10855 "@aws-cdk/aws-ecs.EcsOptimizedImage",
10856 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
10857 "constructs.Construct"
10858 ],
10859 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n});\n\n// Either add default capacity\ncluster.addCapacity('DefaultAutoScalingGroupCapacity', {\n instanceType: new ec2.InstanceType(\"t2.xlarge\"),\n desiredCapacity: 3,\n});\n\n// Or add customized capacity. Be sure to start the Amazon ECS-optimized AMI.\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n vpc,\n instanceType: new ec2.InstanceType('t2.xlarge'),\n machineImage: ecs.EcsOptimizedImage.amazonLinux(),\n // Or use Amazon ECS-Optimized Amazon Linux 2 AMI\n // machineImage: EcsOptimizedImage.amazonLinux2(),\n desiredCapacity: 3,\n // ... other options here ...\n});\n\ncluster.addAutoScalingGroup(autoScalingGroup);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10860 "syntaxKindCounter": {
10861 "8": 2,
10862 "10": 5,
10863 "75": 28,
10864 "104": 2,
10865 "130": 1,
10866 "153": 1,
10867 "169": 1,
10868 "193": 3,
10869 "194": 8,
10870 "196": 3,
10871 "197": 4,
10872 "225": 3,
10873 "226": 2,
10874 "242": 3,
10875 "243": 3,
10876 "281": 5,
10877 "282": 2,
10878 "290": 1
10879 },
10880 "fqnsFingerprint": "b430b7db3f004410db21b13a1a3b79bdf828d77301f76b9d4dd6b04c17245885"
10881 },
10882 "2ce4c5cd3c9e69f83aa254d87694891befad4e6875932ceccca2b9b4b1193c1b": {
10883 "translations": {
10884 "python": {
10885 "source": "# vpc: ec2.Vpc\n\nauto_scaling_group = autoscaling.AutoScalingGroup(self, \"ASG\",\n machine_image=ecs.EcsOptimizedImage.amazon_linux(cached_in_context=True),\n vpc=vpc,\n instance_type=ec2.InstanceType(\"t2.micro\")\n)",
10886 "version": "2"
10887 },
10888 "csharp": {
10889 "source": "Vpc vpc;\n\nAutoScalingGroup autoScalingGroup = new AutoScalingGroup(this, \"ASG\", new AutoScalingGroupProps {\n MachineImage = EcsOptimizedImage.AmazonLinux(new EcsOptimizedImageOptions { CachedInContext = true }),\n Vpc = vpc,\n InstanceType = new InstanceType(\"t2.micro\")\n});",
10890 "version": "1"
10891 },
10892 "java": {
10893 "source": "Vpc vpc;\n\nAutoScalingGroup autoScalingGroup = AutoScalingGroup.Builder.create(this, \"ASG\")\n .machineImage(EcsOptimizedImage.amazonLinux(EcsOptimizedImageOptions.builder().cachedInContext(true).build()))\n .vpc(vpc)\n .instanceType(new InstanceType(\"t2.micro\"))\n .build();",
10894 "version": "1"
10895 },
10896 "go": {
10897 "source": "var vpc vpc\n\nautoScalingGroup := autoscaling.NewAutoScalingGroup(this, jsii.String(\"ASG\"), &autoScalingGroupProps{\n\tmachineImage: ecs.ecsOptimizedImage.amazonLinux(&ecsOptimizedImageOptions{\n\t\tcachedInContext: jsii.Boolean(true),\n\t}),\n\tvpc: vpc,\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n})",
10898 "version": "1"
10899 },
10900 "$": {
10901 "source": "declare const vpc: ec2.Vpc;\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n machineImage: ecs.EcsOptimizedImage.amazonLinux({ cachedInContext: true }),\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n});",
10902 "version": "0"
10903 }
10904 },
10905 "location": {
10906 "api": {
10907 "api": "type",
10908 "fqn": "@aws-cdk/aws-ecs.EcsOptimizedImageOptions"
10909 },
10910 "field": {
10911 "field": "example"
10912 }
10913 },
10914 "didCompile": true,
10915 "fqnsReferenced": [
10916 "@aws-cdk/aws-autoscaling.AutoScalingGroup",
10917 "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
10918 "@aws-cdk/aws-ec2.IMachineImage",
10919 "@aws-cdk/aws-ec2.IVpc",
10920 "@aws-cdk/aws-ec2.InstanceType",
10921 "@aws-cdk/aws-ecs.EcsOptimizedImage",
10922 "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
10923 "@aws-cdk/aws-ecs.EcsOptimizedImageOptions",
10924 "constructs.Construct"
10925 ],
10926 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst autoScalingGroup = new autoscaling.AutoScalingGroup(this, 'ASG', {\n machineImage: ecs.EcsOptimizedImage.amazonLinux({ cachedInContext: true }),\n vpc,\n instanceType: new ec2.InstanceType('t2.micro'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10927 "syntaxKindCounter": {
10928 "10": 2,
10929 "75": 15,
10930 "104": 1,
10931 "106": 1,
10932 "130": 1,
10933 "153": 1,
10934 "169": 1,
10935 "193": 2,
10936 "194": 4,
10937 "196": 1,
10938 "197": 2,
10939 "225": 2,
10940 "242": 2,
10941 "243": 2,
10942 "281": 3,
10943 "282": 1,
10944 "290": 1
10945 },
10946 "fqnsFingerprint": "0ab6d4bf5239087708ec0fe1f3d834d6a0573370ce11776bfae0bd0277aabbda"
10947 },
10948 "8a84d300a9a226aa3bd4e90d64682eb3679c0b270785e27dce545f2ba44b40f1": {
10949 "translations": {
10950 "python": {
10951 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
10952 "version": "2"
10953 },
10954 "csharp": {
10955 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
10956 "version": "1"
10957 },
10958 "java": {
10959 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
10960 "version": "1"
10961 },
10962 "go": {
10963 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
10964 "version": "1"
10965 },
10966 "$": {
10967 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);",
10968 "version": "0"
10969 }
10970 },
10971 "location": {
10972 "api": {
10973 "api": "type",
10974 "fqn": "@aws-cdk/aws-ecs.EcsTarget"
10975 },
10976 "field": {
10977 "field": "example"
10978 }
10979 },
10980 "didCompile": true,
10981 "fqnsReferenced": [
10982 "@aws-cdk/aws-ec2.IVpc",
10983 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
10984 "@aws-cdk/aws-ecs.EcsTarget",
10985 "@aws-cdk/aws-ecs.FargateService",
10986 "@aws-cdk/aws-ecs.FargateServiceProps",
10987 "@aws-cdk/aws-ecs.ICluster",
10988 "@aws-cdk/aws-ecs.ListenerConfig",
10989 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
10990 "@aws-cdk/aws-ecs.TaskDefinition",
10991 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
10992 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
10993 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
10994 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
10995 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
10996 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
10997 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
10998 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
10999 "constructs.Construct"
11000 ],
11001 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11002 "syntaxKindCounter": {
11003 "8": 2,
11004 "10": 5,
11005 "75": 37,
11006 "104": 2,
11007 "106": 1,
11008 "130": 3,
11009 "153": 3,
11010 "169": 3,
11011 "193": 5,
11012 "194": 8,
11013 "196": 3,
11014 "197": 2,
11015 "225": 6,
11016 "226": 1,
11017 "242": 6,
11018 "243": 6,
11019 "281": 7,
11020 "282": 3,
11021 "290": 1
11022 },
11023 "fqnsFingerprint": "08744ff53889df1f5a881e6043b941376aaa4fd1f99b9043f7e52335832ac36a"
11024 },
11025 "0b67a6ade5a4ca56da6b4ecb021cb367b4a7fc695e67f66ebc6f3795e4e9a41a": {
11026 "translations": {
11027 "python": {
11028 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nefs_volume_configuration = ecs.EfsVolumeConfiguration(\n file_system_id=\"fileSystemId\",\n\n # the properties below are optional\n authorization_config=ecs.AuthorizationConfig(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n)",
11029 "version": "2"
11030 },
11031 "csharp": {
11032 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nEfsVolumeConfiguration efsVolumeConfiguration = new EfsVolumeConfiguration {\n FileSystemId = \"fileSystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfig {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n};",
11033 "version": "1"
11034 },
11035 "java": {
11036 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nEfsVolumeConfiguration efsVolumeConfiguration = EfsVolumeConfiguration.builder()\n .fileSystemId(\"fileSystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfig.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build();",
11037 "version": "1"
11038 },
11039 "go": {
11040 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nefsVolumeConfiguration := &efsVolumeConfiguration{\n\tfileSystemId: jsii.String(\"fileSystemId\"),\n\n\t// the properties below are optional\n\tauthorizationConfig: &authorizationConfig{\n\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\tiam: jsii.String(\"iam\"),\n\t},\n\trootDirectory: jsii.String(\"rootDirectory\"),\n\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\ttransitEncryptionPort: jsii.Number(123),\n}",
11041 "version": "1"
11042 },
11043 "$": {
11044 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst efsVolumeConfiguration: ecs.EfsVolumeConfiguration = {\n fileSystemId: 'fileSystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n};",
11045 "version": "0"
11046 }
11047 },
11048 "location": {
11049 "api": {
11050 "api": "type",
11051 "fqn": "@aws-cdk/aws-ecs.EfsVolumeConfiguration"
11052 },
11053 "field": {
11054 "field": "example"
11055 }
11056 },
11057 "didCompile": true,
11058 "fqnsReferenced": [
11059 "@aws-cdk/aws-ecs.AuthorizationConfig",
11060 "@aws-cdk/aws-ecs.EfsVolumeConfiguration"
11061 ],
11062 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst efsVolumeConfiguration: ecs.EfsVolumeConfiguration = {\n fileSystemId: 'fileSystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
11063 "syntaxKindCounter": {
11064 "8": 1,
11065 "10": 6,
11066 "75": 11,
11067 "153": 1,
11068 "169": 1,
11069 "193": 2,
11070 "225": 1,
11071 "242": 1,
11072 "243": 1,
11073 "254": 1,
11074 "255": 1,
11075 "256": 1,
11076 "281": 7,
11077 "290": 1
11078 },
11079 "fqnsFingerprint": "8616d1aa2f8e9a8ad635ab6e071493b421f5a598af58a177d28e02ea3e272603"
11080 },
11081 "d2c5410e72d41463311be69d2255aa5827b1a97a4cc23899fec30ab4c0892af7": {
11082 "translations": {
11083 "python": {
11084 "source": "# secret: secretsmanager.Secret\n# db_secret: secretsmanager.Secret\n# parameter: ssm.StringParameter\n# task_definition: ecs.TaskDefinition\n# s3_bucket: s3.Bucket\n\n\nnew_container = task_definition.add_container(\"container\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024,\n environment={ # clear text, not for sensitive data\n \"STAGE\": \"prod\"},\n environment_files=[ # list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.from_asset(\"./demo-env-file.env\"),\n ecs.EnvironmentFile.from_bucket(s3_bucket, \"assets/demo-env-file.env\")],\n secrets={ # Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\": ecs.Secret.from_secrets_manager(secret),\n \"DB_PASSWORD\": ecs.Secret.from_secrets_manager(db_secret, \"password\"), # Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\": ecs.Secret.from_secrets_manager_version(secret, ecs.SecretVersionInfo(version_id=\"12345\"), \"apiKey\"), # Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\": ecs.Secret.from_ssm_parameter(parameter)}\n)\nnew_container.add_environment(\"QUEUE_NAME\", \"MyQueue\")",
11085 "version": "2"
11086 },
11087 "csharp": {
11088 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.AddContainer(\"container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024,\n Environment = new Dictionary<string, string> { // clear text, not for sensitive data\n { \"STAGE\", \"prod\" } },\n EnvironmentFiles = new [] { EnvironmentFile.FromAsset(\"./demo-env-file.env\"), EnvironmentFile.FromBucket(s3Bucket, \"assets/demo-env-file.env\") },\n Secrets = new Dictionary<string, Secret> { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n { \"SECRET\", Secret.FromSecretsManager(secret) },\n { \"DB_PASSWORD\", Secret.FromSecretsManager(dbSecret, \"password\") }, // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n { \"API_KEY\", Secret.FromSecretsManagerVersion(secret, new SecretVersionInfo { VersionId = \"12345\" }, \"apiKey\") }, // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n { \"PARAMETER\", Secret.FromSsmParameter(parameter) } }\n});\nnewContainer.AddEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
11089 "version": "1"
11090 },
11091 "java": {
11092 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.addContainer(\"container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .environment(Map.of( // clear text, not for sensitive data\n \"STAGE\", \"prod\"))\n .environmentFiles(List.of(EnvironmentFile.fromAsset(\"./demo-env-file.env\"), EnvironmentFile.fromBucket(s3Bucket, \"assets/demo-env-file.env\")))\n .secrets(Map.of( // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\", Secret.fromSecretsManager(secret),\n \"DB_PASSWORD\", Secret.fromSecretsManager(dbSecret, \"password\"), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\", Secret.fromSecretsManagerVersion(secret, SecretVersionInfo.builder().versionId(\"12345\").build(), \"apiKey\"), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\", Secret.fromSsmParameter(parameter)))\n .build());\nnewContainer.addEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
11093 "version": "1"
11094 },
11095 "go": {
11096 "source": "var secret secret\nvar dbSecret secret\nvar parameter stringParameter\nvar taskDefinition taskDefinition\nvar s3Bucket bucket\n\n\nnewContainer := taskDefinition.addContainer(jsii.String(\"container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tenvironment: map[string]*string{\n\t\t // clear text, not for sensitive data\n\t\t\"STAGE\": jsii.String(\"prod\"),\n\t},\n\tenvironmentFiles: []environmentFile{\n\t\tecs.*environmentFile.fromAsset(jsii.String(\"./demo-env-file.env\")),\n\t\tecs.*environmentFile.fromBucket(s3Bucket, jsii.String(\"assets/demo-env-file.env\")),\n\t},\n\tsecrets: map[string]secret{\n\t\t // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n\t\t\"SECRET\": ecs.*secret.fromSecretsManager(secret),\n\t\t\"DB_PASSWORD\": ecs.*secret.fromSecretsManager(dbSecret, jsii.String(\"password\")),\n\t\t // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"API_KEY\": ecs.*secret.fromSecretsManagerVersion(secret, &SecretVersionInfo{\n\t\t\t\"versionId\": jsii.String(\"12345\"),\n\t\t}, jsii.String(\"apiKey\")),\n\t\t // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"PARAMETER\": ecs.*secret.fromSsmParameter(parameter),\n\t},\n})\nnewContainer.addEnvironment(jsii.String(\"QUEUE_NAME\"), jsii.String(\"MyQueue\"))",
11097 "version": "1"
11098 },
11099 "$": {
11100 "source": "declare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');",
11101 "version": "0"
11102 }
11103 },
11104 "location": {
11105 "api": {
11106 "api": "type",
11107 "fqn": "@aws-cdk/aws-ecs.EnvironmentFile"
11108 },
11109 "field": {
11110 "field": "example"
11111 }
11112 },
11113 "didCompile": true,
11114 "fqnsReferenced": [
11115 "@aws-cdk/aws-ecs.ContainerDefinition",
11116 "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
11117 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
11118 "@aws-cdk/aws-ecs.ContainerImage",
11119 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
11120 "@aws-cdk/aws-ecs.EnvironmentFile",
11121 "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
11122 "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
11123 "@aws-cdk/aws-ecs.Secret",
11124 "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
11125 "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
11126 "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
11127 "@aws-cdk/aws-ecs.SecretVersionInfo",
11128 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
11129 "@aws-cdk/aws-s3.IBucket",
11130 "@aws-cdk/aws-secretsmanager.ISecret",
11131 "@aws-cdk/aws-ssm.IParameter"
11132 ],
11133 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11134 "syntaxKindCounter": {
11135 "8": 1,
11136 "10": 10,
11137 "75": 57,
11138 "130": 5,
11139 "153": 5,
11140 "169": 5,
11141 "192": 1,
11142 "193": 4,
11143 "194": 16,
11144 "196": 9,
11145 "225": 6,
11146 "226": 1,
11147 "242": 6,
11148 "243": 6,
11149 "281": 11,
11150 "290": 1
11151 },
11152 "fqnsFingerprint": "b136978e4b069a3b4d1c7df0fcd416af6f80a95a3578a4eac49f7f3768a6a86f"
11153 },
11154 "d4f494f60cf45ec38f9f5b4bc442aedf5299abd8f4e8cd63a8728fa1d33419de": {
11155 "translations": {
11156 "python": {
11157 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nenvironment_file_config = ecs.EnvironmentFileConfig(\n file_type=ecs.EnvironmentFileType.S3,\n s3_location=Location(\n bucket_name=\"bucketName\",\n object_key=\"objectKey\",\n\n # the properties below are optional\n object_version=\"objectVersion\"\n )\n)",
11158 "version": "2"
11159 },
11160 "csharp": {
11161 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nEnvironmentFileConfig environmentFileConfig = new EnvironmentFileConfig {\n FileType = EnvironmentFileType.S3,\n S3Location = new Location {\n BucketName = \"bucketName\",\n ObjectKey = \"objectKey\",\n\n // the properties below are optional\n ObjectVersion = \"objectVersion\"\n }\n};",
11162 "version": "1"
11163 },
11164 "java": {
11165 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nEnvironmentFileConfig environmentFileConfig = EnvironmentFileConfig.builder()\n .fileType(EnvironmentFileType.S3)\n .s3Location(Location.builder()\n .bucketName(\"bucketName\")\n .objectKey(\"objectKey\")\n\n // the properties below are optional\n .objectVersion(\"objectVersion\")\n .build())\n .build();",
11166 "version": "1"
11167 },
11168 "go": {
11169 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nenvironmentFileConfig := &environmentFileConfig{\n\tfileType: ecs.environmentFileType_S3,\n\ts3Location: &location{\n\t\tbucketName: jsii.String(\"bucketName\"),\n\t\tobjectKey: jsii.String(\"objectKey\"),\n\n\t\t// the properties below are optional\n\t\tobjectVersion: jsii.String(\"objectVersion\"),\n\t},\n}",
11170 "version": "1"
11171 },
11172 "$": {
11173 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst environmentFileConfig: ecs.EnvironmentFileConfig = {\n fileType: ecs.EnvironmentFileType.S3,\n s3Location: {\n bucketName: 'bucketName',\n objectKey: 'objectKey',\n\n // the properties below are optional\n objectVersion: 'objectVersion',\n },\n};",
11174 "version": "0"
11175 }
11176 },
11177 "location": {
11178 "api": {
11179 "api": "type",
11180 "fqn": "@aws-cdk/aws-ecs.EnvironmentFileConfig"
11181 },
11182 "field": {
11183 "field": "example"
11184 }
11185 },
11186 "didCompile": true,
11187 "fqnsReferenced": [
11188 "@aws-cdk/aws-ecs.EnvironmentFileConfig",
11189 "@aws-cdk/aws-ecs.EnvironmentFileType",
11190 "@aws-cdk/aws-ecs.EnvironmentFileType#S3",
11191 "@aws-cdk/aws-s3.Location"
11192 ],
11193 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst environmentFileConfig: ecs.EnvironmentFileConfig = {\n fileType: ecs.EnvironmentFileType.S3,\n s3Location: {\n bucketName: 'bucketName',\n objectKey: 'objectKey',\n\n // the properties below are optional\n objectVersion: 'objectVersion',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
11194 "syntaxKindCounter": {
11195 "10": 4,
11196 "75": 12,
11197 "153": 1,
11198 "169": 1,
11199 "193": 2,
11200 "194": 2,
11201 "225": 1,
11202 "242": 1,
11203 "243": 1,
11204 "254": 1,
11205 "255": 1,
11206 "256": 1,
11207 "281": 5,
11208 "290": 1
11209 },
11210 "fqnsFingerprint": "1cec03efb3bbda5248c9eb38d5be8cea7b38d763514516b850fe1ac6ef9ee090"
11211 },
11212 "1069609c4cd5986e4faa9517e08d0f58e88e164d8d7d2e339f4bbddce27a5d67": {
11213 "translations": {
11214 "python": {
11215 "source": "# vpc: ec2.Vpc\n\nkms_key = kms.Key(self, \"KmsKey\")\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlog_group = logs.LogGroup(self, \"LogGroup\",\n encryption_key=kms_key\n)\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexec_bucket = s3.Bucket(self, \"EcsExecBucket\",\n encryption_key=kms_key\n)\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc,\n execute_command_configuration=ecs.ExecuteCommandConfiguration(\n kms_key=kms_key,\n log_configuration=ecs.ExecuteCommandLogConfiguration(\n cloud_watch_log_group=log_group,\n cloud_watch_encryption_enabled=True,\n s3_bucket=exec_bucket,\n s3_encryption_enabled=True,\n s3_key_prefix=\"exec-command-output\"\n ),\n logging=ecs.ExecuteCommandLogging.OVERRIDE\n )\n)",
11216 "version": "2"
11217 },
11218 "csharp": {
11219 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = new LogGroup(this, \"LogGroup\", new LogGroupProps {\n EncryptionKey = kmsKey\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = new Bucket(this, \"EcsExecBucket\", new BucketProps {\n EncryptionKey = kmsKey\n});\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc,\n ExecuteCommandConfiguration = new ExecuteCommandConfiguration {\n KmsKey = kmsKey,\n LogConfiguration = new ExecuteCommandLogConfiguration {\n CloudWatchLogGroup = logGroup,\n CloudWatchEncryptionEnabled = true,\n S3Bucket = execBucket,\n S3EncryptionEnabled = true,\n S3KeyPrefix = \"exec-command-output\"\n },\n Logging = ExecuteCommandLogging.OVERRIDE\n }\n});",
11220 "version": "1"
11221 },
11222 "java": {
11223 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = LogGroup.Builder.create(this, \"LogGroup\")\n .encryptionKey(kmsKey)\n .build();\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = Bucket.Builder.create(this, \"EcsExecBucket\")\n .encryptionKey(kmsKey)\n .build();\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .executeCommandConfiguration(ExecuteCommandConfiguration.builder()\n .kmsKey(kmsKey)\n .logConfiguration(ExecuteCommandLogConfiguration.builder()\n .cloudWatchLogGroup(logGroup)\n .cloudWatchEncryptionEnabled(true)\n .s3Bucket(execBucket)\n .s3EncryptionEnabled(true)\n .s3KeyPrefix(\"exec-command-output\")\n .build())\n .logging(ExecuteCommandLogging.OVERRIDE)\n .build())\n .build();",
11224 "version": "1"
11225 },
11226 "go": {
11227 "source": "var vpc vpc\n\nkmsKey := kms.NewKey(this, jsii.String(\"KmsKey\"))\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlogGroup := logs.NewLogGroup(this, jsii.String(\"LogGroup\"), &logGroupProps{\n\tencryptionKey: kmsKey,\n})\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexecBucket := s3.NewBucket(this, jsii.String(\"EcsExecBucket\"), &bucketProps{\n\tencryptionKey: kmsKey,\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n\texecuteCommandConfiguration: &executeCommandConfiguration{\n\t\tkmsKey: kmsKey,\n\t\tlogConfiguration: &executeCommandLogConfiguration{\n\t\t\tcloudWatchLogGroup: logGroup,\n\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3Bucket: execBucket,\n\t\t\ts3EncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3KeyPrefix: jsii.String(\"exec-command-output\"),\n\t\t},\n\t\tlogging: ecs.executeCommandLogging_OVERRIDE,\n\t},\n})",
11228 "version": "1"
11229 },
11230 "$": {
11231 "source": "declare const vpc: ec2.Vpc;\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});",
11232 "version": "0"
11233 }
11234 },
11235 "location": {
11236 "api": {
11237 "api": "type",
11238 "fqn": "@aws-cdk/aws-ecs.ExecuteCommandConfiguration"
11239 },
11240 "field": {
11241 "field": "example"
11242 }
11243 },
11244 "didCompile": true,
11245 "fqnsReferenced": [
11246 "@aws-cdk/aws-ec2.IVpc",
11247 "@aws-cdk/aws-ecs.Cluster",
11248 "@aws-cdk/aws-ecs.ClusterProps",
11249 "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
11250 "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
11251 "@aws-cdk/aws-ecs.ExecuteCommandLogging",
11252 "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
11253 "@aws-cdk/aws-kms.IKey",
11254 "@aws-cdk/aws-kms.Key",
11255 "@aws-cdk/aws-logs.ILogGroup",
11256 "@aws-cdk/aws-logs.LogGroup",
11257 "@aws-cdk/aws-logs.LogGroupProps",
11258 "@aws-cdk/aws-s3.Bucket",
11259 "@aws-cdk/aws-s3.BucketProps",
11260 "@aws-cdk/aws-s3.IBucket",
11261 "constructs.Construct"
11262 ],
11263 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11264 "syntaxKindCounter": {
11265 "10": 5,
11266 "75": 34,
11267 "104": 4,
11268 "106": 2,
11269 "130": 1,
11270 "153": 1,
11271 "169": 1,
11272 "193": 5,
11273 "194": 6,
11274 "197": 4,
11275 "225": 5,
11276 "242": 5,
11277 "243": 5,
11278 "281": 10,
11279 "282": 2,
11280 "290": 1
11281 },
11282 "fqnsFingerprint": "2b4516181ba827dbda3cdf3df300524af8957eb1ac5e9cf7a3b96479f737e8ce"
11283 },
11284 "a012a8272575a158807d7c88527fc2abd0a72d119804ca9b0b6698ff6f7a01f0": {
11285 "translations": {
11286 "python": {
11287 "source": "# vpc: ec2.Vpc\n\nkms_key = kms.Key(self, \"KmsKey\")\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlog_group = logs.LogGroup(self, \"LogGroup\",\n encryption_key=kms_key\n)\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexec_bucket = s3.Bucket(self, \"EcsExecBucket\",\n encryption_key=kms_key\n)\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc,\n execute_command_configuration=ecs.ExecuteCommandConfiguration(\n kms_key=kms_key,\n log_configuration=ecs.ExecuteCommandLogConfiguration(\n cloud_watch_log_group=log_group,\n cloud_watch_encryption_enabled=True,\n s3_bucket=exec_bucket,\n s3_encryption_enabled=True,\n s3_key_prefix=\"exec-command-output\"\n ),\n logging=ecs.ExecuteCommandLogging.OVERRIDE\n )\n)",
11288 "version": "2"
11289 },
11290 "csharp": {
11291 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = new LogGroup(this, \"LogGroup\", new LogGroupProps {\n EncryptionKey = kmsKey\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = new Bucket(this, \"EcsExecBucket\", new BucketProps {\n EncryptionKey = kmsKey\n});\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc,\n ExecuteCommandConfiguration = new ExecuteCommandConfiguration {\n KmsKey = kmsKey,\n LogConfiguration = new ExecuteCommandLogConfiguration {\n CloudWatchLogGroup = logGroup,\n CloudWatchEncryptionEnabled = true,\n S3Bucket = execBucket,\n S3EncryptionEnabled = true,\n S3KeyPrefix = \"exec-command-output\"\n },\n Logging = ExecuteCommandLogging.OVERRIDE\n }\n});",
11292 "version": "1"
11293 },
11294 "java": {
11295 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = LogGroup.Builder.create(this, \"LogGroup\")\n .encryptionKey(kmsKey)\n .build();\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = Bucket.Builder.create(this, \"EcsExecBucket\")\n .encryptionKey(kmsKey)\n .build();\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .executeCommandConfiguration(ExecuteCommandConfiguration.builder()\n .kmsKey(kmsKey)\n .logConfiguration(ExecuteCommandLogConfiguration.builder()\n .cloudWatchLogGroup(logGroup)\n .cloudWatchEncryptionEnabled(true)\n .s3Bucket(execBucket)\n .s3EncryptionEnabled(true)\n .s3KeyPrefix(\"exec-command-output\")\n .build())\n .logging(ExecuteCommandLogging.OVERRIDE)\n .build())\n .build();",
11296 "version": "1"
11297 },
11298 "go": {
11299 "source": "var vpc vpc\n\nkmsKey := kms.NewKey(this, jsii.String(\"KmsKey\"))\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlogGroup := logs.NewLogGroup(this, jsii.String(\"LogGroup\"), &logGroupProps{\n\tencryptionKey: kmsKey,\n})\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexecBucket := s3.NewBucket(this, jsii.String(\"EcsExecBucket\"), &bucketProps{\n\tencryptionKey: kmsKey,\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n\texecuteCommandConfiguration: &executeCommandConfiguration{\n\t\tkmsKey: kmsKey,\n\t\tlogConfiguration: &executeCommandLogConfiguration{\n\t\t\tcloudWatchLogGroup: logGroup,\n\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3Bucket: execBucket,\n\t\t\ts3EncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3KeyPrefix: jsii.String(\"exec-command-output\"),\n\t\t},\n\t\tlogging: ecs.executeCommandLogging_OVERRIDE,\n\t},\n})",
11300 "version": "1"
11301 },
11302 "$": {
11303 "source": "declare const vpc: ec2.Vpc;\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});",
11304 "version": "0"
11305 }
11306 },
11307 "location": {
11308 "api": {
11309 "api": "type",
11310 "fqn": "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration"
11311 },
11312 "field": {
11313 "field": "example"
11314 }
11315 },
11316 "didCompile": true,
11317 "fqnsReferenced": [
11318 "@aws-cdk/aws-ec2.IVpc",
11319 "@aws-cdk/aws-ecs.Cluster",
11320 "@aws-cdk/aws-ecs.ClusterProps",
11321 "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
11322 "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
11323 "@aws-cdk/aws-ecs.ExecuteCommandLogging",
11324 "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
11325 "@aws-cdk/aws-kms.IKey",
11326 "@aws-cdk/aws-kms.Key",
11327 "@aws-cdk/aws-logs.ILogGroup",
11328 "@aws-cdk/aws-logs.LogGroup",
11329 "@aws-cdk/aws-logs.LogGroupProps",
11330 "@aws-cdk/aws-s3.Bucket",
11331 "@aws-cdk/aws-s3.BucketProps",
11332 "@aws-cdk/aws-s3.IBucket",
11333 "constructs.Construct"
11334 ],
11335 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11336 "syntaxKindCounter": {
11337 "10": 5,
11338 "75": 34,
11339 "104": 4,
11340 "106": 2,
11341 "130": 1,
11342 "153": 1,
11343 "169": 1,
11344 "193": 5,
11345 "194": 6,
11346 "197": 4,
11347 "225": 5,
11348 "242": 5,
11349 "243": 5,
11350 "281": 10,
11351 "282": 2,
11352 "290": 1
11353 },
11354 "fqnsFingerprint": "2b4516181ba827dbda3cdf3df300524af8957eb1ac5e9cf7a3b96479f737e8ce"
11355 },
11356 "8035343e6494a5363616c62e8e82f7fdb853dcf8be4e43ce39a02e158bc7a590": {
11357 "translations": {
11358 "python": {
11359 "source": "# vpc: ec2.Vpc\n\nkms_key = kms.Key(self, \"KmsKey\")\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlog_group = logs.LogGroup(self, \"LogGroup\",\n encryption_key=kms_key\n)\n\n# Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexec_bucket = s3.Bucket(self, \"EcsExecBucket\",\n encryption_key=kms_key\n)\n\ncluster = ecs.Cluster(self, \"Cluster\",\n vpc=vpc,\n execute_command_configuration=ecs.ExecuteCommandConfiguration(\n kms_key=kms_key,\n log_configuration=ecs.ExecuteCommandLogConfiguration(\n cloud_watch_log_group=log_group,\n cloud_watch_encryption_enabled=True,\n s3_bucket=exec_bucket,\n s3_encryption_enabled=True,\n s3_key_prefix=\"exec-command-output\"\n ),\n logging=ecs.ExecuteCommandLogging.OVERRIDE\n )\n)",
11360 "version": "2"
11361 },
11362 "csharp": {
11363 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = new LogGroup(this, \"LogGroup\", new LogGroupProps {\n EncryptionKey = kmsKey\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = new Bucket(this, \"EcsExecBucket\", new BucketProps {\n EncryptionKey = kmsKey\n});\n\nCluster cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = vpc,\n ExecuteCommandConfiguration = new ExecuteCommandConfiguration {\n KmsKey = kmsKey,\n LogConfiguration = new ExecuteCommandLogConfiguration {\n CloudWatchLogGroup = logGroup,\n CloudWatchEncryptionEnabled = true,\n S3Bucket = execBucket,\n S3EncryptionEnabled = true,\n S3KeyPrefix = \"exec-command-output\"\n },\n Logging = ExecuteCommandLogging.OVERRIDE\n }\n});",
11364 "version": "1"
11365 },
11366 "java": {
11367 "source": "Vpc vpc;\n\nKey kmsKey = new Key(this, \"KmsKey\");\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nLogGroup logGroup = LogGroup.Builder.create(this, \"LogGroup\")\n .encryptionKey(kmsKey)\n .build();\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nBucket execBucket = Bucket.Builder.create(this, \"EcsExecBucket\")\n .encryptionKey(kmsKey)\n .build();\n\nCluster cluster = Cluster.Builder.create(this, \"Cluster\")\n .vpc(vpc)\n .executeCommandConfiguration(ExecuteCommandConfiguration.builder()\n .kmsKey(kmsKey)\n .logConfiguration(ExecuteCommandLogConfiguration.builder()\n .cloudWatchLogGroup(logGroup)\n .cloudWatchEncryptionEnabled(true)\n .s3Bucket(execBucket)\n .s3EncryptionEnabled(true)\n .s3KeyPrefix(\"exec-command-output\")\n .build())\n .logging(ExecuteCommandLogging.OVERRIDE)\n .build())\n .build();",
11368 "version": "1"
11369 },
11370 "go": {
11371 "source": "var vpc vpc\n\nkmsKey := kms.NewKey(this, jsii.String(\"KmsKey\"))\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nlogGroup := logs.NewLogGroup(this, jsii.String(\"LogGroup\"), &logGroupProps{\n\tencryptionKey: kmsKey,\n})\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nexecBucket := s3.NewBucket(this, jsii.String(\"EcsExecBucket\"), &bucketProps{\n\tencryptionKey: kmsKey,\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\tvpc: vpc,\n\texecuteCommandConfiguration: &executeCommandConfiguration{\n\t\tkmsKey: kmsKey,\n\t\tlogConfiguration: &executeCommandLogConfiguration{\n\t\t\tcloudWatchLogGroup: logGroup,\n\t\t\tcloudWatchEncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3Bucket: execBucket,\n\t\t\ts3EncryptionEnabled: jsii.Boolean(true),\n\t\t\ts3KeyPrefix: jsii.String(\"exec-command-output\"),\n\t\t},\n\t\tlogging: ecs.executeCommandLogging_OVERRIDE,\n\t},\n})",
11372 "version": "1"
11373 },
11374 "$": {
11375 "source": "declare const vpc: ec2.Vpc;\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});",
11376 "version": "0"
11377 }
11378 },
11379 "location": {
11380 "api": {
11381 "api": "type",
11382 "fqn": "@aws-cdk/aws-ecs.ExecuteCommandLogging"
11383 },
11384 "field": {
11385 "field": "example"
11386 }
11387 },
11388 "didCompile": true,
11389 "fqnsReferenced": [
11390 "@aws-cdk/aws-ec2.IVpc",
11391 "@aws-cdk/aws-ecs.Cluster",
11392 "@aws-cdk/aws-ecs.ClusterProps",
11393 "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
11394 "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
11395 "@aws-cdk/aws-ecs.ExecuteCommandLogging",
11396 "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
11397 "@aws-cdk/aws-kms.IKey",
11398 "@aws-cdk/aws-kms.Key",
11399 "@aws-cdk/aws-logs.ILogGroup",
11400 "@aws-cdk/aws-logs.LogGroup",
11401 "@aws-cdk/aws-logs.LogGroupProps",
11402 "@aws-cdk/aws-s3.Bucket",
11403 "@aws-cdk/aws-s3.BucketProps",
11404 "@aws-cdk/aws-s3.IBucket",
11405 "constructs.Construct"
11406 ],
11407 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst kmsKey = new kms.Key(this, 'KmsKey');\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the log group\nconst logGroup = new logs.LogGroup(this, 'LogGroup', {\n encryptionKey: kmsKey,\n});\n\n// Pass the KMS key in the `encryptionKey` field to associate the key to the S3 bucket\nconst execBucket = new s3.Bucket(this, 'EcsExecBucket', {\n encryptionKey: kmsKey,\n});\n\nconst cluster = new ecs.Cluster(this, 'Cluster', {\n vpc,\n executeCommandConfiguration: {\n kmsKey,\n logConfiguration: {\n cloudWatchLogGroup: logGroup,\n cloudWatchEncryptionEnabled: true,\n s3Bucket: execBucket,\n s3EncryptionEnabled: true,\n s3KeyPrefix: 'exec-command-output',\n },\n logging: ecs.ExecuteCommandLogging.OVERRIDE,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11408 "syntaxKindCounter": {
11409 "10": 5,
11410 "75": 34,
11411 "104": 4,
11412 "106": 2,
11413 "130": 1,
11414 "153": 1,
11415 "169": 1,
11416 "193": 5,
11417 "194": 6,
11418 "197": 4,
11419 "225": 5,
11420 "242": 5,
11421 "243": 5,
11422 "281": 10,
11423 "282": 2,
11424 "290": 1
11425 },
11426 "fqnsFingerprint": "2b4516181ba827dbda3cdf3df300524af8957eb1ac5e9cf7a3b96479f737e8ce"
11427 },
11428 "2a51d994e5587208abb324addbb06027860d39566054445895774d81af080387": {
11429 "translations": {
11430 "python": {
11431 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\n\nservice = ecs.ExternalService(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n desired_count=5\n)",
11432 "version": "2"
11433 },
11434 "csharp": {
11435 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nExternalService service = new ExternalService(this, \"Service\", new ExternalServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n DesiredCount = 5\n});",
11436 "version": "1"
11437 },
11438 "java": {
11439 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nExternalService service = ExternalService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .desiredCount(5)\n .build();",
11440 "version": "1"
11441 },
11442 "go": {
11443 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\n\nservice := ecs.NewExternalService(this, jsii.String(\"Service\"), &externalServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tdesiredCount: jsii.Number(5),\n})",
11444 "version": "1"
11445 },
11446 "$": {
11447 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n\nconst service = new ecs.ExternalService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});",
11448 "version": "0"
11449 }
11450 },
11451 "location": {
11452 "api": {
11453 "api": "type",
11454 "fqn": "@aws-cdk/aws-ecs.ExternalService"
11455 },
11456 "field": {
11457 "field": "example"
11458 }
11459 },
11460 "didCompile": true,
11461 "fqnsReferenced": [
11462 "@aws-cdk/aws-ecs.ExternalService",
11463 "@aws-cdk/aws-ecs.ExternalServiceProps",
11464 "@aws-cdk/aws-ecs.ICluster",
11465 "@aws-cdk/aws-ecs.TaskDefinition",
11466 "constructs.Construct"
11467 ],
11468 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.ExternalService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11469 "syntaxKindCounter": {
11470 "8": 1,
11471 "10": 1,
11472 "75": 12,
11473 "104": 1,
11474 "130": 2,
11475 "153": 2,
11476 "169": 2,
11477 "193": 1,
11478 "194": 1,
11479 "197": 1,
11480 "225": 3,
11481 "242": 3,
11482 "243": 3,
11483 "281": 1,
11484 "282": 2,
11485 "290": 1
11486 },
11487 "fqnsFingerprint": "6e233493c091cfbc258120c248a12283c329cfb3a9cb793d4040d05af94c33ef"
11488 },
11489 "2cddec0b774995aca31dfaccfb676be6bad0637938f169ece6e33de9c739a3d6": {
11490 "translations": {
11491 "python": {
11492 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\n# cluster: ecs.Cluster\n\nexternal_service_attributes = ecs.ExternalServiceAttributes(\n cluster=cluster,\n\n # the properties below are optional\n service_arn=\"serviceArn\",\n service_name=\"serviceName\"\n)",
11493 "version": "2"
11494 },
11495 "csharp": {
11496 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCluster cluster;\n\nExternalServiceAttributes externalServiceAttributes = new ExternalServiceAttributes {\n Cluster = cluster,\n\n // the properties below are optional\n ServiceArn = \"serviceArn\",\n ServiceName = \"serviceName\"\n};",
11497 "version": "1"
11498 },
11499 "java": {
11500 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCluster cluster;\n\nExternalServiceAttributes externalServiceAttributes = ExternalServiceAttributes.builder()\n .cluster(cluster)\n\n // the properties below are optional\n .serviceArn(\"serviceArn\")\n .serviceName(\"serviceName\")\n .build();",
11501 "version": "1"
11502 },
11503 "go": {
11504 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvar cluster cluster\n\nexternalServiceAttributes := &externalServiceAttributes{\n\tcluster: cluster,\n\n\t// the properties below are optional\n\tserviceArn: jsii.String(\"serviceArn\"),\n\tserviceName: jsii.String(\"serviceName\"),\n}",
11505 "version": "1"
11506 },
11507 "$": {
11508 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const cluster: ecs.Cluster;\nconst externalServiceAttributes: ecs.ExternalServiceAttributes = {\n cluster: cluster,\n\n // the properties below are optional\n serviceArn: 'serviceArn',\n serviceName: 'serviceName',\n};",
11509 "version": "0"
11510 }
11511 },
11512 "location": {
11513 "api": {
11514 "api": "type",
11515 "fqn": "@aws-cdk/aws-ecs.ExternalServiceAttributes"
11516 },
11517 "field": {
11518 "field": "example"
11519 }
11520 },
11521 "didCompile": true,
11522 "fqnsReferenced": [
11523 "@aws-cdk/aws-ecs.ExternalServiceAttributes",
11524 "@aws-cdk/aws-ecs.ICluster"
11525 ],
11526 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst externalServiceAttributes: ecs.ExternalServiceAttributes = {\n cluster: cluster,\n\n // the properties below are optional\n serviceArn: 'serviceArn',\n serviceName: 'serviceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
11527 "syntaxKindCounter": {
11528 "10": 3,
11529 "75": 11,
11530 "130": 1,
11531 "153": 2,
11532 "169": 2,
11533 "193": 1,
11534 "225": 2,
11535 "242": 2,
11536 "243": 2,
11537 "254": 1,
11538 "255": 1,
11539 "256": 1,
11540 "281": 3,
11541 "290": 1
11542 },
11543 "fqnsFingerprint": "431d4fd1295943d5a6d754819f117e4395f1eab0e330c70310e98bdffd91368a"
11544 },
11545 "a41d0e042af471f30a1d843e40f31549b39127e082876af37bb092d6eeaf9352": {
11546 "translations": {
11547 "python": {
11548 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n\n\nservice = ecs.ExternalService(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n desired_count=5\n)",
11549 "version": "2"
11550 },
11551 "csharp": {
11552 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nExternalService service = new ExternalService(this, \"Service\", new ExternalServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n DesiredCount = 5\n});",
11553 "version": "1"
11554 },
11555 "java": {
11556 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\n\n\nExternalService service = ExternalService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .desiredCount(5)\n .build();",
11557 "version": "1"
11558 },
11559 "go": {
11560 "source": "var cluster cluster\nvar taskDefinition taskDefinition\n\n\nservice := ecs.NewExternalService(this, jsii.String(\"Service\"), &externalServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tdesiredCount: jsii.Number(5),\n})",
11561 "version": "1"
11562 },
11563 "$": {
11564 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n\nconst service = new ecs.ExternalService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});",
11565 "version": "0"
11566 }
11567 },
11568 "location": {
11569 "api": {
11570 "api": "type",
11571 "fqn": "@aws-cdk/aws-ecs.ExternalServiceProps"
11572 },
11573 "field": {
11574 "field": "example"
11575 }
11576 },
11577 "didCompile": true,
11578 "fqnsReferenced": [
11579 "@aws-cdk/aws-ecs.ExternalService",
11580 "@aws-cdk/aws-ecs.ExternalServiceProps",
11581 "@aws-cdk/aws-ecs.ICluster",
11582 "@aws-cdk/aws-ecs.TaskDefinition",
11583 "constructs.Construct"
11584 ],
11585 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst service = new ecs.ExternalService(this, 'Service', {\n cluster,\n taskDefinition,\n desiredCount: 5,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11586 "syntaxKindCounter": {
11587 "8": 1,
11588 "10": 1,
11589 "75": 12,
11590 "104": 1,
11591 "130": 2,
11592 "153": 2,
11593 "169": 2,
11594 "193": 1,
11595 "194": 1,
11596 "197": 1,
11597 "225": 3,
11598 "242": 3,
11599 "243": 3,
11600 "281": 1,
11601 "282": 2,
11602 "290": 1
11603 },
11604 "fqnsFingerprint": "6e233493c091cfbc258120c248a12283c329cfb3a9cb793d4040d05af94c33ef"
11605 },
11606 "939ee9559ebefca8601a0c1561afd0bcd0f2d2d5b1fc7a9412d81f1f781553b8": {
11607 "translations": {
11608 "python": {
11609 "source": "external_task_definition = ecs.ExternalTaskDefinition(self, \"TaskDef\")\n\ncontainer = external_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024\n)",
11610 "version": "2"
11611 },
11612 "csharp": {
11613 "source": "ExternalTaskDefinition externalTaskDefinition = new ExternalTaskDefinition(this, \"TaskDef\");\n\nContainerDefinition container = externalTaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024\n});",
11614 "version": "1"
11615 },
11616 "java": {
11617 "source": "ExternalTaskDefinition externalTaskDefinition = new ExternalTaskDefinition(this, \"TaskDef\");\n\nContainerDefinition container = externalTaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .build());",
11618 "version": "1"
11619 },
11620 "go": {
11621 "source": "externalTaskDefinition := ecs.NewExternalTaskDefinition(this, jsii.String(\"TaskDef\"))\n\ncontainer := externalTaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n})",
11622 "version": "1"
11623 },
11624 "$": {
11625 "source": "const externalTaskDefinition = new ecs.ExternalTaskDefinition(this, 'TaskDef');\n\nconst container = externalTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});",
11626 "version": "0"
11627 }
11628 },
11629 "location": {
11630 "api": {
11631 "api": "type",
11632 "fqn": "@aws-cdk/aws-ecs.ExternalTaskDefinition"
11633 },
11634 "field": {
11635 "field": "example"
11636 }
11637 },
11638 "didCompile": true,
11639 "fqnsReferenced": [
11640 "@aws-cdk/aws-ecs.ContainerDefinition",
11641 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
11642 "@aws-cdk/aws-ecs.ContainerImage",
11643 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
11644 "@aws-cdk/aws-ecs.ExternalTaskDefinition",
11645 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
11646 "constructs.Construct"
11647 ],
11648 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst externalTaskDefinition = new ecs.ExternalTaskDefinition(this, 'TaskDef');\n\nconst container = externalTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11649 "syntaxKindCounter": {
11650 "8": 1,
11651 "10": 3,
11652 "75": 11,
11653 "104": 1,
11654 "193": 1,
11655 "194": 4,
11656 "196": 2,
11657 "197": 1,
11658 "225": 2,
11659 "242": 2,
11660 "243": 2,
11661 "281": 2
11662 },
11663 "fqnsFingerprint": "e2741b7c5ae74ef4a0ead3c02159d7532e256d6fdb47e072c85499f1b244fe31"
11664 },
11665 "65a1e67abbb8f0a2875eff9100213b5200278d11c60039e304d6047615a18c09": {
11666 "translations": {
11667 "python": {
11668 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# role: iam.Role\n\nexternal_task_definition_attributes = ecs.ExternalTaskDefinitionAttributes(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n network_mode=ecs.NetworkMode.NONE,\n task_role=role\n)",
11669 "version": "2"
11670 },
11671 "csharp": {
11672 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nRole role;\n\nExternalTaskDefinitionAttributes externalTaskDefinitionAttributes = new ExternalTaskDefinitionAttributes {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n NetworkMode = NetworkMode.NONE,\n TaskRole = role\n};",
11673 "version": "1"
11674 },
11675 "java": {
11676 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nExternalTaskDefinitionAttributes externalTaskDefinitionAttributes = ExternalTaskDefinitionAttributes.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .networkMode(NetworkMode.NONE)\n .taskRole(role)\n .build();",
11677 "version": "1"
11678 },
11679 "go": {
11680 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar role role\n\nexternalTaskDefinitionAttributes := &externalTaskDefinitionAttributes{\n\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t// the properties below are optional\n\tnetworkMode: ecs.networkMode_NONE,\n\ttaskRole: role,\n}",
11681 "version": "1"
11682 },
11683 "$": {
11684 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\nconst externalTaskDefinitionAttributes: ecs.ExternalTaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};",
11685 "version": "0"
11686 }
11687 },
11688 "location": {
11689 "api": {
11690 "api": "type",
11691 "fqn": "@aws-cdk/aws-ecs.ExternalTaskDefinitionAttributes"
11692 },
11693 "field": {
11694 "field": "example"
11695 }
11696 },
11697 "didCompile": true,
11698 "fqnsReferenced": [
11699 "@aws-cdk/aws-ecs.ExternalTaskDefinitionAttributes",
11700 "@aws-cdk/aws-ecs.NetworkMode",
11701 "@aws-cdk/aws-ecs.NetworkMode#NONE",
11702 "@aws-cdk/aws-iam.IRole"
11703 ],
11704 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst externalTaskDefinitionAttributes: ecs.ExternalTaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
11705 "syntaxKindCounter": {
11706 "10": 3,
11707 "75": 15,
11708 "130": 1,
11709 "153": 2,
11710 "169": 2,
11711 "193": 1,
11712 "194": 2,
11713 "225": 2,
11714 "242": 2,
11715 "243": 2,
11716 "254": 2,
11717 "255": 2,
11718 "256": 2,
11719 "281": 3,
11720 "290": 1
11721 },
11722 "fqnsFingerprint": "a15fb5f8c44f505ed18d11464632c6951625c40762a66520105b16b49f1c50d2"
11723 },
11724 "5894849529b4138a2752f4dde319bb65a9cdcca4f27087bc86a4346afebed3d0": {
11725 "translations": {
11726 "python": {
11727 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# proxy_configuration: ecs.ProxyConfiguration\n# role: iam.Role\n\nexternal_task_definition_props = ecs.ExternalTaskDefinitionProps(\n execution_role=role,\n family=\"family\",\n proxy_configuration=proxy_configuration,\n task_role=role,\n volumes=[ecs.Volume(\n name=\"name\",\n\n # the properties below are optional\n docker_volume_configuration=ecs.DockerVolumeConfiguration(\n driver=\"driver\",\n scope=ecs.Scope.TASK,\n\n # the properties below are optional\n autoprovision=False,\n driver_opts={\n \"driver_opts_key\": \"driverOpts\"\n },\n labels={\n \"labels_key\": \"labels\"\n }\n ),\n efs_volume_configuration=ecs.EfsVolumeConfiguration(\n file_system_id=\"fileSystemId\",\n\n # the properties below are optional\n authorization_config=ecs.AuthorizationConfig(\n access_point_id=\"accessPointId\",\n iam=\"iam\"\n ),\n root_directory=\"rootDirectory\",\n transit_encryption=\"transitEncryption\",\n transit_encryption_port=123\n ),\n host=ecs.Host(\n source_path=\"sourcePath\"\n )\n )]\n)",
11728 "version": "2"
11729 },
11730 "csharp": {
11731 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nProxyConfiguration proxyConfiguration;\nRole role;\n\nExternalTaskDefinitionProps externalTaskDefinitionProps = new ExternalTaskDefinitionProps {\n ExecutionRole = role,\n Family = \"family\",\n ProxyConfiguration = proxyConfiguration,\n TaskRole = role,\n Volumes = new [] { new Volume {\n Name = \"name\",\n\n // the properties below are optional\n DockerVolumeConfiguration = new DockerVolumeConfiguration {\n Driver = \"driver\",\n Scope = Scope.TASK,\n\n // the properties below are optional\n Autoprovision = false,\n DriverOpts = new Dictionary<string, string> {\n { \"driverOptsKey\", \"driverOpts\" }\n },\n Labels = new Dictionary<string, string> {\n { \"labelsKey\", \"labels\" }\n }\n },\n EfsVolumeConfiguration = new EfsVolumeConfiguration {\n FileSystemId = \"fileSystemId\",\n\n // the properties below are optional\n AuthorizationConfig = new AuthorizationConfig {\n AccessPointId = \"accessPointId\",\n Iam = \"iam\"\n },\n RootDirectory = \"rootDirectory\",\n TransitEncryption = \"transitEncryption\",\n TransitEncryptionPort = 123\n },\n Host = new Host {\n SourcePath = \"sourcePath\"\n }\n } }\n};",
11732 "version": "1"
11733 },
11734 "java": {
11735 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nProxyConfiguration proxyConfiguration;\nRole role;\n\nExternalTaskDefinitionProps externalTaskDefinitionProps = ExternalTaskDefinitionProps.builder()\n .executionRole(role)\n .family(\"family\")\n .proxyConfiguration(proxyConfiguration)\n .taskRole(role)\n .volumes(List.of(Volume.builder()\n .name(\"name\")\n\n // the properties below are optional\n .dockerVolumeConfiguration(DockerVolumeConfiguration.builder()\n .driver(\"driver\")\n .scope(Scope.TASK)\n\n // the properties below are optional\n .autoprovision(false)\n .driverOpts(Map.of(\n \"driverOptsKey\", \"driverOpts\"))\n .labels(Map.of(\n \"labelsKey\", \"labels\"))\n .build())\n .efsVolumeConfiguration(EfsVolumeConfiguration.builder()\n .fileSystemId(\"fileSystemId\")\n\n // the properties below are optional\n .authorizationConfig(AuthorizationConfig.builder()\n .accessPointId(\"accessPointId\")\n .iam(\"iam\")\n .build())\n .rootDirectory(\"rootDirectory\")\n .transitEncryption(\"transitEncryption\")\n .transitEncryptionPort(123)\n .build())\n .host(Host.builder()\n .sourcePath(\"sourcePath\")\n .build())\n .build()))\n .build();",
11736 "version": "1"
11737 },
11738 "go": {
11739 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar proxyConfiguration proxyConfiguration\nvar role role\n\nexternalTaskDefinitionProps := &externalTaskDefinitionProps{\n\texecutionRole: role,\n\tfamily: jsii.String(\"family\"),\n\tproxyConfiguration: proxyConfiguration,\n\ttaskRole: role,\n\tvolumes: []volume{\n\t\t&volume{\n\t\t\tname: jsii.String(\"name\"),\n\n\t\t\t// the properties below are optional\n\t\t\tdockerVolumeConfiguration: &dockerVolumeConfiguration{\n\t\t\t\tdriver: jsii.String(\"driver\"),\n\t\t\t\tscope: ecs.scope_TASK,\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tautoprovision: jsii.Boolean(false),\n\t\t\t\tdriverOpts: map[string]*string{\n\t\t\t\t\t\"driverOptsKey\": jsii.String(\"driverOpts\"),\n\t\t\t\t},\n\t\t\t\tlabels: map[string]*string{\n\t\t\t\t\t\"labelsKey\": jsii.String(\"labels\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tefsVolumeConfiguration: &efsVolumeConfiguration{\n\t\t\t\tfileSystemId: jsii.String(\"fileSystemId\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tauthorizationConfig: &authorizationConfig{\n\t\t\t\t\taccessPointId: jsii.String(\"accessPointId\"),\n\t\t\t\t\tiam: jsii.String(\"iam\"),\n\t\t\t\t},\n\t\t\t\trootDirectory: jsii.String(\"rootDirectory\"),\n\t\t\t\ttransitEncryption: jsii.String(\"transitEncryption\"),\n\t\t\t\ttransitEncryptionPort: jsii.Number(123),\n\t\t\t},\n\t\t\thost: &host{\n\t\t\t\tsourcePath: jsii.String(\"sourcePath\"),\n\t\t\t},\n\t\t},\n\t},\n}",
11740 "version": "1"
11741 },
11742 "$": {
11743 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const proxyConfiguration: ecs.ProxyConfiguration;\ndeclare const role: iam.Role;\nconst externalTaskDefinitionProps: ecs.ExternalTaskDefinitionProps = {\n executionRole: role,\n family: 'family',\n proxyConfiguration: proxyConfiguration,\n taskRole: role,\n volumes: [{\n name: 'name',\n\n // the properties below are optional\n dockerVolumeConfiguration: {\n driver: 'driver',\n scope: ecs.Scope.TASK,\n\n // the properties below are optional\n autoprovision: false,\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n },\n efsVolumeConfiguration: {\n fileSystemId: 'fileSystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n }],\n};",
11744 "version": "0"
11745 }
11746 },
11747 "location": {
11748 "api": {
11749 "api": "type",
11750 "fqn": "@aws-cdk/aws-ecs.ExternalTaskDefinitionProps"
11751 },
11752 "field": {
11753 "field": "example"
11754 }
11755 },
11756 "didCompile": true,
11757 "fqnsReferenced": [
11758 "@aws-cdk/aws-ecs.AuthorizationConfig",
11759 "@aws-cdk/aws-ecs.DockerVolumeConfiguration",
11760 "@aws-cdk/aws-ecs.EfsVolumeConfiguration",
11761 "@aws-cdk/aws-ecs.ExternalTaskDefinitionProps",
11762 "@aws-cdk/aws-ecs.Host",
11763 "@aws-cdk/aws-ecs.ProxyConfiguration",
11764 "@aws-cdk/aws-ecs.Scope",
11765 "@aws-cdk/aws-ecs.Scope#TASK",
11766 "@aws-cdk/aws-iam.IRole"
11767 ],
11768 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const proxyConfiguration: ecs.ProxyConfiguration;\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst externalTaskDefinitionProps: ecs.ExternalTaskDefinitionProps = {\n executionRole: role,\n family: 'family',\n proxyConfiguration: proxyConfiguration,\n taskRole: role,\n volumes: [{\n name: 'name',\n\n // the properties below are optional\n dockerVolumeConfiguration: {\n driver: 'driver',\n scope: ecs.Scope.TASK,\n\n // the properties below are optional\n autoprovision: false,\n driverOpts: {\n driverOptsKey: 'driverOpts',\n },\n labels: {\n labelsKey: 'labels',\n },\n },\n efsVolumeConfiguration: {\n fileSystemId: 'fileSystemId',\n\n // the properties below are optional\n authorizationConfig: {\n accessPointId: 'accessPointId',\n iam: 'iam',\n },\n rootDirectory: 'rootDirectory',\n transitEncryption: 'transitEncryption',\n transitEncryptionPort: 123,\n },\n host: {\n sourcePath: 'sourcePath',\n },\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
11769 "syntaxKindCounter": {
11770 "8": 1,
11771 "10": 13,
11772 "75": 41,
11773 "91": 1,
11774 "130": 2,
11775 "153": 3,
11776 "169": 3,
11777 "192": 1,
11778 "193": 8,
11779 "194": 2,
11780 "225": 3,
11781 "242": 3,
11782 "243": 3,
11783 "254": 2,
11784 "255": 2,
11785 "256": 2,
11786 "281": 24,
11787 "290": 1
11788 },
11789 "fqnsFingerprint": "c7b241fe65e920b91bbb8699e4052627ef5d4d997beda6295a66d616637cc4e2"
11790 },
11791 "0455505c70a4c98f91e0bb72052a614c46ee163e913dafbb32099cfa22456250": {
11792 "translations": {
11793 "python": {
11794 "source": "# cluster: ecs.Cluster\n\nscheduled_fargate_task = ecs_patterns.ScheduledFargateTask(self, \"ScheduledFargateTask\",\n cluster=cluster,\n scheduled_fargate_task_image_options=ecsPatterns.ScheduledFargateTaskImageOptions(\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=512\n ),\n schedule=appscaling.Schedule.expression(\"rate(1 minute)\"),\n platform_version=ecs.FargatePlatformVersion.LATEST\n)",
11795 "version": "2"
11796 },
11797 "csharp": {
11798 "source": "Cluster cluster;\n\nScheduledFargateTask scheduledFargateTask = new ScheduledFargateTask(this, \"ScheduledFargateTask\", new ScheduledFargateTaskProps {\n Cluster = cluster,\n ScheduledFargateTaskImageOptions = new ScheduledFargateTaskImageOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 512\n },\n Schedule = Schedule.Expression(\"rate(1 minute)\"),\n PlatformVersion = FargatePlatformVersion.LATEST\n});",
11799 "version": "1"
11800 },
11801 "java": {
11802 "source": "Cluster cluster;\n\nScheduledFargateTask scheduledFargateTask = ScheduledFargateTask.Builder.create(this, \"ScheduledFargateTask\")\n .cluster(cluster)\n .scheduledFargateTaskImageOptions(ScheduledFargateTaskImageOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(512)\n .build())\n .schedule(Schedule.expression(\"rate(1 minute)\"))\n .platformVersion(FargatePlatformVersion.LATEST)\n .build();",
11803 "version": "1"
11804 },
11805 "go": {
11806 "source": "var cluster cluster\n\nscheduledFargateTask := ecsPatterns.NewScheduledFargateTask(this, jsii.String(\"ScheduledFargateTask\"), &scheduledFargateTaskProps{\n\tcluster: cluster,\n\tscheduledFargateTaskImageOptions: &scheduledFargateTaskImageOptions{\n\t\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\t\tmemoryLimitMiB: jsii.Number(512),\n\t},\n\tschedule: appscaling.schedule.expression(jsii.String(\"rate(1 minute)\")),\n\tplatformVersion: ecs.fargatePlatformVersion_LATEST,\n})",
11807 "version": "1"
11808 },
11809 "$": {
11810 "source": "declare const cluster: ecs.Cluster;\nconst scheduledFargateTask = new ecsPatterns.ScheduledFargateTask(this, 'ScheduledFargateTask', {\n cluster,\n scheduledFargateTaskImageOptions: {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryLimitMiB: 512,\n },\n schedule: appscaling.Schedule.expression('rate(1 minute)'),\n platformVersion: ecs.FargatePlatformVersion.LATEST,\n});",
11811 "version": "0"
11812 }
11813 },
11814 "location": {
11815 "api": {
11816 "api": "type",
11817 "fqn": "@aws-cdk/aws-ecs.FargatePlatformVersion"
11818 },
11819 "field": {
11820 "field": "example"
11821 }
11822 },
11823 "didCompile": true,
11824 "fqnsReferenced": [
11825 "@aws-cdk/aws-applicationautoscaling.Schedule",
11826 "@aws-cdk/aws-applicationautoscaling.Schedule#expression",
11827 "@aws-cdk/aws-ecs-patterns.ScheduledFargateTask",
11828 "@aws-cdk/aws-ecs-patterns.ScheduledFargateTaskImageOptions",
11829 "@aws-cdk/aws-ecs-patterns.ScheduledFargateTaskProps",
11830 "@aws-cdk/aws-ecs.ContainerImage",
11831 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
11832 "@aws-cdk/aws-ecs.FargatePlatformVersion",
11833 "@aws-cdk/aws-ecs.FargatePlatformVersion#LATEST",
11834 "@aws-cdk/aws-ecs.ICluster",
11835 "constructs.Construct"
11836 ],
11837 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as cxapi from '@aws-cdk/cx-api';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n \n // Code snippet begins after !show marker below\n/// !show\n\nconst scheduledFargateTask = new ecsPatterns.ScheduledFargateTask(this, 'ScheduledFargateTask', {\n cluster,\n scheduledFargateTaskImageOptions: {\n image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),\n memoryLimitMiB: 512,\n },\n schedule: appscaling.Schedule.expression('rate(1 minute)'),\n platformVersion: ecs.FargatePlatformVersion.LATEST,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
11838 "syntaxKindCounter": {
11839 "8": 1,
11840 "10": 3,
11841 "75": 21,
11842 "104": 1,
11843 "130": 1,
11844 "153": 1,
11845 "169": 1,
11846 "193": 2,
11847 "194": 7,
11848 "196": 2,
11849 "197": 1,
11850 "225": 2,
11851 "242": 2,
11852 "243": 2,
11853 "281": 5,
11854 "282": 1,
11855 "290": 1
11856 },
11857 "fqnsFingerprint": "d26006994f9324ee02de6b2045c65439f3cb8d0a321d820ca54981a341475938"
11858 },
11859 "5acea073f080c1d913aabe1fb6ccf03873feae924a77188672c6e22f0c47697e": {
11860 "translations": {
11861 "python": {
11862 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
11863 "version": "2"
11864 },
11865 "csharp": {
11866 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
11867 "version": "1"
11868 },
11869 "java": {
11870 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
11871 "version": "1"
11872 },
11873 "go": {
11874 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
11875 "version": "1"
11876 },
11877 "$": {
11878 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);",
11879 "version": "0"
11880 }
11881 },
11882 "location": {
11883 "api": {
11884 "api": "type",
11885 "fqn": "@aws-cdk/aws-ecs.FargateService"
11886 },
11887 "field": {
11888 "field": "example"
11889 }
11890 },
11891 "didCompile": true,
11892 "fqnsReferenced": [
11893 "@aws-cdk/aws-ec2.IVpc",
11894 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
11895 "@aws-cdk/aws-ecs.EcsTarget",
11896 "@aws-cdk/aws-ecs.FargateService",
11897 "@aws-cdk/aws-ecs.FargateServiceProps",
11898 "@aws-cdk/aws-ecs.ICluster",
11899 "@aws-cdk/aws-ecs.ListenerConfig",
11900 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
11901 "@aws-cdk/aws-ecs.TaskDefinition",
11902 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
11903 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
11904 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
11905 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
11906 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
11907 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
11908 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
11909 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
11910 "constructs.Construct"
11911 ],
11912 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11913 "syntaxKindCounter": {
11914 "8": 2,
11915 "10": 5,
11916 "75": 37,
11917 "104": 2,
11918 "106": 1,
11919 "130": 3,
11920 "153": 3,
11921 "169": 3,
11922 "193": 5,
11923 "194": 8,
11924 "196": 3,
11925 "197": 2,
11926 "225": 6,
11927 "226": 1,
11928 "242": 6,
11929 "243": 6,
11930 "281": 7,
11931 "282": 3,
11932 "290": 1
11933 },
11934 "fqnsFingerprint": "08744ff53889df1f5a881e6043b941376aaa4fd1f99b9043f7e52335832ac36a"
11935 },
11936 "1b1658820a84c959e08c123b017e1a403940782c1c850bf0b93c37e4aa307392": {
11937 "translations": {
11938 "python": {
11939 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\n# cluster: ecs.Cluster\n\nfargate_service_attributes = ecs.FargateServiceAttributes(\n cluster=cluster,\n\n # the properties below are optional\n service_arn=\"serviceArn\",\n service_name=\"serviceName\"\n)",
11940 "version": "2"
11941 },
11942 "csharp": {
11943 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nCluster cluster;\n\nFargateServiceAttributes fargateServiceAttributes = new FargateServiceAttributes {\n Cluster = cluster,\n\n // the properties below are optional\n ServiceArn = \"serviceArn\",\n ServiceName = \"serviceName\"\n};",
11944 "version": "1"
11945 },
11946 "java": {
11947 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nCluster cluster;\n\nFargateServiceAttributes fargateServiceAttributes = FargateServiceAttributes.builder()\n .cluster(cluster)\n\n // the properties below are optional\n .serviceArn(\"serviceArn\")\n .serviceName(\"serviceName\")\n .build();",
11948 "version": "1"
11949 },
11950 "go": {
11951 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvar cluster cluster\n\nfargateServiceAttributes := &fargateServiceAttributes{\n\tcluster: cluster,\n\n\t// the properties below are optional\n\tserviceArn: jsii.String(\"serviceArn\"),\n\tserviceName: jsii.String(\"serviceName\"),\n}",
11952 "version": "1"
11953 },
11954 "$": {
11955 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const cluster: ecs.Cluster;\nconst fargateServiceAttributes: ecs.FargateServiceAttributes = {\n cluster: cluster,\n\n // the properties below are optional\n serviceArn: 'serviceArn',\n serviceName: 'serviceName',\n};",
11956 "version": "0"
11957 }
11958 },
11959 "location": {
11960 "api": {
11961 "api": "type",
11962 "fqn": "@aws-cdk/aws-ecs.FargateServiceAttributes"
11963 },
11964 "field": {
11965 "field": "example"
11966 }
11967 },
11968 "didCompile": true,
11969 "fqnsReferenced": [
11970 "@aws-cdk/aws-ecs.FargateServiceAttributes",
11971 "@aws-cdk/aws-ecs.ICluster"
11972 ],
11973 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst fargateServiceAttributes: ecs.FargateServiceAttributes = {\n cluster: cluster,\n\n // the properties below are optional\n serviceArn: 'serviceArn',\n serviceName: 'serviceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
11974 "syntaxKindCounter": {
11975 "10": 3,
11976 "75": 11,
11977 "130": 1,
11978 "153": 2,
11979 "169": 2,
11980 "193": 1,
11981 "225": 2,
11982 "242": 2,
11983 "243": 2,
11984 "254": 1,
11985 "255": 1,
11986 "256": 1,
11987 "281": 3,
11988 "290": 1
11989 },
11990 "fqnsFingerprint": "e6030fdc258d12a60eb1b1041a7a8d48b11fbc7c2959ddd11c1189fd3dfae9f5"
11991 },
11992 "6ecf9e74c33bd357e80eb7bd84d63250f825db176845b3b15ed791b5f0816102": {
11993 "translations": {
11994 "python": {
11995 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
11996 "version": "2"
11997 },
11998 "csharp": {
11999 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
12000 "version": "1"
12001 },
12002 "java": {
12003 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
12004 "version": "1"
12005 },
12006 "go": {
12007 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
12008 "version": "1"
12009 },
12010 "$": {
12011 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);",
12012 "version": "0"
12013 }
12014 },
12015 "location": {
12016 "api": {
12017 "api": "type",
12018 "fqn": "@aws-cdk/aws-ecs.FargateServiceProps"
12019 },
12020 "field": {
12021 "field": "example"
12022 }
12023 },
12024 "didCompile": true,
12025 "fqnsReferenced": [
12026 "@aws-cdk/aws-ec2.IVpc",
12027 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
12028 "@aws-cdk/aws-ecs.EcsTarget",
12029 "@aws-cdk/aws-ecs.FargateService",
12030 "@aws-cdk/aws-ecs.FargateServiceProps",
12031 "@aws-cdk/aws-ecs.ICluster",
12032 "@aws-cdk/aws-ecs.ListenerConfig",
12033 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
12034 "@aws-cdk/aws-ecs.TaskDefinition",
12035 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
12036 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
12037 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
12038 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
12039 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
12040 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
12041 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
12042 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
12043 "constructs.Construct"
12044 ],
12045 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12046 "syntaxKindCounter": {
12047 "8": 2,
12048 "10": 5,
12049 "75": 37,
12050 "104": 2,
12051 "106": 1,
12052 "130": 3,
12053 "153": 3,
12054 "169": 3,
12055 "193": 5,
12056 "194": 8,
12057 "196": 3,
12058 "197": 2,
12059 "225": 6,
12060 "226": 1,
12061 "242": 6,
12062 "243": 6,
12063 "281": 7,
12064 "282": 3,
12065 "290": 1
12066 },
12067 "fqnsFingerprint": "08744ff53889df1f5a881e6043b941376aaa4fd1f99b9043f7e52335832ac36a"
12068 },
12069 "6ddc633f5dbe6a1da3257adea0218c6f5b07aa77eae06029c4800e8ed34fb3a2": {
12070 "translations": {
12071 "python": {
12072 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)\ncontainer = fargate_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n)",
12073 "version": "2"
12074 },
12075 "csharp": {
12076 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});\nContainerDefinition container = fargateTaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n});",
12077 "version": "1"
12078 },
12079 "java": {
12080 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();\nContainerDefinition container = fargateTaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build());",
12081 "version": "1"
12082 },
12083 "go": {
12084 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})\ncontainer := fargateTaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n})",
12085 "version": "1"
12086 },
12087 "$": {
12088 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst container = fargateTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n // ... other options here ...\n});",
12089 "version": "0"
12090 }
12091 },
12092 "location": {
12093 "api": {
12094 "api": "type",
12095 "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinition"
12096 },
12097 "field": {
12098 "field": "example"
12099 }
12100 },
12101 "didCompile": true,
12102 "fqnsReferenced": [
12103 "@aws-cdk/aws-ecs.ContainerDefinition",
12104 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
12105 "@aws-cdk/aws-ecs.ContainerImage",
12106 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
12107 "@aws-cdk/aws-ecs.FargateTaskDefinition",
12108 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
12109 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
12110 "constructs.Construct"
12111 ],
12112 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst container = fargateTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12113 "syntaxKindCounter": {
12114 "8": 2,
12115 "10": 3,
12116 "75": 12,
12117 "104": 1,
12118 "193": 2,
12119 "194": 4,
12120 "196": 2,
12121 "197": 1,
12122 "225": 2,
12123 "242": 2,
12124 "243": 2,
12125 "281": 3
12126 },
12127 "fqnsFingerprint": "b4c40e592d4f61b922fd8e4d618aea91c864ac23f4a1d0125f1d3f62c90aa369"
12128 },
12129 "6f490cc51ce655a2dd4eee525a8ed9216e242f0cb6043b6a3f8fa87f51620891": {
12130 "translations": {
12131 "python": {
12132 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# role: iam.Role\n\nfargate_task_definition_attributes = ecs.FargateTaskDefinitionAttributes(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n network_mode=ecs.NetworkMode.NONE,\n task_role=role\n)",
12133 "version": "2"
12134 },
12135 "csharp": {
12136 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nRole role;\n\nFargateTaskDefinitionAttributes fargateTaskDefinitionAttributes = new FargateTaskDefinitionAttributes {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n NetworkMode = NetworkMode.NONE,\n TaskRole = role\n};",
12137 "version": "1"
12138 },
12139 "java": {
12140 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nFargateTaskDefinitionAttributes fargateTaskDefinitionAttributes = FargateTaskDefinitionAttributes.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .networkMode(NetworkMode.NONE)\n .taskRole(role)\n .build();",
12141 "version": "1"
12142 },
12143 "go": {
12144 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar role role\n\nfargateTaskDefinitionAttributes := &fargateTaskDefinitionAttributes{\n\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t// the properties below are optional\n\tnetworkMode: ecs.networkMode_NONE,\n\ttaskRole: role,\n}",
12145 "version": "1"
12146 },
12147 "$": {
12148 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\nconst fargateTaskDefinitionAttributes: ecs.FargateTaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};",
12149 "version": "0"
12150 }
12151 },
12152 "location": {
12153 "api": {
12154 "api": "type",
12155 "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinitionAttributes"
12156 },
12157 "field": {
12158 "field": "example"
12159 }
12160 },
12161 "didCompile": true,
12162 "fqnsReferenced": [
12163 "@aws-cdk/aws-ecs.FargateTaskDefinitionAttributes",
12164 "@aws-cdk/aws-ecs.NetworkMode",
12165 "@aws-cdk/aws-ecs.NetworkMode#NONE",
12166 "@aws-cdk/aws-iam.IRole"
12167 ],
12168 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst fargateTaskDefinitionAttributes: ecs.FargateTaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12169 "syntaxKindCounter": {
12170 "10": 3,
12171 "75": 15,
12172 "130": 1,
12173 "153": 2,
12174 "169": 2,
12175 "193": 1,
12176 "194": 2,
12177 "225": 2,
12178 "242": 2,
12179 "243": 2,
12180 "254": 2,
12181 "255": 2,
12182 "256": 2,
12183 "281": 3,
12184 "290": 1
12185 },
12186 "fqnsFingerprint": "705357cd2804de5f2054a3b40122a5243fd916a43f11f394c5eb22163008014f"
12187 },
12188 "4bbc8b5fcd4fff5bdc4f258ac1236fb96d26cb4d30eb27d943f223bb419e2a39": {
12189 "translations": {
12190 "python": {
12191 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)\ncontainer = fargate_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n)",
12192 "version": "2"
12193 },
12194 "csharp": {
12195 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});\nContainerDefinition container = fargateTaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n});",
12196 "version": "1"
12197 },
12198 "java": {
12199 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();\nContainerDefinition container = fargateTaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build());",
12200 "version": "1"
12201 },
12202 "go": {
12203 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})\ncontainer := fargateTaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n})",
12204 "version": "1"
12205 },
12206 "$": {
12207 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst container = fargateTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n // ... other options here ...\n});",
12208 "version": "0"
12209 }
12210 },
12211 "location": {
12212 "api": {
12213 "api": "type",
12214 "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinitionProps"
12215 },
12216 "field": {
12217 "field": "example"
12218 }
12219 },
12220 "didCompile": true,
12221 "fqnsReferenced": [
12222 "@aws-cdk/aws-ecs.ContainerDefinition",
12223 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
12224 "@aws-cdk/aws-ecs.ContainerImage",
12225 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
12226 "@aws-cdk/aws-ecs.FargateTaskDefinition",
12227 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
12228 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
12229 "constructs.Construct"
12230 ],
12231 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst container = fargateTaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12232 "syntaxKindCounter": {
12233 "8": 2,
12234 "10": 3,
12235 "75": 12,
12236 "104": 1,
12237 "193": 2,
12238 "194": 4,
12239 "196": 2,
12240 "197": 1,
12241 "225": 2,
12242 "242": 2,
12243 "243": 2,
12244 "281": 3
12245 },
12246 "fqnsFingerprint": "b4c40e592d4f61b922fd8e4d618aea91c864ac23f4a1d0125f1d3f62c90aa369"
12247 },
12248 "556de94e823b0560b2140b8d15726642387d05425d08f3aa217dc64b1f5602bf": {
12249 "translations": {
12250 "python": {
12251 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\n# secret: ecs.Secret\n\nfire_lens_log_driver = ecs.FireLensLogDriver(\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n options={\n \"options_key\": \"options\"\n },\n secret_options={\n \"secret_options_key\": secret\n },\n tag=\"tag\"\n)",
12252 "version": "2"
12253 },
12254 "csharp": {
12255 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nSecret secret;\n\nFireLensLogDriver fireLensLogDriver = new FireLensLogDriver(new FireLensLogDriverProps {\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n SecretOptions = new Dictionary<string, Secret> {\n { \"secretOptionsKey\", secret }\n },\n Tag = \"tag\"\n});",
12256 "version": "1"
12257 },
12258 "java": {
12259 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nSecret secret;\n\nFireLensLogDriver fireLensLogDriver = FireLensLogDriver.Builder.create()\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .secretOptions(Map.of(\n \"secretOptionsKey\", secret))\n .tag(\"tag\")\n .build();",
12260 "version": "1"
12261 },
12262 "go": {
12263 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvar secret secret\n\nfireLensLogDriver := ecs.NewFireLensLogDriver(&fireLensLogDriverProps{\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\toptions: map[string]*string{\n\t\t\"optionsKey\": jsii.String(\"options\"),\n\t},\n\tsecretOptions: map[string]*secret{\n\t\t\"secretOptionsKey\": secret,\n\t},\n\ttag: jsii.String(\"tag\"),\n})",
12264 "version": "1"
12265 },
12266 "$": {
12267 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const secret: ecs.Secret;\nconst fireLensLogDriver = new ecs.FireLensLogDriver({\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n options: {\n optionsKey: 'options',\n },\n secretOptions: {\n secretOptionsKey: secret,\n },\n tag: 'tag',\n});",
12268 "version": "0"
12269 }
12270 },
12271 "location": {
12272 "api": {
12273 "api": "type",
12274 "fqn": "@aws-cdk/aws-ecs.FireLensLogDriver"
12275 },
12276 "field": {
12277 "field": "example"
12278 }
12279 },
12280 "didCompile": true,
12281 "fqnsReferenced": [
12282 "@aws-cdk/aws-ecs.FireLensLogDriver",
12283 "@aws-cdk/aws-ecs.FireLensLogDriverProps",
12284 "@aws-cdk/aws-ecs.Secret"
12285 ],
12286 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const secret: ecs.Secret;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst fireLensLogDriver = new ecs.FireLensLogDriver({\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n options: {\n optionsKey: 'options',\n },\n secretOptions: {\n secretOptionsKey: secret,\n },\n tag: 'tag',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12287 "syntaxKindCounter": {
12288 "10": 6,
12289 "75": 16,
12290 "130": 1,
12291 "153": 1,
12292 "169": 1,
12293 "192": 2,
12294 "193": 3,
12295 "194": 1,
12296 "197": 1,
12297 "225": 2,
12298 "242": 2,
12299 "243": 2,
12300 "254": 1,
12301 "255": 1,
12302 "256": 1,
12303 "281": 8,
12304 "290": 1
12305 },
12306 "fqnsFingerprint": "b75e4c946856b075d3baabb4ff8b567cd14437754bdc609b9932f718eec2cea3"
12307 },
12308 "ad1d9cf5e378d866c80889112ae52e89f76d1ef3f676c9c0c8f119f0ed72a59f": {
12309 "translations": {
12310 "python": {
12311 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.firelens(\n options={\n \"Name\": \"firehose\",\n \"region\": \"us-west-2\",\n \"delivery_stream\": \"my-stream\"\n }\n )\n)",
12312 "version": "2"
12313 },
12314 "csharp": {
12315 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Firelens(new FireLensLogDriverProps {\n Options = new Dictionary<string, string> {\n { \"Name\", \"firehose\" },\n { \"region\", \"us-west-2\" },\n { \"delivery_stream\", \"my-stream\" }\n }\n })\n});",
12316 "version": "1"
12317 },
12318 "java": {
12319 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.firelens(FireLensLogDriverProps.builder()\n .options(Map.of(\n \"Name\", \"firehose\",\n \"region\", \"us-west-2\",\n \"delivery_stream\", \"my-stream\"))\n .build()))\n .build());",
12320 "version": "1"
12321 },
12322 "go": {
12323 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.firelens(&fireLensLogDriverProps{\n\t\toptions: map[string]*string{\n\t\t\t\"Name\": jsii.String(\"firehose\"),\n\t\t\t\"region\": jsii.String(\"us-west-2\"),\n\t\t\t\"delivery_stream\": jsii.String(\"my-stream\"),\n\t\t},\n\t}),\n})",
12324 "version": "1"
12325 },
12326 "$": {
12327 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.firelens({\n options: {\n Name: 'firehose',\n region: 'us-west-2',\n delivery_stream: 'my-stream',\n },\n }),\n});",
12328 "version": "0"
12329 }
12330 },
12331 "location": {
12332 "api": {
12333 "api": "type",
12334 "fqn": "@aws-cdk/aws-ecs.FireLensLogDriverProps"
12335 },
12336 "field": {
12337 "field": "example"
12338 }
12339 },
12340 "didCompile": true,
12341 "fqnsReferenced": [
12342 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
12343 "@aws-cdk/aws-ecs.ContainerImage",
12344 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
12345 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
12346 "@aws-cdk/aws-ecs.FireLensLogDriverProps",
12347 "@aws-cdk/aws-ecs.LogDriver",
12348 "@aws-cdk/aws-ecs.LogDrivers",
12349 "@aws-cdk/aws-ecs.LogDrivers#firelens",
12350 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
12351 "constructs.Construct"
12352 ],
12353 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.firelens({\n options: {\n Name: 'firehose',\n region: 'us-west-2',\n delivery_stream: 'my-stream',\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12354 "syntaxKindCounter": {
12355 "8": 1,
12356 "10": 6,
12357 "75": 18,
12358 "104": 1,
12359 "193": 3,
12360 "194": 6,
12361 "196": 3,
12362 "197": 1,
12363 "225": 1,
12364 "226": 1,
12365 "242": 1,
12366 "243": 1,
12367 "281": 7
12368 },
12369 "fqnsFingerprint": "47aac6d8e110d03e94b884b094f054be6ceb895c05f48a3ad00be9a8578abd7e"
12370 },
12371 "22d201e63b7b9aed770c4744186677f0c7f53e6802e9e8ddc4ae1389ec05d470": {
12372 "translations": {
12373 "python": {
12374 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nfirelens_config = ecs.FirelensConfig(\n type=ecs.FirelensLogRouterType.FLUENTBIT,\n\n # the properties below are optional\n options=ecs.FirelensOptions(\n config_file_value=\"configFileValue\",\n\n # the properties below are optional\n config_file_type=ecs.FirelensConfigFileType.S3,\n enable_eCSLog_metadata=False\n )\n)",
12375 "version": "2"
12376 },
12377 "csharp": {
12378 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nFirelensConfig firelensConfig = new FirelensConfig {\n Type = FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n Options = new FirelensOptions {\n ConfigFileValue = \"configFileValue\",\n\n // the properties below are optional\n ConfigFileType = FirelensConfigFileType.S3,\n EnableECSLogMetadata = false\n }\n};",
12379 "version": "1"
12380 },
12381 "java": {
12382 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nFirelensConfig firelensConfig = FirelensConfig.builder()\n .type(FirelensLogRouterType.FLUENTBIT)\n\n // the properties below are optional\n .options(FirelensOptions.builder()\n .configFileValue(\"configFileValue\")\n\n // the properties below are optional\n .configFileType(FirelensConfigFileType.S3)\n .enableECSLogMetadata(false)\n .build())\n .build();",
12383 "version": "1"
12384 },
12385 "go": {
12386 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nfirelensConfig := &firelensConfig{\n\ttype: ecs.firelensLogRouterType_FLUENTBIT,\n\n\t// the properties below are optional\n\toptions: &firelensOptions{\n\t\tconfigFileValue: jsii.String(\"configFileValue\"),\n\n\t\t// the properties below are optional\n\t\tconfigFileType: ecs.firelensConfigFileType_S3,\n\t\tenableECSLogMetadata: jsii.Boolean(false),\n\t},\n}",
12387 "version": "1"
12388 },
12389 "$": {
12390 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst firelensConfig: ecs.FirelensConfig = {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n};",
12391 "version": "0"
12392 }
12393 },
12394 "location": {
12395 "api": {
12396 "api": "type",
12397 "fqn": "@aws-cdk/aws-ecs.FirelensConfig"
12398 },
12399 "field": {
12400 "field": "example"
12401 }
12402 },
12403 "didCompile": true,
12404 "fqnsReferenced": [
12405 "@aws-cdk/aws-ecs.FirelensConfig",
12406 "@aws-cdk/aws-ecs.FirelensConfigFileType",
12407 "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
12408 "@aws-cdk/aws-ecs.FirelensLogRouterType",
12409 "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
12410 "@aws-cdk/aws-ecs.FirelensOptions"
12411 ],
12412 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst firelensConfig: ecs.FirelensConfig = {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12413 "syntaxKindCounter": {
12414 "10": 2,
12415 "75": 15,
12416 "91": 1,
12417 "153": 1,
12418 "169": 1,
12419 "193": 2,
12420 "194": 4,
12421 "225": 1,
12422 "242": 1,
12423 "243": 1,
12424 "254": 1,
12425 "255": 1,
12426 "256": 1,
12427 "281": 5,
12428 "290": 1
12429 },
12430 "fqnsFingerprint": "4b4b101fa42150f58bd8fc020aab1ac2465c8e09b781e65421d27b255482c7f2"
12431 },
12432 "b5098aa4940963ec0875e3bd4127535d5af72bc0c9851d7ee20800c72b532595": {
12433 "translations": {
12434 "python": {
12435 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# container_image: ecs.ContainerImage\n# environment_file: ecs.EnvironmentFile\n# linux_parameters: ecs.LinuxParameters\n# log_driver: ecs.LogDriver\n# secret: ecs.Secret\n# task_definition: ecs.TaskDefinition\n\nfirelens_log_router = ecs.FirelensLogRouter(self, \"MyFirelensLogRouter\",\n firelens_config=ecs.FirelensConfig(\n type=ecs.FirelensLogRouterType.FLUENTBIT,\n\n # the properties below are optional\n options=ecs.FirelensOptions(\n config_file_value=\"configFileValue\",\n\n # the properties below are optional\n config_file_type=ecs.FirelensConfigFileType.S3,\n enable_eCSLog_metadata=False\n )\n ),\n image=container_image,\n task_definition=task_definition,\n\n # the properties below are optional\n command=[\"command\"],\n container_name=\"containerName\",\n cpu=123,\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment={\n \"environment_key\": \"environment\"\n },\n environment_files=[environment_file],\n essential=False,\n extra_hosts={\n \"extra_hosts_key\": \"extraHosts\"\n },\n gpu_count=123,\n health_check=ecs.HealthCheck(\n command=[\"command\"],\n\n # the properties below are optional\n interval=cdk.Duration.minutes(30),\n retries=123,\n start_period=cdk.Duration.minutes(30),\n timeout=cdk.Duration.minutes(30)\n ),\n hostname=\"hostname\",\n inference_accelerator_resources=[\"inferenceAcceleratorResources\"],\n linux_parameters=linux_parameters,\n logging=log_driver,\n memory_limit_mi_b=123,\n memory_reservation_mi_b=123,\n port_mappings=[ecs.PortMapping(\n container_port=123,\n\n # the properties below are optional\n host_port=123,\n protocol=ecs.Protocol.TCP\n )],\n privileged=False,\n readonly_root_filesystem=False,\n secrets={\n \"secrets_key\": secret\n },\n start_timeout=cdk.Duration.minutes(30),\n stop_timeout=cdk.Duration.minutes(30),\n system_controls=[ecs.SystemControl(\n namespace=\"namespace\",\n value=\"value\"\n )],\n user=\"user\",\n working_directory=\"workingDirectory\"\n)",
12436 "version": "2"
12437 },
12438 "csharp": {
12439 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nTaskDefinition taskDefinition;\nFirelensLogRouter firelensLogRouter = new FirelensLogRouter(this, \"MyFirelensLogRouter\", new FirelensLogRouterProps {\n FirelensConfig = new FirelensConfig {\n Type = FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n Options = new FirelensOptions {\n ConfigFileValue = \"configFileValue\",\n\n // the properties below are optional\n ConfigFileType = FirelensConfigFileType.S3,\n EnableECSLogMetadata = false\n }\n },\n Image = containerImage,\n TaskDefinition = taskDefinition,\n\n // the properties below are optional\n Command = new [] { \"command\" },\n ContainerName = \"containerName\",\n Cpu = 123,\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new Dictionary<string, string> {\n { \"environmentKey\", \"environment\" }\n },\n EnvironmentFiles = new [] { environmentFile },\n Essential = false,\n ExtraHosts = new Dictionary<string, string> {\n { \"extraHostsKey\", \"extraHosts\" }\n },\n GpuCount = 123,\n HealthCheck = new HealthCheck {\n Command = new [] { \"command\" },\n\n // the properties below are optional\n Interval = Duration.Minutes(30),\n Retries = 123,\n StartPeriod = Duration.Minutes(30),\n Timeout = Duration.Minutes(30)\n },\n Hostname = \"hostname\",\n InferenceAcceleratorResources = new [] { \"inferenceAcceleratorResources\" },\n LinuxParameters = linuxParameters,\n Logging = logDriver,\n MemoryLimitMiB = 123,\n MemoryReservationMiB = 123,\n PortMappings = new [] { new PortMapping {\n ContainerPort = 123,\n\n // the properties below are optional\n HostPort = 123,\n Protocol = Protocol.TCP\n } },\n Privileged = false,\n ReadonlyRootFilesystem = false,\n Secrets = new Dictionary<string, Secret> {\n { \"secretsKey\", secret }\n },\n StartTimeout = Duration.Minutes(30),\n StopTimeout = Duration.Minutes(30),\n SystemControls = new [] { new SystemControl {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n User = \"user\",\n WorkingDirectory = \"workingDirectory\"\n});",
12440 "version": "1"
12441 },
12442 "java": {
12443 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nTaskDefinition taskDefinition;\n\nFirelensLogRouter firelensLogRouter = FirelensLogRouter.Builder.create(this, \"MyFirelensLogRouter\")\n .firelensConfig(FirelensConfig.builder()\n .type(FirelensLogRouterType.FLUENTBIT)\n\n // the properties below are optional\n .options(FirelensOptions.builder()\n .configFileValue(\"configFileValue\")\n\n // the properties below are optional\n .configFileType(FirelensConfigFileType.S3)\n .enableECSLogMetadata(false)\n .build())\n .build())\n .image(containerImage)\n .taskDefinition(taskDefinition)\n\n // the properties below are optional\n .command(List.of(\"command\"))\n .containerName(\"containerName\")\n .cpu(123)\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(Map.of(\n \"environmentKey\", \"environment\"))\n .environmentFiles(List.of(environmentFile))\n .essential(false)\n .extraHosts(Map.of(\n \"extraHostsKey\", \"extraHosts\"))\n .gpuCount(123)\n .healthCheck(HealthCheck.builder()\n .command(List.of(\"command\"))\n\n // the properties below are optional\n .interval(Duration.minutes(30))\n .retries(123)\n .startPeriod(Duration.minutes(30))\n .timeout(Duration.minutes(30))\n .build())\n .hostname(\"hostname\")\n .inferenceAcceleratorResources(List.of(\"inferenceAcceleratorResources\"))\n .linuxParameters(linuxParameters)\n .logging(logDriver)\n .memoryLimitMiB(123)\n .memoryReservationMiB(123)\n .portMappings(List.of(PortMapping.builder()\n .containerPort(123)\n\n // the properties below are optional\n .hostPort(123)\n .protocol(Protocol.TCP)\n .build()))\n .privileged(false)\n .readonlyRootFilesystem(false)\n .secrets(Map.of(\n \"secretsKey\", secret))\n .startTimeout(Duration.minutes(30))\n .stopTimeout(Duration.minutes(30))\n .systemControls(List.of(SystemControl.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .user(\"user\")\n .workingDirectory(\"workingDirectory\")\n .build();",
12444 "version": "1"
12445 },
12446 "go": {
12447 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar containerImage containerImage\nvar environmentFile environmentFile\nvar linuxParameters linuxParameters\nvar logDriver logDriver\nvar secret secret\nvar taskDefinition taskDefinition\n\nfirelensLogRouter := ecs.NewFirelensLogRouter(this, jsii.String(\"MyFirelensLogRouter\"), &firelensLogRouterProps{\n\tfirelensConfig: &firelensConfig{\n\t\ttype: ecs.firelensLogRouterType_FLUENTBIT,\n\n\t\t// the properties below are optional\n\t\toptions: &firelensOptions{\n\t\t\tconfigFileValue: jsii.String(\"configFileValue\"),\n\n\t\t\t// the properties below are optional\n\t\t\tconfigFileType: ecs.firelensConfigFileType_S3,\n\t\t\tenableECSLogMetadata: jsii.Boolean(false),\n\t\t},\n\t},\n\timage: containerImage,\n\ttaskDefinition: taskDefinition,\n\n\t// the properties below are optional\n\tcommand: []*string{\n\t\tjsii.String(\"command\"),\n\t},\n\tcontainerName: jsii.String(\"containerName\"),\n\tcpu: jsii.Number(123),\n\tdisableNetworking: jsii.Boolean(false),\n\tdnsSearchDomains: []*string{\n\t\tjsii.String(\"dnsSearchDomains\"),\n\t},\n\tdnsServers: []*string{\n\t\tjsii.String(\"dnsServers\"),\n\t},\n\tdockerLabels: map[string]*string{\n\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t},\n\tdockerSecurityOptions: []*string{\n\t\tjsii.String(\"dockerSecurityOptions\"),\n\t},\n\tentryPoint: []*string{\n\t\tjsii.String(\"entryPoint\"),\n\t},\n\tenvironment: map[string]*string{\n\t\t\"environmentKey\": jsii.String(\"environment\"),\n\t},\n\tenvironmentFiles: []*environmentFile{\n\t\tenvironmentFile,\n\t},\n\tessential: jsii.Boolean(false),\n\textraHosts: map[string]*string{\n\t\t\"extraHostsKey\": jsii.String(\"extraHosts\"),\n\t},\n\tgpuCount: jsii.Number(123),\n\thealthCheck: &healthCheck{\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"command\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tinterval: cdk.duration.minutes(jsii.Number(30)),\n\t\tretries: jsii.Number(123),\n\t\tstartPeriod: cdk.*duration.minutes(jsii.Number(30)),\n\t\ttimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t},\n\thostname: jsii.String(\"hostname\"),\n\tinferenceAcceleratorResources: []*string{\n\t\tjsii.String(\"inferenceAcceleratorResources\"),\n\t},\n\tlinuxParameters: linuxParameters,\n\tlogging: logDriver,\n\tmemoryLimitMiB: jsii.Number(123),\n\tmemoryReservationMiB: jsii.Number(123),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\thostPort: jsii.Number(123),\n\t\t\tprotocol: ecs.protocol_TCP,\n\t\t},\n\t},\n\tprivileged: jsii.Boolean(false),\n\treadonlyRootFilesystem: jsii.Boolean(false),\n\tsecrets: map[string]*secret{\n\t\t\"secretsKey\": secret,\n\t},\n\tstartTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tstopTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tsystemControls: []systemControl{\n\t\t&systemControl{\n\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tuser: jsii.String(\"user\"),\n\tworkingDirectory: jsii.String(\"workingDirectory\"),\n})",
12448 "version": "1"
12449 },
12450 "$": {
12451 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\ndeclare const taskDefinition: ecs.TaskDefinition;\nconst firelensLogRouter = new ecs.FirelensLogRouter(this, 'MyFirelensLogRouter', {\n firelensConfig: {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n },\n image: containerImage,\n taskDefinition: taskDefinition,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n});",
12452 "version": "0"
12453 }
12454 },
12455 "location": {
12456 "api": {
12457 "api": "type",
12458 "fqn": "@aws-cdk/aws-ecs.FirelensLogRouter"
12459 },
12460 "field": {
12461 "field": "example"
12462 }
12463 },
12464 "didCompile": true,
12465 "fqnsReferenced": [
12466 "@aws-cdk/aws-ecs.ContainerImage",
12467 "@aws-cdk/aws-ecs.FirelensConfig",
12468 "@aws-cdk/aws-ecs.FirelensConfigFileType",
12469 "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
12470 "@aws-cdk/aws-ecs.FirelensLogRouter",
12471 "@aws-cdk/aws-ecs.FirelensLogRouterProps",
12472 "@aws-cdk/aws-ecs.FirelensLogRouterType",
12473 "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
12474 "@aws-cdk/aws-ecs.FirelensOptions",
12475 "@aws-cdk/aws-ecs.HealthCheck",
12476 "@aws-cdk/aws-ecs.LinuxParameters",
12477 "@aws-cdk/aws-ecs.LogDriver",
12478 "@aws-cdk/aws-ecs.Protocol",
12479 "@aws-cdk/aws-ecs.Protocol#TCP",
12480 "@aws-cdk/aws-ecs.Secret",
12481 "@aws-cdk/aws-ecs.TaskDefinition",
12482 "@aws-cdk/core.Duration",
12483 "@aws-cdk/core.Duration#minutes",
12484 "constructs.Construct"
12485 ],
12486 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst firelensLogRouter = new ecs.FirelensLogRouter(this, 'MyFirelensLogRouter', {\n firelensConfig: {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n },\n image: containerImage,\n taskDefinition: taskDefinition,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12487 "syntaxKindCounter": {
12488 "8": 12,
12489 "10": 20,
12490 "75": 105,
12491 "91": 5,
12492 "104": 1,
12493 "130": 6,
12494 "153": 6,
12495 "169": 6,
12496 "192": 10,
12497 "193": 10,
12498 "194": 17,
12499 "196": 5,
12500 "197": 1,
12501 "225": 7,
12502 "242": 7,
12503 "243": 7,
12504 "254": 2,
12505 "255": 2,
12506 "256": 2,
12507 "281": 52,
12508 "290": 1
12509 },
12510 "fqnsFingerprint": "28347ea14bc73535d0007e026bca91aff69340b6892bfb879f99edfde576a4e0"
12511 },
12512 "b4677f3339b42b300c72f8e734ae0758d9254836ff6a61367d09950d863abdf2": {
12513 "translations": {
12514 "python": {
12515 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# container_image: ecs.ContainerImage\n# environment_file: ecs.EnvironmentFile\n# linux_parameters: ecs.LinuxParameters\n# log_driver: ecs.LogDriver\n# secret: ecs.Secret\n\nfirelens_log_router_definition_options = ecs.FirelensLogRouterDefinitionOptions(\n firelens_config=ecs.FirelensConfig(\n type=ecs.FirelensLogRouterType.FLUENTBIT,\n\n # the properties below are optional\n options=ecs.FirelensOptions(\n config_file_value=\"configFileValue\",\n\n # the properties below are optional\n config_file_type=ecs.FirelensConfigFileType.S3,\n enable_eCSLog_metadata=False\n )\n ),\n image=container_image,\n\n # the properties below are optional\n command=[\"command\"],\n container_name=\"containerName\",\n cpu=123,\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment={\n \"environment_key\": \"environment\"\n },\n environment_files=[environment_file],\n essential=False,\n extra_hosts={\n \"extra_hosts_key\": \"extraHosts\"\n },\n gpu_count=123,\n health_check=ecs.HealthCheck(\n command=[\"command\"],\n\n # the properties below are optional\n interval=cdk.Duration.minutes(30),\n retries=123,\n start_period=cdk.Duration.minutes(30),\n timeout=cdk.Duration.minutes(30)\n ),\n hostname=\"hostname\",\n inference_accelerator_resources=[\"inferenceAcceleratorResources\"],\n linux_parameters=linux_parameters,\n logging=log_driver,\n memory_limit_mi_b=123,\n memory_reservation_mi_b=123,\n port_mappings=[ecs.PortMapping(\n container_port=123,\n\n # the properties below are optional\n host_port=123,\n protocol=ecs.Protocol.TCP\n )],\n privileged=False,\n readonly_root_filesystem=False,\n secrets={\n \"secrets_key\": secret\n },\n start_timeout=cdk.Duration.minutes(30),\n stop_timeout=cdk.Duration.minutes(30),\n system_controls=[ecs.SystemControl(\n namespace=\"namespace\",\n value=\"value\"\n )],\n user=\"user\",\n working_directory=\"workingDirectory\"\n)",
12516 "version": "2"
12517 },
12518 "csharp": {
12519 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nFirelensLogRouterDefinitionOptions firelensLogRouterDefinitionOptions = new FirelensLogRouterDefinitionOptions {\n FirelensConfig = new FirelensConfig {\n Type = FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n Options = new FirelensOptions {\n ConfigFileValue = \"configFileValue\",\n\n // the properties below are optional\n ConfigFileType = FirelensConfigFileType.S3,\n EnableECSLogMetadata = false\n }\n },\n Image = containerImage,\n\n // the properties below are optional\n Command = new [] { \"command\" },\n ContainerName = \"containerName\",\n Cpu = 123,\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new Dictionary<string, string> {\n { \"environmentKey\", \"environment\" }\n },\n EnvironmentFiles = new [] { environmentFile },\n Essential = false,\n ExtraHosts = new Dictionary<string, string> {\n { \"extraHostsKey\", \"extraHosts\" }\n },\n GpuCount = 123,\n HealthCheck = new HealthCheck {\n Command = new [] { \"command\" },\n\n // the properties below are optional\n Interval = Duration.Minutes(30),\n Retries = 123,\n StartPeriod = Duration.Minutes(30),\n Timeout = Duration.Minutes(30)\n },\n Hostname = \"hostname\",\n InferenceAcceleratorResources = new [] { \"inferenceAcceleratorResources\" },\n LinuxParameters = linuxParameters,\n Logging = logDriver,\n MemoryLimitMiB = 123,\n MemoryReservationMiB = 123,\n PortMappings = new [] { new PortMapping {\n ContainerPort = 123,\n\n // the properties below are optional\n HostPort = 123,\n Protocol = Protocol.TCP\n } },\n Privileged = false,\n ReadonlyRootFilesystem = false,\n Secrets = new Dictionary<string, Secret> {\n { \"secretsKey\", secret }\n },\n StartTimeout = Duration.Minutes(30),\n StopTimeout = Duration.Minutes(30),\n SystemControls = new [] { new SystemControl {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n User = \"user\",\n WorkingDirectory = \"workingDirectory\"\n};",
12520 "version": "1"
12521 },
12522 "java": {
12523 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\n\nFirelensLogRouterDefinitionOptions firelensLogRouterDefinitionOptions = FirelensLogRouterDefinitionOptions.builder()\n .firelensConfig(FirelensConfig.builder()\n .type(FirelensLogRouterType.FLUENTBIT)\n\n // the properties below are optional\n .options(FirelensOptions.builder()\n .configFileValue(\"configFileValue\")\n\n // the properties below are optional\n .configFileType(FirelensConfigFileType.S3)\n .enableECSLogMetadata(false)\n .build())\n .build())\n .image(containerImage)\n\n // the properties below are optional\n .command(List.of(\"command\"))\n .containerName(\"containerName\")\n .cpu(123)\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(Map.of(\n \"environmentKey\", \"environment\"))\n .environmentFiles(List.of(environmentFile))\n .essential(false)\n .extraHosts(Map.of(\n \"extraHostsKey\", \"extraHosts\"))\n .gpuCount(123)\n .healthCheck(HealthCheck.builder()\n .command(List.of(\"command\"))\n\n // the properties below are optional\n .interval(Duration.minutes(30))\n .retries(123)\n .startPeriod(Duration.minutes(30))\n .timeout(Duration.minutes(30))\n .build())\n .hostname(\"hostname\")\n .inferenceAcceleratorResources(List.of(\"inferenceAcceleratorResources\"))\n .linuxParameters(linuxParameters)\n .logging(logDriver)\n .memoryLimitMiB(123)\n .memoryReservationMiB(123)\n .portMappings(List.of(PortMapping.builder()\n .containerPort(123)\n\n // the properties below are optional\n .hostPort(123)\n .protocol(Protocol.TCP)\n .build()))\n .privileged(false)\n .readonlyRootFilesystem(false)\n .secrets(Map.of(\n \"secretsKey\", secret))\n .startTimeout(Duration.minutes(30))\n .stopTimeout(Duration.minutes(30))\n .systemControls(List.of(SystemControl.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .user(\"user\")\n .workingDirectory(\"workingDirectory\")\n .build();",
12524 "version": "1"
12525 },
12526 "go": {
12527 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar containerImage containerImage\nvar environmentFile environmentFile\nvar linuxParameters linuxParameters\nvar logDriver logDriver\nvar secret secret\n\nfirelensLogRouterDefinitionOptions := &firelensLogRouterDefinitionOptions{\n\tfirelensConfig: &firelensConfig{\n\t\ttype: ecs.firelensLogRouterType_FLUENTBIT,\n\n\t\t// the properties below are optional\n\t\toptions: &firelensOptions{\n\t\t\tconfigFileValue: jsii.String(\"configFileValue\"),\n\n\t\t\t// the properties below are optional\n\t\t\tconfigFileType: ecs.firelensConfigFileType_S3,\n\t\t\tenableECSLogMetadata: jsii.Boolean(false),\n\t\t},\n\t},\n\timage: containerImage,\n\n\t// the properties below are optional\n\tcommand: []*string{\n\t\tjsii.String(\"command\"),\n\t},\n\tcontainerName: jsii.String(\"containerName\"),\n\tcpu: jsii.Number(123),\n\tdisableNetworking: jsii.Boolean(false),\n\tdnsSearchDomains: []*string{\n\t\tjsii.String(\"dnsSearchDomains\"),\n\t},\n\tdnsServers: []*string{\n\t\tjsii.String(\"dnsServers\"),\n\t},\n\tdockerLabels: map[string]*string{\n\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t},\n\tdockerSecurityOptions: []*string{\n\t\tjsii.String(\"dockerSecurityOptions\"),\n\t},\n\tentryPoint: []*string{\n\t\tjsii.String(\"entryPoint\"),\n\t},\n\tenvironment: map[string]*string{\n\t\t\"environmentKey\": jsii.String(\"environment\"),\n\t},\n\tenvironmentFiles: []*environmentFile{\n\t\tenvironmentFile,\n\t},\n\tessential: jsii.Boolean(false),\n\textraHosts: map[string]*string{\n\t\t\"extraHostsKey\": jsii.String(\"extraHosts\"),\n\t},\n\tgpuCount: jsii.Number(123),\n\thealthCheck: &healthCheck{\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"command\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tinterval: cdk.duration.minutes(jsii.Number(30)),\n\t\tretries: jsii.Number(123),\n\t\tstartPeriod: cdk.*duration.minutes(jsii.Number(30)),\n\t\ttimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t},\n\thostname: jsii.String(\"hostname\"),\n\tinferenceAcceleratorResources: []*string{\n\t\tjsii.String(\"inferenceAcceleratorResources\"),\n\t},\n\tlinuxParameters: linuxParameters,\n\tlogging: logDriver,\n\tmemoryLimitMiB: jsii.Number(123),\n\tmemoryReservationMiB: jsii.Number(123),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\thostPort: jsii.Number(123),\n\t\t\tprotocol: ecs.protocol_TCP,\n\t\t},\n\t},\n\tprivileged: jsii.Boolean(false),\n\treadonlyRootFilesystem: jsii.Boolean(false),\n\tsecrets: map[string]*secret{\n\t\t\"secretsKey\": secret,\n\t},\n\tstartTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tstopTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tsystemControls: []systemControl{\n\t\t&systemControl{\n\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tuser: jsii.String(\"user\"),\n\tworkingDirectory: jsii.String(\"workingDirectory\"),\n}",
12528 "version": "1"
12529 },
12530 "$": {
12531 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\nconst firelensLogRouterDefinitionOptions: ecs.FirelensLogRouterDefinitionOptions = {\n firelensConfig: {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n },\n image: containerImage,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n};",
12532 "version": "0"
12533 }
12534 },
12535 "location": {
12536 "api": {
12537 "api": "type",
12538 "fqn": "@aws-cdk/aws-ecs.FirelensLogRouterDefinitionOptions"
12539 },
12540 "field": {
12541 "field": "example"
12542 }
12543 },
12544 "didCompile": true,
12545 "fqnsReferenced": [
12546 "@aws-cdk/aws-ecs.ContainerImage",
12547 "@aws-cdk/aws-ecs.FirelensConfig",
12548 "@aws-cdk/aws-ecs.FirelensConfigFileType",
12549 "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
12550 "@aws-cdk/aws-ecs.FirelensLogRouterDefinitionOptions",
12551 "@aws-cdk/aws-ecs.FirelensLogRouterType",
12552 "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
12553 "@aws-cdk/aws-ecs.FirelensOptions",
12554 "@aws-cdk/aws-ecs.HealthCheck",
12555 "@aws-cdk/aws-ecs.LinuxParameters",
12556 "@aws-cdk/aws-ecs.LogDriver",
12557 "@aws-cdk/aws-ecs.Protocol",
12558 "@aws-cdk/aws-ecs.Protocol#TCP",
12559 "@aws-cdk/aws-ecs.Secret",
12560 "@aws-cdk/core.Duration",
12561 "@aws-cdk/core.Duration#minutes"
12562 ],
12563 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst firelensLogRouterDefinitionOptions: ecs.FirelensLogRouterDefinitionOptions = {\n firelensConfig: {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n },\n image: containerImage,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12564 "syntaxKindCounter": {
12565 "8": 12,
12566 "10": 19,
12567 "75": 100,
12568 "91": 5,
12569 "130": 5,
12570 "153": 6,
12571 "169": 6,
12572 "192": 10,
12573 "193": 10,
12574 "194": 16,
12575 "196": 5,
12576 "225": 6,
12577 "242": 6,
12578 "243": 6,
12579 "254": 2,
12580 "255": 2,
12581 "256": 2,
12582 "281": 51,
12583 "290": 1
12584 },
12585 "fqnsFingerprint": "04e770f5fe121e6132fc98833a7f179da4cf946cff5c7c4e76790d9e24f318f4"
12586 },
12587 "83a350f9429ae652165ac96c619669e54defa4b4ef6bc05151f8fb793f453a5f": {
12588 "translations": {
12589 "python": {
12590 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# container_image: ecs.ContainerImage\n# environment_file: ecs.EnvironmentFile\n# linux_parameters: ecs.LinuxParameters\n# log_driver: ecs.LogDriver\n# secret: ecs.Secret\n# task_definition: ecs.TaskDefinition\n\nfirelens_log_router_props = ecs.FirelensLogRouterProps(\n firelens_config=ecs.FirelensConfig(\n type=ecs.FirelensLogRouterType.FLUENTBIT,\n\n # the properties below are optional\n options=ecs.FirelensOptions(\n config_file_value=\"configFileValue\",\n\n # the properties below are optional\n config_file_type=ecs.FirelensConfigFileType.S3,\n enable_eCSLog_metadata=False\n )\n ),\n image=container_image,\n task_definition=task_definition,\n\n # the properties below are optional\n command=[\"command\"],\n container_name=\"containerName\",\n cpu=123,\n disable_networking=False,\n dns_search_domains=[\"dnsSearchDomains\"],\n dns_servers=[\"dnsServers\"],\n docker_labels={\n \"docker_labels_key\": \"dockerLabels\"\n },\n docker_security_options=[\"dockerSecurityOptions\"],\n entry_point=[\"entryPoint\"],\n environment={\n \"environment_key\": \"environment\"\n },\n environment_files=[environment_file],\n essential=False,\n extra_hosts={\n \"extra_hosts_key\": \"extraHosts\"\n },\n gpu_count=123,\n health_check=ecs.HealthCheck(\n command=[\"command\"],\n\n # the properties below are optional\n interval=cdk.Duration.minutes(30),\n retries=123,\n start_period=cdk.Duration.minutes(30),\n timeout=cdk.Duration.minutes(30)\n ),\n hostname=\"hostname\",\n inference_accelerator_resources=[\"inferenceAcceleratorResources\"],\n linux_parameters=linux_parameters,\n logging=log_driver,\n memory_limit_mi_b=123,\n memory_reservation_mi_b=123,\n port_mappings=[ecs.PortMapping(\n container_port=123,\n\n # the properties below are optional\n host_port=123,\n protocol=ecs.Protocol.TCP\n )],\n privileged=False,\n readonly_root_filesystem=False,\n secrets={\n \"secrets_key\": secret\n },\n start_timeout=cdk.Duration.minutes(30),\n stop_timeout=cdk.Duration.minutes(30),\n system_controls=[ecs.SystemControl(\n namespace=\"namespace\",\n value=\"value\"\n )],\n user=\"user\",\n working_directory=\"workingDirectory\"\n)",
12591 "version": "2"
12592 },
12593 "csharp": {
12594 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nTaskDefinition taskDefinition;\nFirelensLogRouterProps firelensLogRouterProps = new FirelensLogRouterProps {\n FirelensConfig = new FirelensConfig {\n Type = FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n Options = new FirelensOptions {\n ConfigFileValue = \"configFileValue\",\n\n // the properties below are optional\n ConfigFileType = FirelensConfigFileType.S3,\n EnableECSLogMetadata = false\n }\n },\n Image = containerImage,\n TaskDefinition = taskDefinition,\n\n // the properties below are optional\n Command = new [] { \"command\" },\n ContainerName = \"containerName\",\n Cpu = 123,\n DisableNetworking = false,\n DnsSearchDomains = new [] { \"dnsSearchDomains\" },\n DnsServers = new [] { \"dnsServers\" },\n DockerLabels = new Dictionary<string, string> {\n { \"dockerLabelsKey\", \"dockerLabels\" }\n },\n DockerSecurityOptions = new [] { \"dockerSecurityOptions\" },\n EntryPoint = new [] { \"entryPoint\" },\n Environment = new Dictionary<string, string> {\n { \"environmentKey\", \"environment\" }\n },\n EnvironmentFiles = new [] { environmentFile },\n Essential = false,\n ExtraHosts = new Dictionary<string, string> {\n { \"extraHostsKey\", \"extraHosts\" }\n },\n GpuCount = 123,\n HealthCheck = new HealthCheck {\n Command = new [] { \"command\" },\n\n // the properties below are optional\n Interval = Duration.Minutes(30),\n Retries = 123,\n StartPeriod = Duration.Minutes(30),\n Timeout = Duration.Minutes(30)\n },\n Hostname = \"hostname\",\n InferenceAcceleratorResources = new [] { \"inferenceAcceleratorResources\" },\n LinuxParameters = linuxParameters,\n Logging = logDriver,\n MemoryLimitMiB = 123,\n MemoryReservationMiB = 123,\n PortMappings = new [] { new PortMapping {\n ContainerPort = 123,\n\n // the properties below are optional\n HostPort = 123,\n Protocol = Protocol.TCP\n } },\n Privileged = false,\n ReadonlyRootFilesystem = false,\n Secrets = new Dictionary<string, Secret> {\n { \"secretsKey\", secret }\n },\n StartTimeout = Duration.Minutes(30),\n StopTimeout = Duration.Minutes(30),\n SystemControls = new [] { new SystemControl {\n Namespace = \"namespace\",\n Value = \"value\"\n } },\n User = \"user\",\n WorkingDirectory = \"workingDirectory\"\n};",
12595 "version": "1"
12596 },
12597 "java": {
12598 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nContainerImage containerImage;\nEnvironmentFile environmentFile;\nLinuxParameters linuxParameters;\nLogDriver logDriver;\nSecret secret;\nTaskDefinition taskDefinition;\n\nFirelensLogRouterProps firelensLogRouterProps = FirelensLogRouterProps.builder()\n .firelensConfig(FirelensConfig.builder()\n .type(FirelensLogRouterType.FLUENTBIT)\n\n // the properties below are optional\n .options(FirelensOptions.builder()\n .configFileValue(\"configFileValue\")\n\n // the properties below are optional\n .configFileType(FirelensConfigFileType.S3)\n .enableECSLogMetadata(false)\n .build())\n .build())\n .image(containerImage)\n .taskDefinition(taskDefinition)\n\n // the properties below are optional\n .command(List.of(\"command\"))\n .containerName(\"containerName\")\n .cpu(123)\n .disableNetworking(false)\n .dnsSearchDomains(List.of(\"dnsSearchDomains\"))\n .dnsServers(List.of(\"dnsServers\"))\n .dockerLabels(Map.of(\n \"dockerLabelsKey\", \"dockerLabels\"))\n .dockerSecurityOptions(List.of(\"dockerSecurityOptions\"))\n .entryPoint(List.of(\"entryPoint\"))\n .environment(Map.of(\n \"environmentKey\", \"environment\"))\n .environmentFiles(List.of(environmentFile))\n .essential(false)\n .extraHosts(Map.of(\n \"extraHostsKey\", \"extraHosts\"))\n .gpuCount(123)\n .healthCheck(HealthCheck.builder()\n .command(List.of(\"command\"))\n\n // the properties below are optional\n .interval(Duration.minutes(30))\n .retries(123)\n .startPeriod(Duration.minutes(30))\n .timeout(Duration.minutes(30))\n .build())\n .hostname(\"hostname\")\n .inferenceAcceleratorResources(List.of(\"inferenceAcceleratorResources\"))\n .linuxParameters(linuxParameters)\n .logging(logDriver)\n .memoryLimitMiB(123)\n .memoryReservationMiB(123)\n .portMappings(List.of(PortMapping.builder()\n .containerPort(123)\n\n // the properties below are optional\n .hostPort(123)\n .protocol(Protocol.TCP)\n .build()))\n .privileged(false)\n .readonlyRootFilesystem(false)\n .secrets(Map.of(\n \"secretsKey\", secret))\n .startTimeout(Duration.minutes(30))\n .stopTimeout(Duration.minutes(30))\n .systemControls(List.of(SystemControl.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build()))\n .user(\"user\")\n .workingDirectory(\"workingDirectory\")\n .build();",
12599 "version": "1"
12600 },
12601 "go": {
12602 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar containerImage containerImage\nvar environmentFile environmentFile\nvar linuxParameters linuxParameters\nvar logDriver logDriver\nvar secret secret\nvar taskDefinition taskDefinition\n\nfirelensLogRouterProps := &firelensLogRouterProps{\n\tfirelensConfig: &firelensConfig{\n\t\ttype: ecs.firelensLogRouterType_FLUENTBIT,\n\n\t\t// the properties below are optional\n\t\toptions: &firelensOptions{\n\t\t\tconfigFileValue: jsii.String(\"configFileValue\"),\n\n\t\t\t// the properties below are optional\n\t\t\tconfigFileType: ecs.firelensConfigFileType_S3,\n\t\t\tenableECSLogMetadata: jsii.Boolean(false),\n\t\t},\n\t},\n\timage: containerImage,\n\ttaskDefinition: taskDefinition,\n\n\t// the properties below are optional\n\tcommand: []*string{\n\t\tjsii.String(\"command\"),\n\t},\n\tcontainerName: jsii.String(\"containerName\"),\n\tcpu: jsii.Number(123),\n\tdisableNetworking: jsii.Boolean(false),\n\tdnsSearchDomains: []*string{\n\t\tjsii.String(\"dnsSearchDomains\"),\n\t},\n\tdnsServers: []*string{\n\t\tjsii.String(\"dnsServers\"),\n\t},\n\tdockerLabels: map[string]*string{\n\t\t\"dockerLabelsKey\": jsii.String(\"dockerLabels\"),\n\t},\n\tdockerSecurityOptions: []*string{\n\t\tjsii.String(\"dockerSecurityOptions\"),\n\t},\n\tentryPoint: []*string{\n\t\tjsii.String(\"entryPoint\"),\n\t},\n\tenvironment: map[string]*string{\n\t\t\"environmentKey\": jsii.String(\"environment\"),\n\t},\n\tenvironmentFiles: []*environmentFile{\n\t\tenvironmentFile,\n\t},\n\tessential: jsii.Boolean(false),\n\textraHosts: map[string]*string{\n\t\t\"extraHostsKey\": jsii.String(\"extraHosts\"),\n\t},\n\tgpuCount: jsii.Number(123),\n\thealthCheck: &healthCheck{\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"command\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tinterval: cdk.duration.minutes(jsii.Number(30)),\n\t\tretries: jsii.Number(123),\n\t\tstartPeriod: cdk.*duration.minutes(jsii.Number(30)),\n\t\ttimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t},\n\thostname: jsii.String(\"hostname\"),\n\tinferenceAcceleratorResources: []*string{\n\t\tjsii.String(\"inferenceAcceleratorResources\"),\n\t},\n\tlinuxParameters: linuxParameters,\n\tlogging: logDriver,\n\tmemoryLimitMiB: jsii.Number(123),\n\tmemoryReservationMiB: jsii.Number(123),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\thostPort: jsii.Number(123),\n\t\t\tprotocol: ecs.protocol_TCP,\n\t\t},\n\t},\n\tprivileged: jsii.Boolean(false),\n\treadonlyRootFilesystem: jsii.Boolean(false),\n\tsecrets: map[string]*secret{\n\t\t\"secretsKey\": secret,\n\t},\n\tstartTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tstopTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tsystemControls: []systemControl{\n\t\t&systemControl{\n\t\t\tnamespace: jsii.String(\"namespace\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\tuser: jsii.String(\"user\"),\n\tworkingDirectory: jsii.String(\"workingDirectory\"),\n}",
12603 "version": "1"
12604 },
12605 "$": {
12606 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\ndeclare const taskDefinition: ecs.TaskDefinition;\nconst firelensLogRouterProps: ecs.FirelensLogRouterProps = {\n firelensConfig: {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n },\n image: containerImage,\n taskDefinition: taskDefinition,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n};",
12607 "version": "0"
12608 }
12609 },
12610 "location": {
12611 "api": {
12612 "api": "type",
12613 "fqn": "@aws-cdk/aws-ecs.FirelensLogRouterProps"
12614 },
12615 "field": {
12616 "field": "example"
12617 }
12618 },
12619 "didCompile": true,
12620 "fqnsReferenced": [
12621 "@aws-cdk/aws-ecs.ContainerImage",
12622 "@aws-cdk/aws-ecs.FirelensConfig",
12623 "@aws-cdk/aws-ecs.FirelensConfigFileType",
12624 "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
12625 "@aws-cdk/aws-ecs.FirelensLogRouterProps",
12626 "@aws-cdk/aws-ecs.FirelensLogRouterType",
12627 "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
12628 "@aws-cdk/aws-ecs.FirelensOptions",
12629 "@aws-cdk/aws-ecs.HealthCheck",
12630 "@aws-cdk/aws-ecs.LinuxParameters",
12631 "@aws-cdk/aws-ecs.LogDriver",
12632 "@aws-cdk/aws-ecs.Protocol",
12633 "@aws-cdk/aws-ecs.Protocol#TCP",
12634 "@aws-cdk/aws-ecs.Secret",
12635 "@aws-cdk/aws-ecs.TaskDefinition",
12636 "@aws-cdk/core.Duration",
12637 "@aws-cdk/core.Duration#minutes"
12638 ],
12639 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const containerImage: ecs.ContainerImage;\ndeclare const environmentFile: ecs.EnvironmentFile;\ndeclare const linuxParameters: ecs.LinuxParameters;\ndeclare const logDriver: ecs.LogDriver;\ndeclare const secret: ecs.Secret;\ndeclare const taskDefinition: ecs.TaskDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst firelensLogRouterProps: ecs.FirelensLogRouterProps = {\n firelensConfig: {\n type: ecs.FirelensLogRouterType.FLUENTBIT,\n\n // the properties below are optional\n options: {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n },\n },\n image: containerImage,\n taskDefinition: taskDefinition,\n\n // the properties below are optional\n command: ['command'],\n containerName: 'containerName',\n cpu: 123,\n disableNetworking: false,\n dnsSearchDomains: ['dnsSearchDomains'],\n dnsServers: ['dnsServers'],\n dockerLabels: {\n dockerLabelsKey: 'dockerLabels',\n },\n dockerSecurityOptions: ['dockerSecurityOptions'],\n entryPoint: ['entryPoint'],\n environment: {\n environmentKey: 'environment',\n },\n environmentFiles: [environmentFile],\n essential: false,\n extraHosts: {\n extraHostsKey: 'extraHosts',\n },\n gpuCount: 123,\n healthCheck: {\n command: ['command'],\n\n // the properties below are optional\n interval: cdk.Duration.minutes(30),\n retries: 123,\n startPeriod: cdk.Duration.minutes(30),\n timeout: cdk.Duration.minutes(30),\n },\n hostname: 'hostname',\n inferenceAcceleratorResources: ['inferenceAcceleratorResources'],\n linuxParameters: linuxParameters,\n logging: logDriver,\n memoryLimitMiB: 123,\n memoryReservationMiB: 123,\n portMappings: [{\n containerPort: 123,\n\n // the properties below are optional\n hostPort: 123,\n protocol: ecs.Protocol.TCP,\n }],\n privileged: false,\n readonlyRootFilesystem: false,\n secrets: {\n secretsKey: secret,\n },\n startTimeout: cdk.Duration.minutes(30),\n stopTimeout: cdk.Duration.minutes(30),\n systemControls: [{\n namespace: 'namespace',\n value: 'value',\n }],\n user: 'user',\n workingDirectory: 'workingDirectory',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12640 "syntaxKindCounter": {
12641 "8": 12,
12642 "10": 19,
12643 "75": 105,
12644 "91": 5,
12645 "130": 6,
12646 "153": 7,
12647 "169": 7,
12648 "192": 10,
12649 "193": 10,
12650 "194": 16,
12651 "196": 5,
12652 "225": 7,
12653 "242": 7,
12654 "243": 7,
12655 "254": 2,
12656 "255": 2,
12657 "256": 2,
12658 "281": 52,
12659 "290": 1
12660 },
12661 "fqnsFingerprint": "b7d5e22413aa759a077764a037411108ddae2632a0b3a0737d659830cf7e2bb9"
12662 },
12663 "00e70803ad8a2d5994cfa6dba3cd90726f95315ac519853f7f833a93617eaeae": {
12664 "translations": {
12665 "python": {
12666 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nfirelens_options = ecs.FirelensOptions(\n config_file_value=\"configFileValue\",\n\n # the properties below are optional\n config_file_type=ecs.FirelensConfigFileType.S3,\n enable_eCSLog_metadata=False\n)",
12667 "version": "2"
12668 },
12669 "csharp": {
12670 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nFirelensOptions firelensOptions = new FirelensOptions {\n ConfigFileValue = \"configFileValue\",\n\n // the properties below are optional\n ConfigFileType = FirelensConfigFileType.S3,\n EnableECSLogMetadata = false\n};",
12671 "version": "1"
12672 },
12673 "java": {
12674 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nFirelensOptions firelensOptions = FirelensOptions.builder()\n .configFileValue(\"configFileValue\")\n\n // the properties below are optional\n .configFileType(FirelensConfigFileType.S3)\n .enableECSLogMetadata(false)\n .build();",
12675 "version": "1"
12676 },
12677 "go": {
12678 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nfirelensOptions := &firelensOptions{\n\tconfigFileValue: jsii.String(\"configFileValue\"),\n\n\t// the properties below are optional\n\tconfigFileType: ecs.firelensConfigFileType_S3,\n\tenableECSLogMetadata: jsii.Boolean(false),\n}",
12679 "version": "1"
12680 },
12681 "$": {
12682 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst firelensOptions: ecs.FirelensOptions = {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n};",
12683 "version": "0"
12684 }
12685 },
12686 "location": {
12687 "api": {
12688 "api": "type",
12689 "fqn": "@aws-cdk/aws-ecs.FirelensOptions"
12690 },
12691 "field": {
12692 "field": "example"
12693 }
12694 },
12695 "didCompile": true,
12696 "fqnsReferenced": [
12697 "@aws-cdk/aws-ecs.FirelensConfigFileType",
12698 "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
12699 "@aws-cdk/aws-ecs.FirelensOptions"
12700 ],
12701 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst firelensOptions: ecs.FirelensOptions = {\n configFileValue: 'configFileValue',\n\n // the properties below are optional\n configFileType: ecs.FirelensConfigFileType.S3,\n enableECSLogMetadata: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12702 "syntaxKindCounter": {
12703 "10": 2,
12704 "75": 10,
12705 "91": 1,
12706 "153": 1,
12707 "169": 1,
12708 "193": 1,
12709 "194": 2,
12710 "225": 1,
12711 "242": 1,
12712 "243": 1,
12713 "254": 1,
12714 "255": 1,
12715 "256": 1,
12716 "281": 3,
12717 "290": 1
12718 },
12719 "fqnsFingerprint": "95291f10cf5ca458ced13ba231935ff13a346d328fc0435b4909b1ea35f8899a"
12720 },
12721 "510e8e9fff47a983897cf05e969edfb4f214f61d12f8374d5955574349f8fa44": {
12722 "translations": {
12723 "python": {
12724 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\nfluentd_log_driver = ecs.FluentdLogDriver(\n address=\"address\",\n async_connect=False,\n buffer_limit=123,\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n max_retries=123,\n retry_wait=cdk.Duration.minutes(30),\n sub_second_precision=False,\n tag=\"tag\"\n)",
12725 "version": "2"
12726 },
12727 "csharp": {
12728 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\nFluentdLogDriver fluentdLogDriver = new FluentdLogDriver(new FluentdLogDriverProps {\n Address = \"address\",\n AsyncConnect = false,\n BufferLimit = 123,\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n MaxRetries = 123,\n RetryWait = Duration.Minutes(30),\n SubSecondPrecision = false,\n Tag = \"tag\"\n});",
12729 "version": "1"
12730 },
12731 "java": {
12732 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nFluentdLogDriver fluentdLogDriver = FluentdLogDriver.Builder.create()\n .address(\"address\")\n .asyncConnect(false)\n .bufferLimit(123)\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .maxRetries(123)\n .retryWait(Duration.minutes(30))\n .subSecondPrecision(false)\n .tag(\"tag\")\n .build();",
12733 "version": "1"
12734 },
12735 "go": {
12736 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nfluentdLogDriver := ecs.NewFluentdLogDriver(&fluentdLogDriverProps{\n\taddress: jsii.String(\"address\"),\n\tasyncConnect: jsii.Boolean(false),\n\tbufferLimit: jsii.Number(123),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\tmaxRetries: jsii.Number(123),\n\tretryWait: cdk.duration.minutes(jsii.Number(30)),\n\tsubSecondPrecision: jsii.Boolean(false),\n\ttag: jsii.String(\"tag\"),\n})",
12737 "version": "1"
12738 },
12739 "$": {
12740 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\nconst fluentdLogDriver = new ecs.FluentdLogDriver(/* all optional props */ {\n address: 'address',\n asyncConnect: false,\n bufferLimit: 123,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxRetries: 123,\n retryWait: cdk.Duration.minutes(30),\n subSecondPrecision: false,\n tag: 'tag',\n});",
12741 "version": "0"
12742 }
12743 },
12744 "location": {
12745 "api": {
12746 "api": "type",
12747 "fqn": "@aws-cdk/aws-ecs.FluentdLogDriver"
12748 },
12749 "field": {
12750 "field": "example"
12751 }
12752 },
12753 "didCompile": true,
12754 "fqnsReferenced": [
12755 "@aws-cdk/aws-ecs.FluentdLogDriver",
12756 "@aws-cdk/aws-ecs.FluentdLogDriverProps",
12757 "@aws-cdk/core.Duration",
12758 "@aws-cdk/core.Duration#minutes"
12759 ],
12760 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst fluentdLogDriver = new ecs.FluentdLogDriver(/* all optional props */ {\n address: 'address',\n asyncConnect: false,\n bufferLimit: 123,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxRetries: 123,\n retryWait: cdk.Duration.minutes(30),\n subSecondPrecision: false,\n tag: 'tag',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12761 "syntaxKindCounter": {
12762 "8": 3,
12763 "10": 7,
12764 "75": 18,
12765 "91": 2,
12766 "192": 2,
12767 "193": 1,
12768 "194": 3,
12769 "196": 1,
12770 "197": 1,
12771 "225": 1,
12772 "242": 1,
12773 "243": 1,
12774 "254": 2,
12775 "255": 2,
12776 "256": 2,
12777 "281": 10,
12778 "290": 1
12779 },
12780 "fqnsFingerprint": "faa30bdd47afbce3b1acadfa27f740422bdea204517b84105cf36f669063bbb7"
12781 },
12782 "2a7cd3e1e8c2f7961c5239404c6e6c906dfa7e173f49531a7351887269ed645e": {
12783 "translations": {
12784 "python": {
12785 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\nfluentd_log_driver_props = ecs.FluentdLogDriverProps(\n address=\"address\",\n async_connect=False,\n buffer_limit=123,\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n max_retries=123,\n retry_wait=cdk.Duration.minutes(30),\n sub_second_precision=False,\n tag=\"tag\"\n)",
12786 "version": "2"
12787 },
12788 "csharp": {
12789 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\nFluentdLogDriverProps fluentdLogDriverProps = new FluentdLogDriverProps {\n Address = \"address\",\n AsyncConnect = false,\n BufferLimit = 123,\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n MaxRetries = 123,\n RetryWait = Duration.Minutes(30),\n SubSecondPrecision = false,\n Tag = \"tag\"\n};",
12790 "version": "1"
12791 },
12792 "java": {
12793 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nFluentdLogDriverProps fluentdLogDriverProps = FluentdLogDriverProps.builder()\n .address(\"address\")\n .asyncConnect(false)\n .bufferLimit(123)\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .maxRetries(123)\n .retryWait(Duration.minutes(30))\n .subSecondPrecision(false)\n .tag(\"tag\")\n .build();",
12794 "version": "1"
12795 },
12796 "go": {
12797 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nfluentdLogDriverProps := &fluentdLogDriverProps{\n\taddress: jsii.String(\"address\"),\n\tasyncConnect: jsii.Boolean(false),\n\tbufferLimit: jsii.Number(123),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\tmaxRetries: jsii.Number(123),\n\tretryWait: cdk.duration.minutes(jsii.Number(30)),\n\tsubSecondPrecision: jsii.Boolean(false),\n\ttag: jsii.String(\"tag\"),\n}",
12798 "version": "1"
12799 },
12800 "$": {
12801 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\nconst fluentdLogDriverProps: ecs.FluentdLogDriverProps = {\n address: 'address',\n asyncConnect: false,\n bufferLimit: 123,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxRetries: 123,\n retryWait: cdk.Duration.minutes(30),\n subSecondPrecision: false,\n tag: 'tag',\n};",
12802 "version": "0"
12803 }
12804 },
12805 "location": {
12806 "api": {
12807 "api": "type",
12808 "fqn": "@aws-cdk/aws-ecs.FluentdLogDriverProps"
12809 },
12810 "field": {
12811 "field": "example"
12812 }
12813 },
12814 "didCompile": true,
12815 "fqnsReferenced": [
12816 "@aws-cdk/aws-ecs.FluentdLogDriverProps",
12817 "@aws-cdk/core.Duration",
12818 "@aws-cdk/core.Duration#minutes"
12819 ],
12820 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst fluentdLogDriverProps: ecs.FluentdLogDriverProps = {\n address: 'address',\n asyncConnect: false,\n bufferLimit: 123,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxRetries: 123,\n retryWait: cdk.Duration.minutes(30),\n subSecondPrecision: false,\n tag: 'tag',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12821 "syntaxKindCounter": {
12822 "8": 3,
12823 "10": 7,
12824 "75": 18,
12825 "91": 2,
12826 "153": 1,
12827 "169": 1,
12828 "192": 2,
12829 "193": 1,
12830 "194": 2,
12831 "196": 1,
12832 "225": 1,
12833 "242": 1,
12834 "243": 1,
12835 "254": 2,
12836 "255": 2,
12837 "256": 2,
12838 "281": 10,
12839 "290": 1
12840 },
12841 "fqnsFingerprint": "9288aa2b9756fe78821eff6618393b96f7a6c6d3f21ce97fcc47c67bf0cfb109"
12842 },
12843 "b87b9aea7bb29bffd81de30cea34248494aac8eed04454f3587cf9d551a3f9f2": {
12844 "translations": {
12845 "python": {
12846 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\ngelf_log_driver = ecs.GelfLogDriver(\n address=\"address\",\n\n # the properties below are optional\n compression_level=123,\n compression_type=ecs.GelfCompressionType.GZIP,\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n tag=\"tag\",\n tcp_max_reconnect=123,\n tcp_reconnect_delay=cdk.Duration.minutes(30)\n)",
12847 "version": "2"
12848 },
12849 "csharp": {
12850 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\nGelfLogDriver gelfLogDriver = new GelfLogDriver(new GelfLogDriverProps {\n Address = \"address\",\n\n // the properties below are optional\n CompressionLevel = 123,\n CompressionType = GelfCompressionType.GZIP,\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n Tag = \"tag\",\n TcpMaxReconnect = 123,\n TcpReconnectDelay = Duration.Minutes(30)\n});",
12851 "version": "1"
12852 },
12853 "java": {
12854 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nGelfLogDriver gelfLogDriver = GelfLogDriver.Builder.create()\n .address(\"address\")\n\n // the properties below are optional\n .compressionLevel(123)\n .compressionType(GelfCompressionType.GZIP)\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .tag(\"tag\")\n .tcpMaxReconnect(123)\n .tcpReconnectDelay(Duration.minutes(30))\n .build();",
12855 "version": "1"
12856 },
12857 "go": {
12858 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\ngelfLogDriver := ecs.NewGelfLogDriver(&gelfLogDriverProps{\n\taddress: jsii.String(\"address\"),\n\n\t// the properties below are optional\n\tcompressionLevel: jsii.Number(123),\n\tcompressionType: ecs.gelfCompressionType_GZIP,\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\ttag: jsii.String(\"tag\"),\n\ttcpMaxReconnect: jsii.Number(123),\n\ttcpReconnectDelay: cdk.duration.minutes(jsii.Number(30)),\n})",
12859 "version": "1"
12860 },
12861 "$": {
12862 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\nconst gelfLogDriver = new ecs.GelfLogDriver({\n address: 'address',\n\n // the properties below are optional\n compressionLevel: 123,\n compressionType: ecs.GelfCompressionType.GZIP,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n tcpMaxReconnect: 123,\n tcpReconnectDelay: cdk.Duration.minutes(30),\n});",
12863 "version": "0"
12864 }
12865 },
12866 "location": {
12867 "api": {
12868 "api": "type",
12869 "fqn": "@aws-cdk/aws-ecs.GelfLogDriver"
12870 },
12871 "field": {
12872 "field": "example"
12873 }
12874 },
12875 "didCompile": true,
12876 "fqnsReferenced": [
12877 "@aws-cdk/aws-ecs.GelfCompressionType",
12878 "@aws-cdk/aws-ecs.GelfCompressionType#GZIP",
12879 "@aws-cdk/aws-ecs.GelfLogDriver",
12880 "@aws-cdk/aws-ecs.GelfLogDriverProps",
12881 "@aws-cdk/core.Duration",
12882 "@aws-cdk/core.Duration#minutes"
12883 ],
12884 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst gelfLogDriver = new ecs.GelfLogDriver({\n address: 'address',\n\n // the properties below are optional\n compressionLevel: 123,\n compressionType: ecs.GelfCompressionType.GZIP,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n tcpMaxReconnect: 123,\n tcpReconnectDelay: cdk.Duration.minutes(30),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12885 "syntaxKindCounter": {
12886 "8": 3,
12887 "10": 7,
12888 "75": 20,
12889 "192": 2,
12890 "193": 1,
12891 "194": 5,
12892 "196": 1,
12893 "197": 1,
12894 "225": 1,
12895 "242": 1,
12896 "243": 1,
12897 "254": 2,
12898 "255": 2,
12899 "256": 2,
12900 "281": 9,
12901 "290": 1
12902 },
12903 "fqnsFingerprint": "fabcf67ac49b4cbf28f423b8f5f3b6c9836958cd959ede1235a46200cde0febd"
12904 },
12905 "ad23da2151cd6a9cd5fbd5758825ea4168bc04a17a59338b4a838b140b7aa0c9": {
12906 "translations": {
12907 "python": {
12908 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.gelf(address=\"my-gelf-address\")\n)",
12909 "version": "2"
12910 },
12911 "csharp": {
12912 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Gelf(new GelfLogDriverProps { Address = \"my-gelf-address\" })\n});",
12913 "version": "1"
12914 },
12915 "java": {
12916 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.gelf(GelfLogDriverProps.builder().address(\"my-gelf-address\").build()))\n .build());",
12917 "version": "1"
12918 },
12919 "go": {
12920 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.gelf(&gelfLogDriverProps{\n\t\taddress: jsii.String(\"my-gelf-address\"),\n\t}),\n})",
12921 "version": "1"
12922 },
12923 "$": {
12924 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.gelf({ address: 'my-gelf-address' }),\n});",
12925 "version": "0"
12926 }
12927 },
12928 "location": {
12929 "api": {
12930 "api": "type",
12931 "fqn": "@aws-cdk/aws-ecs.GelfLogDriverProps"
12932 },
12933 "field": {
12934 "field": "example"
12935 }
12936 },
12937 "didCompile": true,
12938 "fqnsReferenced": [
12939 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
12940 "@aws-cdk/aws-ecs.ContainerImage",
12941 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
12942 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
12943 "@aws-cdk/aws-ecs.GelfLogDriverProps",
12944 "@aws-cdk/aws-ecs.LogDriver",
12945 "@aws-cdk/aws-ecs.LogDrivers",
12946 "@aws-cdk/aws-ecs.LogDrivers#gelf",
12947 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
12948 "constructs.Construct"
12949 ],
12950 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.gelf({ address: 'my-gelf-address' }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12951 "syntaxKindCounter": {
12952 "8": 1,
12953 "10": 4,
12954 "75": 15,
12955 "104": 1,
12956 "193": 2,
12957 "194": 6,
12958 "196": 3,
12959 "197": 1,
12960 "225": 1,
12961 "226": 1,
12962 "242": 1,
12963 "243": 1,
12964 "281": 4
12965 },
12966 "fqnsFingerprint": "9fe2cccb3423ff38eb8a5f39fd020caace4d4206eaae2d2476dd0634a600a73b"
12967 },
12968 "f0ec578117406288c90de7e06cf2db1b5cdd52dcd7ff67af61e45435fa0efc5b": {
12969 "translations": {
12970 "python": {
12971 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.GenericLogDriver(\n log_driver=\"fluentd\",\n options={\n \"tag\": \"example-tag\"\n }\n )\n)",
12972 "version": "2"
12973 },
12974 "csharp": {
12975 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = new GenericLogDriver(new GenericLogDriverProps {\n LogDriver = \"fluentd\",\n Options = new Dictionary<string, string> {\n { \"tag\", \"example-tag\" }\n }\n })\n});",
12976 "version": "1"
12977 },
12978 "java": {
12979 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(GenericLogDriver.Builder.create()\n .logDriver(\"fluentd\")\n .options(Map.of(\n \"tag\", \"example-tag\"))\n .build())\n .build());",
12980 "version": "1"
12981 },
12982 "go": {
12983 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.NewGenericLogDriver(&genericLogDriverProps{\n\t\tlogDriver: jsii.String(\"fluentd\"),\n\t\toptions: map[string]*string{\n\t\t\t\"tag\": jsii.String(\"example-tag\"),\n\t\t},\n\t}),\n})",
12984 "version": "1"
12985 },
12986 "$": {
12987 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: new ecs.GenericLogDriver({\n logDriver: 'fluentd',\n options: {\n tag: 'example-tag',\n },\n }),\n});",
12988 "version": "0"
12989 }
12990 },
12991 "location": {
12992 "api": {
12993 "api": "type",
12994 "fqn": "@aws-cdk/aws-ecs.GenericLogDriver"
12995 },
12996 "field": {
12997 "field": "example"
12998 }
12999 },
13000 "didCompile": true,
13001 "fqnsReferenced": [
13002 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
13003 "@aws-cdk/aws-ecs.ContainerImage",
13004 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
13005 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
13006 "@aws-cdk/aws-ecs.GenericLogDriver",
13007 "@aws-cdk/aws-ecs.GenericLogDriverProps",
13008 "@aws-cdk/aws-ecs.LogDriver",
13009 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
13010 "constructs.Construct"
13011 ],
13012 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: new ecs.GenericLogDriver({\n logDriver: 'fluentd',\n options: {\n tag: 'example-tag',\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13013 "syntaxKindCounter": {
13014 "8": 1,
13015 "10": 5,
13016 "75": 16,
13017 "104": 1,
13018 "193": 3,
13019 "194": 5,
13020 "196": 2,
13021 "197": 2,
13022 "225": 1,
13023 "226": 1,
13024 "242": 1,
13025 "243": 1,
13026 "281": 6
13027 },
13028 "fqnsFingerprint": "272dc8c12063d83f025896851b95c099dbc7e0aa372104141eb4820e31cb2681"
13029 },
13030 "bb0122ad6769676caf70109677eb2757247573983626c2310515b7879502313c": {
13031 "translations": {
13032 "python": {
13033 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.GenericLogDriver(\n log_driver=\"fluentd\",\n options={\n \"tag\": \"example-tag\"\n }\n )\n)",
13034 "version": "2"
13035 },
13036 "csharp": {
13037 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = new GenericLogDriver(new GenericLogDriverProps {\n LogDriver = \"fluentd\",\n Options = new Dictionary<string, string> {\n { \"tag\", \"example-tag\" }\n }\n })\n});",
13038 "version": "1"
13039 },
13040 "java": {
13041 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(GenericLogDriver.Builder.create()\n .logDriver(\"fluentd\")\n .options(Map.of(\n \"tag\", \"example-tag\"))\n .build())\n .build());",
13042 "version": "1"
13043 },
13044 "go": {
13045 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.NewGenericLogDriver(&genericLogDriverProps{\n\t\tlogDriver: jsii.String(\"fluentd\"),\n\t\toptions: map[string]*string{\n\t\t\t\"tag\": jsii.String(\"example-tag\"),\n\t\t},\n\t}),\n})",
13046 "version": "1"
13047 },
13048 "$": {
13049 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: new ecs.GenericLogDriver({\n logDriver: 'fluentd',\n options: {\n tag: 'example-tag',\n },\n }),\n});",
13050 "version": "0"
13051 }
13052 },
13053 "location": {
13054 "api": {
13055 "api": "type",
13056 "fqn": "@aws-cdk/aws-ecs.GenericLogDriverProps"
13057 },
13058 "field": {
13059 "field": "example"
13060 }
13061 },
13062 "didCompile": true,
13063 "fqnsReferenced": [
13064 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
13065 "@aws-cdk/aws-ecs.ContainerImage",
13066 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
13067 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
13068 "@aws-cdk/aws-ecs.GenericLogDriver",
13069 "@aws-cdk/aws-ecs.GenericLogDriverProps",
13070 "@aws-cdk/aws-ecs.LogDriver",
13071 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
13072 "constructs.Construct"
13073 ],
13074 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: new ecs.GenericLogDriver({\n logDriver: 'fluentd',\n options: {\n tag: 'example-tag',\n },\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13075 "syntaxKindCounter": {
13076 "8": 1,
13077 "10": 5,
13078 "75": 16,
13079 "104": 1,
13080 "193": 3,
13081 "194": 5,
13082 "196": 2,
13083 "197": 2,
13084 "225": 1,
13085 "226": 1,
13086 "242": 1,
13087 "243": 1,
13088 "281": 6
13089 },
13090 "fqnsFingerprint": "272dc8c12063d83f025896851b95c099dbc7e0aa372104141eb4820e31cb2681"
13091 },
13092 "948a0308a25e2eaf917dc08753bf5fafe85b362ab5fbdda293a6d0c7ed1ea423": {
13093 "translations": {
13094 "python": {
13095 "source": "# vpc: ec2.Vpc\n# security_group: ec2.SecurityGroup\n\nqueue_processing_fargate_service = ecs_patterns.QueueProcessingFargateService(self, \"Service\",\n vpc=vpc,\n memory_limit_mi_b=512,\n image=ecs.ContainerImage.from_registry(\"test\"),\n health_check=ecs.HealthCheck(\n command=[\"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\"],\n # the properties below are optional\n interval=Duration.minutes(30),\n retries=123,\n start_period=Duration.minutes(30),\n timeout=Duration.minutes(30)\n )\n)",
13096 "version": "2"
13097 },
13098 "csharp": {
13099 "source": "Vpc vpc;\nSecurityGroup securityGroup;\n\nQueueProcessingFargateService queueProcessingFargateService = new QueueProcessingFargateService(this, \"Service\", new QueueProcessingFargateServiceProps {\n Vpc = vpc,\n MemoryLimitMiB = 512,\n Image = ContainerImage.FromRegistry(\"test\"),\n HealthCheck = new HealthCheck {\n Command = new [] { \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" },\n // the properties below are optional\n Interval = Duration.Minutes(30),\n Retries = 123,\n StartPeriod = Duration.Minutes(30),\n Timeout = Duration.Minutes(30)\n }\n});",
13100 "version": "1"
13101 },
13102 "java": {
13103 "source": "Vpc vpc;\nSecurityGroup securityGroup;\n\nQueueProcessingFargateService queueProcessingFargateService = QueueProcessingFargateService.Builder.create(this, \"Service\")\n .vpc(vpc)\n .memoryLimitMiB(512)\n .image(ContainerImage.fromRegistry(\"test\"))\n .healthCheck(HealthCheck.builder()\n .command(List.of(\"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\"))\n // the properties below are optional\n .interval(Duration.minutes(30))\n .retries(123)\n .startPeriod(Duration.minutes(30))\n .timeout(Duration.minutes(30))\n .build())\n .build();",
13104 "version": "1"
13105 },
13106 "go": {
13107 "source": "var vpc vpc\nvar securityGroup securityGroup\n\nqueueProcessingFargateService := ecsPatterns.NewQueueProcessingFargateService(this, jsii.String(\"Service\"), &queueProcessingFargateServiceProps{\n\tvpc: vpc,\n\tmemoryLimitMiB: jsii.Number(512),\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"test\")),\n\thealthCheck: &healthCheck{\n\t\tcommand: []*string{\n\t\t\tjsii.String(\"CMD-SHELL\"),\n\t\t\tjsii.String(\"curl -f http://localhost/ || exit 1\"),\n\t\t},\n\t\t// the properties below are optional\n\t\tinterval: *awscdkcore.Duration.minutes(jsii.Number(30)),\n\t\tretries: jsii.Number(123),\n\t\tstartPeriod: *awscdkcore.Duration.minutes(jsii.Number(30)),\n\t\ttimeout: *awscdkcore.Duration.minutes(jsii.Number(30)),\n\t},\n})",
13108 "version": "1"
13109 },
13110 "$": {
13111 "source": "declare const vpc: ec2.Vpc;\ndeclare const securityGroup: ec2.SecurityGroup;\nconst queueProcessingFargateService = new ecsPatterns.QueueProcessingFargateService(this, 'Service', {\n vpc,\n memoryLimitMiB: 512,\n image: ecs.ContainerImage.fromRegistry('test'),\n healthCheck: {\n command: [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ],\n // the properties below are optional\n interval: Duration.minutes(30),\n retries: 123,\n startPeriod: Duration.minutes(30),\n timeout: Duration.minutes(30),\n },\n});",
13112 "version": "0"
13113 }
13114 },
13115 "location": {
13116 "api": {
13117 "api": "type",
13118 "fqn": "@aws-cdk/aws-ecs.HealthCheck"
13119 },
13120 "field": {
13121 "field": "example"
13122 }
13123 },
13124 "didCompile": true,
13125 "fqnsReferenced": [
13126 "@aws-cdk/aws-ec2.IVpc",
13127 "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateService",
13128 "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateServiceProps",
13129 "@aws-cdk/aws-ecs.ContainerImage",
13130 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
13131 "@aws-cdk/aws-ecs.HealthCheck",
13132 "@aws-cdk/core.Duration",
13133 "@aws-cdk/core.Duration#minutes",
13134 "constructs.Construct"
13135 ],
13136 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\ndeclare const securityGroup: ec2.SecurityGroup;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as cxapi from '@aws-cdk/cx-api';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n \n // Code snippet begins after !show marker below\n/// !show\n\nconst queueProcessingFargateService = new ecsPatterns.QueueProcessingFargateService(this, 'Service', {\n vpc,\n memoryLimitMiB: 512,\n image: ecs.ContainerImage.fromRegistry('test'),\n healthCheck: {\n command: [ \"CMD-SHELL\", \"curl -f http://localhost/ || exit 1\" ],\n // the properties below are optional\n interval: Duration.minutes(30),\n retries: 123,\n startPeriod: Duration.minutes(30),\n timeout: Duration.minutes(30),\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
13137 "syntaxKindCounter": {
13138 "8": 5,
13139 "10": 4,
13140 "75": 27,
13141 "104": 1,
13142 "130": 2,
13143 "153": 2,
13144 "169": 2,
13145 "192": 1,
13146 "193": 2,
13147 "194": 6,
13148 "196": 4,
13149 "197": 1,
13150 "225": 3,
13151 "242": 3,
13152 "243": 3,
13153 "281": 8,
13154 "282": 1,
13155 "290": 1
13156 },
13157 "fqnsFingerprint": "f4c22ea7551003cff8d3a2d9e57e8f6a34057a3cb9730d3126747d33224156cd"
13158 },
13159 "d230617113bb58334ad63e07f9734a5dbb483deb8515ee2a60e87b91e902374d": {
13160 "translations": {
13161 "python": {
13162 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nhost = ecs.Host(\n source_path=\"sourcePath\"\n)",
13163 "version": "2"
13164 },
13165 "csharp": {
13166 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nHost host = new Host {\n SourcePath = \"sourcePath\"\n};",
13167 "version": "1"
13168 },
13169 "java": {
13170 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nHost host = Host.builder()\n .sourcePath(\"sourcePath\")\n .build();",
13171 "version": "1"
13172 },
13173 "go": {
13174 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nhost := &host{\n\tsourcePath: jsii.String(\"sourcePath\"),\n}",
13175 "version": "1"
13176 },
13177 "$": {
13178 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst host: ecs.Host = {\n sourcePath: 'sourcePath',\n};",
13179 "version": "0"
13180 }
13181 },
13182 "location": {
13183 "api": {
13184 "api": "type",
13185 "fqn": "@aws-cdk/aws-ecs.Host"
13186 },
13187 "field": {
13188 "field": "example"
13189 }
13190 },
13191 "didCompile": true,
13192 "fqnsReferenced": [
13193 "@aws-cdk/aws-ecs.Host"
13194 ],
13195 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst host: ecs.Host = {\n sourcePath: 'sourcePath',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13196 "syntaxKindCounter": {
13197 "10": 2,
13198 "75": 5,
13199 "153": 1,
13200 "169": 1,
13201 "193": 1,
13202 "225": 1,
13203 "242": 1,
13204 "243": 1,
13205 "254": 1,
13206 "255": 1,
13207 "256": 1,
13208 "281": 1,
13209 "290": 1
13210 },
13211 "fqnsFingerprint": "e98fdaccc8a34468e25704876b2d273d3980d667c6d6ce11245c8d5277c59e99"
13212 },
13213 "cb98602fcb7e6fd766004d36a16f4b3fe7e487f0c37f7f3741d0233abdbb2e94": {
13214 "translations": {
13215 "python": {
13216 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ninference_accelerator = ecs.InferenceAccelerator(\n device_name=\"deviceName\",\n device_type=\"deviceType\"\n)",
13217 "version": "2"
13218 },
13219 "csharp": {
13220 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nInferenceAccelerator inferenceAccelerator = new InferenceAccelerator {\n DeviceName = \"deviceName\",\n DeviceType = \"deviceType\"\n};",
13221 "version": "1"
13222 },
13223 "java": {
13224 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nInferenceAccelerator inferenceAccelerator = InferenceAccelerator.builder()\n .deviceName(\"deviceName\")\n .deviceType(\"deviceType\")\n .build();",
13225 "version": "1"
13226 },
13227 "go": {
13228 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ninferenceAccelerator := &inferenceAccelerator{\n\tdeviceName: jsii.String(\"deviceName\"),\n\tdeviceType: jsii.String(\"deviceType\"),\n}",
13229 "version": "1"
13230 },
13231 "$": {
13232 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst inferenceAccelerator: ecs.InferenceAccelerator = {\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n};",
13233 "version": "0"
13234 }
13235 },
13236 "location": {
13237 "api": {
13238 "api": "type",
13239 "fqn": "@aws-cdk/aws-ecs.InferenceAccelerator"
13240 },
13241 "field": {
13242 "field": "example"
13243 }
13244 },
13245 "didCompile": true,
13246 "fqnsReferenced": [
13247 "@aws-cdk/aws-ecs.InferenceAccelerator"
13248 ],
13249 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst inferenceAccelerator: ecs.InferenceAccelerator = {\n deviceName: 'deviceName',\n deviceType: 'deviceType',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13250 "syntaxKindCounter": {
13251 "10": 3,
13252 "75": 6,
13253 "153": 1,
13254 "169": 1,
13255 "193": 1,
13256 "225": 1,
13257 "242": 1,
13258 "243": 1,
13259 "254": 1,
13260 "255": 1,
13261 "256": 1,
13262 "281": 2,
13263 "290": 1
13264 },
13265 "fqnsFingerprint": "6cbee6dc0d6196b5342b62ae2f9b754d1981ea25bc9ca7943a6e78b570b46cbb"
13266 },
13267 "2b4ab06529c619a61ba48d96e7efb32c611b18a728e48031280791156aeade60": {
13268 "translations": {
13269 "python": {
13270 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\njournald_log_driver = ecs.JournaldLogDriver(\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n tag=\"tag\"\n)",
13271 "version": "2"
13272 },
13273 "csharp": {
13274 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nJournaldLogDriver journaldLogDriver = new JournaldLogDriver(new JournaldLogDriverProps {\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n Tag = \"tag\"\n});",
13275 "version": "1"
13276 },
13277 "java": {
13278 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nJournaldLogDriver journaldLogDriver = JournaldLogDriver.Builder.create()\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .tag(\"tag\")\n .build();",
13279 "version": "1"
13280 },
13281 "go": {
13282 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\njournaldLogDriver := ecs.NewJournaldLogDriver(&journaldLogDriverProps{\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\ttag: jsii.String(\"tag\"),\n})",
13283 "version": "1"
13284 },
13285 "$": {
13286 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst journaldLogDriver = new ecs.JournaldLogDriver(/* all optional props */ {\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n});",
13287 "version": "0"
13288 }
13289 },
13290 "location": {
13291 "api": {
13292 "api": "type",
13293 "fqn": "@aws-cdk/aws-ecs.JournaldLogDriver"
13294 },
13295 "field": {
13296 "field": "example"
13297 }
13298 },
13299 "didCompile": true,
13300 "fqnsReferenced": [
13301 "@aws-cdk/aws-ecs.JournaldLogDriver",
13302 "@aws-cdk/aws-ecs.JournaldLogDriverProps"
13303 ],
13304 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst journaldLogDriver = new ecs.JournaldLogDriver(/* all optional props */ {\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13305 "syntaxKindCounter": {
13306 "10": 5,
13307 "75": 8,
13308 "192": 2,
13309 "193": 1,
13310 "194": 1,
13311 "197": 1,
13312 "225": 1,
13313 "242": 1,
13314 "243": 1,
13315 "254": 1,
13316 "255": 1,
13317 "256": 1,
13318 "281": 4,
13319 "290": 1
13320 },
13321 "fqnsFingerprint": "7a0e959718befa3fe755fe440cd19d771d8dfe04502745585c726205dae00916"
13322 },
13323 "8052f2510fc66335f9baec986262012e28e07f0f1c710510659d632701bddb41": {
13324 "translations": {
13325 "python": {
13326 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\njournald_log_driver_props = ecs.JournaldLogDriverProps(\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n tag=\"tag\"\n)",
13327 "version": "2"
13328 },
13329 "csharp": {
13330 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nJournaldLogDriverProps journaldLogDriverProps = new JournaldLogDriverProps {\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n Tag = \"tag\"\n};",
13331 "version": "1"
13332 },
13333 "java": {
13334 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nJournaldLogDriverProps journaldLogDriverProps = JournaldLogDriverProps.builder()\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .tag(\"tag\")\n .build();",
13335 "version": "1"
13336 },
13337 "go": {
13338 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\njournaldLogDriverProps := &journaldLogDriverProps{\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\ttag: jsii.String(\"tag\"),\n}",
13339 "version": "1"
13340 },
13341 "$": {
13342 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst journaldLogDriverProps: ecs.JournaldLogDriverProps = {\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n};",
13343 "version": "0"
13344 }
13345 },
13346 "location": {
13347 "api": {
13348 "api": "type",
13349 "fqn": "@aws-cdk/aws-ecs.JournaldLogDriverProps"
13350 },
13351 "field": {
13352 "field": "example"
13353 }
13354 },
13355 "didCompile": true,
13356 "fqnsReferenced": [
13357 "@aws-cdk/aws-ecs.JournaldLogDriverProps"
13358 ],
13359 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst journaldLogDriverProps: ecs.JournaldLogDriverProps = {\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n tag: 'tag',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13360 "syntaxKindCounter": {
13361 "10": 5,
13362 "75": 8,
13363 "153": 1,
13364 "169": 1,
13365 "192": 2,
13366 "193": 1,
13367 "225": 1,
13368 "242": 1,
13369 "243": 1,
13370 "254": 1,
13371 "255": 1,
13372 "256": 1,
13373 "281": 4,
13374 "290": 1
13375 },
13376 "fqnsFingerprint": "055a639826112fb29463a551be5192d835f0560b50852d65ba7366f90cb682d8"
13377 },
13378 "cbd131f5e51118a8bce6128f62277b2f92f4ece5417876f83d50188964831c55": {
13379 "translations": {
13380 "python": {
13381 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\njson_file_log_driver = ecs.JsonFileLogDriver(\n compress=False,\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n max_file=123,\n max_size=\"maxSize\",\n tag=\"tag\"\n)",
13382 "version": "2"
13383 },
13384 "csharp": {
13385 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nJsonFileLogDriver jsonFileLogDriver = new JsonFileLogDriver(new JsonFileLogDriverProps {\n Compress = false,\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n MaxFile = 123,\n MaxSize = \"maxSize\",\n Tag = \"tag\"\n});",
13386 "version": "1"
13387 },
13388 "java": {
13389 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nJsonFileLogDriver jsonFileLogDriver = JsonFileLogDriver.Builder.create()\n .compress(false)\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .maxFile(123)\n .maxSize(\"maxSize\")\n .tag(\"tag\")\n .build();",
13390 "version": "1"
13391 },
13392 "go": {
13393 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\njsonFileLogDriver := ecs.NewJsonFileLogDriver(&jsonFileLogDriverProps{\n\tcompress: jsii.Boolean(false),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\tmaxFile: jsii.Number(123),\n\tmaxSize: jsii.String(\"maxSize\"),\n\ttag: jsii.String(\"tag\"),\n})",
13394 "version": "1"
13395 },
13396 "$": {
13397 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst jsonFileLogDriver = new ecs.JsonFileLogDriver(/* all optional props */ {\n compress: false,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxFile: 123,\n maxSize: 'maxSize',\n tag: 'tag',\n});",
13398 "version": "0"
13399 }
13400 },
13401 "location": {
13402 "api": {
13403 "api": "type",
13404 "fqn": "@aws-cdk/aws-ecs.JsonFileLogDriver"
13405 },
13406 "field": {
13407 "field": "example"
13408 }
13409 },
13410 "didCompile": true,
13411 "fqnsReferenced": [
13412 "@aws-cdk/aws-ecs.JsonFileLogDriver",
13413 "@aws-cdk/aws-ecs.JsonFileLogDriverProps"
13414 ],
13415 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst jsonFileLogDriver = new ecs.JsonFileLogDriver(/* all optional props */ {\n compress: false,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxFile: 123,\n maxSize: 'maxSize',\n tag: 'tag',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13416 "syntaxKindCounter": {
13417 "8": 1,
13418 "10": 6,
13419 "75": 11,
13420 "91": 1,
13421 "192": 2,
13422 "193": 1,
13423 "194": 1,
13424 "197": 1,
13425 "225": 1,
13426 "242": 1,
13427 "243": 1,
13428 "254": 1,
13429 "255": 1,
13430 "256": 1,
13431 "281": 7,
13432 "290": 1
13433 },
13434 "fqnsFingerprint": "020c8eb353cc4cd8a8ea8b6f7997b3eea2a990ee1618b239179cd1173c0db825"
13435 },
13436 "c8d449e0c0319739386bfb69344b1583ec87eead39fefae54575e10ec5ffc1c5": {
13437 "translations": {
13438 "python": {
13439 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\njson_file_log_driver_props = ecs.JsonFileLogDriverProps(\n compress=False,\n env=[\"env\"],\n env_regex=\"envRegex\",\n labels=[\"labels\"],\n max_file=123,\n max_size=\"maxSize\",\n tag=\"tag\"\n)",
13440 "version": "2"
13441 },
13442 "csharp": {
13443 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nJsonFileLogDriverProps jsonFileLogDriverProps = new JsonFileLogDriverProps {\n Compress = false,\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Labels = new [] { \"labels\" },\n MaxFile = 123,\n MaxSize = \"maxSize\",\n Tag = \"tag\"\n};",
13444 "version": "1"
13445 },
13446 "java": {
13447 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nJsonFileLogDriverProps jsonFileLogDriverProps = JsonFileLogDriverProps.builder()\n .compress(false)\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .labels(List.of(\"labels\"))\n .maxFile(123)\n .maxSize(\"maxSize\")\n .tag(\"tag\")\n .build();",
13448 "version": "1"
13449 },
13450 "go": {
13451 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\njsonFileLogDriverProps := &jsonFileLogDriverProps{\n\tcompress: jsii.Boolean(false),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\tmaxFile: jsii.Number(123),\n\tmaxSize: jsii.String(\"maxSize\"),\n\ttag: jsii.String(\"tag\"),\n}",
13452 "version": "1"
13453 },
13454 "$": {
13455 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst jsonFileLogDriverProps: ecs.JsonFileLogDriverProps = {\n compress: false,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxFile: 123,\n maxSize: 'maxSize',\n tag: 'tag',\n};",
13456 "version": "0"
13457 }
13458 },
13459 "location": {
13460 "api": {
13461 "api": "type",
13462 "fqn": "@aws-cdk/aws-ecs.JsonFileLogDriverProps"
13463 },
13464 "field": {
13465 "field": "example"
13466 }
13467 },
13468 "didCompile": true,
13469 "fqnsReferenced": [
13470 "@aws-cdk/aws-ecs.JsonFileLogDriverProps"
13471 ],
13472 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst jsonFileLogDriverProps: ecs.JsonFileLogDriverProps = {\n compress: false,\n env: ['env'],\n envRegex: 'envRegex',\n labels: ['labels'],\n maxFile: 123,\n maxSize: 'maxSize',\n tag: 'tag',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13473 "syntaxKindCounter": {
13474 "8": 1,
13475 "10": 6,
13476 "75": 11,
13477 "91": 1,
13478 "153": 1,
13479 "169": 1,
13480 "192": 2,
13481 "193": 1,
13482 "225": 1,
13483 "242": 1,
13484 "243": 1,
13485 "254": 1,
13486 "255": 1,
13487 "256": 1,
13488 "281": 7,
13489 "290": 1
13490 },
13491 "fqnsFingerprint": "9cabfc73bb6bce61ca77c79e95fd816e0ad4d6a4ab390321d246f4ffce78e5b7"
13492 },
13493 "f19eaacfbaa5e968d2bdcb6643bb59192e60bd543b6da43f6770d8c3e7e4ef68": {
13494 "translations": {
13495 "python": {
13496 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nlinux_parameters = ecs.LinuxParameters(self, \"MyLinuxParameters\",\n init_process_enabled=False,\n shared_memory_size=123\n)",
13497 "version": "2"
13498 },
13499 "csharp": {
13500 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLinuxParameters linuxParameters = new LinuxParameters(this, \"MyLinuxParameters\", new LinuxParametersProps {\n InitProcessEnabled = false,\n SharedMemorySize = 123\n});",
13501 "version": "1"
13502 },
13503 "java": {
13504 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLinuxParameters linuxParameters = LinuxParameters.Builder.create(this, \"MyLinuxParameters\")\n .initProcessEnabled(false)\n .sharedMemorySize(123)\n .build();",
13505 "version": "1"
13506 },
13507 "go": {
13508 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nlinuxParameters := ecs.NewLinuxParameters(this, jsii.String(\"MyLinuxParameters\"), &linuxParametersProps{\n\tinitProcessEnabled: jsii.Boolean(false),\n\tsharedMemorySize: jsii.Number(123),\n})",
13509 "version": "1"
13510 },
13511 "$": {
13512 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst linuxParameters = new ecs.LinuxParameters(this, 'MyLinuxParameters', /* all optional props */ {\n initProcessEnabled: false,\n sharedMemorySize: 123,\n});",
13513 "version": "0"
13514 }
13515 },
13516 "location": {
13517 "api": {
13518 "api": "type",
13519 "fqn": "@aws-cdk/aws-ecs.LinuxParameters"
13520 },
13521 "field": {
13522 "field": "example"
13523 }
13524 },
13525 "didCompile": true,
13526 "fqnsReferenced": [
13527 "@aws-cdk/aws-ecs.LinuxParameters",
13528 "@aws-cdk/aws-ecs.LinuxParametersProps",
13529 "constructs.Construct"
13530 ],
13531 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst linuxParameters = new ecs.LinuxParameters(this, 'MyLinuxParameters', /* all optional props */ {\n initProcessEnabled: false,\n sharedMemorySize: 123,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13532 "syntaxKindCounter": {
13533 "8": 1,
13534 "10": 2,
13535 "75": 6,
13536 "91": 1,
13537 "104": 1,
13538 "193": 1,
13539 "194": 1,
13540 "197": 1,
13541 "225": 1,
13542 "242": 1,
13543 "243": 1,
13544 "254": 1,
13545 "255": 1,
13546 "256": 1,
13547 "281": 2,
13548 "290": 1
13549 },
13550 "fqnsFingerprint": "90786e2c0cee1eec6c2a18860ea31e2e83f63e9474a3c60096db725185e518ab"
13551 },
13552 "e7a07a46d8b0739f6ea571e43d76fad3eb74f1fd4019e821dded9c721272c0be": {
13553 "translations": {
13554 "python": {
13555 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nlinux_parameters_props = ecs.LinuxParametersProps(\n init_process_enabled=False,\n shared_memory_size=123\n)",
13556 "version": "2"
13557 },
13558 "csharp": {
13559 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLinuxParametersProps linuxParametersProps = new LinuxParametersProps {\n InitProcessEnabled = false,\n SharedMemorySize = 123\n};",
13560 "version": "1"
13561 },
13562 "java": {
13563 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLinuxParametersProps linuxParametersProps = LinuxParametersProps.builder()\n .initProcessEnabled(false)\n .sharedMemorySize(123)\n .build();",
13564 "version": "1"
13565 },
13566 "go": {
13567 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nlinuxParametersProps := &linuxParametersProps{\n\tinitProcessEnabled: jsii.Boolean(false),\n\tsharedMemorySize: jsii.Number(123),\n}",
13568 "version": "1"
13569 },
13570 "$": {
13571 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst linuxParametersProps: ecs.LinuxParametersProps = {\n initProcessEnabled: false,\n sharedMemorySize: 123,\n};",
13572 "version": "0"
13573 }
13574 },
13575 "location": {
13576 "api": {
13577 "api": "type",
13578 "fqn": "@aws-cdk/aws-ecs.LinuxParametersProps"
13579 },
13580 "field": {
13581 "field": "example"
13582 }
13583 },
13584 "didCompile": true,
13585 "fqnsReferenced": [
13586 "@aws-cdk/aws-ecs.LinuxParametersProps"
13587 ],
13588 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst linuxParametersProps: ecs.LinuxParametersProps = {\n initProcessEnabled: false,\n sharedMemorySize: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13589 "syntaxKindCounter": {
13590 "8": 1,
13591 "10": 1,
13592 "75": 6,
13593 "91": 1,
13594 "153": 1,
13595 "169": 1,
13596 "193": 1,
13597 "225": 1,
13598 "242": 1,
13599 "243": 1,
13600 "254": 1,
13601 "255": 1,
13602 "256": 1,
13603 "281": 2,
13604 "290": 1
13605 },
13606 "fqnsFingerprint": "afdd90ba1839fb8035718aa464e4928c729327b9125dec65c35ec5f15dcba158"
13607 },
13608 "851eabd7aa21d46a3063bc232f859bb21d007c7776f35a6d10d45e723910e7a8": {
13609 "translations": {
13610 "python": {
13611 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
13612 "version": "2"
13613 },
13614 "csharp": {
13615 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
13616 "version": "1"
13617 },
13618 "java": {
13619 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
13620 "version": "1"
13621 },
13622 "go": {
13623 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
13624 "version": "1"
13625 },
13626 "$": {
13627 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);",
13628 "version": "0"
13629 }
13630 },
13631 "location": {
13632 "api": {
13633 "api": "type",
13634 "fqn": "@aws-cdk/aws-ecs.ListenerConfig"
13635 },
13636 "field": {
13637 "field": "example"
13638 }
13639 },
13640 "didCompile": true,
13641 "fqnsReferenced": [
13642 "@aws-cdk/aws-ec2.IVpc",
13643 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
13644 "@aws-cdk/aws-ecs.EcsTarget",
13645 "@aws-cdk/aws-ecs.FargateService",
13646 "@aws-cdk/aws-ecs.FargateServiceProps",
13647 "@aws-cdk/aws-ecs.ICluster",
13648 "@aws-cdk/aws-ecs.ListenerConfig",
13649 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
13650 "@aws-cdk/aws-ecs.TaskDefinition",
13651 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
13652 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
13653 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
13654 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
13655 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
13656 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
13657 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
13658 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
13659 "constructs.Construct"
13660 ],
13661 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13662 "syntaxKindCounter": {
13663 "8": 2,
13664 "10": 5,
13665 "75": 37,
13666 "104": 2,
13667 "106": 1,
13668 "130": 3,
13669 "153": 3,
13670 "169": 3,
13671 "193": 5,
13672 "194": 8,
13673 "196": 3,
13674 "197": 2,
13675 "225": 6,
13676 "226": 1,
13677 "242": 6,
13678 "243": 6,
13679 "281": 7,
13680 "282": 3,
13681 "290": 1
13682 },
13683 "fqnsFingerprint": "08744ff53889df1f5a881e6043b941376aaa4fd1f99b9043f7e52335832ac36a"
13684 },
13685 "ce73e407fed0d5c5757f7a1121d1bbabe203ab543a6e33e951b10ba4a699b99e": {
13686 "translations": {
13687 "python": {
13688 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.Ec2Service(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elb.LoadBalancer(self, \"LB\", vpc=vpc)\nlb.add_listener(external_port=80)\nlb.add_target(service.load_balancer_target(\n container_name=\"MyContainer\",\n container_port=80\n))",
13689 "version": "2"
13690 },
13691 "csharp": {
13692 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = new Ec2Service(this, \"Service\", new Ec2ServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nLoadBalancer lb = new LoadBalancer(this, \"LB\", new LoadBalancerProps { Vpc = vpc });\nlb.AddListener(new LoadBalancerListener { ExternalPort = 80 });\nlb.AddTarget(service.LoadBalancerTarget(new LoadBalancerTargetOptions {\n ContainerName = \"MyContainer\",\n ContainerPort = 80\n}));",
13693 "version": "1"
13694 },
13695 "java": {
13696 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nEc2Service service = Ec2Service.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nLoadBalancer lb = LoadBalancer.Builder.create(this, \"LB\").vpc(vpc).build();\nlb.addListener(LoadBalancerListener.builder().externalPort(80).build());\nlb.addTarget(service.loadBalancerTarget(LoadBalancerTargetOptions.builder()\n .containerName(\"MyContainer\")\n .containerPort(80)\n .build()));",
13697 "version": "1"
13698 },
13699 "go": {
13700 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elb.NewLoadBalancer(this, jsii.String(\"LB\"), &loadBalancerProps{\n\tvpc: vpc,\n})\nlb.addListener(&loadBalancerListener{\n\texternalPort: jsii.Number(80),\n})\nlb.addTarget(service.loadBalancerTarget(&loadBalancerTargetOptions{\n\tcontainerName: jsii.String(\"MyContainer\"),\n\tcontainerPort: jsii.Number(80),\n}))",
13701 "version": "1"
13702 },
13703 "$": {
13704 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));",
13705 "version": "0"
13706 }
13707 },
13708 "location": {
13709 "api": {
13710 "api": "type",
13711 "fqn": "@aws-cdk/aws-ecs.LoadBalancerTargetOptions"
13712 },
13713 "field": {
13714 "field": "example"
13715 }
13716 },
13717 "didCompile": true,
13718 "fqnsReferenced": [
13719 "@aws-cdk/aws-ec2.IVpc",
13720 "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
13721 "@aws-cdk/aws-ecs.Ec2Service",
13722 "@aws-cdk/aws-ecs.Ec2ServiceProps",
13723 "@aws-cdk/aws-ecs.ICluster",
13724 "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
13725 "@aws-cdk/aws-ecs.TaskDefinition",
13726 "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
13727 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
13728 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
13729 "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
13730 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
13731 "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
13732 "constructs.Construct"
13733 ],
13734 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.Ec2Service(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elb.LoadBalancer(this, 'LB', { vpc });\nlb.addListener({ externalPort: 80 });\nlb.addTarget(service.loadBalancerTarget({\n containerName: 'MyContainer',\n containerPort: 80,\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13735 "syntaxKindCounter": {
13736 "8": 2,
13737 "10": 3,
13738 "75": 27,
13739 "104": 2,
13740 "130": 3,
13741 "153": 3,
13742 "169": 3,
13743 "193": 4,
13744 "194": 5,
13745 "196": 3,
13746 "197": 2,
13747 "225": 5,
13748 "226": 2,
13749 "242": 5,
13750 "243": 5,
13751 "281": 3,
13752 "282": 3,
13753 "290": 1
13754 },
13755 "fqnsFingerprint": "6903bbec8210e946e5b1d9c427f7349b8410f2b3d7c838f4172111966ed3f8bb"
13756 },
13757 "42b4e4c1d660edc839313dd59abfddbe44604b3fc6eb889cb498dac35c23a8e0": {
13758 "translations": {
13759 "python": {
13760 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.splunk(\n token=SecretValue.secrets_manager(\"my-splunk-token\"),\n url=\"my-splunk-url\"\n )\n)",
13761 "version": "2"
13762 },
13763 "csharp": {
13764 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Splunk(new SplunkLogDriverProps {\n Token = SecretValue.SecretsManager(\"my-splunk-token\"),\n Url = \"my-splunk-url\"\n })\n});",
13765 "version": "1"
13766 },
13767 "java": {
13768 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.splunk(SplunkLogDriverProps.builder()\n .token(SecretValue.secretsManager(\"my-splunk-token\"))\n .url(\"my-splunk-url\")\n .build()))\n .build());",
13769 "version": "1"
13770 },
13771 "go": {
13772 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.splunk(&splunkLogDriverProps{\n\t\ttoken: *awscdkcore.SecretValue.secretsManager(jsii.String(\"my-splunk-token\")),\n\t\turl: jsii.String(\"my-splunk-url\"),\n\t}),\n})",
13773 "version": "1"
13774 },
13775 "$": {
13776 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});",
13777 "version": "0"
13778 }
13779 },
13780 "location": {
13781 "api": {
13782 "api": "type",
13783 "fqn": "@aws-cdk/aws-ecs.LogDriver"
13784 },
13785 "field": {
13786 "field": "example"
13787 }
13788 },
13789 "didCompile": true,
13790 "fqnsReferenced": [
13791 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
13792 "@aws-cdk/aws-ecs.ContainerImage",
13793 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
13794 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
13795 "@aws-cdk/aws-ecs.LogDriver",
13796 "@aws-cdk/aws-ecs.LogDrivers",
13797 "@aws-cdk/aws-ecs.LogDrivers#splunk",
13798 "@aws-cdk/aws-ecs.SplunkLogDriverProps",
13799 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
13800 "@aws-cdk/core.SecretValue",
13801 "@aws-cdk/core.SecretValue#secretsManager",
13802 "constructs.Construct"
13803 ],
13804 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13805 "syntaxKindCounter": {
13806 "8": 1,
13807 "10": 5,
13808 "75": 18,
13809 "104": 1,
13810 "193": 2,
13811 "194": 7,
13812 "196": 4,
13813 "197": 1,
13814 "225": 1,
13815 "226": 1,
13816 "242": 1,
13817 "243": 1,
13818 "281": 5
13819 },
13820 "fqnsFingerprint": "cd6c265656766ea5017c47b7887118fcc13ab7e9488868f335215354fc75c563"
13821 },
13822 "757e7b42b65a7bfb08a6b402d316dd6f4457e80cf8ed0b09f06efad02744c57d": {
13823 "translations": {
13824 "python": {
13825 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nlog_driver_config = ecs.LogDriverConfig(\n log_driver=\"logDriver\",\n\n # the properties below are optional\n options={\n \"options_key\": \"options\"\n },\n secret_options=[ecs.CfnTaskDefinition.SecretProperty(\n name=\"name\",\n value_from=\"valueFrom\"\n )]\n)",
13826 "version": "2"
13827 },
13828 "csharp": {
13829 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nLogDriverConfig logDriverConfig = new LogDriverConfig {\n LogDriver = \"logDriver\",\n\n // the properties below are optional\n Options = new Dictionary<string, string> {\n { \"optionsKey\", \"options\" }\n },\n SecretOptions = new [] { new SecretProperty {\n Name = \"name\",\n ValueFrom = \"valueFrom\"\n } }\n};",
13830 "version": "1"
13831 },
13832 "java": {
13833 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nLogDriverConfig logDriverConfig = LogDriverConfig.builder()\n .logDriver(\"logDriver\")\n\n // the properties below are optional\n .options(Map.of(\n \"optionsKey\", \"options\"))\n .secretOptions(List.of(SecretProperty.builder()\n .name(\"name\")\n .valueFrom(\"valueFrom\")\n .build()))\n .build();",
13834 "version": "1"
13835 },
13836 "go": {
13837 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nlogDriverConfig := &logDriverConfig{\n\tlogDriver: jsii.String(\"logDriver\"),\n\n\t// the properties below are optional\n\toptions: map[string]*string{\n\t\t\"optionsKey\": jsii.String(\"options\"),\n\t},\n\tsecretOptions: []secretProperty{\n\t\t&secretProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalueFrom: jsii.String(\"valueFrom\"),\n\t\t},\n\t},\n}",
13838 "version": "1"
13839 },
13840 "$": {
13841 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst logDriverConfig: ecs.LogDriverConfig = {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n};",
13842 "version": "0"
13843 }
13844 },
13845 "location": {
13846 "api": {
13847 "api": "type",
13848 "fqn": "@aws-cdk/aws-ecs.LogDriverConfig"
13849 },
13850 "field": {
13851 "field": "example"
13852 }
13853 },
13854 "didCompile": true,
13855 "fqnsReferenced": [
13856 "@aws-cdk/aws-ecs.LogDriverConfig"
13857 ],
13858 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst logDriverConfig: ecs.LogDriverConfig = {\n logDriver: 'logDriver',\n\n // the properties below are optional\n options: {\n optionsKey: 'options',\n },\n secretOptions: [{\n name: 'name',\n valueFrom: 'valueFrom',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
13859 "syntaxKindCounter": {
13860 "10": 5,
13861 "75": 10,
13862 "153": 1,
13863 "169": 1,
13864 "192": 1,
13865 "193": 3,
13866 "225": 1,
13867 "242": 1,
13868 "243": 1,
13869 "254": 1,
13870 "255": 1,
13871 "256": 1,
13872 "281": 6,
13873 "290": 1
13874 },
13875 "fqnsFingerprint": "01de09163be162dda2c6e771f0f95eb9afff3fc6edea148aafb76e9bde6372b4"
13876 },
13877 "7f6d1ab20274608e5190b96e37455dd15ce27ee580582da7cc65411d270e1f1e": {
13878 "translations": {
13879 "python": {
13880 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.aws_logs(stream_prefix=\"EventDemo\")\n)",
13881 "version": "2"
13882 },
13883 "csharp": {
13884 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"EventDemo\" })\n});",
13885 "version": "1"
13886 },
13887 "java": {
13888 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"EventDemo\").build()))\n .build());",
13889 "version": "1"
13890 },
13891 "go": {
13892 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"EventDemo\"),\n\t}),\n})",
13893 "version": "1"
13894 },
13895 "$": {
13896 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.awsLogs({ streamPrefix: 'EventDemo' }),\n});",
13897 "version": "0"
13898 }
13899 },
13900 "location": {
13901 "api": {
13902 "api": "type",
13903 "fqn": "@aws-cdk/aws-ecs.LogDrivers"
13904 },
13905 "field": {
13906 "field": "example"
13907 }
13908 },
13909 "didCompile": true,
13910 "fqnsReferenced": [
13911 "@aws-cdk/aws-ecs.AwsLogDriverProps",
13912 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
13913 "@aws-cdk/aws-ecs.ContainerImage",
13914 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
13915 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
13916 "@aws-cdk/aws-ecs.LogDriver",
13917 "@aws-cdk/aws-ecs.LogDrivers",
13918 "@aws-cdk/aws-ecs.LogDrivers#awsLogs",
13919 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
13920 "constructs.Construct"
13921 ],
13922 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.awsLogs({ streamPrefix: 'EventDemo' }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13923 "syntaxKindCounter": {
13924 "8": 1,
13925 "10": 4,
13926 "75": 15,
13927 "104": 1,
13928 "193": 2,
13929 "194": 6,
13930 "196": 3,
13931 "197": 1,
13932 "225": 1,
13933 "226": 1,
13934 "242": 1,
13935 "243": 1,
13936 "281": 4
13937 },
13938 "fqnsFingerprint": "62e0d6eee5c2f3daff8a39dff466db74d15a74c07544c8d3fbbe68d541f85ce0"
13939 },
13940 "91e54da8e04f45b09797eaab5495f038af58dfec1e4071dc492494895757b956": {
13941 "translations": {
13942 "python": {
13943 "source": "# cluster: ecs.Cluster\n\n\ncluster.add_capacity(\"graviton-cluster\",\n min_capacity=2,\n instance_type=ec2.InstanceType(\"c6g.large\"),\n machine_image_type=ecs.MachineImageType.BOTTLEROCKET\n)",
13944 "version": "2"
13945 },
13946 "csharp": {
13947 "source": "Cluster cluster;\n\n\ncluster.AddCapacity(\"graviton-cluster\", new AddCapacityOptions {\n MinCapacity = 2,\n InstanceType = new InstanceType(\"c6g.large\"),\n MachineImageType = MachineImageType.BOTTLEROCKET\n});",
13948 "version": "1"
13949 },
13950 "java": {
13951 "source": "Cluster cluster;\n\n\ncluster.addCapacity(\"graviton-cluster\", AddCapacityOptions.builder()\n .minCapacity(2)\n .instanceType(new InstanceType(\"c6g.large\"))\n .machineImageType(MachineImageType.BOTTLEROCKET)\n .build());",
13952 "version": "1"
13953 },
13954 "go": {
13955 "source": "var cluster cluster\n\n\ncluster.addCapacity(jsii.String(\"graviton-cluster\"), &addCapacityOptions{\n\tminCapacity: jsii.Number(2),\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"c6g.large\")),\n\tmachineImageType: ecs.machineImageType_BOTTLEROCKET,\n})",
13956 "version": "1"
13957 },
13958 "$": {
13959 "source": "declare const cluster: ecs.Cluster;\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImageType: ecs.MachineImageType.BOTTLEROCKET,\n});",
13960 "version": "0"
13961 }
13962 },
13963 "location": {
13964 "api": {
13965 "api": "type",
13966 "fqn": "@aws-cdk/aws-ecs.MachineImageType"
13967 },
13968 "field": {
13969 "field": "example"
13970 }
13971 },
13972 "didCompile": true,
13973 "fqnsReferenced": [
13974 "@aws-cdk/aws-ec2.InstanceType",
13975 "@aws-cdk/aws-ecs.AddCapacityOptions",
13976 "@aws-cdk/aws-ecs.Cluster#addCapacity",
13977 "@aws-cdk/aws-ecs.MachineImageType",
13978 "@aws-cdk/aws-ecs.MachineImageType#BOTTLEROCKET"
13979 ],
13980 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncluster.addCapacity('graviton-cluster', {\n minCapacity: 2,\n instanceType: new ec2.InstanceType('c6g.large'),\n machineImageType: ecs.MachineImageType.BOTTLEROCKET,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
13981 "syntaxKindCounter": {
13982 "8": 1,
13983 "10": 2,
13984 "75": 13,
13985 "130": 1,
13986 "153": 1,
13987 "169": 1,
13988 "193": 1,
13989 "194": 4,
13990 "196": 1,
13991 "197": 1,
13992 "225": 1,
13993 "226": 1,
13994 "242": 1,
13995 "243": 1,
13996 "281": 3,
13997 "290": 1
13998 },
13999 "fqnsFingerprint": "550f026e76586478f89ca881cd550ecbb984d55cccc1fef23200850d471b77b3"
14000 },
14001 "a804513d8f3d50125642a4ec22fe9dae7f9c3c098d7833b511d3718964f42205": {
14002 "translations": {
14003 "python": {
14004 "source": "# cluster: ecs.Cluster\n\nload_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, \"Service\",\n cluster=cluster,\n memory_limit_mi_b=1024,\n desired_count=1,\n cpu=512,\n task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n )\n)\n\nscalable_target = load_balanced_fargate_service.service.auto_scale_task_count(\n min_capacity=1,\n max_capacity=20\n)\n\nscalable_target.scale_on_cpu_utilization(\"CpuScaling\",\n target_utilization_percent=50\n)\n\nscalable_target.scale_on_memory_utilization(\"MemoryScaling\",\n target_utilization_percent=50\n)",
14005 "version": "2"
14006 },
14007 "csharp": {
14008 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = new ApplicationLoadBalancedFargateService(this, \"Service\", new ApplicationLoadBalancedFargateServiceProps {\n Cluster = cluster,\n MemoryLimitMiB = 1024,\n DesiredCount = 1,\n Cpu = 512,\n TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n }\n});\n\nScalableTaskCount scalableTarget = loadBalancedFargateService.Service.AutoScaleTaskCount(new EnableScalingProps {\n MinCapacity = 1,\n MaxCapacity = 20\n});\n\nscalableTarget.ScaleOnCpuUtilization(\"CpuScaling\", new CpuUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});\n\nscalableTarget.ScaleOnMemoryUtilization(\"MemoryScaling\", new MemoryUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});",
14009 "version": "1"
14010 },
14011 "java": {
14012 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .memoryLimitMiB(1024)\n .desiredCount(1)\n .cpu(512)\n .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build())\n .build();\n\nScalableTaskCount scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder()\n .minCapacity(1)\n .maxCapacity(20)\n .build());\n\nscalableTarget.scaleOnCpuUtilization(\"CpuScaling\", CpuUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());\n\nscalableTarget.scaleOnMemoryUtilization(\"MemoryScaling\", MemoryUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());",
14013 "version": "1"
14014 },
14015 "go": {
14016 "source": "var cluster cluster\n\nloadBalancedFargateService := ecsPatterns.NewApplicationLoadBalancedFargateService(this, jsii.String(\"Service\"), &applicationLoadBalancedFargateServiceProps{\n\tcluster: cluster,\n\tmemoryLimitMiB: jsii.Number(1024),\n\tdesiredCount: jsii.Number(1),\n\tcpu: jsii.Number(512),\n\ttaskImageOptions: &applicationLoadBalancedTaskImageOptions{\n\t\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\t},\n})\n\nscalableTarget := loadBalancedFargateService.service.autoScaleTaskCount(&enableScalingProps{\n\tminCapacity: jsii.Number(1),\n\tmaxCapacity: jsii.Number(20),\n})\n\nscalableTarget.scaleOnCpuUtilization(jsii.String(\"CpuScaling\"), &cpuUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})\n\nscalableTarget.scaleOnMemoryUtilization(jsii.String(\"MemoryScaling\"), &memoryUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})",
14017 "version": "1"
14018 },
14019 "$": {
14020 "source": "declare const cluster: ecs.Cluster;\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n});\n\nconst scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount({\n minCapacity: 1,\n maxCapacity: 20,\n});\n\nscalableTarget.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscalableTarget.scaleOnMemoryUtilization('MemoryScaling', {\n targetUtilizationPercent: 50,\n});",
14021 "version": "0"
14022 }
14023 },
14024 "location": {
14025 "api": {
14026 "api": "type",
14027 "fqn": "@aws-cdk/aws-ecs.MemoryUtilizationScalingProps"
14028 },
14029 "field": {
14030 "field": "example"
14031 }
14032 },
14033 "didCompile": true,
14034 "fqnsReferenced": [
14035 "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
14036 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
14037 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService#service",
14038 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
14039 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
14040 "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
14041 "@aws-cdk/aws-ecs.ContainerImage",
14042 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14043 "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
14044 "@aws-cdk/aws-ecs.ICluster",
14045 "@aws-cdk/aws-ecs.MemoryUtilizationScalingProps",
14046 "@aws-cdk/aws-ecs.ScalableTaskCount",
14047 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
14048 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnMemoryUtilization",
14049 "constructs.Construct"
14050 ],
14051 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as cxapi from '@aws-cdk/cx-api';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n \n // Code snippet begins after !show marker below\n/// !show\n\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n});\n\nconst scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount({\n minCapacity: 1,\n maxCapacity: 20,\n});\n\nscalableTarget.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscalableTarget.scaleOnMemoryUtilization('MemoryScaling', {\n targetUtilizationPercent: 50,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
14052 "syntaxKindCounter": {
14053 "8": 7,
14054 "10": 4,
14055 "75": 27,
14056 "104": 1,
14057 "130": 1,
14058 "153": 1,
14059 "169": 1,
14060 "193": 5,
14061 "194": 7,
14062 "196": 4,
14063 "197": 1,
14064 "225": 3,
14065 "226": 2,
14066 "242": 3,
14067 "243": 3,
14068 "281": 9,
14069 "282": 1,
14070 "290": 1
14071 },
14072 "fqnsFingerprint": "b0eef88c9c090a5c58d14a29469b1b395e9328fae12c125f18556d195a026d8c"
14073 },
14074 "671f4138ee0d02c7cc7fe9bb69d26a5b2e22d40e849625b0ccd5efd8fa2da0c7": {
14075 "translations": {
14076 "python": {
14077 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nmount_point = ecs.MountPoint(\n container_path=\"containerPath\",\n read_only=False,\n source_volume=\"sourceVolume\"\n)",
14078 "version": "2"
14079 },
14080 "csharp": {
14081 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nMountPoint mountPoint = new MountPoint {\n ContainerPath = \"containerPath\",\n ReadOnly = false,\n SourceVolume = \"sourceVolume\"\n};",
14082 "version": "1"
14083 },
14084 "java": {
14085 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nMountPoint mountPoint = MountPoint.builder()\n .containerPath(\"containerPath\")\n .readOnly(false)\n .sourceVolume(\"sourceVolume\")\n .build();",
14086 "version": "1"
14087 },
14088 "go": {
14089 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nmountPoint := &mountPoint{\n\tcontainerPath: jsii.String(\"containerPath\"),\n\treadOnly: jsii.Boolean(false),\n\tsourceVolume: jsii.String(\"sourceVolume\"),\n}",
14090 "version": "1"
14091 },
14092 "$": {
14093 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst mountPoint: ecs.MountPoint = {\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n};",
14094 "version": "0"
14095 }
14096 },
14097 "location": {
14098 "api": {
14099 "api": "type",
14100 "fqn": "@aws-cdk/aws-ecs.MountPoint"
14101 },
14102 "field": {
14103 "field": "example"
14104 }
14105 },
14106 "didCompile": true,
14107 "fqnsReferenced": [
14108 "@aws-cdk/aws-ecs.MountPoint"
14109 ],
14110 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst mountPoint: ecs.MountPoint = {\n containerPath: 'containerPath',\n readOnly: false,\n sourceVolume: 'sourceVolume',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
14111 "syntaxKindCounter": {
14112 "10": 3,
14113 "75": 7,
14114 "91": 1,
14115 "153": 1,
14116 "169": 1,
14117 "193": 1,
14118 "225": 1,
14119 "242": 1,
14120 "243": 1,
14121 "254": 1,
14122 "255": 1,
14123 "256": 1,
14124 "281": 3,
14125 "290": 1
14126 },
14127 "fqnsFingerprint": "c853587d202e8f042d04b8093481fa8995cc3fb65c215f2a11ccfdcff98c4652"
14128 },
14129 "d2fe9772969825f45362f47d3b4b9da7a6daa4a93d7004d27c52f9230885e9b5": {
14130 "translations": {
14131 "python": {
14132 "source": "ec2_task_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\",\n network_mode=ecs.NetworkMode.BRIDGE\n)\n\ncontainer = ec2_task_definition.add_container(\"WebContainer\",\n # Use an image from DockerHub\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024\n)",
14133 "version": "2"
14134 },
14135 "csharp": {
14136 "source": "Ec2TaskDefinition ec2TaskDefinition = new Ec2TaskDefinition(this, \"TaskDef\", new Ec2TaskDefinitionProps {\n NetworkMode = NetworkMode.BRIDGE\n});\n\nContainerDefinition container = ec2TaskDefinition.AddContainer(\"WebContainer\", new ContainerDefinitionOptions {\n // Use an image from DockerHub\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024\n});",
14137 "version": "1"
14138 },
14139 "java": {
14140 "source": "Ec2TaskDefinition ec2TaskDefinition = Ec2TaskDefinition.Builder.create(this, \"TaskDef\")\n .networkMode(NetworkMode.BRIDGE)\n .build();\n\nContainerDefinition container = ec2TaskDefinition.addContainer(\"WebContainer\", ContainerDefinitionOptions.builder()\n // Use an image from DockerHub\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .build());",
14141 "version": "1"
14142 },
14143 "go": {
14144 "source": "ec2TaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"), &ec2TaskDefinitionProps{\n\tnetworkMode: ecs.networkMode_BRIDGE,\n})\n\ncontainer := ec2TaskDefinition.addContainer(jsii.String(\"WebContainer\"), &containerDefinitionOptions{\n\t// Use an image from DockerHub\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n})",
14145 "version": "1"
14146 },
14147 "$": {
14148 "source": "const ec2TaskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef', {\n networkMode: ecs.NetworkMode.BRIDGE,\n});\n\nconst container = ec2TaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});",
14149 "version": "0"
14150 }
14151 },
14152 "location": {
14153 "api": {
14154 "api": "type",
14155 "fqn": "@aws-cdk/aws-ecs.NetworkMode"
14156 },
14157 "field": {
14158 "field": "example"
14159 }
14160 },
14161 "didCompile": true,
14162 "fqnsReferenced": [
14163 "@aws-cdk/aws-ecs.ContainerDefinition",
14164 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
14165 "@aws-cdk/aws-ecs.ContainerImage",
14166 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14167 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
14168 "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
14169 "@aws-cdk/aws-ecs.NetworkMode",
14170 "@aws-cdk/aws-ecs.NetworkMode#BRIDGE",
14171 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
14172 "constructs.Construct"
14173 ],
14174 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst ec2TaskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef', {\n networkMode: ecs.NetworkMode.BRIDGE,\n});\n\nconst container = ec2TaskDefinition.addContainer(\"WebContainer\", {\n // Use an image from DockerHub\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n // ... other options here ...\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14175 "syntaxKindCounter": {
14176 "8": 1,
14177 "10": 3,
14178 "75": 15,
14179 "104": 1,
14180 "193": 2,
14181 "194": 6,
14182 "196": 2,
14183 "197": 1,
14184 "225": 2,
14185 "242": 2,
14186 "243": 2,
14187 "281": 3
14188 },
14189 "fqnsFingerprint": "3a3545ab580227152b50d324c49d7ee51c7fd5bcc939b9dfad98070b91538526"
14190 },
14191 "eb1954abb5f7ec66be17174547df7775ec32c28dc4d3d19d9583f6e66cd2a947": {
14192 "translations": {
14193 "python": {
14194 "source": "# Create a Task Definition for the Windows container to start\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n runtime_platform=ecs.RuntimePlatform(\n operating_system_family=ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpu_architecture=ecs.CpuArchitecture.X86_64\n ),\n cpu=1024,\n memory_limit_mi_b=2048\n)\n\ntask_definition.add_container(\"windowsservercore\",\n logging=ecs.LogDriver.aws_logs(stream_prefix=\"win-iis-on-fargate\"),\n port_mappings=[ecs.PortMapping(container_port=80)],\n image=ecs.ContainerImage.from_registry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n)",
14195 "version": "2"
14196 },
14197 "csharp": {
14198 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n RuntimePlatform = new RuntimePlatform {\n OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n CpuArchitecture = CpuArchitecture.X86_64\n },\n Cpu = 1024,\n MemoryLimitMiB = 2048\n});\n\ntaskDefinition.AddContainer(\"windowsservercore\", new ContainerDefinitionOptions {\n Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"win-iis-on-fargate\" }),\n PortMappings = new [] { new PortMapping { ContainerPort = 80 } },\n Image = ContainerImage.FromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n});",
14199 "version": "1"
14200 },
14201 "java": {
14202 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .runtimePlatform(RuntimePlatform.builder()\n .operatingSystemFamily(OperatingSystemFamily.WINDOWS_SERVER_2019_CORE)\n .cpuArchitecture(CpuArchitecture.X86_64)\n .build())\n .cpu(1024)\n .memoryLimitMiB(2048)\n .build();\n\ntaskDefinition.addContainer(\"windowsservercore\", ContainerDefinitionOptions.builder()\n .logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"win-iis-on-fargate\").build()))\n .portMappings(List.of(PortMapping.builder().containerPort(80).build()))\n .image(ContainerImage.fromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\"))\n .build());",
14203 "version": "1"
14204 },
14205 "go": {
14206 "source": "// Create a Task Definition for the Windows container to start\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\truntimePlatform: &runtimePlatform{\n\t\toperatingSystemFamily: ecs.operatingSystemFamily_WINDOWS_SERVER_2019_CORE(),\n\t\tcpuArchitecture: ecs.cpuArchitecture_X86_64(),\n\t},\n\tcpu: jsii.Number(1024),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\ntaskDefinition.addContainer(jsii.String(\"windowsservercore\"), &containerDefinitionOptions{\n\tlogging: ecs.logDriver.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"win-iis-on-fargate\"),\n\t}),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(80),\n\t\t},\n\t},\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")),\n})",
14207 "version": "1"
14208 },
14209 "$": {
14210 "source": "// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});",
14211 "version": "0"
14212 }
14213 },
14214 "location": {
14215 "api": {
14216 "api": "type",
14217 "fqn": "@aws-cdk/aws-ecs.OperatingSystemFamily"
14218 },
14219 "field": {
14220 "field": "example"
14221 }
14222 },
14223 "didCompile": true,
14224 "fqnsReferenced": [
14225 "@aws-cdk/aws-ecs.AwsLogDriverProps",
14226 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
14227 "@aws-cdk/aws-ecs.ContainerImage",
14228 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14229 "@aws-cdk/aws-ecs.CpuArchitecture",
14230 "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
14231 "@aws-cdk/aws-ecs.FargateTaskDefinition",
14232 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
14233 "@aws-cdk/aws-ecs.LogDriver",
14234 "@aws-cdk/aws-ecs.LogDriver#awsLogs",
14235 "@aws-cdk/aws-ecs.OperatingSystemFamily",
14236 "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
14237 "@aws-cdk/aws-ecs.RuntimePlatform",
14238 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
14239 "constructs.Construct"
14240 ],
14241 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14242 "syntaxKindCounter": {
14243 "8": 3,
14244 "10": 4,
14245 "75": 27,
14246 "104": 1,
14247 "192": 1,
14248 "193": 5,
14249 "194": 10,
14250 "196": 3,
14251 "197": 1,
14252 "225": 1,
14253 "226": 1,
14254 "242": 1,
14255 "243": 1,
14256 "281": 10
14257 },
14258 "fqnsFingerprint": "d670aad91d3b8aaae82769324f3a2f855bbb99ef3ac45066fc4e9e4f6aae906d"
14259 },
14260 "869883dcb9828c97eb6da6178206ef887a0852adfaf7fa79e4f1bbb1559f85a4": {
14261 "translations": {
14262 "python": {
14263 "source": "vpc = ec2.Vpc.from_lookup(self, \"Vpc\",\n is_default=True\n)\n\ncluster = ecs.Cluster(self, \"Ec2Cluster\", vpc=vpc)\ncluster.add_capacity(\"DefaultAutoScalingGroup\",\n instance_type=ec2.InstanceType(\"t2.micro\"),\n vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC)\n)\n\ntask_definition = ecs.TaskDefinition(self, \"TD\",\n compatibility=ecs.Compatibility.EC2\n)\n\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"foo/bar\"),\n memory_limit_mi_b=256\n)\n\nrun_task = tasks.EcsRunTask(self, \"Run\",\n integration_pattern=sfn.IntegrationPattern.RUN_JOB,\n cluster=cluster,\n task_definition=task_definition,\n launch_target=tasks.EcsEc2LaunchTarget(\n placement_strategies=[\n ecs.PlacementStrategy.spread_across_instances(),\n ecs.PlacementStrategy.packed_by_cpu(),\n ecs.PlacementStrategy.randomly()\n ],\n placement_constraints=[\n ecs.PlacementConstraint.member_of(\"blieptuut\")\n ]\n )\n)",
14264 "version": "2"
14265 },
14266 "csharp": {
14267 "source": "IVpc vpc = Vpc.FromLookup(this, \"Vpc\", new VpcLookupOptions {\n IsDefault = true\n});\n\nCluster cluster = new Cluster(this, \"Ec2Cluster\", new ClusterProps { Vpc = vpc });\ncluster.AddCapacity(\"DefaultAutoScalingGroup\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.micro\"),\n VpcSubnets = new SubnetSelection { SubnetType = SubnetType.PUBLIC }\n});\n\nTaskDefinition taskDefinition = new TaskDefinition(this, \"TD\", new TaskDefinitionProps {\n Compatibility = Compatibility.EC2\n});\n\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"foo/bar\"),\n MemoryLimitMiB = 256\n});\n\nEcsRunTask runTask = new EcsRunTask(this, \"Run\", new EcsRunTaskProps {\n IntegrationPattern = IntegrationPattern.RUN_JOB,\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n LaunchTarget = new EcsEc2LaunchTarget(new EcsEc2LaunchTargetOptions {\n PlacementStrategies = new [] { PlacementStrategy.SpreadAcrossInstances(), PlacementStrategy.PackedByCpu(), PlacementStrategy.Randomly() },\n PlacementConstraints = new [] { PlacementConstraint.MemberOf(\"blieptuut\") }\n })\n});",
14268 "version": "1"
14269 },
14270 "java": {
14271 "source": "IVpc vpc = Vpc.fromLookup(this, \"Vpc\", VpcLookupOptions.builder()\n .isDefault(true)\n .build());\n\nCluster cluster = Cluster.Builder.create(this, \"Ec2Cluster\").vpc(vpc).build();\ncluster.addCapacity(\"DefaultAutoScalingGroup\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.micro\"))\n .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())\n .build());\n\nTaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TD\")\n .compatibility(Compatibility.EC2)\n .build();\n\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"foo/bar\"))\n .memoryLimitMiB(256)\n .build());\n\nEcsRunTask runTask = EcsRunTask.Builder.create(this, \"Run\")\n .integrationPattern(IntegrationPattern.RUN_JOB)\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .launchTarget(EcsEc2LaunchTarget.Builder.create()\n .placementStrategies(List.of(PlacementStrategy.spreadAcrossInstances(), PlacementStrategy.packedByCpu(), PlacementStrategy.randomly()))\n .placementConstraints(List.of(PlacementConstraint.memberOf(\"blieptuut\")))\n .build())\n .build();",
14272 "version": "1"
14273 },
14274 "go": {
14275 "source": "vpc := ec2.vpc.fromLookup(this, jsii.String(\"Vpc\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Ec2Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroup\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tvpcSubnets: &subnetSelection{\n\t\tsubnetType: ec2.subnetType_PUBLIC,\n\t},\n})\n\ntaskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TD\"), &taskDefinitionProps{\n\tcompatibility: ecs.compatibility_EC2,\n})\n\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"foo/bar\")),\n\tmemoryLimitMiB: jsii.Number(256),\n})\n\nrunTask := tasks.NewEcsRunTask(this, jsii.String(\"Run\"), &ecsRunTaskProps{\n\tintegrationPattern: sfn.integrationPattern_RUN_JOB,\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tlaunchTarget: tasks.NewEcsEc2LaunchTarget(&ecsEc2LaunchTargetOptions{\n\t\tplacementStrategies: []placementStrategy{\n\t\t\tecs.*placementStrategy.spreadAcrossInstances(),\n\t\t\tecs.*placementStrategy.packedByCpu(),\n\t\t\tecs.*placementStrategy.randomly(),\n\t\t},\n\t\tplacementConstraints: []placementConstraint{\n\t\t\tecs.*placementConstraint.memberOf(jsii.String(\"blieptuut\")),\n\t\t},\n\t}),\n})",
14276 "version": "1"
14277 },
14278 "$": {
14279 "source": "const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});",
14280 "version": "0"
14281 }
14282 },
14283 "location": {
14284 "api": {
14285 "api": "type",
14286 "fqn": "@aws-cdk/aws-ecs.PlacementConstraint"
14287 },
14288 "field": {
14289 "field": "example"
14290 }
14291 },
14292 "didCompile": true,
14293 "fqnsReferenced": [
14294 "@aws-cdk/aws-ec2.IVpc",
14295 "@aws-cdk/aws-ec2.InstanceType",
14296 "@aws-cdk/aws-ec2.SubnetSelection",
14297 "@aws-cdk/aws-ec2.SubnetType",
14298 "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
14299 "@aws-cdk/aws-ec2.Vpc",
14300 "@aws-cdk/aws-ec2.Vpc#fromLookup",
14301 "@aws-cdk/aws-ec2.VpcLookupOptions",
14302 "@aws-cdk/aws-ecs.AddCapacityOptions",
14303 "@aws-cdk/aws-ecs.Cluster",
14304 "@aws-cdk/aws-ecs.Cluster#addCapacity",
14305 "@aws-cdk/aws-ecs.ClusterProps",
14306 "@aws-cdk/aws-ecs.Compatibility",
14307 "@aws-cdk/aws-ecs.Compatibility#EC2",
14308 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
14309 "@aws-cdk/aws-ecs.ContainerImage",
14310 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14311 "@aws-cdk/aws-ecs.ICluster",
14312 "@aws-cdk/aws-ecs.PlacementConstraint",
14313 "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
14314 "@aws-cdk/aws-ecs.PlacementStrategy",
14315 "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
14316 "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
14317 "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
14318 "@aws-cdk/aws-ecs.TaskDefinition",
14319 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
14320 "@aws-cdk/aws-ecs.TaskDefinitionProps",
14321 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
14322 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
14323 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
14324 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
14325 "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
14326 "@aws-cdk/aws-stepfunctions.IntegrationPattern",
14327 "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
14328 "constructs.Construct"
14329 ],
14330 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, Size, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as tasks from '@aws-cdk/aws-stepfunctions-tasks';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14331 "syntaxKindCounter": {
14332 "8": 1,
14333 "10": 9,
14334 "75": 59,
14335 "104": 4,
14336 "106": 1,
14337 "192": 2,
14338 "193": 8,
14339 "194": 25,
14340 "196": 8,
14341 "197": 5,
14342 "225": 4,
14343 "226": 2,
14344 "242": 4,
14345 "243": 4,
14346 "281": 11,
14347 "282": 3
14348 },
14349 "fqnsFingerprint": "7c4cfea5d71f37296088c696c03af6d0292b86c8ee199f3bcfd0cb71632cc12c"
14350 },
14351 "d396bbba1e5a2831295631fd34861f8e8f6cd150130f5c89fe348def479c676c": {
14352 "translations": {
14353 "python": {
14354 "source": "vpc = ec2.Vpc.from_lookup(self, \"Vpc\",\n is_default=True\n)\n\ncluster = ecs.Cluster(self, \"Ec2Cluster\", vpc=vpc)\ncluster.add_capacity(\"DefaultAutoScalingGroup\",\n instance_type=ec2.InstanceType(\"t2.micro\"),\n vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC)\n)\n\ntask_definition = ecs.TaskDefinition(self, \"TD\",\n compatibility=ecs.Compatibility.EC2\n)\n\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"foo/bar\"),\n memory_limit_mi_b=256\n)\n\nrun_task = tasks.EcsRunTask(self, \"Run\",\n integration_pattern=sfn.IntegrationPattern.RUN_JOB,\n cluster=cluster,\n task_definition=task_definition,\n launch_target=tasks.EcsEc2LaunchTarget(\n placement_strategies=[\n ecs.PlacementStrategy.spread_across_instances(),\n ecs.PlacementStrategy.packed_by_cpu(),\n ecs.PlacementStrategy.randomly()\n ],\n placement_constraints=[\n ecs.PlacementConstraint.member_of(\"blieptuut\")\n ]\n )\n)",
14355 "version": "2"
14356 },
14357 "csharp": {
14358 "source": "IVpc vpc = Vpc.FromLookup(this, \"Vpc\", new VpcLookupOptions {\n IsDefault = true\n});\n\nCluster cluster = new Cluster(this, \"Ec2Cluster\", new ClusterProps { Vpc = vpc });\ncluster.AddCapacity(\"DefaultAutoScalingGroup\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.micro\"),\n VpcSubnets = new SubnetSelection { SubnetType = SubnetType.PUBLIC }\n});\n\nTaskDefinition taskDefinition = new TaskDefinition(this, \"TD\", new TaskDefinitionProps {\n Compatibility = Compatibility.EC2\n});\n\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"foo/bar\"),\n MemoryLimitMiB = 256\n});\n\nEcsRunTask runTask = new EcsRunTask(this, \"Run\", new EcsRunTaskProps {\n IntegrationPattern = IntegrationPattern.RUN_JOB,\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n LaunchTarget = new EcsEc2LaunchTarget(new EcsEc2LaunchTargetOptions {\n PlacementStrategies = new [] { PlacementStrategy.SpreadAcrossInstances(), PlacementStrategy.PackedByCpu(), PlacementStrategy.Randomly() },\n PlacementConstraints = new [] { PlacementConstraint.MemberOf(\"blieptuut\") }\n })\n});",
14359 "version": "1"
14360 },
14361 "java": {
14362 "source": "IVpc vpc = Vpc.fromLookup(this, \"Vpc\", VpcLookupOptions.builder()\n .isDefault(true)\n .build());\n\nCluster cluster = Cluster.Builder.create(this, \"Ec2Cluster\").vpc(vpc).build();\ncluster.addCapacity(\"DefaultAutoScalingGroup\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.micro\"))\n .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())\n .build());\n\nTaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TD\")\n .compatibility(Compatibility.EC2)\n .build();\n\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"foo/bar\"))\n .memoryLimitMiB(256)\n .build());\n\nEcsRunTask runTask = EcsRunTask.Builder.create(this, \"Run\")\n .integrationPattern(IntegrationPattern.RUN_JOB)\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .launchTarget(EcsEc2LaunchTarget.Builder.create()\n .placementStrategies(List.of(PlacementStrategy.spreadAcrossInstances(), PlacementStrategy.packedByCpu(), PlacementStrategy.randomly()))\n .placementConstraints(List.of(PlacementConstraint.memberOf(\"blieptuut\")))\n .build())\n .build();",
14363 "version": "1"
14364 },
14365 "go": {
14366 "source": "vpc := ec2.vpc.fromLookup(this, jsii.String(\"Vpc\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Ec2Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroup\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tvpcSubnets: &subnetSelection{\n\t\tsubnetType: ec2.subnetType_PUBLIC,\n\t},\n})\n\ntaskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TD\"), &taskDefinitionProps{\n\tcompatibility: ecs.compatibility_EC2,\n})\n\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"foo/bar\")),\n\tmemoryLimitMiB: jsii.Number(256),\n})\n\nrunTask := tasks.NewEcsRunTask(this, jsii.String(\"Run\"), &ecsRunTaskProps{\n\tintegrationPattern: sfn.integrationPattern_RUN_JOB,\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tlaunchTarget: tasks.NewEcsEc2LaunchTarget(&ecsEc2LaunchTargetOptions{\n\t\tplacementStrategies: []placementStrategy{\n\t\t\tecs.*placementStrategy.spreadAcrossInstances(),\n\t\t\tecs.*placementStrategy.packedByCpu(),\n\t\t\tecs.*placementStrategy.randomly(),\n\t\t},\n\t\tplacementConstraints: []placementConstraint{\n\t\t\tecs.*placementConstraint.memberOf(jsii.String(\"blieptuut\")),\n\t\t},\n\t}),\n})",
14367 "version": "1"
14368 },
14369 "$": {
14370 "source": "const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});",
14371 "version": "0"
14372 }
14373 },
14374 "location": {
14375 "api": {
14376 "api": "type",
14377 "fqn": "@aws-cdk/aws-ecs.PlacementStrategy"
14378 },
14379 "field": {
14380 "field": "example"
14381 }
14382 },
14383 "didCompile": true,
14384 "fqnsReferenced": [
14385 "@aws-cdk/aws-ec2.IVpc",
14386 "@aws-cdk/aws-ec2.InstanceType",
14387 "@aws-cdk/aws-ec2.SubnetSelection",
14388 "@aws-cdk/aws-ec2.SubnetType",
14389 "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
14390 "@aws-cdk/aws-ec2.Vpc",
14391 "@aws-cdk/aws-ec2.Vpc#fromLookup",
14392 "@aws-cdk/aws-ec2.VpcLookupOptions",
14393 "@aws-cdk/aws-ecs.AddCapacityOptions",
14394 "@aws-cdk/aws-ecs.Cluster",
14395 "@aws-cdk/aws-ecs.Cluster#addCapacity",
14396 "@aws-cdk/aws-ecs.ClusterProps",
14397 "@aws-cdk/aws-ecs.Compatibility",
14398 "@aws-cdk/aws-ecs.Compatibility#EC2",
14399 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
14400 "@aws-cdk/aws-ecs.ContainerImage",
14401 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14402 "@aws-cdk/aws-ecs.ICluster",
14403 "@aws-cdk/aws-ecs.PlacementConstraint",
14404 "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
14405 "@aws-cdk/aws-ecs.PlacementStrategy",
14406 "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
14407 "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
14408 "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
14409 "@aws-cdk/aws-ecs.TaskDefinition",
14410 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
14411 "@aws-cdk/aws-ecs.TaskDefinitionProps",
14412 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
14413 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
14414 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
14415 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
14416 "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
14417 "@aws-cdk/aws-stepfunctions.IntegrationPattern",
14418 "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
14419 "constructs.Construct"
14420 ],
14421 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, Size, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as tasks from '@aws-cdk/aws-stepfunctions-tasks';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14422 "syntaxKindCounter": {
14423 "8": 1,
14424 "10": 9,
14425 "75": 59,
14426 "104": 4,
14427 "106": 1,
14428 "192": 2,
14429 "193": 8,
14430 "194": 25,
14431 "196": 8,
14432 "197": 5,
14433 "225": 4,
14434 "226": 2,
14435 "242": 4,
14436 "243": 4,
14437 "281": 11,
14438 "282": 3
14439 },
14440 "fqnsFingerprint": "7c4cfea5d71f37296088c696c03af6d0292b86c8ee199f3bcfd0cb71632cc12c"
14441 },
14442 "0e6246d6fc001f7dd4225dd025fe40e41a699223a478f08901ead30e03250092": {
14443 "translations": {
14444 "python": {
14445 "source": "# container: ecs.ContainerDefinition\n\n\ncontainer.add_port_mappings(\n container_port=3000\n)",
14446 "version": "2"
14447 },
14448 "csharp": {
14449 "source": "ContainerDefinition container;\n\n\ncontainer.AddPortMappings(new PortMapping {\n ContainerPort = 3000\n});",
14450 "version": "1"
14451 },
14452 "java": {
14453 "source": "ContainerDefinition container;\n\n\ncontainer.addPortMappings(PortMapping.builder()\n .containerPort(3000)\n .build());",
14454 "version": "1"
14455 },
14456 "go": {
14457 "source": "var container containerDefinition\n\n\ncontainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(3000),\n})",
14458 "version": "1"
14459 },
14460 "$": {
14461 "source": "declare const container: ecs.ContainerDefinition;\n\ncontainer.addPortMappings({\n containerPort: 3000,\n});",
14462 "version": "0"
14463 }
14464 },
14465 "location": {
14466 "api": {
14467 "api": "type",
14468 "fqn": "@aws-cdk/aws-ecs.PortMapping"
14469 },
14470 "field": {
14471 "field": "example"
14472 }
14473 },
14474 "didCompile": true,
14475 "fqnsReferenced": [
14476 "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
14477 "@aws-cdk/aws-ecs.PortMapping"
14478 ],
14479 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const container: ecs.ContainerDefinition;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\ncontainer.addPortMappings({\n containerPort: 3000,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14480 "syntaxKindCounter": {
14481 "8": 1,
14482 "75": 6,
14483 "130": 1,
14484 "153": 1,
14485 "169": 1,
14486 "193": 1,
14487 "194": 1,
14488 "196": 1,
14489 "225": 1,
14490 "226": 1,
14491 "242": 1,
14492 "243": 1,
14493 "281": 1,
14494 "290": 1
14495 },
14496 "fqnsFingerprint": "2b1381460d33dca05f605d00e2868645bcb73c3bc3f5e7da230cc028b0ec8477"
14497 },
14498 "02f544b7881ee662f1e9d3747687d58064480e37dcbd7136b7c16ee7f5f81d15": {
14499 "translations": {
14500 "python": {
14501 "source": "# task_definition: ecs.TaskDefinition\n# cluster: ecs.Cluster\n\n\n# Add a container to the task definition\nspecific_container = task_definition.add_container(\"Container\",\n image=ecs.ContainerImage.from_registry(\"/aws/aws-example-app\"),\n memory_limit_mi_b=2048\n)\n\n# Add a port mapping\nspecific_container.add_port_mappings(\n container_port=7600,\n protocol=ecs.Protocol.TCP\n)\n\necs.Ec2Service(self, \"Service\",\n cluster=cluster,\n task_definition=task_definition,\n cloud_map_options=ecs.CloudMapOptions(\n # Create SRV records - useful for bridge networking\n dns_record_type=cloudmap.DnsRecordType.SRV,\n # Targets port TCP port 7600 `specificContainer`\n container=specific_container,\n container_port=7600\n )\n)",
14502 "version": "2"
14503 },
14504 "csharp": {
14505 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.AddContainer(\"Container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"/aws/aws-example-app\"),\n MemoryLimitMiB = 2048\n});\n\n// Add a port mapping\nspecificContainer.AddPortMappings(new PortMapping {\n ContainerPort = 7600,\n Protocol = Protocol.TCP\n});\n\nnew Ec2Service(this, \"Service\", new Ec2ServiceProps {\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n CloudMapOptions = new CloudMapOptions {\n // Create SRV records - useful for bridge networking\n DnsRecordType = DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n Container = specificContainer,\n ContainerPort = 7600\n }\n});",
14506 "version": "1"
14507 },
14508 "java": {
14509 "source": "TaskDefinition taskDefinition;\nCluster cluster;\n\n\n// Add a container to the task definition\nContainerDefinition specificContainer = taskDefinition.addContainer(\"Container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"/aws/aws-example-app\"))\n .memoryLimitMiB(2048)\n .build());\n\n// Add a port mapping\nspecificContainer.addPortMappings(PortMapping.builder()\n .containerPort(7600)\n .protocol(Protocol.TCP)\n .build());\n\nEc2Service.Builder.create(this, \"Service\")\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .cloudMapOptions(CloudMapOptions.builder()\n // Create SRV records - useful for bridge networking\n .dnsRecordType(DnsRecordType.SRV)\n // Targets port TCP port 7600 `specificContainer`\n .container(specificContainer)\n .containerPort(7600)\n .build())\n .build();",
14510 "version": "1"
14511 },
14512 "go": {
14513 "source": "var taskDefinition taskDefinition\nvar cluster cluster\n\n\n// Add a container to the task definition\nspecificContainer := taskDefinition.addContainer(jsii.String(\"Container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"/aws/aws-example-app\")),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\n// Add a port mapping\nspecificContainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(7600),\n\tprotocol: ecs.protocol_TCP,\n})\n\necs.NewEc2Service(this, jsii.String(\"Service\"), &ec2ServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tcloudMapOptions: &cloudMapOptions{\n\t\t// Create SRV records - useful for bridge networking\n\t\tdnsRecordType: cloudmap.dnsRecordType_SRV,\n\t\t// Targets port TCP port 7600 `specificContainer`\n\t\tcontainer: specificContainer,\n\t\tcontainerPort: jsii.Number(7600),\n\t},\n})",
14514 "version": "1"
14515 },
14516 "$": {
14517 "source": "declare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});",
14518 "version": "0"
14519 }
14520 },
14521 "location": {
14522 "api": {
14523 "api": "type",
14524 "fqn": "@aws-cdk/aws-ecs.Protocol"
14525 },
14526 "field": {
14527 "field": "example"
14528 }
14529 },
14530 "didCompile": true,
14531 "fqnsReferenced": [
14532 "@aws-cdk/aws-ecs.CloudMapOptions",
14533 "@aws-cdk/aws-ecs.ContainerDefinition",
14534 "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
14535 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
14536 "@aws-cdk/aws-ecs.ContainerImage",
14537 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14538 "@aws-cdk/aws-ecs.Ec2Service",
14539 "@aws-cdk/aws-ecs.Ec2ServiceProps",
14540 "@aws-cdk/aws-ecs.ICluster",
14541 "@aws-cdk/aws-ecs.PortMapping",
14542 "@aws-cdk/aws-ecs.Protocol",
14543 "@aws-cdk/aws-ecs.Protocol#TCP",
14544 "@aws-cdk/aws-ecs.TaskDefinition",
14545 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
14546 "@aws-cdk/aws-servicediscovery.DnsRecordType",
14547 "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
14548 "constructs.Construct"
14549 ],
14550 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\n// Add a container to the task definition\nconst specificContainer = taskDefinition.addContainer('Container', {\n image: ecs.ContainerImage.fromRegistry('/aws/aws-example-app'),\n memoryLimitMiB: 2048,\n});\n\n// Add a port mapping\nspecificContainer.addPortMappings({\n containerPort: 7600,\n protocol: ecs.Protocol.TCP,\n});\n\nnew ecs.Ec2Service(this, 'Service', {\n cluster,\n taskDefinition,\n cloudMapOptions: {\n // Create SRV records - useful for bridge networking\n dnsRecordType: cloudmap.DnsRecordType.SRV,\n // Targets port TCP port 7600 `specificContainer`\n container: specificContainer,\n containerPort: 7600,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14551 "syntaxKindCounter": {
14552 "8": 3,
14553 "10": 3,
14554 "75": 33,
14555 "104": 1,
14556 "130": 2,
14557 "153": 2,
14558 "169": 2,
14559 "193": 4,
14560 "194": 9,
14561 "196": 3,
14562 "197": 1,
14563 "225": 3,
14564 "226": 2,
14565 "242": 3,
14566 "243": 3,
14567 "281": 8,
14568 "282": 2,
14569 "290": 1
14570 },
14571 "fqnsFingerprint": "fe47e6d021ce9e021f3af813ab3208dd6bca9a232a8c7409dc2c365505e822ff"
14572 },
14573 "8deab92326ad20ee99af773f042921527ece895995a76f4caee475a84cb8fa1d": {
14574 "translations": {
14575 "python": {
14576 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nproxy_configurations = ecs.ProxyConfigurations()",
14577 "version": "2"
14578 },
14579 "csharp": {
14580 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nProxyConfigurations proxyConfigurations = new ProxyConfigurations();",
14581 "version": "1"
14582 },
14583 "java": {
14584 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nProxyConfigurations proxyConfigurations = new ProxyConfigurations();",
14585 "version": "1"
14586 },
14587 "go": {
14588 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nproxyConfigurations := ecs.NewProxyConfigurations()",
14589 "version": "1"
14590 },
14591 "$": {
14592 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst proxyConfigurations = new ecs.ProxyConfigurations();",
14593 "version": "0"
14594 }
14595 },
14596 "location": {
14597 "api": {
14598 "api": "type",
14599 "fqn": "@aws-cdk/aws-ecs.ProxyConfigurations"
14600 },
14601 "field": {
14602 "field": "example"
14603 }
14604 },
14605 "didCompile": true,
14606 "fqnsReferenced": [
14607 "@aws-cdk/aws-ecs.ProxyConfigurations"
14608 ],
14609 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst proxyConfigurations = new ecs.ProxyConfigurations();\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
14610 "syntaxKindCounter": {
14611 "10": 1,
14612 "75": 4,
14613 "194": 1,
14614 "197": 1,
14615 "225": 1,
14616 "242": 1,
14617 "243": 1,
14618 "254": 1,
14619 "255": 1,
14620 "256": 1,
14621 "290": 1
14622 },
14623 "fqnsFingerprint": "d08670e7fc9270e55f6a7e1dcc1ee359a03ab42f7e078b4a7894958f1d7ad0ea"
14624 },
14625 "cef0230d04447e16d35596f38b1ab987407fb09d8ba0537bea17e28b281ad7e8": {
14626 "translations": {
14627 "python": {
14628 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecr_assets as ecr_assets\nimport aws_cdk.aws_ecs as ecs\n\n# docker_image_asset: ecr_assets.DockerImageAsset\n\nrepository_image = ecs.RepositoryImage.from_docker_image_asset(docker_image_asset)",
14629 "version": "2"
14630 },
14631 "csharp": {
14632 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Ecr.Assets;\nusing Amazon.CDK.AWS.ECS;\n\nDockerImageAsset dockerImageAsset;\n\nContainerImage repositoryImage = RepositoryImage.FromDockerImageAsset(dockerImageAsset);",
14633 "version": "1"
14634 },
14635 "java": {
14636 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecr.assets.*;\nimport software.amazon.awscdk.services.ecs.*;\n\nDockerImageAsset dockerImageAsset;\n\nContainerImage repositoryImage = RepositoryImage.fromDockerImageAsset(dockerImageAsset);",
14637 "version": "1"
14638 },
14639 "go": {
14640 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecr_assets \"github.com/aws-samples/dummy/awscdkawsecrassets\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvar dockerImageAsset dockerImageAsset\n\nrepositoryImage := ecs.repositoryImage.fromDockerImageAsset(dockerImageAsset)",
14641 "version": "1"
14642 },
14643 "$": {
14644 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecr_assets from '@aws-cdk/aws-ecr-assets';\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const dockerImageAsset: ecr_assets.DockerImageAsset;\nconst repositoryImage = ecs.RepositoryImage.fromDockerImageAsset(dockerImageAsset);",
14645 "version": "0"
14646 }
14647 },
14648 "location": {
14649 "api": {
14650 "api": "type",
14651 "fqn": "@aws-cdk/aws-ecs.RepositoryImage"
14652 },
14653 "field": {
14654 "field": "example"
14655 }
14656 },
14657 "didCompile": true,
14658 "fqnsReferenced": [
14659 "@aws-cdk/aws-ecr-assets.DockerImageAsset",
14660 "@aws-cdk/aws-ecs.ContainerImage",
14661 "@aws-cdk/aws-ecs.ContainerImage#fromDockerImageAsset",
14662 "@aws-cdk/aws-ecs.RepositoryImage"
14663 ],
14664 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecr_assets from '@aws-cdk/aws-ecr-assets';\nimport * as ecs from '@aws-cdk/aws-ecs';\n\ndeclare const dockerImageAsset: ecr_assets.DockerImageAsset;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst repositoryImage = ecs.RepositoryImage.fromDockerImageAsset(dockerImageAsset);\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
14665 "syntaxKindCounter": {
14666 "10": 2,
14667 "75": 10,
14668 "130": 1,
14669 "153": 1,
14670 "169": 1,
14671 "194": 2,
14672 "196": 1,
14673 "225": 2,
14674 "242": 2,
14675 "243": 2,
14676 "254": 2,
14677 "255": 2,
14678 "256": 2,
14679 "290": 1
14680 },
14681 "fqnsFingerprint": "7cb0da309e67be94f52f79d8c621776ae3295b80969e4048fbdb5158fbef84b0"
14682 },
14683 "bafc0265cb3dd66024fa85c50e4e93e9d55b55c35f7c7c99631c6aafa34216f7": {
14684 "translations": {
14685 "python": {
14686 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_secretsmanager as secretsmanager\n\n# secret: secretsmanager.Secret\n\nrepository_image_props = ecs.RepositoryImageProps(\n credentials=secret\n)",
14687 "version": "2"
14688 },
14689 "csharp": {
14690 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.SecretsManager;\n\nSecret secret;\n\nRepositoryImageProps repositoryImageProps = new RepositoryImageProps {\n Credentials = secret\n};",
14691 "version": "1"
14692 },
14693 "java": {
14694 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.secretsmanager.*;\n\nSecret secret;\n\nRepositoryImageProps repositoryImageProps = RepositoryImageProps.builder()\n .credentials(secret)\n .build();",
14695 "version": "1"
14696 },
14697 "go": {
14698 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport secretsmanager \"github.com/aws-samples/dummy/awscdkawssecretsmanager\"\n\nvar secret secret\n\nrepositoryImageProps := &repositoryImageProps{\n\tcredentials: secret,\n}",
14699 "version": "1"
14700 },
14701 "$": {
14702 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as secretsmanager from '@aws-cdk/aws-secretsmanager';\n\ndeclare const secret: secretsmanager.Secret;\nconst repositoryImageProps: ecs.RepositoryImageProps = {\n credentials: secret,\n};",
14703 "version": "0"
14704 }
14705 },
14706 "location": {
14707 "api": {
14708 "api": "type",
14709 "fqn": "@aws-cdk/aws-ecs.RepositoryImageProps"
14710 },
14711 "field": {
14712 "field": "example"
14713 }
14714 },
14715 "didCompile": true,
14716 "fqnsReferenced": [
14717 "@aws-cdk/aws-ecs.RepositoryImageProps",
14718 "@aws-cdk/aws-secretsmanager.ISecret"
14719 ],
14720 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as secretsmanager from '@aws-cdk/aws-secretsmanager';\n\ndeclare const secret: secretsmanager.Secret;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst repositoryImageProps: ecs.RepositoryImageProps = {\n credentials: secret,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
14721 "syntaxKindCounter": {
14722 "10": 2,
14723 "75": 10,
14724 "130": 1,
14725 "153": 2,
14726 "169": 2,
14727 "193": 1,
14728 "225": 2,
14729 "242": 2,
14730 "243": 2,
14731 "254": 2,
14732 "255": 2,
14733 "256": 2,
14734 "281": 1,
14735 "290": 1
14736 },
14737 "fqnsFingerprint": "bfa546b95dcc1dea412fe25acd81052ddffb5e8e23bb81601df868acf9aba3b5"
14738 },
14739 "6eac8eab02546b49a0db281f47a353c6206c5d7ec01894c84972815c5bed2998": {
14740 "translations": {
14741 "python": {
14742 "source": "# target: elbv2.ApplicationTargetGroup\n# service: ecs.BaseService\n\nscaling = service.auto_scale_task_count(max_capacity=10)\nscaling.scale_on_cpu_utilization(\"CpuScaling\",\n target_utilization_percent=50\n)\n\nscaling.scale_on_request_count(\"RequestScaling\",\n requests_per_target=10000,\n target_group=target\n)",
14743 "version": "2"
14744 },
14745 "csharp": {
14746 "source": "ApplicationTargetGroup target;\nBaseService service;\n\nScalableTaskCount scaling = service.AutoScaleTaskCount(new EnableScalingProps { MaxCapacity = 10 });\nscaling.ScaleOnCpuUtilization(\"CpuScaling\", new CpuUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});\n\nscaling.ScaleOnRequestCount(\"RequestScaling\", new RequestCountScalingProps {\n RequestsPerTarget = 10000,\n TargetGroup = target\n});",
14747 "version": "1"
14748 },
14749 "java": {
14750 "source": "ApplicationTargetGroup target;\nBaseService service;\n\nScalableTaskCount scaling = service.autoScaleTaskCount(EnableScalingProps.builder().maxCapacity(10).build());\nscaling.scaleOnCpuUtilization(\"CpuScaling\", CpuUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());\n\nscaling.scaleOnRequestCount(\"RequestScaling\", RequestCountScalingProps.builder()\n .requestsPerTarget(10000)\n .targetGroup(target)\n .build());",
14751 "version": "1"
14752 },
14753 "go": {
14754 "source": "var target applicationTargetGroup\nvar service baseService\n\nscaling := service.autoScaleTaskCount(&enableScalingProps{\n\tmaxCapacity: jsii.Number(10),\n})\nscaling.scaleOnCpuUtilization(jsii.String(\"CpuScaling\"), &cpuUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})\n\nscaling.scaleOnRequestCount(jsii.String(\"RequestScaling\"), &requestCountScalingProps{\n\trequestsPerTarget: jsii.Number(10000),\n\ttargetGroup: target,\n})",
14755 "version": "1"
14756 },
14757 "$": {
14758 "source": "declare const target: elbv2.ApplicationTargetGroup;\ndeclare const service: ecs.BaseService;\nconst scaling = service.autoScaleTaskCount({ maxCapacity: 10 });\nscaling.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscaling.scaleOnRequestCount('RequestScaling', {\n requestsPerTarget: 10000,\n targetGroup: target,\n});",
14759 "version": "0"
14760 }
14761 },
14762 "location": {
14763 "api": {
14764 "api": "type",
14765 "fqn": "@aws-cdk/aws-ecs.RequestCountScalingProps"
14766 },
14767 "field": {
14768 "field": "example"
14769 }
14770 },
14771 "didCompile": true,
14772 "fqnsReferenced": [
14773 "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
14774 "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
14775 "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
14776 "@aws-cdk/aws-ecs.RequestCountScalingProps",
14777 "@aws-cdk/aws-ecs.ScalableTaskCount",
14778 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
14779 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnRequestCount",
14780 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup"
14781 ],
14782 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const target: elbv2.ApplicationTargetGroup;\ndeclare const service: ecs.BaseService;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst scaling = service.autoScaleTaskCount({ maxCapacity: 10 });\nscaling.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscaling.scaleOnRequestCount('RequestScaling', {\n requestsPerTarget: 10000,\n targetGroup: target,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14783 "syntaxKindCounter": {
14784 "8": 3,
14785 "10": 2,
14786 "75": 18,
14787 "130": 2,
14788 "153": 2,
14789 "169": 2,
14790 "193": 3,
14791 "194": 3,
14792 "196": 3,
14793 "225": 3,
14794 "226": 2,
14795 "242": 3,
14796 "243": 3,
14797 "281": 4,
14798 "290": 1
14799 },
14800 "fqnsFingerprint": "f8cccbe970f5760a364762f8c8835c35ec0f1d170fe848eb3db54b0d1653a5d2"
14801 },
14802 "df2088fb5681e6c23fee7aeaa41ac05f69bd8fee2651e13ed4179cd41936319f": {
14803 "translations": {
14804 "python": {
14805 "source": "# Create a Task Definition for the Windows container to start\ntask_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n runtime_platform=ecs.RuntimePlatform(\n operating_system_family=ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpu_architecture=ecs.CpuArchitecture.X86_64\n ),\n cpu=1024,\n memory_limit_mi_b=2048\n)\n\ntask_definition.add_container(\"windowsservercore\",\n logging=ecs.LogDriver.aws_logs(stream_prefix=\"win-iis-on-fargate\"),\n port_mappings=[ecs.PortMapping(container_port=80)],\n image=ecs.ContainerImage.from_registry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n)",
14806 "version": "2"
14807 },
14808 "csharp": {
14809 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n RuntimePlatform = new RuntimePlatform {\n OperatingSystemFamily = OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n CpuArchitecture = CpuArchitecture.X86_64\n },\n Cpu = 1024,\n MemoryLimitMiB = 2048\n});\n\ntaskDefinition.AddContainer(\"windowsservercore\", new ContainerDefinitionOptions {\n Logging = LogDriver.AwsLogs(new AwsLogDriverProps { StreamPrefix = \"win-iis-on-fargate\" }),\n PortMappings = new [] { new PortMapping { ContainerPort = 80 } },\n Image = ContainerImage.FromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")\n});",
14810 "version": "1"
14811 },
14812 "java": {
14813 "source": "// Create a Task Definition for the Windows container to start\nFargateTaskDefinition taskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .runtimePlatform(RuntimePlatform.builder()\n .operatingSystemFamily(OperatingSystemFamily.WINDOWS_SERVER_2019_CORE)\n .cpuArchitecture(CpuArchitecture.X86_64)\n .build())\n .cpu(1024)\n .memoryLimitMiB(2048)\n .build();\n\ntaskDefinition.addContainer(\"windowsservercore\", ContainerDefinitionOptions.builder()\n .logging(LogDriver.awsLogs(AwsLogDriverProps.builder().streamPrefix(\"win-iis-on-fargate\").build()))\n .portMappings(List.of(PortMapping.builder().containerPort(80).build()))\n .image(ContainerImage.fromRegistry(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\"))\n .build());",
14814 "version": "1"
14815 },
14816 "go": {
14817 "source": "// Create a Task Definition for the Windows container to start\ntaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\truntimePlatform: &runtimePlatform{\n\t\toperatingSystemFamily: ecs.operatingSystemFamily_WINDOWS_SERVER_2019_CORE(),\n\t\tcpuArchitecture: ecs.cpuArchitecture_X86_64(),\n\t},\n\tcpu: jsii.Number(1024),\n\tmemoryLimitMiB: jsii.Number(2048),\n})\n\ntaskDefinition.addContainer(jsii.String(\"windowsservercore\"), &containerDefinitionOptions{\n\tlogging: ecs.logDriver.awsLogs(&awsLogDriverProps{\n\t\tstreamPrefix: jsii.String(\"win-iis-on-fargate\"),\n\t}),\n\tportMappings: []portMapping{\n\t\t&portMapping{\n\t\t\tcontainerPort: jsii.Number(80),\n\t\t},\n\t},\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019\")),\n})",
14818 "version": "1"
14819 },
14820 "$": {
14821 "source": "// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});",
14822 "version": "0"
14823 }
14824 },
14825 "location": {
14826 "api": {
14827 "api": "type",
14828 "fqn": "@aws-cdk/aws-ecs.RuntimePlatform"
14829 },
14830 "field": {
14831 "field": "example"
14832 }
14833 },
14834 "didCompile": true,
14835 "fqnsReferenced": [
14836 "@aws-cdk/aws-ecs.AwsLogDriverProps",
14837 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
14838 "@aws-cdk/aws-ecs.ContainerImage",
14839 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14840 "@aws-cdk/aws-ecs.CpuArchitecture",
14841 "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
14842 "@aws-cdk/aws-ecs.FargateTaskDefinition",
14843 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
14844 "@aws-cdk/aws-ecs.LogDriver",
14845 "@aws-cdk/aws-ecs.LogDriver#awsLogs",
14846 "@aws-cdk/aws-ecs.OperatingSystemFamily",
14847 "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
14848 "@aws-cdk/aws-ecs.RuntimePlatform",
14849 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
14850 "constructs.Construct"
14851 ],
14852 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the Windows container to start\nconst taskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n runtimePlatform: {\n operatingSystemFamily: ecs.OperatingSystemFamily.WINDOWS_SERVER_2019_CORE,\n cpuArchitecture: ecs.CpuArchitecture.X86_64,\n },\n cpu: 1024,\n memoryLimitMiB: 2048,\n});\n\ntaskDefinition.addContainer('windowsservercore', {\n logging: ecs.LogDriver.awsLogs({ streamPrefix: 'win-iis-on-fargate' }),\n portMappings: [{ containerPort: 80 }],\n image: ecs.ContainerImage.fromRegistry('mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
14853 "syntaxKindCounter": {
14854 "8": 3,
14855 "10": 4,
14856 "75": 27,
14857 "104": 1,
14858 "192": 1,
14859 "193": 5,
14860 "194": 10,
14861 "196": 3,
14862 "197": 1,
14863 "225": 1,
14864 "226": 1,
14865 "242": 1,
14866 "243": 1,
14867 "281": 10
14868 },
14869 "fqnsFingerprint": "d670aad91d3b8aaae82769324f3a2f855bbb99ef3ac45066fc4e9e4f6aae906d"
14870 },
14871 "85b400b9ebf909e781b87040d7b18c6329d56a3f8b8abff2e8caa746c7cf1bf5": {
14872 "translations": {
14873 "python": {
14874 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_s3 as s3\n\n# bucket: s3.Bucket\n\ns3_environment_file = ecs.S3EnvironmentFile(bucket, \"key\", \"objectVersion\")",
14875 "version": "2"
14876 },
14877 "csharp": {
14878 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.S3;\n\nBucket bucket;\n\nS3EnvironmentFile s3EnvironmentFile = new S3EnvironmentFile(bucket, \"key\", \"objectVersion\");",
14879 "version": "1"
14880 },
14881 "java": {
14882 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.s3.*;\n\nBucket bucket;\n\nS3EnvironmentFile s3EnvironmentFile = new S3EnvironmentFile(bucket, \"key\", \"objectVersion\");",
14883 "version": "1"
14884 },
14885 "go": {
14886 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport s3 \"github.com/aws-samples/dummy/awscdkawss3\"\n\nvar bucket bucket\n\ns3EnvironmentFile := ecs.NewS3EnvironmentFile(bucket, jsii.String(\"key\"), jsii.String(\"objectVersion\"))",
14887 "version": "1"
14888 },
14889 "$": {
14890 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as s3 from '@aws-cdk/aws-s3';\n\ndeclare const bucket: s3.Bucket;\nconst s3EnvironmentFile = new ecs.S3EnvironmentFile(bucket, 'key', /* all optional props */ 'objectVersion');",
14891 "version": "0"
14892 }
14893 },
14894 "location": {
14895 "api": {
14896 "api": "type",
14897 "fqn": "@aws-cdk/aws-ecs.S3EnvironmentFile"
14898 },
14899 "field": {
14900 "field": "example"
14901 }
14902 },
14903 "didCompile": true,
14904 "fqnsReferenced": [
14905 "@aws-cdk/aws-ecs.S3EnvironmentFile",
14906 "@aws-cdk/aws-s3.IBucket"
14907 ],
14908 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as s3 from '@aws-cdk/aws-s3';\n\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst s3EnvironmentFile = new ecs.S3EnvironmentFile(bucket, 'key', /* all optional props */ 'objectVersion');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
14909 "syntaxKindCounter": {
14910 "10": 4,
14911 "75": 9,
14912 "130": 1,
14913 "153": 1,
14914 "169": 1,
14915 "194": 1,
14916 "197": 1,
14917 "225": 2,
14918 "242": 2,
14919 "243": 2,
14920 "254": 2,
14921 "255": 2,
14922 "256": 2,
14923 "290": 1
14924 },
14925 "fqnsFingerprint": "02ba13196fe2b8bf1a0cfdaf239003b81b5cf1f49d88fe086e091f5da97520e5"
14926 },
14927 "8465f65ef6d73edf6a86dcd87f7fb853dc0831ad182b76f0f01f2b6cf22a4eb4": {
14928 "translations": {
14929 "python": {
14930 "source": "# cluster: ecs.Cluster\n\nload_balanced_fargate_service = ecs_patterns.ApplicationLoadBalancedFargateService(self, \"Service\",\n cluster=cluster,\n memory_limit_mi_b=1024,\n desired_count=1,\n cpu=512,\n task_image_options=ecsPatterns.ApplicationLoadBalancedTaskImageOptions(\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\")\n )\n)\n\nscalable_target = load_balanced_fargate_service.service.auto_scale_task_count(\n min_capacity=1,\n max_capacity=20\n)\n\nscalable_target.scale_on_cpu_utilization(\"CpuScaling\",\n target_utilization_percent=50\n)\n\nscalable_target.scale_on_memory_utilization(\"MemoryScaling\",\n target_utilization_percent=50\n)",
14931 "version": "2"
14932 },
14933 "csharp": {
14934 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = new ApplicationLoadBalancedFargateService(this, \"Service\", new ApplicationLoadBalancedFargateServiceProps {\n Cluster = cluster,\n MemoryLimitMiB = 1024,\n DesiredCount = 1,\n Cpu = 512,\n TaskImageOptions = new ApplicationLoadBalancedTaskImageOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\")\n }\n});\n\nScalableTaskCount scalableTarget = loadBalancedFargateService.Service.AutoScaleTaskCount(new EnableScalingProps {\n MinCapacity = 1,\n MaxCapacity = 20\n});\n\nscalableTarget.ScaleOnCpuUtilization(\"CpuScaling\", new CpuUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});\n\nscalableTarget.ScaleOnMemoryUtilization(\"MemoryScaling\", new MemoryUtilizationScalingProps {\n TargetUtilizationPercent = 50\n});",
14935 "version": "1"
14936 },
14937 "java": {
14938 "source": "Cluster cluster;\n\nApplicationLoadBalancedFargateService loadBalancedFargateService = ApplicationLoadBalancedFargateService.Builder.create(this, \"Service\")\n .cluster(cluster)\n .memoryLimitMiB(1024)\n .desiredCount(1)\n .cpu(512)\n .taskImageOptions(ApplicationLoadBalancedTaskImageOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .build())\n .build();\n\nScalableTaskCount scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount(EnableScalingProps.builder()\n .minCapacity(1)\n .maxCapacity(20)\n .build());\n\nscalableTarget.scaleOnCpuUtilization(\"CpuScaling\", CpuUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());\n\nscalableTarget.scaleOnMemoryUtilization(\"MemoryScaling\", MemoryUtilizationScalingProps.builder()\n .targetUtilizationPercent(50)\n .build());",
14939 "version": "1"
14940 },
14941 "go": {
14942 "source": "var cluster cluster\n\nloadBalancedFargateService := ecsPatterns.NewApplicationLoadBalancedFargateService(this, jsii.String(\"Service\"), &applicationLoadBalancedFargateServiceProps{\n\tcluster: cluster,\n\tmemoryLimitMiB: jsii.Number(1024),\n\tdesiredCount: jsii.Number(1),\n\tcpu: jsii.Number(512),\n\ttaskImageOptions: &applicationLoadBalancedTaskImageOptions{\n\t\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\t},\n})\n\nscalableTarget := loadBalancedFargateService.service.autoScaleTaskCount(&enableScalingProps{\n\tminCapacity: jsii.Number(1),\n\tmaxCapacity: jsii.Number(20),\n})\n\nscalableTarget.scaleOnCpuUtilization(jsii.String(\"CpuScaling\"), &cpuUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})\n\nscalableTarget.scaleOnMemoryUtilization(jsii.String(\"MemoryScaling\"), &memoryUtilizationScalingProps{\n\ttargetUtilizationPercent: jsii.Number(50),\n})",
14943 "version": "1"
14944 },
14945 "$": {
14946 "source": "declare const cluster: ecs.Cluster;\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n});\n\nconst scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount({\n minCapacity: 1,\n maxCapacity: 20,\n});\n\nscalableTarget.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscalableTarget.scaleOnMemoryUtilization('MemoryScaling', {\n targetUtilizationPercent: 50,\n});",
14947 "version": "0"
14948 }
14949 },
14950 "location": {
14951 "api": {
14952 "api": "type",
14953 "fqn": "@aws-cdk/aws-ecs.ScalableTaskCount"
14954 },
14955 "field": {
14956 "field": "example"
14957 }
14958 },
14959 "didCompile": true,
14960 "fqnsReferenced": [
14961 "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
14962 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
14963 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService#service",
14964 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
14965 "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
14966 "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
14967 "@aws-cdk/aws-ecs.ContainerImage",
14968 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
14969 "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
14970 "@aws-cdk/aws-ecs.ICluster",
14971 "@aws-cdk/aws-ecs.MemoryUtilizationScalingProps",
14972 "@aws-cdk/aws-ecs.ScalableTaskCount",
14973 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
14974 "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnMemoryUtilization",
14975 "constructs.Construct"
14976 ],
14977 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as ecsPatterns from '@aws-cdk/aws-ecs-patterns';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as cxapi from '@aws-cdk/cx-api';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n \n // Code snippet begins after !show marker below\n/// !show\n\nconst loadBalancedFargateService = new ecsPatterns.ApplicationLoadBalancedFargateService(this, 'Service', {\n cluster,\n memoryLimitMiB: 1024,\n desiredCount: 1,\n cpu: 512,\n taskImageOptions: {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n },\n});\n\nconst scalableTarget = loadBalancedFargateService.service.autoScaleTaskCount({\n minCapacity: 1,\n maxCapacity: 20,\n});\n\nscalableTarget.scaleOnCpuUtilization('CpuScaling', {\n targetUtilizationPercent: 50,\n});\n\nscalableTarget.scaleOnMemoryUtilization('MemoryScaling', {\n targetUtilizationPercent: 50,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
14978 "syntaxKindCounter": {
14979 "8": 7,
14980 "10": 4,
14981 "75": 27,
14982 "104": 1,
14983 "130": 1,
14984 "153": 1,
14985 "169": 1,
14986 "193": 5,
14987 "194": 7,
14988 "196": 4,
14989 "197": 1,
14990 "225": 3,
14991 "226": 2,
14992 "242": 3,
14993 "243": 3,
14994 "281": 9,
14995 "282": 1,
14996 "290": 1
14997 },
14998 "fqnsFingerprint": "b0eef88c9c090a5c58d14a29469b1b395e9328fae12c125f18556d195a026d8c"
14999 },
15000 "e7c48c0b1d9eeb965f9e7a94702e069642aab3338a5c63a987cd2cea7daf6dcb": {
15001 "translations": {
15002 "python": {
15003 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_applicationautoscaling as appscaling\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# role: iam.Role\n\nscalable_task_count_props = ecs.ScalableTaskCountProps(\n dimension=\"dimension\",\n max_capacity=123,\n resource_id=\"resourceId\",\n role=role,\n service_namespace=appscaling.ServiceNamespace.ECS,\n\n # the properties below are optional\n min_capacity=123\n)",
15004 "version": "2"
15005 },
15006 "csharp": {
15007 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ApplicationAutoScaling;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nRole role;\n\nScalableTaskCountProps scalableTaskCountProps = new ScalableTaskCountProps {\n Dimension = \"dimension\",\n MaxCapacity = 123,\n ResourceId = \"resourceId\",\n Role = role,\n ServiceNamespace = ServiceNamespace.ECS,\n\n // the properties below are optional\n MinCapacity = 123\n};",
15008 "version": "1"
15009 },
15010 "java": {
15011 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.applicationautoscaling.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nScalableTaskCountProps scalableTaskCountProps = ScalableTaskCountProps.builder()\n .dimension(\"dimension\")\n .maxCapacity(123)\n .resourceId(\"resourceId\")\n .role(role)\n .serviceNamespace(ServiceNamespace.ECS)\n\n // the properties below are optional\n .minCapacity(123)\n .build();",
15012 "version": "1"
15013 },
15014 "go": {
15015 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport appscaling \"github.com/aws-samples/dummy/awscdkawsapplicationautoscaling\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar role role\n\nscalableTaskCountProps := &scalableTaskCountProps{\n\tdimension: jsii.String(\"dimension\"),\n\tmaxCapacity: jsii.Number(123),\n\tresourceId: jsii.String(\"resourceId\"),\n\trole: role,\n\tserviceNamespace: appscaling.serviceNamespace_ECS,\n\n\t// the properties below are optional\n\tminCapacity: jsii.Number(123),\n}",
15016 "version": "1"
15017 },
15018 "$": {
15019 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\nconst scalableTaskCountProps: ecs.ScalableTaskCountProps = {\n dimension: 'dimension',\n maxCapacity: 123,\n resourceId: 'resourceId',\n role: role,\n serviceNamespace: appscaling.ServiceNamespace.ECS,\n\n // the properties below are optional\n minCapacity: 123,\n};",
15020 "version": "0"
15021 }
15022 },
15023 "location": {
15024 "api": {
15025 "api": "type",
15026 "fqn": "@aws-cdk/aws-ecs.ScalableTaskCountProps"
15027 },
15028 "field": {
15029 "field": "example"
15030 }
15031 },
15032 "didCompile": true,
15033 "fqnsReferenced": [
15034 "@aws-cdk/aws-applicationautoscaling.ServiceNamespace",
15035 "@aws-cdk/aws-applicationautoscaling.ServiceNamespace#ECS",
15036 "@aws-cdk/aws-ecs.ScalableTaskCountProps",
15037 "@aws-cdk/aws-iam.IRole"
15038 ],
15039 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as appscaling from '@aws-cdk/aws-applicationautoscaling';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst scalableTaskCountProps: ecs.ScalableTaskCountProps = {\n dimension: 'dimension',\n maxCapacity: 123,\n resourceId: 'resourceId',\n role: role,\n serviceNamespace: appscaling.ServiceNamespace.ECS,\n\n // the properties below are optional\n minCapacity: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15040 "syntaxKindCounter": {
15041 "8": 2,
15042 "10": 5,
15043 "75": 19,
15044 "130": 1,
15045 "153": 2,
15046 "169": 2,
15047 "193": 1,
15048 "194": 2,
15049 "225": 2,
15050 "242": 2,
15051 "243": 2,
15052 "254": 3,
15053 "255": 3,
15054 "256": 3,
15055 "281": 6,
15056 "290": 1
15057 },
15058 "fqnsFingerprint": "99f668499797d5aacb1724b04fa56aaadc81f400bf8615fb0e4b9ff329ffbe5c"
15059 },
15060 "1db8c581517ce56a890f4dd3db473cf079b6fd08239d64daabbac1a7078988ab": {
15061 "translations": {
15062 "python": {
15063 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nscratch_space = ecs.ScratchSpace(\n container_path=\"containerPath\",\n name=\"name\",\n read_only=False,\n source_path=\"sourcePath\"\n)",
15064 "version": "2"
15065 },
15066 "csharp": {
15067 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nScratchSpace scratchSpace = new ScratchSpace {\n ContainerPath = \"containerPath\",\n Name = \"name\",\n ReadOnly = false,\n SourcePath = \"sourcePath\"\n};",
15068 "version": "1"
15069 },
15070 "java": {
15071 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nScratchSpace scratchSpace = ScratchSpace.builder()\n .containerPath(\"containerPath\")\n .name(\"name\")\n .readOnly(false)\n .sourcePath(\"sourcePath\")\n .build();",
15072 "version": "1"
15073 },
15074 "go": {
15075 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nscratchSpace := &scratchSpace{\n\tcontainerPath: jsii.String(\"containerPath\"),\n\tname: jsii.String(\"name\"),\n\treadOnly: jsii.Boolean(false),\n\tsourcePath: jsii.String(\"sourcePath\"),\n}",
15076 "version": "1"
15077 },
15078 "$": {
15079 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst scratchSpace: ecs.ScratchSpace = {\n containerPath: 'containerPath',\n name: 'name',\n readOnly: false,\n sourcePath: 'sourcePath',\n};",
15080 "version": "0"
15081 }
15082 },
15083 "location": {
15084 "api": {
15085 "api": "type",
15086 "fqn": "@aws-cdk/aws-ecs.ScratchSpace"
15087 },
15088 "field": {
15089 "field": "example"
15090 }
15091 },
15092 "didCompile": true,
15093 "fqnsReferenced": [
15094 "@aws-cdk/aws-ecs.ScratchSpace"
15095 ],
15096 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst scratchSpace: ecs.ScratchSpace = {\n containerPath: 'containerPath',\n name: 'name',\n readOnly: false,\n sourcePath: 'sourcePath',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15097 "syntaxKindCounter": {
15098 "10": 4,
15099 "75": 8,
15100 "91": 1,
15101 "153": 1,
15102 "169": 1,
15103 "193": 1,
15104 "225": 1,
15105 "242": 1,
15106 "243": 1,
15107 "254": 1,
15108 "255": 1,
15109 "256": 1,
15110 "281": 4,
15111 "290": 1
15112 },
15113 "fqnsFingerprint": "8a5083766fe0f11210f7da96f7c1f681254839881f6a430d4db47e7f1f00bafb"
15114 },
15115 "d5092c665896732f876e7db4f0fecec2a7039032593dc1052585f851398d5a2d": {
15116 "translations": {
15117 "python": {
15118 "source": "# secret: secretsmanager.Secret\n# db_secret: secretsmanager.Secret\n# parameter: ssm.StringParameter\n# task_definition: ecs.TaskDefinition\n# s3_bucket: s3.Bucket\n\n\nnew_container = task_definition.add_container(\"container\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024,\n environment={ # clear text, not for sensitive data\n \"STAGE\": \"prod\"},\n environment_files=[ # list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.from_asset(\"./demo-env-file.env\"),\n ecs.EnvironmentFile.from_bucket(s3_bucket, \"assets/demo-env-file.env\")],\n secrets={ # Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\": ecs.Secret.from_secrets_manager(secret),\n \"DB_PASSWORD\": ecs.Secret.from_secrets_manager(db_secret, \"password\"), # Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\": ecs.Secret.from_secrets_manager_version(secret, ecs.SecretVersionInfo(version_id=\"12345\"), \"apiKey\"), # Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\": ecs.Secret.from_ssm_parameter(parameter)}\n)\nnew_container.add_environment(\"QUEUE_NAME\", \"MyQueue\")",
15119 "version": "2"
15120 },
15121 "csharp": {
15122 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.AddContainer(\"container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024,\n Environment = new Dictionary<string, string> { // clear text, not for sensitive data\n { \"STAGE\", \"prod\" } },\n EnvironmentFiles = new [] { EnvironmentFile.FromAsset(\"./demo-env-file.env\"), EnvironmentFile.FromBucket(s3Bucket, \"assets/demo-env-file.env\") },\n Secrets = new Dictionary<string, Secret> { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n { \"SECRET\", Secret.FromSecretsManager(secret) },\n { \"DB_PASSWORD\", Secret.FromSecretsManager(dbSecret, \"password\") }, // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n { \"API_KEY\", Secret.FromSecretsManagerVersion(secret, new SecretVersionInfo { VersionId = \"12345\" }, \"apiKey\") }, // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n { \"PARAMETER\", Secret.FromSsmParameter(parameter) } }\n});\nnewContainer.AddEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
15123 "version": "1"
15124 },
15125 "java": {
15126 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.addContainer(\"container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .environment(Map.of( // clear text, not for sensitive data\n \"STAGE\", \"prod\"))\n .environmentFiles(List.of(EnvironmentFile.fromAsset(\"./demo-env-file.env\"), EnvironmentFile.fromBucket(s3Bucket, \"assets/demo-env-file.env\")))\n .secrets(Map.of( // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\", Secret.fromSecretsManager(secret),\n \"DB_PASSWORD\", Secret.fromSecretsManager(dbSecret, \"password\"), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\", Secret.fromSecretsManagerVersion(secret, SecretVersionInfo.builder().versionId(\"12345\").build(), \"apiKey\"), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\", Secret.fromSsmParameter(parameter)))\n .build());\nnewContainer.addEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
15127 "version": "1"
15128 },
15129 "go": {
15130 "source": "var secret secret\nvar dbSecret secret\nvar parameter stringParameter\nvar taskDefinition taskDefinition\nvar s3Bucket bucket\n\n\nnewContainer := taskDefinition.addContainer(jsii.String(\"container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tenvironment: map[string]*string{\n\t\t // clear text, not for sensitive data\n\t\t\"STAGE\": jsii.String(\"prod\"),\n\t},\n\tenvironmentFiles: []environmentFile{\n\t\tecs.*environmentFile.fromAsset(jsii.String(\"./demo-env-file.env\")),\n\t\tecs.*environmentFile.fromBucket(s3Bucket, jsii.String(\"assets/demo-env-file.env\")),\n\t},\n\tsecrets: map[string]secret{\n\t\t // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n\t\t\"SECRET\": ecs.*secret.fromSecretsManager(secret),\n\t\t\"DB_PASSWORD\": ecs.*secret.fromSecretsManager(dbSecret, jsii.String(\"password\")),\n\t\t // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"API_KEY\": ecs.*secret.fromSecretsManagerVersion(secret, &SecretVersionInfo{\n\t\t\t\"versionId\": jsii.String(\"12345\"),\n\t\t}, jsii.String(\"apiKey\")),\n\t\t // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"PARAMETER\": ecs.*secret.fromSsmParameter(parameter),\n\t},\n})\nnewContainer.addEnvironment(jsii.String(\"QUEUE_NAME\"), jsii.String(\"MyQueue\"))",
15131 "version": "1"
15132 },
15133 "$": {
15134 "source": "declare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');",
15135 "version": "0"
15136 }
15137 },
15138 "location": {
15139 "api": {
15140 "api": "type",
15141 "fqn": "@aws-cdk/aws-ecs.Secret"
15142 },
15143 "field": {
15144 "field": "example"
15145 }
15146 },
15147 "didCompile": true,
15148 "fqnsReferenced": [
15149 "@aws-cdk/aws-ecs.ContainerDefinition",
15150 "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
15151 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
15152 "@aws-cdk/aws-ecs.ContainerImage",
15153 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
15154 "@aws-cdk/aws-ecs.EnvironmentFile",
15155 "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
15156 "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
15157 "@aws-cdk/aws-ecs.Secret",
15158 "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
15159 "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
15160 "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
15161 "@aws-cdk/aws-ecs.SecretVersionInfo",
15162 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
15163 "@aws-cdk/aws-s3.IBucket",
15164 "@aws-cdk/aws-secretsmanager.ISecret",
15165 "@aws-cdk/aws-ssm.IParameter"
15166 ],
15167 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
15168 "syntaxKindCounter": {
15169 "8": 1,
15170 "10": 10,
15171 "75": 57,
15172 "130": 5,
15173 "153": 5,
15174 "169": 5,
15175 "192": 1,
15176 "193": 4,
15177 "194": 16,
15178 "196": 9,
15179 "225": 6,
15180 "226": 1,
15181 "242": 6,
15182 "243": 6,
15183 "281": 11,
15184 "290": 1
15185 },
15186 "fqnsFingerprint": "b136978e4b069a3b4d1c7df0fcd416af6f80a95a3578a4eac49f7f3768a6a86f"
15187 },
15188 "78a7bfede6b0a286765b7ffff8e1085fa2c963b13ebe36a8cb355378aa820a24": {
15189 "translations": {
15190 "python": {
15191 "source": "# secret: secretsmanager.Secret\n# db_secret: secretsmanager.Secret\n# parameter: ssm.StringParameter\n# task_definition: ecs.TaskDefinition\n# s3_bucket: s3.Bucket\n\n\nnew_container = task_definition.add_container(\"container\",\n image=ecs.ContainerImage.from_registry(\"amazon/amazon-ecs-sample\"),\n memory_limit_mi_b=1024,\n environment={ # clear text, not for sensitive data\n \"STAGE\": \"prod\"},\n environment_files=[ # list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.from_asset(\"./demo-env-file.env\"),\n ecs.EnvironmentFile.from_bucket(s3_bucket, \"assets/demo-env-file.env\")],\n secrets={ # Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\": ecs.Secret.from_secrets_manager(secret),\n \"DB_PASSWORD\": ecs.Secret.from_secrets_manager(db_secret, \"password\"), # Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\": ecs.Secret.from_secrets_manager_version(secret, ecs.SecretVersionInfo(version_id=\"12345\"), \"apiKey\"), # Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\": ecs.Secret.from_ssm_parameter(parameter)}\n)\nnew_container.add_environment(\"QUEUE_NAME\", \"MyQueue\")",
15192 "version": "2"
15193 },
15194 "csharp": {
15195 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.AddContainer(\"container\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"amazon/amazon-ecs-sample\"),\n MemoryLimitMiB = 1024,\n Environment = new Dictionary<string, string> { // clear text, not for sensitive data\n { \"STAGE\", \"prod\" } },\n EnvironmentFiles = new [] { EnvironmentFile.FromAsset(\"./demo-env-file.env\"), EnvironmentFile.FromBucket(s3Bucket, \"assets/demo-env-file.env\") },\n Secrets = new Dictionary<string, Secret> { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n { \"SECRET\", Secret.FromSecretsManager(secret) },\n { \"DB_PASSWORD\", Secret.FromSecretsManager(dbSecret, \"password\") }, // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n { \"API_KEY\", Secret.FromSecretsManagerVersion(secret, new SecretVersionInfo { VersionId = \"12345\" }, \"apiKey\") }, // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n { \"PARAMETER\", Secret.FromSsmParameter(parameter) } }\n});\nnewContainer.AddEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
15196 "version": "1"
15197 },
15198 "java": {
15199 "source": "Secret secret;\nSecret dbSecret;\nStringParameter parameter;\nTaskDefinition taskDefinition;\nBucket s3Bucket;\n\n\nContainerDefinition newContainer = taskDefinition.addContainer(\"container\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"))\n .memoryLimitMiB(1024)\n .environment(Map.of( // clear text, not for sensitive data\n \"STAGE\", \"prod\"))\n .environmentFiles(List.of(EnvironmentFile.fromAsset(\"./demo-env-file.env\"), EnvironmentFile.fromBucket(s3Bucket, \"assets/demo-env-file.env\")))\n .secrets(Map.of( // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n \"SECRET\", Secret.fromSecretsManager(secret),\n \"DB_PASSWORD\", Secret.fromSecretsManager(dbSecret, \"password\"), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n \"API_KEY\", Secret.fromSecretsManagerVersion(secret, SecretVersionInfo.builder().versionId(\"12345\").build(), \"apiKey\"), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n \"PARAMETER\", Secret.fromSsmParameter(parameter)))\n .build());\nnewContainer.addEnvironment(\"QUEUE_NAME\", \"MyQueue\");",
15200 "version": "1"
15201 },
15202 "go": {
15203 "source": "var secret secret\nvar dbSecret secret\nvar parameter stringParameter\nvar taskDefinition taskDefinition\nvar s3Bucket bucket\n\n\nnewContainer := taskDefinition.addContainer(jsii.String(\"container\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"amazon/amazon-ecs-sample\")),\n\tmemoryLimitMiB: jsii.Number(1024),\n\tenvironment: map[string]*string{\n\t\t // clear text, not for sensitive data\n\t\t\"STAGE\": jsii.String(\"prod\"),\n\t},\n\tenvironmentFiles: []environmentFile{\n\t\tecs.*environmentFile.fromAsset(jsii.String(\"./demo-env-file.env\")),\n\t\tecs.*environmentFile.fromBucket(s3Bucket, jsii.String(\"assets/demo-env-file.env\")),\n\t},\n\tsecrets: map[string]secret{\n\t\t // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n\t\t\"SECRET\": ecs.*secret.fromSecretsManager(secret),\n\t\t\"DB_PASSWORD\": ecs.*secret.fromSecretsManager(dbSecret, jsii.String(\"password\")),\n\t\t // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"API_KEY\": ecs.*secret.fromSecretsManagerVersion(secret, &SecretVersionInfo{\n\t\t\t\"versionId\": jsii.String(\"12345\"),\n\t\t}, jsii.String(\"apiKey\")),\n\t\t // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n\t\t\"PARAMETER\": ecs.*secret.fromSsmParameter(parameter),\n\t},\n})\nnewContainer.addEnvironment(jsii.String(\"QUEUE_NAME\"), jsii.String(\"MyQueue\"))",
15204 "version": "1"
15205 },
15206 "$": {
15207 "source": "declare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');",
15208 "version": "0"
15209 }
15210 },
15211 "location": {
15212 "api": {
15213 "api": "type",
15214 "fqn": "@aws-cdk/aws-ecs.SecretVersionInfo"
15215 },
15216 "field": {
15217 "field": "example"
15218 }
15219 },
15220 "didCompile": true,
15221 "fqnsReferenced": [
15222 "@aws-cdk/aws-ecs.ContainerDefinition",
15223 "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
15224 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
15225 "@aws-cdk/aws-ecs.ContainerImage",
15226 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
15227 "@aws-cdk/aws-ecs.EnvironmentFile",
15228 "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
15229 "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
15230 "@aws-cdk/aws-ecs.Secret",
15231 "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
15232 "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
15233 "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
15234 "@aws-cdk/aws-ecs.SecretVersionInfo",
15235 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
15236 "@aws-cdk/aws-s3.IBucket",
15237 "@aws-cdk/aws-secretsmanager.ISecret",
15238 "@aws-cdk/aws-ssm.IParameter"
15239 ],
15240 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const secret: secretsmanager.Secret;\ndeclare const dbSecret: secretsmanager.Secret;\ndeclare const parameter: ssm.StringParameter;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst newContainer = taskDefinition.addContainer('container', {\n image: ecs.ContainerImage.fromRegistry(\"amazon/amazon-ecs-sample\"),\n memoryLimitMiB: 1024,\n environment: { // clear text, not for sensitive data\n STAGE: 'prod',\n },\n environmentFiles: [ // list of environment files hosted either on local disk or S3\n ecs.EnvironmentFile.fromAsset('./demo-env-file.env'),\n ecs.EnvironmentFile.fromBucket(s3Bucket, 'assets/demo-env-file.env'),\n ],\n secrets: { // Retrieved from AWS Secrets Manager or AWS Systems Manager Parameter Store at container start-up.\n SECRET: ecs.Secret.fromSecretsManager(secret),\n DB_PASSWORD: ecs.Secret.fromSecretsManager(dbSecret, 'password'), // Reference a specific JSON field, (requires platform version 1.4.0 or later for Fargate tasks)\n API_KEY: ecs.Secret.fromSecretsManagerVersion(secret, { versionId: '12345' }, 'apiKey'), // Reference a specific version of the secret by its version id or version stage (requires platform version 1.4.0 or later for Fargate tasks)\n PARAMETER: ecs.Secret.fromSsmParameter(parameter),\n },\n});\nnewContainer.addEnvironment('QUEUE_NAME', 'MyQueue');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
15241 "syntaxKindCounter": {
15242 "8": 1,
15243 "10": 10,
15244 "75": 57,
15245 "130": 5,
15246 "153": 5,
15247 "169": 5,
15248 "192": 1,
15249 "193": 4,
15250 "194": 16,
15251 "196": 9,
15252 "225": 6,
15253 "226": 1,
15254 "242": 6,
15255 "243": 6,
15256 "281": 11,
15257 "290": 1
15258 },
15259 "fqnsFingerprint": "b136978e4b069a3b4d1c7df0fcd416af6f80a95a3578a4eac49f7f3768a6a86f"
15260 },
15261 "ccae9ff6b167757c776e32de2be71e67c0f57b5a5209f7cd8bb998fd3da436b0": {
15262 "translations": {
15263 "python": {
15264 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# secret: ecs.Secret\n# secret_value: cdk.SecretValue\n\nsplunk_log_driver = ecs.SplunkLogDriver(\n url=\"url\",\n\n # the properties below are optional\n ca_name=\"caName\",\n ca_path=\"caPath\",\n env=[\"env\"],\n env_regex=\"envRegex\",\n format=ecs.SplunkLogFormat.INLINE,\n gzip=False,\n gzip_level=123,\n index=\"index\",\n insecure_skip_verify=\"insecureSkipVerify\",\n labels=[\"labels\"],\n secret_token=secret,\n source=\"source\",\n source_type=\"sourceType\",\n tag=\"tag\",\n token=secret_value,\n verify_connection=False\n)",
15265 "version": "2"
15266 },
15267 "csharp": {
15268 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nSecret secret;\nSecretValue secretValue;\nSplunkLogDriver splunkLogDriver = new SplunkLogDriver(new SplunkLogDriverProps {\n Url = \"url\",\n\n // the properties below are optional\n CaName = \"caName\",\n CaPath = \"caPath\",\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Format = SplunkLogFormat.INLINE,\n Gzip = false,\n GzipLevel = 123,\n Index = \"index\",\n InsecureSkipVerify = \"insecureSkipVerify\",\n Labels = new [] { \"labels\" },\n SecretToken = secret,\n Source = \"source\",\n SourceType = \"sourceType\",\n Tag = \"tag\",\n Token = secretValue,\n VerifyConnection = false\n});",
15269 "version": "1"
15270 },
15271 "java": {
15272 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nSecret secret;\nSecretValue secretValue;\n\nSplunkLogDriver splunkLogDriver = SplunkLogDriver.Builder.create()\n .url(\"url\")\n\n // the properties below are optional\n .caName(\"caName\")\n .caPath(\"caPath\")\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .format(SplunkLogFormat.INLINE)\n .gzip(false)\n .gzipLevel(123)\n .index(\"index\")\n .insecureSkipVerify(\"insecureSkipVerify\")\n .labels(List.of(\"labels\"))\n .secretToken(secret)\n .source(\"source\")\n .sourceType(\"sourceType\")\n .tag(\"tag\")\n .token(secretValue)\n .verifyConnection(false)\n .build();",
15273 "version": "1"
15274 },
15275 "go": {
15276 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar secret secret\nvar secretValue secretValue\n\nsplunkLogDriver := ecs.NewSplunkLogDriver(&splunkLogDriverProps{\n\turl: jsii.String(\"url\"),\n\n\t// the properties below are optional\n\tcaName: jsii.String(\"caName\"),\n\tcaPath: jsii.String(\"caPath\"),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tformat: ecs.splunkLogFormat_INLINE,\n\tgzip: jsii.Boolean(false),\n\tgzipLevel: jsii.Number(123),\n\tindex: jsii.String(\"index\"),\n\tinsecureSkipVerify: jsii.String(\"insecureSkipVerify\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\tsecretToken: secret,\n\tsource: jsii.String(\"source\"),\n\tsourceType: jsii.String(\"sourceType\"),\n\ttag: jsii.String(\"tag\"),\n\ttoken: secretValue,\n\tverifyConnection: jsii.Boolean(false),\n})",
15277 "version": "1"
15278 },
15279 "$": {
15280 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const secret: ecs.Secret;\ndeclare const secretValue: cdk.SecretValue;\nconst splunkLogDriver = new ecs.SplunkLogDriver({\n url: 'url',\n\n // the properties below are optional\n caName: 'caName',\n caPath: 'caPath',\n env: ['env'],\n envRegex: 'envRegex',\n format: ecs.SplunkLogFormat.INLINE,\n gzip: false,\n gzipLevel: 123,\n index: 'index',\n insecureSkipVerify: 'insecureSkipVerify',\n labels: ['labels'],\n secretToken: secret,\n source: 'source',\n sourceType: 'sourceType',\n tag: 'tag',\n token: secretValue,\n verifyConnection: false,\n});",
15281 "version": "0"
15282 }
15283 },
15284 "location": {
15285 "api": {
15286 "api": "type",
15287 "fqn": "@aws-cdk/aws-ecs.SplunkLogDriver"
15288 },
15289 "field": {
15290 "field": "example"
15291 }
15292 },
15293 "didCompile": true,
15294 "fqnsReferenced": [
15295 "@aws-cdk/aws-ecs.Secret",
15296 "@aws-cdk/aws-ecs.SplunkLogDriver",
15297 "@aws-cdk/aws-ecs.SplunkLogDriverProps",
15298 "@aws-cdk/aws-ecs.SplunkLogFormat",
15299 "@aws-cdk/aws-ecs.SplunkLogFormat#INLINE",
15300 "@aws-cdk/core.SecretValue"
15301 ],
15302 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const secret: ecs.Secret;\ndeclare const secretValue: cdk.SecretValue;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst splunkLogDriver = new ecs.SplunkLogDriver({\n url: 'url',\n\n // the properties below are optional\n caName: 'caName',\n caPath: 'caPath',\n env: ['env'],\n envRegex: 'envRegex',\n format: ecs.SplunkLogFormat.INLINE,\n gzip: false,\n gzipLevel: 123,\n index: 'index',\n insecureSkipVerify: 'insecureSkipVerify',\n labels: ['labels'],\n secretToken: secret,\n source: 'source',\n sourceType: 'sourceType',\n tag: 'tag',\n token: secretValue,\n verifyConnection: false,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15303 "syntaxKindCounter": {
15304 "8": 1,
15305 "10": 13,
15306 "75": 33,
15307 "91": 2,
15308 "130": 2,
15309 "153": 2,
15310 "169": 2,
15311 "192": 2,
15312 "193": 1,
15313 "194": 3,
15314 "197": 1,
15315 "225": 3,
15316 "242": 3,
15317 "243": 3,
15318 "254": 2,
15319 "255": 2,
15320 "256": 2,
15321 "281": 17,
15322 "290": 1
15323 },
15324 "fqnsFingerprint": "cd3a0f7f8e83cd30025075f23a4e64955ba241d07a0819567a6d0da8f0469198"
15325 },
15326 "5545335de23986c68e37bf51c62712dabbf7ae9aedc80d68f4654b8163e6127c": {
15327 "translations": {
15328 "python": {
15329 "source": "# Create a Task Definition for the container to start\ntask_definition = ecs.Ec2TaskDefinition(self, \"TaskDef\")\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"example-image\"),\n memory_limit_mi_b=256,\n logging=ecs.LogDrivers.splunk(\n token=SecretValue.secrets_manager(\"my-splunk-token\"),\n url=\"my-splunk-url\"\n )\n)",
15330 "version": "2"
15331 },
15332 "csharp": {
15333 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"example-image\"),\n MemoryLimitMiB = 256,\n Logging = LogDrivers.Splunk(new SplunkLogDriverProps {\n Token = SecretValue.SecretsManager(\"my-splunk-token\"),\n Url = \"my-splunk-url\"\n })\n});",
15334 "version": "1"
15335 },
15336 "java": {
15337 "source": "// Create a Task Definition for the container to start\nEc2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, \"TaskDef\");\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"example-image\"))\n .memoryLimitMiB(256)\n .logging(LogDrivers.splunk(SplunkLogDriverProps.builder()\n .token(SecretValue.secretsManager(\"my-splunk-token\"))\n .url(\"my-splunk-url\")\n .build()))\n .build());",
15338 "version": "1"
15339 },
15340 "go": {
15341 "source": "// Create a Task Definition for the container to start\ntaskDefinition := ecs.NewEc2TaskDefinition(this, jsii.String(\"TaskDef\"))\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"example-image\")),\n\tmemoryLimitMiB: jsii.Number(256),\n\tlogging: ecs.logDrivers.splunk(&splunkLogDriverProps{\n\t\ttoken: *awscdkcore.SecretValue.secretsManager(jsii.String(\"my-splunk-token\")),\n\t\turl: jsii.String(\"my-splunk-url\"),\n\t}),\n})",
15342 "version": "1"
15343 },
15344 "$": {
15345 "source": "// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});",
15346 "version": "0"
15347 }
15348 },
15349 "location": {
15350 "api": {
15351 "api": "type",
15352 "fqn": "@aws-cdk/aws-ecs.SplunkLogDriverProps"
15353 },
15354 "field": {
15355 "field": "example"
15356 }
15357 },
15358 "didCompile": true,
15359 "fqnsReferenced": [
15360 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
15361 "@aws-cdk/aws-ecs.ContainerImage",
15362 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
15363 "@aws-cdk/aws-ecs.Ec2TaskDefinition",
15364 "@aws-cdk/aws-ecs.LogDriver",
15365 "@aws-cdk/aws-ecs.LogDrivers",
15366 "@aws-cdk/aws-ecs.LogDrivers#splunk",
15367 "@aws-cdk/aws-ecs.SplunkLogDriverProps",
15368 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
15369 "@aws-cdk/core.SecretValue",
15370 "@aws-cdk/core.SecretValue#secretsManager",
15371 "constructs.Construct"
15372 ],
15373 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a Task Definition for the container to start\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'TaskDef');\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('example-image'),\n memoryLimitMiB: 256,\n logging: ecs.LogDrivers.splunk({\n token: SecretValue.secretsManager('my-splunk-token'),\n url: 'my-splunk-url',\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
15374 "syntaxKindCounter": {
15375 "8": 1,
15376 "10": 5,
15377 "75": 18,
15378 "104": 1,
15379 "193": 2,
15380 "194": 7,
15381 "196": 4,
15382 "197": 1,
15383 "225": 1,
15384 "226": 1,
15385 "242": 1,
15386 "243": 1,
15387 "281": 5
15388 },
15389 "fqnsFingerprint": "cd6c265656766ea5017c47b7887118fcc13ab7e9488868f335215354fc75c563"
15390 },
15391 "387f0320749094234830c38b359894bd15567dfe4259309f7deb5257e38c571d": {
15392 "translations": {
15393 "python": {
15394 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nsyslog_log_driver = ecs.SyslogLogDriver(\n address=\"address\",\n env=[\"env\"],\n env_regex=\"envRegex\",\n facility=\"facility\",\n format=\"format\",\n labels=[\"labels\"],\n tag=\"tag\",\n tls_ca_cert=\"tlsCaCert\",\n tls_cert=\"tlsCert\",\n tls_key=\"tlsKey\",\n tls_skip_verify=False\n)",
15395 "version": "2"
15396 },
15397 "csharp": {
15398 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nSyslogLogDriver syslogLogDriver = new SyslogLogDriver(new SyslogLogDriverProps {\n Address = \"address\",\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Facility = \"facility\",\n Format = \"format\",\n Labels = new [] { \"labels\" },\n Tag = \"tag\",\n TlsCaCert = \"tlsCaCert\",\n TlsCert = \"tlsCert\",\n TlsKey = \"tlsKey\",\n TlsSkipVerify = false\n});",
15399 "version": "1"
15400 },
15401 "java": {
15402 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nSyslogLogDriver syslogLogDriver = SyslogLogDriver.Builder.create()\n .address(\"address\")\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .facility(\"facility\")\n .format(\"format\")\n .labels(List.of(\"labels\"))\n .tag(\"tag\")\n .tlsCaCert(\"tlsCaCert\")\n .tlsCert(\"tlsCert\")\n .tlsKey(\"tlsKey\")\n .tlsSkipVerify(false)\n .build();",
15403 "version": "1"
15404 },
15405 "go": {
15406 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nsyslogLogDriver := ecs.NewSyslogLogDriver(&syslogLogDriverProps{\n\taddress: jsii.String(\"address\"),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tfacility: jsii.String(\"facility\"),\n\tformat: jsii.String(\"format\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\ttag: jsii.String(\"tag\"),\n\ttlsCaCert: jsii.String(\"tlsCaCert\"),\n\ttlsCert: jsii.String(\"tlsCert\"),\n\ttlsKey: jsii.String(\"tlsKey\"),\n\ttlsSkipVerify: jsii.Boolean(false),\n})",
15407 "version": "1"
15408 },
15409 "$": {
15410 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst syslogLogDriver = new ecs.SyslogLogDriver(/* all optional props */ {\n address: 'address',\n env: ['env'],\n envRegex: 'envRegex',\n facility: 'facility',\n format: 'format',\n labels: ['labels'],\n tag: 'tag',\n tlsCaCert: 'tlsCaCert',\n tlsCert: 'tlsCert',\n tlsKey: 'tlsKey',\n tlsSkipVerify: false,\n});",
15411 "version": "0"
15412 }
15413 },
15414 "location": {
15415 "api": {
15416 "api": "type",
15417 "fqn": "@aws-cdk/aws-ecs.SyslogLogDriver"
15418 },
15419 "field": {
15420 "field": "example"
15421 }
15422 },
15423 "didCompile": true,
15424 "fqnsReferenced": [
15425 "@aws-cdk/aws-ecs.SyslogLogDriver",
15426 "@aws-cdk/aws-ecs.SyslogLogDriverProps"
15427 ],
15428 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst syslogLogDriver = new ecs.SyslogLogDriver(/* all optional props */ {\n address: 'address',\n env: ['env'],\n envRegex: 'envRegex',\n facility: 'facility',\n format: 'format',\n labels: ['labels'],\n tag: 'tag',\n tlsCaCert: 'tlsCaCert',\n tlsCert: 'tlsCert',\n tlsKey: 'tlsKey',\n tlsSkipVerify: false,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15429 "syntaxKindCounter": {
15430 "10": 11,
15431 "75": 15,
15432 "91": 1,
15433 "192": 2,
15434 "193": 1,
15435 "194": 1,
15436 "197": 1,
15437 "225": 1,
15438 "242": 1,
15439 "243": 1,
15440 "254": 1,
15441 "255": 1,
15442 "256": 1,
15443 "281": 11,
15444 "290": 1
15445 },
15446 "fqnsFingerprint": "6b51ed6743273ef244eadf71de0027f358b338f450c2159da81101b7d84ffc70"
15447 },
15448 "74201d812f68f22213e921c185a0ec0f78fd90029df5dbf9706490820bc579e2": {
15449 "translations": {
15450 "python": {
15451 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nsyslog_log_driver_props = ecs.SyslogLogDriverProps(\n address=\"address\",\n env=[\"env\"],\n env_regex=\"envRegex\",\n facility=\"facility\",\n format=\"format\",\n labels=[\"labels\"],\n tag=\"tag\",\n tls_ca_cert=\"tlsCaCert\",\n tls_cert=\"tlsCert\",\n tls_key=\"tlsKey\",\n tls_skip_verify=False\n)",
15452 "version": "2"
15453 },
15454 "csharp": {
15455 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nSyslogLogDriverProps syslogLogDriverProps = new SyslogLogDriverProps {\n Address = \"address\",\n Env = new [] { \"env\" },\n EnvRegex = \"envRegex\",\n Facility = \"facility\",\n Format = \"format\",\n Labels = new [] { \"labels\" },\n Tag = \"tag\",\n TlsCaCert = \"tlsCaCert\",\n TlsCert = \"tlsCert\",\n TlsKey = \"tlsKey\",\n TlsSkipVerify = false\n};",
15456 "version": "1"
15457 },
15458 "java": {
15459 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nSyslogLogDriverProps syslogLogDriverProps = SyslogLogDriverProps.builder()\n .address(\"address\")\n .env(List.of(\"env\"))\n .envRegex(\"envRegex\")\n .facility(\"facility\")\n .format(\"format\")\n .labels(List.of(\"labels\"))\n .tag(\"tag\")\n .tlsCaCert(\"tlsCaCert\")\n .tlsCert(\"tlsCert\")\n .tlsKey(\"tlsKey\")\n .tlsSkipVerify(false)\n .build();",
15460 "version": "1"
15461 },
15462 "go": {
15463 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nsyslogLogDriverProps := &syslogLogDriverProps{\n\taddress: jsii.String(\"address\"),\n\tenv: []*string{\n\t\tjsii.String(\"env\"),\n\t},\n\tenvRegex: jsii.String(\"envRegex\"),\n\tfacility: jsii.String(\"facility\"),\n\tformat: jsii.String(\"format\"),\n\tlabels: []*string{\n\t\tjsii.String(\"labels\"),\n\t},\n\ttag: jsii.String(\"tag\"),\n\ttlsCaCert: jsii.String(\"tlsCaCert\"),\n\ttlsCert: jsii.String(\"tlsCert\"),\n\ttlsKey: jsii.String(\"tlsKey\"),\n\ttlsSkipVerify: jsii.Boolean(false),\n}",
15464 "version": "1"
15465 },
15466 "$": {
15467 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst syslogLogDriverProps: ecs.SyslogLogDriverProps = {\n address: 'address',\n env: ['env'],\n envRegex: 'envRegex',\n facility: 'facility',\n format: 'format',\n labels: ['labels'],\n tag: 'tag',\n tlsCaCert: 'tlsCaCert',\n tlsCert: 'tlsCert',\n tlsKey: 'tlsKey',\n tlsSkipVerify: false,\n};",
15468 "version": "0"
15469 }
15470 },
15471 "location": {
15472 "api": {
15473 "api": "type",
15474 "fqn": "@aws-cdk/aws-ecs.SyslogLogDriverProps"
15475 },
15476 "field": {
15477 "field": "example"
15478 }
15479 },
15480 "didCompile": true,
15481 "fqnsReferenced": [
15482 "@aws-cdk/aws-ecs.SyslogLogDriverProps"
15483 ],
15484 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst syslogLogDriverProps: ecs.SyslogLogDriverProps = {\n address: 'address',\n env: ['env'],\n envRegex: 'envRegex',\n facility: 'facility',\n format: 'format',\n labels: ['labels'],\n tag: 'tag',\n tlsCaCert: 'tlsCaCert',\n tlsCert: 'tlsCert',\n tlsKey: 'tlsKey',\n tlsSkipVerify: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15485 "syntaxKindCounter": {
15486 "10": 11,
15487 "75": 15,
15488 "91": 1,
15489 "153": 1,
15490 "169": 1,
15491 "192": 2,
15492 "193": 1,
15493 "225": 1,
15494 "242": 1,
15495 "243": 1,
15496 "254": 1,
15497 "255": 1,
15498 "256": 1,
15499 "281": 11,
15500 "290": 1
15501 },
15502 "fqnsFingerprint": "729536eb3bbcfd950aa1e6d103567d52133d15ebf2633732d0262236631231cf"
15503 },
15504 "4df7fa296994da2239bc24a5c5a3e1a56733309d295bacc536b2d3db6b60ba76": {
15505 "translations": {
15506 "python": {
15507 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nsystem_control = ecs.SystemControl(\n namespace=\"namespace\",\n value=\"value\"\n)",
15508 "version": "2"
15509 },
15510 "csharp": {
15511 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nSystemControl systemControl = new SystemControl {\n Namespace = \"namespace\",\n Value = \"value\"\n};",
15512 "version": "1"
15513 },
15514 "java": {
15515 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nSystemControl systemControl = SystemControl.builder()\n .namespace(\"namespace\")\n .value(\"value\")\n .build();",
15516 "version": "1"
15517 },
15518 "go": {
15519 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nsystemControl := &systemControl{\n\tnamespace: jsii.String(\"namespace\"),\n\tvalue: jsii.String(\"value\"),\n}",
15520 "version": "1"
15521 },
15522 "$": {
15523 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst systemControl: ecs.SystemControl = {\n namespace: 'namespace',\n value: 'value',\n};",
15524 "version": "0"
15525 }
15526 },
15527 "location": {
15528 "api": {
15529 "api": "type",
15530 "fqn": "@aws-cdk/aws-ecs.SystemControl"
15531 },
15532 "field": {
15533 "field": "example"
15534 }
15535 },
15536 "didCompile": true,
15537 "fqnsReferenced": [
15538 "@aws-cdk/aws-ecs.SystemControl"
15539 ],
15540 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst systemControl: ecs.SystemControl = {\n namespace: 'namespace',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15541 "syntaxKindCounter": {
15542 "10": 3,
15543 "75": 6,
15544 "153": 1,
15545 "169": 1,
15546 "193": 1,
15547 "225": 1,
15548 "242": 1,
15549 "243": 1,
15550 "254": 1,
15551 "255": 1,
15552 "256": 1,
15553 "281": 2,
15554 "290": 1
15555 },
15556 "fqnsFingerprint": "794069948e85ef7cf9c793ea7cb932d18b9482e4233d1898b8b9a591b5eec7b9"
15557 },
15558 "06dafd9e31731b892b088d0214f58a1e20b5d67a7d2cdce98ec9c9f2e517f2bf": {
15559 "translations": {
15560 "python": {
15561 "source": "#\n# This is the Stack containing a simple ECS Service that uses the provided ContainerImage.\n#\nclass EcsAppStack(cdk.Stack):\n def __init__(self, scope, id, *, image, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):\n super().__init__(scope, id, image=image, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)\n\n task_definition = ecs.TaskDefinition(self, \"TaskDefinition\",\n compatibility=ecs.Compatibility.FARGATE,\n cpu=\"1024\",\n memory_mi_b=\"2048\"\n )\n task_definition.add_container(\"AppContainer\",\n image=image\n )\n ecs.FargateService(self, \"EcsService\",\n task_definition=task_definition,\n cluster=ecs.Cluster(self, \"Cluster\",\n vpc=ec2.Vpc(self, \"Vpc\",\n max_azs=1\n )\n )\n )\n\n#\n# This is the Stack containing the CodePipeline definition that deploys an ECS Service.\n#\nclass PipelineStack(cdk.Stack):\n\n def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, synthesizer=None, terminationProtection=None, analyticsReporting=None):\n super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting)\n\n # ********* ECS part ****************\n\n # this is the ECR repository where the built Docker image will be pushed\n app_ecr_repo = ecr.Repository(self, \"EcsDeployRepository\")\n # the build that creates the Docker image, and pushes it to the ECR repo\n app_code_docker_build = codebuild.PipelineProject(self, \"AppCodeDockerImageBuildAndPushProject\",\n environment=codebuild.BuildEnvironment(\n # we need to run Docker\n privileged=True\n ),\n build_spec=codebuild.BuildSpec.from_object({\n \"version\": \"0.2\",\n \"phases\": {\n \"build\": {\n \"commands\": [\"$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)\", \"docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .\"\n ]\n },\n \"post_build\": {\n \"commands\": [\"docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION\", \"export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION\"\n ]\n }\n },\n \"env\": {\n # save the imageTag environment variable as a CodePipeline Variable\n \"exported-variables\": [\"imageTag\"\n ]\n }\n }),\n environment_variables={\n \"REPOSITORY_URI\": codebuild.BuildEnvironmentVariable(\n value=app_ecr_repo.repository_uri\n )\n }\n )\n # needed for `docker push`\n app_ecr_repo.grant_pull_push(app_code_docker_build)\n # create the ContainerImage used for the ECS application Stack\n self.tag_parameter_container_image = ecs.TagParameterContainerImage(app_ecr_repo)\n\n cdk_code_build = codebuild.PipelineProject(self, \"CdkCodeBuildProject\",\n build_spec=codebuild.BuildSpec.from_object({\n \"version\": \"0.2\",\n \"phases\": {\n \"install\": {\n \"commands\": [\"npm install\"\n ]\n },\n \"build\": {\n \"commands\": [\"npx cdk synth --verbose\"\n ]\n }\n },\n \"artifacts\": {\n # store the entire Cloud Assembly as the output artifact\n \"base-directory\": \"cdk.out\",\n \"files\": \"**/*\"\n }\n })\n )\n\n # ********* Pipeline part ****************\n\n app_code_source_output = codepipeline.Artifact()\n cdk_code_source_output = codepipeline.Artifact()\n cdk_code_build_output = codepipeline.Artifact()\n app_code_build_action = codepipeline_actions.CodeBuildAction(\n action_name=\"AppCodeDockerImageBuildAndPush\",\n project=app_code_docker_build,\n input=app_code_source_output\n )\n codepipeline.Pipeline(self, \"CodePipelineDeployingEcsApplication\",\n artifact_bucket=s3.Bucket(self, \"ArtifactBucket\",\n removal_policy=cdk.RemovalPolicy.DESTROY\n ),\n stages=[codepipeline.StageProps(\n stage_name=\"Source\",\n actions=[\n # this is the Action that takes the source of your application code\n codepipeline_actions.CodeCommitSourceAction(\n action_name=\"AppCodeSource\",\n repository=codecommit.Repository(self, \"AppCodeSourceRepository\", repository_name=\"AppCodeSourceRepository\"),\n output=app_code_source_output\n ),\n # this is the Action that takes the source of your CDK code\n # (which would probably include this Pipeline code as well)\n codepipeline_actions.CodeCommitSourceAction(\n action_name=\"CdkCodeSource\",\n repository=codecommit.Repository(self, \"CdkCodeSourceRepository\", repository_name=\"CdkCodeSourceRepository\"),\n output=cdk_code_source_output\n )\n ]\n ), codepipeline.StageProps(\n stage_name=\"Build\",\n actions=[app_code_build_action,\n codepipeline_actions.CodeBuildAction(\n action_name=\"CdkCodeBuildAndSynth\",\n project=cdk_code_build,\n input=cdk_code_source_output,\n outputs=[cdk_code_build_output]\n )\n ]\n ), codepipeline.StageProps(\n stage_name=\"Deploy\",\n actions=[\n codepipeline_actions.CloudFormationCreateUpdateStackAction(\n action_name=\"CFN_Deploy\",\n stack_name=\"SampleEcsStackDeployedFromCodePipeline\",\n # this name has to be the same name as used below in the CDK code for the application Stack\n template_path=cdk_code_build_output.at_path(\"EcsStackDeployedInPipeline.template.json\"),\n admin_permissions=True,\n parameter_overrides={\n # read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step,\n # and pass it as the CloudFormation Parameter for the tag\n \"self.tag_parameter_container_image.tag_parameter_name\": app_code_build_action.variable(\"imageTag\")\n }\n )\n ]\n )\n ]\n )\n\napp = cdk.App()\n\n# the CodePipeline Stack needs to be created first\npipeline_stack = PipelineStack(app, \"aws-cdk-pipeline-ecs-separate-sources\")\n# we supply the image to the ECS application Stack from the CodePipeline Stack\nEcsAppStack(app, \"EcsStackDeployedInPipeline\",\n image=pipeline_stack.tag_parameter_container_image\n)",
15562 "version": "2"
15563 },
15564 "csharp": {
15565 "source": "/**\n * These are the construction properties for {@link EcsAppStack}.\n * They extend the standard Stack properties,\n * but also require providing the ContainerImage that the service will use.\n * That Image will be provided from the Stack containing the CodePipeline.\n */\nclass EcsAppStackProps : StackProps\n{\n public ContainerImage Image { get; set; }\n}\n\n/**\n * This is the Stack containing a simple ECS Service that uses the provided ContainerImage.\n */\nclass EcsAppStack : Stack\n{\n public EcsAppStack(Construct scope, string id, EcsAppStackProps props) : base(scope, id, props)\n {\n\n TaskDefinition taskDefinition = new TaskDefinition(this, \"TaskDefinition\", new TaskDefinitionProps {\n Compatibility = Compatibility.FARGATE,\n Cpu = \"1024\",\n MemoryMiB = \"2048\"\n });\n taskDefinition.AddContainer(\"AppContainer\", new ContainerDefinitionOptions {\n Image = props.Image\n });\n new FargateService(this, \"EcsService\", new FargateServiceProps {\n TaskDefinition = taskDefinition,\n Cluster = new Cluster(this, \"Cluster\", new ClusterProps {\n Vpc = new Vpc(this, \"Vpc\", new VpcProps {\n MaxAzs = 1\n })\n })\n });\n }\n}\n\n/**\n * This is the Stack containing the CodePipeline definition that deploys an ECS Service.\n */\nclass PipelineStack : Stack\n{\n public TagParameterContainerImage TagParameterContainerImage { get; }\n\n public PipelineStack(Construct scope, string id, StackProps? props=null) : base(scope, id, props)\n {\n\n /* ********** ECS part **************** */\n\n // this is the ECR repository where the built Docker image will be pushed\n Repository appEcrRepo = new Repository(this, \"EcsDeployRepository\");\n // the build that creates the Docker image, and pushes it to the ECR repo\n PipelineProject appCodeDockerBuild = new PipelineProject(this, \"AppCodeDockerImageBuildAndPushProject\", new PipelineProjectProps {\n Environment = new BuildEnvironment {\n // we need to run Docker\n Privileged = true\n },\n BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {\n { \"version\", \"0.2\" },\n { \"phases\", new Dictionary<string, IDictionary<string, string[]>> {\n { \"build\", new Struct {\n Commands = new [] { \"$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)\", \"docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .\" }\n } },\n { \"post_build\", new Struct {\n Commands = new [] { \"docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION\", \"export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION\" }\n } }\n } },\n { \"env\", new Dictionary<string, string[]> {\n // save the imageTag environment variable as a CodePipeline Variable\n { \"exported-variables\", new [] { \"imageTag\" } }\n } }\n }),\n EnvironmentVariables = new Dictionary<string, BuildEnvironmentVariable> {\n { \"REPOSITORY_URI\", new BuildEnvironmentVariable {\n Value = appEcrRepo.RepositoryUri\n } }\n }\n });\n // needed for `docker push`\n appEcrRepo.GrantPullPush(appCodeDockerBuild);\n // create the ContainerImage used for the ECS application Stack\n TagParameterContainerImage = new TagParameterContainerImage(appEcrRepo);\n\n PipelineProject cdkCodeBuild = new PipelineProject(this, \"CdkCodeBuildProject\", new PipelineProjectProps {\n BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {\n { \"version\", \"0.2\" },\n { \"phases\", new Dictionary<string, IDictionary<string, string[]>> {\n { \"install\", new Struct {\n Commands = new [] { \"npm install\" }\n } },\n { \"build\", new Struct {\n Commands = new [] { \"npx cdk synth --verbose\" }\n } }\n } },\n { \"artifacts\", new Dictionary<string, string> {\n // store the entire Cloud Assembly as the output artifact\n { \"base-directory\", \"cdk.out\" },\n { \"files\", \"**/*\" }\n } }\n })\n });\n\n /* ********** Pipeline part **************** */\n\n Artifact appCodeSourceOutput = new Artifact();\n Artifact cdkCodeSourceOutput = new Artifact();\n Artifact cdkCodeBuildOutput = new Artifact();\n CodeBuildAction appCodeBuildAction = new CodeBuildAction(new CodeBuildActionProps {\n ActionName = \"AppCodeDockerImageBuildAndPush\",\n Project = appCodeDockerBuild,\n Input = appCodeSourceOutput\n });\n new Pipeline(this, \"CodePipelineDeployingEcsApplication\", new PipelineProps {\n ArtifactBucket = new Bucket(this, \"ArtifactBucket\", new BucketProps {\n RemovalPolicy = RemovalPolicy.DESTROY\n }),\n Stages = new [] { new StageProps {\n StageName = \"Source\",\n Actions = new [] {\n // this is the Action that takes the source of your application code\n new CodeCommitSourceAction(new CodeCommitSourceActionProps {\n ActionName = \"AppCodeSource\",\n Repository = new Repository(this, \"AppCodeSourceRepository\", new RepositoryProps { RepositoryName = \"AppCodeSourceRepository\" }),\n Output = appCodeSourceOutput\n }),\n // this is the Action that takes the source of your CDK code\n // (which would probably include this Pipeline code as well)\n new CodeCommitSourceAction(new CodeCommitSourceActionProps {\n ActionName = \"CdkCodeSource\",\n Repository = new Repository(this, \"CdkCodeSourceRepository\", new RepositoryProps { RepositoryName = \"CdkCodeSourceRepository\" }),\n Output = cdkCodeSourceOutput\n }) }\n }, new StageProps {\n StageName = \"Build\",\n Actions = new [] { appCodeBuildAction,\n new CodeBuildAction(new CodeBuildActionProps {\n ActionName = \"CdkCodeBuildAndSynth\",\n Project = cdkCodeBuild,\n Input = cdkCodeSourceOutput,\n Outputs = new [] { cdkCodeBuildOutput }\n }) }\n }, new StageProps {\n StageName = \"Deploy\",\n Actions = new [] {\n new CloudFormationCreateUpdateStackAction(new CloudFormationCreateUpdateStackActionProps {\n ActionName = \"CFN_Deploy\",\n StackName = \"SampleEcsStackDeployedFromCodePipeline\",\n // this name has to be the same name as used below in the CDK code for the application Stack\n TemplatePath = cdkCodeBuildOutput.AtPath(\"EcsStackDeployedInPipeline.template.json\"),\n AdminPermissions = true,\n ParameterOverrides = new Dictionary<string, object> {\n // read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step,\n // and pass it as the CloudFormation Parameter for the tag\n { TagParameterContainerImage.TagParameterName, appCodeBuildAction.Variable(\"imageTag\") }\n }\n }) }\n } }\n });\n }\n}\n\nApp app = new App();\n\n// the CodePipeline Stack needs to be created first\nPipelineStack pipelineStack = new PipelineStack(app, \"aws-cdk-pipeline-ecs-separate-sources\");\n// we supply the image to the ECS application Stack from the CodePipeline Stack\n// we supply the image to the ECS application Stack from the CodePipeline Stack\nnew EcsAppStack(app, \"EcsStackDeployedInPipeline\", new EcsAppStackProps {\n Image = pipelineStack.TagParameterContainerImage\n});",
15566 "version": "1"
15567 },
15568 "java": {
15569 "source": "/**\n * These are the construction properties for {@link EcsAppStack}.\n * They extend the standard Stack properties,\n * but also require providing the ContainerImage that the service will use.\n * That Image will be provided from the Stack containing the CodePipeline.\n */\npublic class EcsAppStackProps extends StackProps {\n private ContainerImage image;\n public ContainerImage getImage() {\n return this.image;\n }\n public EcsAppStackProps image(ContainerImage image) {\n this.image = image;\n return this;\n }\n}\n\n/**\n * This is the Stack containing a simple ECS Service that uses the provided ContainerImage.\n */\npublic class EcsAppStack extends Stack {\n public EcsAppStack(Construct scope, String id, EcsAppStackProps props) {\n super(scope, id, props);\n\n TaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TaskDefinition\")\n .compatibility(Compatibility.FARGATE)\n .cpu(\"1024\")\n .memoryMiB(\"2048\")\n .build();\n taskDefinition.addContainer(\"AppContainer\", ContainerDefinitionOptions.builder()\n .image(props.getImage())\n .build());\n FargateService.Builder.create(this, \"EcsService\")\n .taskDefinition(taskDefinition)\n .cluster(Cluster.Builder.create(this, \"Cluster\")\n .vpc(Vpc.Builder.create(this, \"Vpc\")\n .maxAzs(1)\n .build())\n .build())\n .build();\n }\n}\n\n/**\n * This is the Stack containing the CodePipeline definition that deploys an ECS Service.\n */\npublic class PipelineStack extends Stack {\n public final TagParameterContainerImage tagParameterContainerImage;\n\n public PipelineStack(Construct scope, String id) {\n this(scope, id, null);\n }\n\n public PipelineStack(Construct scope, String id, StackProps props) {\n super(scope, id, props);\n\n /* ********** ECS part **************** */\n\n // this is the ECR repository where the built Docker image will be pushed\n Repository appEcrRepo = new Repository(this, \"EcsDeployRepository\");\n // the build that creates the Docker image, and pushes it to the ECR repo\n PipelineProject appCodeDockerBuild = PipelineProject.Builder.create(this, \"AppCodeDockerImageBuildAndPushProject\")\n .environment(BuildEnvironment.builder()\n // we need to run Docker\n .privileged(true)\n .build())\n .buildSpec(BuildSpec.fromObject(Map.of(\n \"version\", \"0.2\",\n \"phases\", Map.of(\n \"build\", Map.of(\n \"commands\", List.of(\"$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)\", \"docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .\")),\n \"post_build\", Map.of(\n \"commands\", List.of(\"docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION\", \"export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION\"))),\n \"env\", Map.of(\n // save the imageTag environment variable as a CodePipeline Variable\n \"exported-variables\", List.of(\"imageTag\")))))\n .environmentVariables(Map.of(\n \"REPOSITORY_URI\", BuildEnvironmentVariable.builder()\n .value(appEcrRepo.getRepositoryUri())\n .build()))\n .build();\n // needed for `docker push`\n appEcrRepo.grantPullPush(appCodeDockerBuild);\n // create the ContainerImage used for the ECS application Stack\n this.tagParameterContainerImage = new TagParameterContainerImage(appEcrRepo);\n\n PipelineProject cdkCodeBuild = PipelineProject.Builder.create(this, \"CdkCodeBuildProject\")\n .buildSpec(BuildSpec.fromObject(Map.of(\n \"version\", \"0.2\",\n \"phases\", Map.of(\n \"install\", Map.of(\n \"commands\", List.of(\"npm install\")),\n \"build\", Map.of(\n \"commands\", List.of(\"npx cdk synth --verbose\"))),\n \"artifacts\", Map.of(\n // store the entire Cloud Assembly as the output artifact\n \"base-directory\", \"cdk.out\",\n \"files\", \"**/*\"))))\n .build();\n\n /* ********** Pipeline part **************** */\n\n Artifact appCodeSourceOutput = new Artifact();\n Artifact cdkCodeSourceOutput = new Artifact();\n Artifact cdkCodeBuildOutput = new Artifact();\n CodeBuildAction appCodeBuildAction = CodeBuildAction.Builder.create()\n .actionName(\"AppCodeDockerImageBuildAndPush\")\n .project(appCodeDockerBuild)\n .input(appCodeSourceOutput)\n .build();\n Pipeline.Builder.create(this, \"CodePipelineDeployingEcsApplication\")\n .artifactBucket(Bucket.Builder.create(this, \"ArtifactBucket\")\n .removalPolicy(RemovalPolicy.DESTROY)\n .build())\n .stages(List.of(StageProps.builder()\n .stageName(\"Source\")\n .actions(List.of(\n // this is the Action that takes the source of your application code\n CodeCommitSourceAction.Builder.create()\n .actionName(\"AppCodeSource\")\n .repository(Repository.Builder.create(this, \"AppCodeSourceRepository\").repositoryName(\"AppCodeSourceRepository\").build())\n .output(appCodeSourceOutput)\n .build(),\n // this is the Action that takes the source of your CDK code\n // (which would probably include this Pipeline code as well)\n CodeCommitSourceAction.Builder.create()\n .actionName(\"CdkCodeSource\")\n .repository(Repository.Builder.create(this, \"CdkCodeSourceRepository\").repositoryName(\"CdkCodeSourceRepository\").build())\n .output(cdkCodeSourceOutput)\n .build()))\n .build(), StageProps.builder()\n .stageName(\"Build\")\n .actions(List.of(appCodeBuildAction,\n CodeBuildAction.Builder.create()\n .actionName(\"CdkCodeBuildAndSynth\")\n .project(cdkCodeBuild)\n .input(cdkCodeSourceOutput)\n .outputs(List.of(cdkCodeBuildOutput))\n .build()))\n .build(), StageProps.builder()\n .stageName(\"Deploy\")\n .actions(List.of(\n CloudFormationCreateUpdateStackAction.Builder.create()\n .actionName(\"CFN_Deploy\")\n .stackName(\"SampleEcsStackDeployedFromCodePipeline\")\n // this name has to be the same name as used below in the CDK code for the application Stack\n .templatePath(cdkCodeBuildOutput.atPath(\"EcsStackDeployedInPipeline.template.json\"))\n .adminPermissions(true)\n .parameterOverrides(Map.of(\n // read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step,\n // and pass it as the CloudFormation Parameter for the tag\n this.tagParameterContainerImage.getTagParameterName(), appCodeBuildAction.variable(\"imageTag\")))\n .build()))\n .build()))\n .build();\n }\n}\n\nApp app = new App();\n\n// the CodePipeline Stack needs to be created first\nPipelineStack pipelineStack = new PipelineStack(app, \"aws-cdk-pipeline-ecs-separate-sources\");\n// we supply the image to the ECS application Stack from the CodePipeline Stack\n// we supply the image to the ECS application Stack from the CodePipeline Stack\nnew EcsAppStack(app, \"EcsStackDeployedInPipeline\", new EcsAppStackProps()\n .image(pipelineStack.getTagParameterContainerImage())\n );",
15570 "version": "1"
15571 },
15572 "go": {
15573 "source": "/**\n * These are the construction properties for {@link EcsAppStack}.\n * They extend the standard Stack properties,\n * but also require providing the ContainerImage that the service will use.\n * That Image will be provided from the Stack containing the CodePipeline.\n */\ntype ecsAppStackProps struct {\n\tstackProps\n\timage containerImage\n}\n\n/**\n * This is the Stack containing a simple ECS Service that uses the provided ContainerImage.\n */\ntype EcsAppStack struct {\n\tstack\n}\n\nfunc NewEcsAppStack(scope construct, id *string, props ecsAppStackProps) *EcsAppStack {\n\tthis := &EcsAppStack{}\n\tcdk.NewStack_Override(this, scope, id, props)\n\n\ttaskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TaskDefinition\"), &taskDefinitionProps{\n\t\tcompatibility: ecs.compatibility_FARGATE,\n\t\tcpu: jsii.String(\"1024\"),\n\t\tmemoryMiB: jsii.String(\"2048\"),\n\t})\n\ttaskDefinition.addContainer(jsii.String(\"AppContainer\"), &containerDefinitionOptions{\n\t\timage: props.image,\n\t})\n\tecs.NewFargateService(this, jsii.String(\"EcsService\"), &fargateServiceProps{\n\t\ttaskDefinition: taskDefinition,\n\t\tcluster: ecs.NewCluster(this, jsii.String(\"Cluster\"), &clusterProps{\n\t\t\tvpc: ec2.NewVpc(this, jsii.String(\"Vpc\"), &vpcProps{\n\t\t\t\tmaxAzs: jsii.Number(1),\n\t\t\t}),\n\t\t}),\n\t})\n\treturn this\n}\n\n/**\n * This is the Stack containing the CodePipeline definition that deploys an ECS Service.\n */\ntype PipelineStack struct {\n\tstack\n\ttagParameterContainerImage tagParameterContainerImage\n}tagParameterContainerImage tagParameterContainerImage\n\nfunc NewPipelineStack(scope construct, id *string, props stackProps) *PipelineStack {\n\tthis := &PipelineStack{}\n\tcdk.NewStack_Override(this, scope, id, props)\n\n\t/* ********** ECS part **************** */\n\n\t// this is the ECR repository where the built Docker image will be pushed\n\tappEcrRepo := ecr.NewRepository(this, jsii.String(\"EcsDeployRepository\"))\n\t// the build that creates the Docker image, and pushes it to the ECR repo\n\tappCodeDockerBuild := codebuild.NewPipelineProject(this, jsii.String(\"AppCodeDockerImageBuildAndPushProject\"), &pipelineProjectProps{\n\t\tenvironment: &buildEnvironment{\n\t\t\t// we need to run Docker\n\t\t\tprivileged: jsii.Boolean(true),\n\t\t},\n\t\tbuildSpec: codebuild.buildSpec.fromObject(map[string]interface{}{\n\t\t\t\"version\": jsii.String(\"0.2\"),\n\t\t\t\"phases\": map[string]map[string][]*string{\n\t\t\t\t\"build\": map[string][]*string{\n\t\t\t\t\t\"commands\": []*string{\n\t\t\t\t\t\tjsii.String(\"$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)\"),\n\t\t\t\t\t\tjsii.String(\"docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"post_build\": map[string][]*string{\n\t\t\t\t\t\"commands\": []*string{\n\t\t\t\t\t\tjsii.String(\"docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION\"),\n\t\t\t\t\t\tjsii.String(\"export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"env\": map[string][]*string{\n\t\t\t\t// save the imageTag environment variable as a CodePipeline Variable\n\t\t\t\t\"exported-variables\": []*string{\n\t\t\t\t\tjsii.String(\"imageTag\"),\n\t\t\t\t},\n\t\t\t},\n\t\t}),\n\t\tenvironmentVariables: map[string]buildEnvironmentVariable{\n\t\t\t\"REPOSITORY_URI\": &buildEnvironmentVariable{\n\t\t\t\t\"value\": appEcrRepo.repositoryUri,\n\t\t\t},\n\t\t},\n\t})\n\t// needed for `docker push`\n\tappEcrRepo.grantPullPush(appCodeDockerBuild)\n\t// create the ContainerImage used for the ECS application Stack\n\tthis.tagParameterContainerImage = ecs.NewTagParameterContainerImage(appEcrRepo)\n\n\tcdkCodeBuild := codebuild.NewPipelineProject(this, jsii.String(\"CdkCodeBuildProject\"), &pipelineProjectProps{\n\t\tbuildSpec: codebuild.*buildSpec.fromObject(map[string]interface{}{\n\t\t\t\"version\": jsii.String(\"0.2\"),\n\t\t\t\"phases\": map[string]map[string][]*string{\n\t\t\t\t\"install\": map[string][]*string{\n\t\t\t\t\t\"commands\": []*string{\n\t\t\t\t\t\tjsii.String(\"npm install\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\"build\": map[string][]*string{\n\t\t\t\t\t\"commands\": []*string{\n\t\t\t\t\t\tjsii.String(\"npx cdk synth --verbose\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\t\"artifacts\": map[string]*string{\n\t\t\t\t// store the entire Cloud Assembly as the output artifact\n\t\t\t\t\"base-directory\": jsii.String(\"cdk.out\"),\n\t\t\t\t\"files\": jsii.String(\"**/*\"),\n\t\t\t},\n\t\t}),\n\t})\n\n\t/* ********** Pipeline part **************** */\n\n\tappCodeSourceOutput := codepipeline.NewArtifact()\n\tcdkCodeSourceOutput := codepipeline.NewArtifact()\n\tcdkCodeBuildOutput := codepipeline.NewArtifact()\n\tappCodeBuildAction := codepipeline_actions.NewCodeBuildAction(&codeBuildActionProps{\n\t\tactionName: jsii.String(\"AppCodeDockerImageBuildAndPush\"),\n\t\tproject: appCodeDockerBuild,\n\t\tinput: appCodeSourceOutput,\n\t})\n\tcodepipeline.NewPipeline(this, jsii.String(\"CodePipelineDeployingEcsApplication\"), &pipelineProps{\n\t\tartifactBucket: s3.NewBucket(this, jsii.String(\"ArtifactBucket\"), &bucketProps{\n\t\t\tremovalPolicy: cdk.removalPolicy_DESTROY,\n\t\t}),\n\t\tstages: []stageProps{\n\t\t\t&stageProps{\n\t\t\t\tstageName: jsii.String(\"Source\"),\n\t\t\t\tactions: []iAction{\n\t\t\t\t\t// this is the Action that takes the source of your application code\n\t\t\t\t\tcodepipeline_actions.NewCodeCommitSourceAction(&codeCommitSourceActionProps{\n\t\t\t\t\t\tactionName: jsii.String(\"AppCodeSource\"),\n\t\t\t\t\t\trepository: codecommit.NewRepository(this, jsii.String(\"AppCodeSourceRepository\"), &repositoryProps{\n\t\t\t\t\t\t\trepositoryName: jsii.String(\"AppCodeSourceRepository\"),\n\t\t\t\t\t\t}),\n\t\t\t\t\t\toutput: appCodeSourceOutput,\n\t\t\t\t\t}),\n\t\t\t\t\t// this is the Action that takes the source of your CDK code\n\t\t\t\t\t// (which would probably include this Pipeline code as well)\n\t\t\t\t\tcodepipeline_actions.NewCodeCommitSourceAction(&codeCommitSourceActionProps{\n\t\t\t\t\t\tactionName: jsii.String(\"CdkCodeSource\"),\n\t\t\t\t\t\trepository: codecommit.NewRepository(this, jsii.String(\"CdkCodeSourceRepository\"), &repositoryProps{\n\t\t\t\t\t\t\trepositoryName: jsii.String(\"CdkCodeSourceRepository\"),\n\t\t\t\t\t\t}),\n\t\t\t\t\t\toutput: cdkCodeSourceOutput,\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t},\n\t\t\t&stageProps{\n\t\t\t\tstageName: jsii.String(\"Build\"),\n\t\t\t\tactions: []*iAction{\n\t\t\t\t\tappCodeBuildAction,\n\t\t\t\t\tcodepipeline_actions.NewCodeBuildAction(&codeBuildActionProps{\n\t\t\t\t\t\tactionName: jsii.String(\"CdkCodeBuildAndSynth\"),\n\t\t\t\t\t\tproject: cdkCodeBuild,\n\t\t\t\t\t\tinput: cdkCodeSourceOutput,\n\t\t\t\t\t\toutputs: []artifact{\n\t\t\t\t\t\t\tcdkCodeBuildOutput,\n\t\t\t\t\t\t},\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t},\n\t\t\t&stageProps{\n\t\t\t\tstageName: jsii.String(\"Deploy\"),\n\t\t\t\tactions: []*iAction{\n\t\t\t\t\tcodepipeline_actions.NewCloudFormationCreateUpdateStackAction(&cloudFormationCreateUpdateStackActionProps{\n\t\t\t\t\t\tactionName: jsii.String(\"CFN_Deploy\"),\n\t\t\t\t\t\tstackName: jsii.String(\"SampleEcsStackDeployedFromCodePipeline\"),\n\t\t\t\t\t\t// this name has to be the same name as used below in the CDK code for the application Stack\n\t\t\t\t\t\ttemplatePath: cdkCodeBuildOutput.atPath(jsii.String(\"EcsStackDeployedInPipeline.template.json\")),\n\t\t\t\t\t\tadminPermissions: jsii.Boolean(true),\n\t\t\t\t\t\tparameterOverrides: map[string]interface{}{\n\t\t\t\t\t\t\t// read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step,\n\t\t\t\t\t\t\t// and pass it as the CloudFormation Parameter for the tag\n\t\t\t\t\t\t\tthis.tagParameterContainerImage.tagParameterName: appCodeBuildAction.variable(jsii.String(\"imageTag\")),\n\t\t\t\t\t\t},\n\t\t\t\t\t}),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t})\n\treturn this\n}\n\napp := cdk.NewApp()\n\n// the CodePipeline Stack needs to be created first\npipelineStack := NewPipelineStack(app, jsii.String(\"aws-cdk-pipeline-ecs-separate-sources\"))\n// we supply the image to the ECS application Stack from the CodePipeline Stack\n// we supply the image to the ECS application Stack from the CodePipeline Stack\nNewEcsAppStack(app, jsii.String(\"EcsStackDeployedInPipeline\"), &ecsAppStackProps{\n\timage: pipelineStack.tagParameterContainerImage,\n})",
15574 "version": "1"
15575 },
15576 "$": {
15577 "source": "\n/**\n * These are the construction properties for {@link EcsAppStack}.\n * They extend the standard Stack properties,\n * but also require providing the ContainerImage that the service will use.\n * That Image will be provided from the Stack containing the CodePipeline.\n */\nexport interface EcsAppStackProps extends cdk.StackProps {\n readonly image: ecs.ContainerImage;\n}\n\n/**\n * This is the Stack containing a simple ECS Service that uses the provided ContainerImage.\n */\nexport class EcsAppStack extends cdk.Stack {\n constructor(scope: Construct, id: string, props: EcsAppStackProps) {\n super(scope, id, props);\n\n const taskDefinition = new ecs.TaskDefinition(this, 'TaskDefinition', {\n compatibility: ecs.Compatibility.FARGATE,\n cpu: '1024',\n memoryMiB: '2048',\n });\n taskDefinition.addContainer('AppContainer', {\n image: props.image,\n });\n new ecs.FargateService(this, 'EcsService', {\n taskDefinition,\n cluster: new ecs.Cluster(this, 'Cluster', {\n vpc: new ec2.Vpc(this, 'Vpc', {\n maxAzs: 1,\n }),\n }),\n });\n }\n}\n\n/**\n * This is the Stack containing the CodePipeline definition that deploys an ECS Service.\n */\nexport class PipelineStack extends cdk.Stack {\n public readonly tagParameterContainerImage: ecs.TagParameterContainerImage;\n\n constructor(scope: Construct, id: string, props?: cdk.StackProps) {\n super(scope, id, props);\n\n /* ********** ECS part **************** */\n\n // this is the ECR repository where the built Docker image will be pushed\n const appEcrRepo = new ecr.Repository(this, 'EcsDeployRepository');\n // the build that creates the Docker image, and pushes it to the ECR repo\n const appCodeDockerBuild = new codebuild.PipelineProject(this, 'AppCodeDockerImageBuildAndPushProject', {\n environment: {\n // we need to run Docker\n privileged: true,\n },\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: [\n // login to ECR first\n '$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)',\n // if your application needs any build steps, they would be invoked here\n\n // build the image, and tag it with the commit hash\n // (CODEBUILD_RESOLVED_SOURCE_VERSION is a special environment variable available in CodeBuild)\n 'docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .',\n ],\n },\n post_build: {\n commands: [\n // push the built image into the ECR repository\n 'docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION',\n // save the declared tag as an environment variable,\n // that is then exported below in the 'exported-variables' section as a CodePipeline Variable\n 'export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION',\n ],\n },\n },\n env: {\n // save the imageTag environment variable as a CodePipeline Variable\n 'exported-variables': [\n 'imageTag',\n ],\n },\n }),\n environmentVariables: {\n REPOSITORY_URI: {\n value: appEcrRepo.repositoryUri,\n },\n },\n });\n // needed for `docker push`\n appEcrRepo.grantPullPush(appCodeDockerBuild);\n // create the ContainerImage used for the ECS application Stack\n this.tagParameterContainerImage = new ecs.TagParameterContainerImage(appEcrRepo);\n\n const cdkCodeBuild = new codebuild.PipelineProject(this, 'CdkCodeBuildProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n install: {\n commands: [\n 'npm install',\n ],\n },\n build: {\n commands: [\n // synthesize the CDK code for the ECS application Stack\n 'npx cdk synth --verbose',\n ],\n },\n },\n artifacts: {\n // store the entire Cloud Assembly as the output artifact\n 'base-directory': 'cdk.out',\n 'files': '**/*',\n },\n }),\n });\n\n /* ********** Pipeline part **************** */\n\n const appCodeSourceOutput = new codepipeline.Artifact();\n const cdkCodeSourceOutput = new codepipeline.Artifact();\n const cdkCodeBuildOutput = new codepipeline.Artifact();\n const appCodeBuildAction = new codepipeline_actions.CodeBuildAction({\n actionName: 'AppCodeDockerImageBuildAndPush',\n project: appCodeDockerBuild,\n input: appCodeSourceOutput,\n });\n new codepipeline.Pipeline(this, 'CodePipelineDeployingEcsApplication', {\n artifactBucket: new s3.Bucket(this, 'ArtifactBucket', {\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n }),\n stages: [\n {\n stageName: 'Source',\n actions: [\n // this is the Action that takes the source of your application code\n new codepipeline_actions.CodeCommitSourceAction({\n actionName: 'AppCodeSource',\n repository: new codecommit.Repository(this, 'AppCodeSourceRepository', { repositoryName: 'AppCodeSourceRepository' }),\n output: appCodeSourceOutput,\n }),\n // this is the Action that takes the source of your CDK code\n // (which would probably include this Pipeline code as well)\n new codepipeline_actions.CodeCommitSourceAction({\n actionName: 'CdkCodeSource',\n repository: new codecommit.Repository(this, 'CdkCodeSourceRepository', { repositoryName: 'CdkCodeSourceRepository' }),\n output: cdkCodeSourceOutput,\n }),\n ],\n },\n {\n stageName: 'Build',\n actions: [\n appCodeBuildAction,\n new codepipeline_actions.CodeBuildAction({\n actionName: 'CdkCodeBuildAndSynth',\n project: cdkCodeBuild,\n input: cdkCodeSourceOutput,\n outputs: [cdkCodeBuildOutput],\n }),\n ],\n },\n {\n stageName: 'Deploy',\n actions: [\n new codepipeline_actions.CloudFormationCreateUpdateStackAction({\n actionName: 'CFN_Deploy',\n stackName: 'SampleEcsStackDeployedFromCodePipeline',\n // this name has to be the same name as used below in the CDK code for the application Stack\n templatePath: cdkCodeBuildOutput.atPath('EcsStackDeployedInPipeline.template.json'),\n adminPermissions: true,\n parameterOverrides: {\n // read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step,\n // and pass it as the CloudFormation Parameter for the tag\n [this.tagParameterContainerImage.tagParameterName]: appCodeBuildAction.variable('imageTag'),\n },\n }),\n ],\n },\n ],\n });\n }\n}\n\nconst app = new cdk.App();\n\n// the CodePipeline Stack needs to be created first\nconst pipelineStack = new PipelineStack(app, 'aws-cdk-pipeline-ecs-separate-sources');\n// we supply the image to the ECS application Stack from the CodePipeline Stack\nnew EcsAppStack(app, 'EcsStackDeployedInPipeline', {\n image: pipelineStack.tagParameterContainerImage,\n});",
15578 "version": "0"
15579 }
15580 },
15581 "location": {
15582 "api": {
15583 "api": "type",
15584 "fqn": "@aws-cdk/aws-ecs.TagParameterContainerImage"
15585 },
15586 "field": {
15587 "field": "example"
15588 }
15589 },
15590 "didCompile": true,
15591 "fqnsReferenced": [
15592 "@aws-cdk/aws-codebuild.BuildEnvironment",
15593 "@aws-cdk/aws-codebuild.BuildEnvironmentVariable",
15594 "@aws-cdk/aws-codebuild.BuildSpec",
15595 "@aws-cdk/aws-codebuild.BuildSpec#fromObject",
15596 "@aws-cdk/aws-codebuild.IProject",
15597 "@aws-cdk/aws-codebuild.PipelineProject",
15598 "@aws-cdk/aws-codebuild.PipelineProjectProps",
15599 "@aws-cdk/aws-codecommit.IRepository",
15600 "@aws-cdk/aws-codecommit.Repository",
15601 "@aws-cdk/aws-codecommit.RepositoryProps",
15602 "@aws-cdk/aws-codepipeline-actions.CloudFormationCreateUpdateStackAction",
15603 "@aws-cdk/aws-codepipeline-actions.CloudFormationCreateUpdateStackActionProps",
15604 "@aws-cdk/aws-codepipeline-actions.CodeBuildAction",
15605 "@aws-cdk/aws-codepipeline-actions.CodeBuildAction#variable",
15606 "@aws-cdk/aws-codepipeline-actions.CodeBuildActionProps",
15607 "@aws-cdk/aws-codepipeline-actions.CodeCommitSourceAction",
15608 "@aws-cdk/aws-codepipeline-actions.CodeCommitSourceActionProps",
15609 "@aws-cdk/aws-codepipeline.Artifact",
15610 "@aws-cdk/aws-codepipeline.Artifact#atPath",
15611 "@aws-cdk/aws-codepipeline.ArtifactPath",
15612 "@aws-cdk/aws-codepipeline.Pipeline",
15613 "@aws-cdk/aws-codepipeline.PipelineProps",
15614 "@aws-cdk/aws-ec2.IVpc",
15615 "@aws-cdk/aws-ec2.Vpc",
15616 "@aws-cdk/aws-ec2.VpcProps",
15617 "@aws-cdk/aws-ecr.IRepository",
15618 "@aws-cdk/aws-ecr.Repository",
15619 "@aws-cdk/aws-ecr.RepositoryBase#grantPullPush",
15620 "@aws-cdk/aws-ecs.Cluster",
15621 "@aws-cdk/aws-ecs.ClusterProps",
15622 "@aws-cdk/aws-ecs.Compatibility",
15623 "@aws-cdk/aws-ecs.Compatibility#FARGATE",
15624 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
15625 "@aws-cdk/aws-ecs.ContainerImage",
15626 "@aws-cdk/aws-ecs.FargateService",
15627 "@aws-cdk/aws-ecs.FargateServiceProps",
15628 "@aws-cdk/aws-ecs.ICluster",
15629 "@aws-cdk/aws-ecs.TagParameterContainerImage",
15630 "@aws-cdk/aws-ecs.TaskDefinition",
15631 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
15632 "@aws-cdk/aws-ecs.TaskDefinitionProps",
15633 "@aws-cdk/aws-iam.IGrantable",
15634 "@aws-cdk/aws-s3.Bucket",
15635 "@aws-cdk/aws-s3.BucketProps",
15636 "@aws-cdk/aws-s3.IBucket",
15637 "@aws-cdk/core.App",
15638 "@aws-cdk/core.RemovalPolicy",
15639 "@aws-cdk/core.RemovalPolicy#DESTROY",
15640 "@aws-cdk/core.Stack",
15641 "@aws-cdk/core.StackProps",
15642 "constructs.Construct"
15643 ],
15644 "fullSource": "/// !cdk-integ *\n\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codepipeline from '@aws-cdk/aws-codepipeline';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecr from '@aws-cdk/aws-ecr';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as cdk from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as codepipeline_actions from '../lib';\n\n/**\n * This example demonstrates how to create a CodePipeline that deploys an ECS Service\n * from a different source repository than the source repository of your CDK code.\n * If your application code and your CDK code are in the same repository,\n * use the CDK Pipelines module instead of this method.\n */\n\n/// !show\n\n/**\n * These are the construction properties for {@link EcsAppStack}.\n * They extend the standard Stack properties,\n * but also require providing the ContainerImage that the service will use.\n * That Image will be provided from the Stack containing the CodePipeline.\n */\nexport interface EcsAppStackProps extends cdk.StackProps {\n readonly image: ecs.ContainerImage;\n}\n\n/**\n * This is the Stack containing a simple ECS Service that uses the provided ContainerImage.\n */\nexport class EcsAppStack extends cdk.Stack {\n constructor(scope: Construct, id: string, props: EcsAppStackProps) {\n super(scope, id, props);\n\n const taskDefinition = new ecs.TaskDefinition(this, 'TaskDefinition', {\n compatibility: ecs.Compatibility.FARGATE,\n cpu: '1024',\n memoryMiB: '2048',\n });\n taskDefinition.addContainer('AppContainer', {\n image: props.image,\n });\n new ecs.FargateService(this, 'EcsService', {\n taskDefinition,\n cluster: new ecs.Cluster(this, 'Cluster', {\n vpc: new ec2.Vpc(this, 'Vpc', {\n maxAzs: 1,\n }),\n }),\n });\n }\n}\n\n/**\n * This is the Stack containing the CodePipeline definition that deploys an ECS Service.\n */\nexport class PipelineStack extends cdk.Stack {\n public readonly tagParameterContainerImage: ecs.TagParameterContainerImage;\n\n constructor(scope: Construct, id: string, props?: cdk.StackProps) {\n super(scope, id, props);\n\n /* ********** ECS part **************** */\n\n // this is the ECR repository where the built Docker image will be pushed\n const appEcrRepo = new ecr.Repository(this, 'EcsDeployRepository');\n // the build that creates the Docker image, and pushes it to the ECR repo\n const appCodeDockerBuild = new codebuild.PipelineProject(this, 'AppCodeDockerImageBuildAndPushProject', {\n environment: {\n // we need to run Docker\n privileged: true,\n },\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n build: {\n commands: [\n // login to ECR first\n '$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)',\n // if your application needs any build steps, they would be invoked here\n\n // build the image, and tag it with the commit hash\n // (CODEBUILD_RESOLVED_SOURCE_VERSION is a special environment variable available in CodeBuild)\n 'docker build -t $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION .',\n ],\n },\n post_build: {\n commands: [\n // push the built image into the ECR repository\n 'docker push $REPOSITORY_URI:$CODEBUILD_RESOLVED_SOURCE_VERSION',\n // save the declared tag as an environment variable,\n // that is then exported below in the 'exported-variables' section as a CodePipeline Variable\n 'export imageTag=$CODEBUILD_RESOLVED_SOURCE_VERSION',\n ],\n },\n },\n env: {\n // save the imageTag environment variable as a CodePipeline Variable\n 'exported-variables': [\n 'imageTag',\n ],\n },\n }),\n environmentVariables: {\n REPOSITORY_URI: {\n value: appEcrRepo.repositoryUri,\n },\n },\n });\n // needed for `docker push`\n appEcrRepo.grantPullPush(appCodeDockerBuild);\n // create the ContainerImage used for the ECS application Stack\n this.tagParameterContainerImage = new ecs.TagParameterContainerImage(appEcrRepo);\n\n const cdkCodeBuild = new codebuild.PipelineProject(this, 'CdkCodeBuildProject', {\n buildSpec: codebuild.BuildSpec.fromObject({\n version: '0.2',\n phases: {\n install: {\n commands: [\n 'npm install',\n ],\n },\n build: {\n commands: [\n // synthesize the CDK code for the ECS application Stack\n 'npx cdk synth --verbose',\n ],\n },\n },\n artifacts: {\n // store the entire Cloud Assembly as the output artifact\n 'base-directory': 'cdk.out',\n 'files': '**/*',\n },\n }),\n });\n\n /* ********** Pipeline part **************** */\n\n const appCodeSourceOutput = new codepipeline.Artifact();\n const cdkCodeSourceOutput = new codepipeline.Artifact();\n const cdkCodeBuildOutput = new codepipeline.Artifact();\n const appCodeBuildAction = new codepipeline_actions.CodeBuildAction({\n actionName: 'AppCodeDockerImageBuildAndPush',\n project: appCodeDockerBuild,\n input: appCodeSourceOutput,\n });\n new codepipeline.Pipeline(this, 'CodePipelineDeployingEcsApplication', {\n artifactBucket: new s3.Bucket(this, 'ArtifactBucket', {\n removalPolicy: cdk.RemovalPolicy.DESTROY,\n }),\n stages: [\n {\n stageName: 'Source',\n actions: [\n // this is the Action that takes the source of your application code\n new codepipeline_actions.CodeCommitSourceAction({\n actionName: 'AppCodeSource',\n repository: new codecommit.Repository(this, 'AppCodeSourceRepository', { repositoryName: 'AppCodeSourceRepository' }),\n output: appCodeSourceOutput,\n }),\n // this is the Action that takes the source of your CDK code\n // (which would probably include this Pipeline code as well)\n new codepipeline_actions.CodeCommitSourceAction({\n actionName: 'CdkCodeSource',\n repository: new codecommit.Repository(this, 'CdkCodeSourceRepository', { repositoryName: 'CdkCodeSourceRepository' }),\n output: cdkCodeSourceOutput,\n }),\n ],\n },\n {\n stageName: 'Build',\n actions: [\n appCodeBuildAction,\n new codepipeline_actions.CodeBuildAction({\n actionName: 'CdkCodeBuildAndSynth',\n project: cdkCodeBuild,\n input: cdkCodeSourceOutput,\n outputs: [cdkCodeBuildOutput],\n }),\n ],\n },\n {\n stageName: 'Deploy',\n actions: [\n new codepipeline_actions.CloudFormationCreateUpdateStackAction({\n actionName: 'CFN_Deploy',\n stackName: 'SampleEcsStackDeployedFromCodePipeline',\n // this name has to be the same name as used below in the CDK code for the application Stack\n templatePath: cdkCodeBuildOutput.atPath('EcsStackDeployedInPipeline.template.json'),\n adminPermissions: true,\n parameterOverrides: {\n // read the tag pushed to the ECR repository from the CodePipeline Variable saved by the application build step,\n // and pass it as the CloudFormation Parameter for the tag\n [this.tagParameterContainerImage.tagParameterName]: appCodeBuildAction.variable('imageTag'),\n },\n }),\n ],\n },\n ],\n });\n }\n}\n\nconst app = new cdk.App();\n\n// the CodePipeline Stack needs to be created first\nconst pipelineStack = new PipelineStack(app, 'aws-cdk-pipeline-ecs-separate-sources');\n// we supply the image to the ECS application Stack from the CodePipeline Stack\nnew EcsAppStack(app, 'EcsStackDeployedInPipeline', {\n image: pipelineStack.tagParameterContainerImage,\n});\n/// !hide\n\napp.synth();\n",
15645 "syntaxKindCounter": {
15646 "8": 1,
15647 "10": 43,
15648 "57": 1,
15649 "62": 1,
15650 "75": 186,
15651 "89": 3,
15652 "102": 2,
15653 "104": 13,
15654 "106": 2,
15655 "119": 1,
15656 "138": 2,
15657 "143": 2,
15658 "153": 3,
15659 "154": 1,
15660 "156": 6,
15661 "158": 1,
15662 "159": 1,
15663 "162": 2,
15664 "169": 6,
15665 "192": 10,
15666 "193": 34,
15667 "194": 42,
15668 "196": 8,
15669 "197": 23,
15670 "209": 1,
15671 "216": 3,
15672 "223": 2,
15673 "225": 10,
15674 "226": 8,
15675 "242": 10,
15676 "243": 10,
15677 "245": 2,
15678 "246": 1,
15679 "279": 3,
15680 "281": 62,
15681 "282": 1
15682 },
15683 "fqnsFingerprint": "699e738b16bba11b6ebf5804cbc620286effd745326fa097e13994eb5690fdbb"
15684 },
15685 "7512f9b8a303c34ad44e16122038d8994d69941d9b00c0478adbdeccc4f4de0e": {
15686 "translations": {
15687 "python": {
15688 "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# vpc: ec2.Vpc\n\nservice = ecs.FargateService(self, \"Service\", cluster=cluster, task_definition=task_definition)\n\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\", vpc=vpc, internet_facing=True)\nlistener = lb.add_listener(\"Listener\", port=80)\nservice.register_load_balancer_targets(\n container_name=\"web\",\n container_port=80,\n new_target_group_id=\"ECS\",\n listener=ecs.ListenerConfig.application_listener(listener,\n protocol=elbv2.ApplicationProtocol.HTTPS\n )\n)",
15689 "version": "2"
15690 },
15691 "csharp": {
15692 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = new FargateService(this, \"Service\", new FargateServiceProps { Cluster = cluster, TaskDefinition = taskDefinition });\n\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps { Vpc = vpc, InternetFacing = true });\nApplicationListener listener = lb.AddListener(\"Listener\", new BaseApplicationListenerProps { Port = 80 });\nservice.RegisterLoadBalancerTargets(new EcsTarget {\n ContainerName = \"web\",\n ContainerPort = 80,\n NewTargetGroupId = \"ECS\",\n Listener = ListenerConfig.ApplicationListener(listener, new AddApplicationTargetsProps {\n Protocol = ApplicationProtocol.HTTPS\n })\n});",
15693 "version": "1"
15694 },
15695 "java": {
15696 "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nVpc vpc;\n\nFargateService service = FargateService.Builder.create(this, \"Service\").cluster(cluster).taskDefinition(taskDefinition).build();\n\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\").vpc(vpc).internetFacing(true).build();\nApplicationListener listener = lb.addListener(\"Listener\", BaseApplicationListenerProps.builder().port(80).build());\nservice.registerLoadBalancerTargets(EcsTarget.builder()\n .containerName(\"web\")\n .containerPort(80)\n .newTargetGroupId(\"ECS\")\n .listener(ListenerConfig.applicationListener(listener, AddApplicationTargetsProps.builder()\n .protocol(ApplicationProtocol.HTTPS)\n .build()))\n .build());",
15697 "version": "1"
15698 },
15699 "go": {
15700 "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar vpc vpc\n\nservice := ecs.NewFargateService(this, jsii.String(\"Service\"), &fargateServiceProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n})\n\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\nlistener := lb.addListener(jsii.String(\"Listener\"), &baseApplicationListenerProps{\n\tport: jsii.Number(80),\n})\nservice.registerLoadBalancerTargets(&ecsTarget{\n\tcontainerName: jsii.String(\"web\"),\n\tcontainerPort: jsii.Number(80),\n\tnewTargetGroupId: jsii.String(\"ECS\"),\n\tlistener: ecs.listenerConfig.applicationListener(listener, &addApplicationTargetsProps{\n\t\tprotocol: elbv2.applicationProtocol_HTTPS,\n\t}),\n})",
15701 "version": "1"
15702 },
15703 "$": {
15704 "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);",
15705 "version": "0"
15706 }
15707 },
15708 "location": {
15709 "api": {
15710 "api": "type",
15711 "fqn": "@aws-cdk/aws-ecs.TaskDefinition"
15712 },
15713 "field": {
15714 "field": "example"
15715 }
15716 },
15717 "didCompile": true,
15718 "fqnsReferenced": [
15719 "@aws-cdk/aws-ec2.IVpc",
15720 "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
15721 "@aws-cdk/aws-ecs.EcsTarget",
15722 "@aws-cdk/aws-ecs.FargateService",
15723 "@aws-cdk/aws-ecs.FargateServiceProps",
15724 "@aws-cdk/aws-ecs.ICluster",
15725 "@aws-cdk/aws-ecs.ListenerConfig",
15726 "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
15727 "@aws-cdk/aws-ecs.TaskDefinition",
15728 "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
15729 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
15730 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
15731 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
15732 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
15733 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
15734 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
15735 "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
15736 "constructs.Construct"
15737 ],
15738 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst service = new ecs.FargateService(this, 'Service', { cluster, taskDefinition });\n\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing: true });\nconst listener = lb.addListener('Listener', { port: 80 });\nservice.registerLoadBalancerTargets(\n {\n containerName: 'web',\n containerPort: 80,\n newTargetGroupId: 'ECS',\n listener: ecs.ListenerConfig.applicationListener(listener, {\n protocol: elbv2.ApplicationProtocol.HTTPS\n }),\n },\n);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
15739 "syntaxKindCounter": {
15740 "8": 2,
15741 "10": 5,
15742 "75": 37,
15743 "104": 2,
15744 "106": 1,
15745 "130": 3,
15746 "153": 3,
15747 "169": 3,
15748 "193": 5,
15749 "194": 8,
15750 "196": 3,
15751 "197": 2,
15752 "225": 6,
15753 "226": 1,
15754 "242": 6,
15755 "243": 6,
15756 "281": 7,
15757 "282": 3,
15758 "290": 1
15759 },
15760 "fqnsFingerprint": "08744ff53889df1f5a881e6043b941376aaa4fd1f99b9043f7e52335832ac36a"
15761 },
15762 "13e1719a8b22581f71017a9677040ef9059a296781dae519e8ef778f1cbd9340": {
15763 "translations": {
15764 "python": {
15765 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.aws_iam as iam\n\n# role: iam.Role\n\ntask_definition_attributes = ecs.TaskDefinitionAttributes(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n compatibility=ecs.Compatibility.EC2,\n network_mode=ecs.NetworkMode.NONE,\n task_role=role\n)",
15766 "version": "2"
15767 },
15768 "csharp": {
15769 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nRole role;\n\nTaskDefinitionAttributes taskDefinitionAttributes = new TaskDefinitionAttributes {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n Compatibility = Compatibility.EC2,\n NetworkMode = NetworkMode.NONE,\n TaskRole = role\n};",
15770 "version": "1"
15771 },
15772 "java": {
15773 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nTaskDefinitionAttributes taskDefinitionAttributes = TaskDefinitionAttributes.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .compatibility(Compatibility.EC2)\n .networkMode(NetworkMode.NONE)\n .taskRole(role)\n .build();",
15774 "version": "1"
15775 },
15776 "go": {
15777 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport iam \"github.com/aws-samples/dummy/awscdkawsiam\"\n\nvar role role\n\ntaskDefinitionAttributes := &taskDefinitionAttributes{\n\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t// the properties below are optional\n\tcompatibility: ecs.compatibility_EC2,\n\tnetworkMode: ecs.networkMode_NONE,\n\ttaskRole: role,\n}",
15778 "version": "1"
15779 },
15780 "$": {
15781 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\nconst taskDefinitionAttributes: ecs.TaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n compatibility: ecs.Compatibility.EC2,\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};",
15782 "version": "0"
15783 }
15784 },
15785 "location": {
15786 "api": {
15787 "api": "type",
15788 "fqn": "@aws-cdk/aws-ecs.TaskDefinitionAttributes"
15789 },
15790 "field": {
15791 "field": "example"
15792 }
15793 },
15794 "didCompile": true,
15795 "fqnsReferenced": [
15796 "@aws-cdk/aws-ecs.Compatibility",
15797 "@aws-cdk/aws-ecs.Compatibility#EC2",
15798 "@aws-cdk/aws-ecs.NetworkMode",
15799 "@aws-cdk/aws-ecs.NetworkMode#NONE",
15800 "@aws-cdk/aws-ecs.TaskDefinitionAttributes",
15801 "@aws-cdk/aws-iam.IRole"
15802 ],
15803 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\n\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst taskDefinitionAttributes: ecs.TaskDefinitionAttributes = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n compatibility: ecs.Compatibility.EC2,\n networkMode: ecs.NetworkMode.NONE,\n taskRole: role,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15804 "syntaxKindCounter": {
15805 "10": 3,
15806 "75": 19,
15807 "130": 1,
15808 "153": 2,
15809 "169": 2,
15810 "193": 1,
15811 "194": 4,
15812 "225": 2,
15813 "242": 2,
15814 "243": 2,
15815 "254": 2,
15816 "255": 2,
15817 "256": 2,
15818 "281": 4,
15819 "290": 1
15820 },
15821 "fqnsFingerprint": "68fadd79000b4ba5dacd84a53dde0ea3839c196fe7e01a33450bea3f12c35b31"
15822 },
15823 "7861e0ebb2bb496e6597655448a35c1b418d2821e9a07c681ef7c45e08f244ee": {
15824 "translations": {
15825 "python": {
15826 "source": "vpc = ec2.Vpc.from_lookup(self, \"Vpc\",\n is_default=True\n)\n\ncluster = ecs.Cluster(self, \"Ec2Cluster\", vpc=vpc)\ncluster.add_capacity(\"DefaultAutoScalingGroup\",\n instance_type=ec2.InstanceType(\"t2.micro\"),\n vpc_subnets=ec2.SubnetSelection(subnet_type=ec2.SubnetType.PUBLIC)\n)\n\ntask_definition = ecs.TaskDefinition(self, \"TD\",\n compatibility=ecs.Compatibility.EC2\n)\n\ntask_definition.add_container(\"TheContainer\",\n image=ecs.ContainerImage.from_registry(\"foo/bar\"),\n memory_limit_mi_b=256\n)\n\nrun_task = tasks.EcsRunTask(self, \"Run\",\n integration_pattern=sfn.IntegrationPattern.RUN_JOB,\n cluster=cluster,\n task_definition=task_definition,\n launch_target=tasks.EcsEc2LaunchTarget(\n placement_strategies=[\n ecs.PlacementStrategy.spread_across_instances(),\n ecs.PlacementStrategy.packed_by_cpu(),\n ecs.PlacementStrategy.randomly()\n ],\n placement_constraints=[\n ecs.PlacementConstraint.member_of(\"blieptuut\")\n ]\n )\n)",
15827 "version": "2"
15828 },
15829 "csharp": {
15830 "source": "IVpc vpc = Vpc.FromLookup(this, \"Vpc\", new VpcLookupOptions {\n IsDefault = true\n});\n\nCluster cluster = new Cluster(this, \"Ec2Cluster\", new ClusterProps { Vpc = vpc });\ncluster.AddCapacity(\"DefaultAutoScalingGroup\", new AddCapacityOptions {\n InstanceType = new InstanceType(\"t2.micro\"),\n VpcSubnets = new SubnetSelection { SubnetType = SubnetType.PUBLIC }\n});\n\nTaskDefinition taskDefinition = new TaskDefinition(this, \"TD\", new TaskDefinitionProps {\n Compatibility = Compatibility.EC2\n});\n\ntaskDefinition.AddContainer(\"TheContainer\", new ContainerDefinitionOptions {\n Image = ContainerImage.FromRegistry(\"foo/bar\"),\n MemoryLimitMiB = 256\n});\n\nEcsRunTask runTask = new EcsRunTask(this, \"Run\", new EcsRunTaskProps {\n IntegrationPattern = IntegrationPattern.RUN_JOB,\n Cluster = cluster,\n TaskDefinition = taskDefinition,\n LaunchTarget = new EcsEc2LaunchTarget(new EcsEc2LaunchTargetOptions {\n PlacementStrategies = new [] { PlacementStrategy.SpreadAcrossInstances(), PlacementStrategy.PackedByCpu(), PlacementStrategy.Randomly() },\n PlacementConstraints = new [] { PlacementConstraint.MemberOf(\"blieptuut\") }\n })\n});",
15831 "version": "1"
15832 },
15833 "java": {
15834 "source": "IVpc vpc = Vpc.fromLookup(this, \"Vpc\", VpcLookupOptions.builder()\n .isDefault(true)\n .build());\n\nCluster cluster = Cluster.Builder.create(this, \"Ec2Cluster\").vpc(vpc).build();\ncluster.addCapacity(\"DefaultAutoScalingGroup\", AddCapacityOptions.builder()\n .instanceType(new InstanceType(\"t2.micro\"))\n .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())\n .build());\n\nTaskDefinition taskDefinition = TaskDefinition.Builder.create(this, \"TD\")\n .compatibility(Compatibility.EC2)\n .build();\n\ntaskDefinition.addContainer(\"TheContainer\", ContainerDefinitionOptions.builder()\n .image(ContainerImage.fromRegistry(\"foo/bar\"))\n .memoryLimitMiB(256)\n .build());\n\nEcsRunTask runTask = EcsRunTask.Builder.create(this, \"Run\")\n .integrationPattern(IntegrationPattern.RUN_JOB)\n .cluster(cluster)\n .taskDefinition(taskDefinition)\n .launchTarget(EcsEc2LaunchTarget.Builder.create()\n .placementStrategies(List.of(PlacementStrategy.spreadAcrossInstances(), PlacementStrategy.packedByCpu(), PlacementStrategy.randomly()))\n .placementConstraints(List.of(PlacementConstraint.memberOf(\"blieptuut\")))\n .build())\n .build();",
15835 "version": "1"
15836 },
15837 "go": {
15838 "source": "vpc := ec2.vpc.fromLookup(this, jsii.String(\"Vpc\"), &vpcLookupOptions{\n\tisDefault: jsii.Boolean(true),\n})\n\ncluster := ecs.NewCluster(this, jsii.String(\"Ec2Cluster\"), &clusterProps{\n\tvpc: vpc,\n})\ncluster.addCapacity(jsii.String(\"DefaultAutoScalingGroup\"), &addCapacityOptions{\n\tinstanceType: ec2.NewInstanceType(jsii.String(\"t2.micro\")),\n\tvpcSubnets: &subnetSelection{\n\t\tsubnetType: ec2.subnetType_PUBLIC,\n\t},\n})\n\ntaskDefinition := ecs.NewTaskDefinition(this, jsii.String(\"TD\"), &taskDefinitionProps{\n\tcompatibility: ecs.compatibility_EC2,\n})\n\ntaskDefinition.addContainer(jsii.String(\"TheContainer\"), &containerDefinitionOptions{\n\timage: ecs.containerImage.fromRegistry(jsii.String(\"foo/bar\")),\n\tmemoryLimitMiB: jsii.Number(256),\n})\n\nrunTask := tasks.NewEcsRunTask(this, jsii.String(\"Run\"), &ecsRunTaskProps{\n\tintegrationPattern: sfn.integrationPattern_RUN_JOB,\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\tlaunchTarget: tasks.NewEcsEc2LaunchTarget(&ecsEc2LaunchTargetOptions{\n\t\tplacementStrategies: []placementStrategy{\n\t\t\tecs.*placementStrategy.spreadAcrossInstances(),\n\t\t\tecs.*placementStrategy.packedByCpu(),\n\t\t\tecs.*placementStrategy.randomly(),\n\t\t},\n\t\tplacementConstraints: []placementConstraint{\n\t\t\tecs.*placementConstraint.memberOf(jsii.String(\"blieptuut\")),\n\t\t},\n\t}),\n})",
15839 "version": "1"
15840 },
15841 "$": {
15842 "source": "const vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});",
15843 "version": "0"
15844 }
15845 },
15846 "location": {
15847 "api": {
15848 "api": "type",
15849 "fqn": "@aws-cdk/aws-ecs.TaskDefinitionProps"
15850 },
15851 "field": {
15852 "field": "example"
15853 }
15854 },
15855 "didCompile": true,
15856 "fqnsReferenced": [
15857 "@aws-cdk/aws-ec2.IVpc",
15858 "@aws-cdk/aws-ec2.InstanceType",
15859 "@aws-cdk/aws-ec2.SubnetSelection",
15860 "@aws-cdk/aws-ec2.SubnetType",
15861 "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
15862 "@aws-cdk/aws-ec2.Vpc",
15863 "@aws-cdk/aws-ec2.Vpc#fromLookup",
15864 "@aws-cdk/aws-ec2.VpcLookupOptions",
15865 "@aws-cdk/aws-ecs.AddCapacityOptions",
15866 "@aws-cdk/aws-ecs.Cluster",
15867 "@aws-cdk/aws-ecs.Cluster#addCapacity",
15868 "@aws-cdk/aws-ecs.ClusterProps",
15869 "@aws-cdk/aws-ecs.Compatibility",
15870 "@aws-cdk/aws-ecs.Compatibility#EC2",
15871 "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
15872 "@aws-cdk/aws-ecs.ContainerImage",
15873 "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
15874 "@aws-cdk/aws-ecs.ICluster",
15875 "@aws-cdk/aws-ecs.PlacementConstraint",
15876 "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
15877 "@aws-cdk/aws-ecs.PlacementStrategy",
15878 "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
15879 "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
15880 "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
15881 "@aws-cdk/aws-ecs.TaskDefinition",
15882 "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
15883 "@aws-cdk/aws-ecs.TaskDefinitionProps",
15884 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
15885 "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
15886 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
15887 "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
15888 "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
15889 "@aws-cdk/aws-stepfunctions.IntegrationPattern",
15890 "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
15891 "constructs.Construct"
15892 ],
15893 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, Size, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as dynamodb from '@aws-cdk/aws-dynamodb';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as tasks from '@aws-cdk/aws-stepfunctions-tasks';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst vpc = ec2.Vpc.fromLookup(this, 'Vpc', {\n isDefault: true,\n});\n\nconst cluster = new ecs.Cluster(this, 'Ec2Cluster', { vpc });\ncluster.addCapacity('DefaultAutoScalingGroup', {\n instanceType: new ec2.InstanceType('t2.micro'),\n vpcSubnets: { subnetType: ec2.SubnetType.PUBLIC },\n});\n\nconst taskDefinition = new ecs.TaskDefinition(this, 'TD', {\n compatibility: ecs.Compatibility.EC2,\n});\n\ntaskDefinition.addContainer('TheContainer', {\n image: ecs.ContainerImage.fromRegistry('foo/bar'),\n memoryLimitMiB: 256,\n});\n\nconst runTask = new tasks.EcsRunTask(this, 'Run', {\n integrationPattern: sfn.IntegrationPattern.RUN_JOB,\n cluster,\n taskDefinition,\n launchTarget: new tasks.EcsEc2LaunchTarget({\n placementStrategies: [\n ecs.PlacementStrategy.spreadAcrossInstances(),\n ecs.PlacementStrategy.packedByCpu(),\n ecs.PlacementStrategy.randomly(),\n ],\n placementConstraints: [\n ecs.PlacementConstraint.memberOf('blieptuut'),\n ],\n }),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
15894 "syntaxKindCounter": {
15895 "8": 1,
15896 "10": 9,
15897 "75": 59,
15898 "104": 4,
15899 "106": 1,
15900 "192": 2,
15901 "193": 8,
15902 "194": 25,
15903 "196": 8,
15904 "197": 5,
15905 "225": 4,
15906 "226": 2,
15907 "242": 4,
15908 "243": 4,
15909 "281": 11,
15910 "282": 3
15911 },
15912 "fqnsFingerprint": "7c4cfea5d71f37296088c696c03af6d0292b86c8ee199f3bcfd0cb71632cc12c"
15913 },
15914 "77c1ab7cdc4052250cd617cecbf933cecd8a995e2613927b4469a0e6f474ea2e": {
15915 "translations": {
15916 "python": {
15917 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\ntmpfs = ecs.Tmpfs(\n container_path=\"containerPath\",\n size=123,\n\n # the properties below are optional\n mount_options=[ecs.TmpfsMountOption.DEFAULTS]\n)",
15918 "version": "2"
15919 },
15920 "csharp": {
15921 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nTmpfs tmpfs = new Tmpfs {\n ContainerPath = \"containerPath\",\n Size = 123,\n\n // the properties below are optional\n MountOptions = new [] { TmpfsMountOption.DEFAULTS }\n};",
15922 "version": "1"
15923 },
15924 "java": {
15925 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nTmpfs tmpfs = Tmpfs.builder()\n .containerPath(\"containerPath\")\n .size(123)\n\n // the properties below are optional\n .mountOptions(List.of(TmpfsMountOption.DEFAULTS))\n .build();",
15926 "version": "1"
15927 },
15928 "go": {
15929 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\ntmpfs := &tmpfs{\n\tcontainerPath: jsii.String(\"containerPath\"),\n\tsize: jsii.Number(123),\n\n\t// the properties below are optional\n\tmountOptions: []tmpfsMountOption{\n\t\tecs.*tmpfsMountOption_DEFAULTS,\n\t},\n}",
15930 "version": "1"
15931 },
15932 "$": {
15933 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst tmpfs: ecs.Tmpfs = {\n containerPath: 'containerPath',\n size: 123,\n\n // the properties below are optional\n mountOptions: [ecs.TmpfsMountOption.DEFAULTS],\n};",
15934 "version": "0"
15935 }
15936 },
15937 "location": {
15938 "api": {
15939 "api": "type",
15940 "fqn": "@aws-cdk/aws-ecs.Tmpfs"
15941 },
15942 "field": {
15943 "field": "example"
15944 }
15945 },
15946 "didCompile": true,
15947 "fqnsReferenced": [
15948 "@aws-cdk/aws-ecs.Tmpfs",
15949 "@aws-cdk/aws-ecs.TmpfsMountOption",
15950 "@aws-cdk/aws-ecs.TmpfsMountOption#DEFAULTS"
15951 ],
15952 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst tmpfs: ecs.Tmpfs = {\n containerPath: 'containerPath',\n size: 123,\n\n // the properties below are optional\n mountOptions: [ecs.TmpfsMountOption.DEFAULTS],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
15953 "syntaxKindCounter": {
15954 "8": 1,
15955 "10": 2,
15956 "75": 10,
15957 "153": 1,
15958 "169": 1,
15959 "192": 1,
15960 "193": 1,
15961 "194": 2,
15962 "225": 1,
15963 "242": 1,
15964 "243": 1,
15965 "254": 1,
15966 "255": 1,
15967 "256": 1,
15968 "281": 3,
15969 "290": 1
15970 },
15971 "fqnsFingerprint": "7e10be199a65956f63aae3b4f8a97950e7e7d8f9942113cdf3902d36fb3c1163"
15972 },
15973 "a6b26ec544c07593da7e5b83405210b2df983b3a898fff406491ef791a19f676": {
15974 "translations": {
15975 "python": {
15976 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudwatch as cloudwatch\nimport aws_cdk.aws_ecs as ecs\nimport aws_cdk.core as cdk\n\n# metric: cloudwatch.Metric\n\ntrack_custom_metric_props = ecs.TrackCustomMetricProps(\n metric=metric,\n target_value=123,\n\n # the properties below are optional\n disable_scale_in=False,\n policy_name=\"policyName\",\n scale_in_cooldown=cdk.Duration.minutes(30),\n scale_out_cooldown=cdk.Duration.minutes(30)\n)",
15977 "version": "2"
15978 },
15979 "csharp": {
15980 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudWatch;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK;\n\nMetric metric;\nTrackCustomMetricProps trackCustomMetricProps = new TrackCustomMetricProps {\n Metric = metric,\n TargetValue = 123,\n\n // the properties below are optional\n DisableScaleIn = false,\n PolicyName = \"policyName\",\n ScaleInCooldown = Duration.Minutes(30),\n ScaleOutCooldown = Duration.Minutes(30)\n};",
15981 "version": "1"
15982 },
15983 "java": {
15984 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudwatch.*;\nimport software.amazon.awscdk.services.ecs.*;\nimport software.amazon.awscdk.core.*;\n\nMetric metric;\n\nTrackCustomMetricProps trackCustomMetricProps = TrackCustomMetricProps.builder()\n .metric(metric)\n .targetValue(123)\n\n // the properties below are optional\n .disableScaleIn(false)\n .policyName(\"policyName\")\n .scaleInCooldown(Duration.minutes(30))\n .scaleOutCooldown(Duration.minutes(30))\n .build();",
15985 "version": "1"
15986 },
15987 "go": {
15988 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudwatch \"github.com/aws-samples/dummy/awscdkawscloudwatch\"\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar metric metric\n\ntrackCustomMetricProps := &trackCustomMetricProps{\n\tmetric: metric,\n\ttargetValue: jsii.Number(123),\n\n\t// the properties below are optional\n\tdisableScaleIn: jsii.Boolean(false),\n\tpolicyName: jsii.String(\"policyName\"),\n\tscaleInCooldown: cdk.duration.minutes(jsii.Number(30)),\n\tscaleOutCooldown: cdk.*duration.minutes(jsii.Number(30)),\n}",
15989 "version": "1"
15990 },
15991 "$": {
15992 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudwatch from '@aws-cdk/aws-cloudwatch';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const metric: cloudwatch.Metric;\nconst trackCustomMetricProps: ecs.TrackCustomMetricProps = {\n metric: metric,\n targetValue: 123,\n\n // the properties below are optional\n disableScaleIn: false,\n policyName: 'policyName',\n scaleInCooldown: cdk.Duration.minutes(30),\n scaleOutCooldown: cdk.Duration.minutes(30),\n};",
15993 "version": "0"
15994 }
15995 },
15996 "location": {
15997 "api": {
15998 "api": "type",
15999 "fqn": "@aws-cdk/aws-ecs.TrackCustomMetricProps"
16000 },
16001 "field": {
16002 "field": "example"
16003 }
16004 },
16005 "didCompile": true,
16006 "fqnsReferenced": [
16007 "@aws-cdk/aws-cloudwatch.IMetric",
16008 "@aws-cdk/aws-ecs.TrackCustomMetricProps",
16009 "@aws-cdk/core.Duration",
16010 "@aws-cdk/core.Duration#minutes"
16011 ],
16012 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudwatch from '@aws-cdk/aws-cloudwatch';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const metric: cloudwatch.Metric;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst trackCustomMetricProps: ecs.TrackCustomMetricProps = {\n metric: metric,\n targetValue: 123,\n\n // the properties below are optional\n disableScaleIn: false,\n policyName: 'policyName',\n scaleInCooldown: cdk.Duration.minutes(30),\n scaleOutCooldown: cdk.Duration.minutes(30),\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
16013 "syntaxKindCounter": {
16014 "8": 3,
16015 "10": 4,
16016 "75": 22,
16017 "91": 1,
16018 "130": 1,
16019 "153": 2,
16020 "169": 2,
16021 "193": 1,
16022 "194": 4,
16023 "196": 2,
16024 "225": 2,
16025 "242": 2,
16026 "243": 2,
16027 "254": 3,
16028 "255": 3,
16029 "256": 3,
16030 "281": 6,
16031 "290": 1
16032 },
16033 "fqnsFingerprint": "92c5e1647f54af8edcbff451db680a6e6f5a513a0427e5674353cd5d01d898e1"
16034 },
16035 "2240bd65deb49e34b31608bea0122912b62a3819a01aa4e1b7d77aa92105b21e": {
16036 "translations": {
16037 "python": {
16038 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nulimit = ecs.Ulimit(\n hard_limit=123,\n name=ecs.UlimitName.CORE,\n soft_limit=123\n)",
16039 "version": "2"
16040 },
16041 "csharp": {
16042 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nUlimit ulimit = new Ulimit {\n HardLimit = 123,\n Name = UlimitName.CORE,\n SoftLimit = 123\n};",
16043 "version": "1"
16044 },
16045 "java": {
16046 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nUlimit ulimit = Ulimit.builder()\n .hardLimit(123)\n .name(UlimitName.CORE)\n .softLimit(123)\n .build();",
16047 "version": "1"
16048 },
16049 "go": {
16050 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nulimit := &ulimit{\n\thardLimit: jsii.Number(123),\n\tname: ecs.ulimitName_CORE,\n\tsoftLimit: jsii.Number(123),\n}",
16051 "version": "1"
16052 },
16053 "$": {
16054 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst ulimit: ecs.Ulimit = {\n hardLimit: 123,\n name: ecs.UlimitName.CORE,\n softLimit: 123,\n};",
16055 "version": "0"
16056 }
16057 },
16058 "location": {
16059 "api": {
16060 "api": "type",
16061 "fqn": "@aws-cdk/aws-ecs.Ulimit"
16062 },
16063 "field": {
16064 "field": "example"
16065 }
16066 },
16067 "didCompile": true,
16068 "fqnsReferenced": [
16069 "@aws-cdk/aws-ecs.Ulimit",
16070 "@aws-cdk/aws-ecs.UlimitName",
16071 "@aws-cdk/aws-ecs.UlimitName#CORE"
16072 ],
16073 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ulimit: ecs.Ulimit = {\n hardLimit: 123,\n name: ecs.UlimitName.CORE,\n softLimit: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
16074 "syntaxKindCounter": {
16075 "8": 2,
16076 "10": 1,
16077 "75": 10,
16078 "153": 1,
16079 "169": 1,
16080 "193": 1,
16081 "194": 2,
16082 "225": 1,
16083 "242": 1,
16084 "243": 1,
16085 "254": 1,
16086 "255": 1,
16087 "256": 1,
16088 "281": 3,
16089 "290": 1
16090 },
16091 "fqnsFingerprint": "3e8eb111f4d966ed7a05b88f774d484d3cd6fbaa1230ab0c8ce38b9aaf904ac3"
16092 },
16093 "1a347d12ea4f4b2bee314bdc87d7eaed9307c6c094d8b7731827846e357d98f3": {
16094 "translations": {
16095 "python": {
16096 "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)\nvolume = {\n # Use an Elastic FileSystem\n \"name\": \"mydatavolume\",\n \"efs_volume_configuration\": {\n \"file_system_id\": \"EFS\"\n }\n}\n\ncontainer = fargate_task_definition.add_volume(volume)",
16097 "version": "2"
16098 },
16099 "csharp": {
16100 "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});\nIDictionary<string, object> volume = new Dictionary<string, object> {\n // Use an Elastic FileSystem\n { \"name\", \"mydatavolume\" },\n { \"efsVolumeConfiguration\", new Dictionary<string, string> {\n { \"fileSystemId\", \"EFS\" }\n } }\n};\n\nvoid container = fargateTaskDefinition.AddVolume(volume);",
16101 "version": "1"
16102 },
16103 "java": {
16104 "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();\nMap<String, Object> volume = Map.of(\n // Use an Elastic FileSystem\n \"name\", \"mydatavolume\",\n \"efsVolumeConfiguration\", Map.of(\n \"fileSystemId\", \"EFS\"));\n\nvoid container = fargateTaskDefinition.addVolume(volume);",
16105 "version": "1"
16106 },
16107 "go": {
16108 "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})\nvolume := map[string]interface{}{\n\t// Use an Elastic FileSystem\n\t\"name\": jsii.String(\"mydatavolume\"),\n\t\"efsVolumeConfiguration\": map[string]*string{\n\t\t\"fileSystemId\": jsii.String(\"EFS\"),\n\t},\n}\n\ncontainer := fargateTaskDefinition.addVolume(volume)",
16109 "version": "1"
16110 },
16111 "$": {
16112 "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst volume = {\n // Use an Elastic FileSystem\n name: \"mydatavolume\",\n efsVolumeConfiguration: {\n fileSystemId: \"EFS\",\n // ... other options here ...\n },\n};\n\nconst container = fargateTaskDefinition.addVolume(volume);",
16113 "version": "0"
16114 }
16115 },
16116 "location": {
16117 "api": {
16118 "api": "type",
16119 "fqn": "@aws-cdk/aws-ecs.Volume"
16120 },
16121 "field": {
16122 "field": "example"
16123 }
16124 },
16125 "didCompile": true,
16126 "fqnsReferenced": [
16127 "@aws-cdk/aws-ecs.FargateTaskDefinition",
16128 "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
16129 "@aws-cdk/aws-ecs.TaskDefinition#addVolume",
16130 "@aws-cdk/aws-ecs.Volume",
16131 "constructs.Construct"
16132 ],
16133 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { SecretValue, Stack } from '@aws-cdk/core';\nimport autoscaling = require('@aws-cdk/aws-autoscaling');\nimport cloudmap = require('@aws-cdk/aws-servicediscovery');\nimport ecs = require('@aws-cdk/aws-ecs');\nimport ec2 = require('@aws-cdk/aws-ec2');\nimport elb = require('@aws-cdk/aws-elasticloadbalancing');\nimport elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2');\nimport events = require('@aws-cdk/aws-events');\nimport kms = require('@aws-cdk/aws-kms');\nimport logs = require('@aws-cdk/aws-logs');\nimport s3 = require('@aws-cdk/aws-s3');\nimport secretsmanager = require('@aws-cdk/aws-secretsmanager');\nimport ssm = require('@aws-cdk/aws-ssm');\nimport targets = require('@aws-cdk/aws-events-targets');\nimport path = require('path');\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});\nconst volume = {\n // Use an Elastic FileSystem\n name: \"mydatavolume\",\n efsVolumeConfiguration: {\n fileSystemId: \"EFS\",\n // ... other options here ...\n },\n};\n\nconst container = fargateTaskDefinition.addVolume(volume);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
16134 "syntaxKindCounter": {
16135 "8": 2,
16136 "10": 3,
16137 "75": 13,
16138 "104": 1,
16139 "193": 3,
16140 "194": 2,
16141 "196": 1,
16142 "197": 1,
16143 "225": 3,
16144 "242": 3,
16145 "243": 3,
16146 "281": 5
16147 },
16148 "fqnsFingerprint": "86488bc0375fcbf205ec25877d955eb78dde5e6455f39e511eafe86acd675896"
16149 },
16150 "1a082d0a39ae3bc2b08c7a57ae274363b5ae32a12be52b8ad0fa01e0a91750bd": {
16151 "translations": {
16152 "python": {
16153 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_ecs as ecs\n\nvolume_from = ecs.VolumeFrom(\n read_only=False,\n source_container=\"sourceContainer\"\n)",
16154 "version": "2"
16155 },
16156 "csharp": {
16157 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.ECS;\n\nVolumeFrom volumeFrom = new VolumeFrom {\n ReadOnly = false,\n SourceContainer = \"sourceContainer\"\n};",
16158 "version": "1"
16159 },
16160 "java": {
16161 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.ecs.*;\n\nVolumeFrom volumeFrom = VolumeFrom.builder()\n .readOnly(false)\n .sourceContainer(\"sourceContainer\")\n .build();",
16162 "version": "1"
16163 },
16164 "go": {
16165 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport ecs \"github.com/aws-samples/dummy/awscdkawsecs\"\n\nvolumeFrom := &volumeFrom{\n\treadOnly: jsii.Boolean(false),\n\tsourceContainer: jsii.String(\"sourceContainer\"),\n}",
16166 "version": "1"
16167 },
16168 "$": {
16169 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\nconst volumeFrom: ecs.VolumeFrom = {\n readOnly: false,\n sourceContainer: 'sourceContainer',\n};",
16170 "version": "0"
16171 }
16172 },
16173 "location": {
16174 "api": {
16175 "api": "type",
16176 "fqn": "@aws-cdk/aws-ecs.VolumeFrom"
16177 },
16178 "field": {
16179 "field": "example"
16180 }
16181 },
16182 "didCompile": true,
16183 "fqnsReferenced": [
16184 "@aws-cdk/aws-ecs.VolumeFrom"
16185 ],
16186 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as ecs from '@aws-cdk/aws-ecs';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst volumeFrom: ecs.VolumeFrom = {\n readOnly: false,\n sourceContainer: 'sourceContainer',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
16187 "syntaxKindCounter": {
16188 "10": 2,
16189 "75": 6,
16190 "91": 1,
16191 "153": 1,
16192 "169": 1,
16193 "193": 1,
16194 "225": 1,
16195 "242": 1,
16196 "243": 1,
16197 "254": 1,
16198 "255": 1,
16199 "256": 1,
16200 "281": 2,
16201 "290": 1
16202 },
16203 "fqnsFingerprint": "b0510c1314f3bd4fdabeadf69bdf6d93f8499e5257bce505e099886c357d21da"
16204 }
16205 }
16206}