1 | {
|
2 | "version": "2",
|
3 | "toolVersion": "1.60.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": "7c804f75b964fd4b9e0d9abad6b00f0bb7d2eb8685c053ea6f0a6acf71ddb6d4"
|
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": "cf2b0280017858c914627d4bbdc6b61b26a846c3dde27ab1394e7e53415229c5"
|
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": "9f149830cb7f3b3af530ce1cc1f122b66d3d2bed65f7eb8a51a34572575adcf1"
|
191 | },
|
192 | "8430417a661796828b530ad96f46dffc2c9dadf923ba5f1771e28966dca94704": {
|
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\ncapacity_provider = ecs.AsgCapacityProvider(self, \"AsgCapacityProvider\",\n auto_scaling_group=auto_scaling_group\n)\ncluster.add_asg_capacity_provider(capacity_provider)",
|
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\nAsgCapacityProvider capacityProvider = new AsgCapacityProvider(this, \"AsgCapacityProvider\", new AsgCapacityProviderProps {\n AutoScalingGroup = autoScalingGroup\n});\ncluster.AddAsgCapacityProvider(capacityProvider);",
|
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\nAsgCapacityProvider capacityProvider = AsgCapacityProvider.Builder.create(this, \"AsgCapacityProvider\")\n .autoScalingGroup(autoScalingGroup)\n .build();\ncluster.addAsgCapacityProvider(capacityProvider);",
|
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\ncapacityProvider := ecs.NewAsgCapacityProvider(this, jsii.String(\"AsgCapacityProvider\"), &asgCapacityProviderProps{\n\tautoScalingGroup: autoScalingGroup,\n})\ncluster.addAsgCapacityProvider(capacityProvider)",
|
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\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);",
|
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-autoscaling.IAutoScalingGroup",
|
230 | "@aws-cdk/aws-ec2.IMachineImage",
|
231 | "@aws-cdk/aws-ec2.IVpc",
|
232 | "@aws-cdk/aws-ec2.InstanceType",
|
233 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
234 | "@aws-cdk/aws-ecs.AsgCapacityProvider",
|
235 | "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
|
236 | "@aws-cdk/aws-ecs.Cluster",
|
237 | "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
|
238 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
239 | "@aws-cdk/aws-ecs.ClusterProps",
|
240 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
241 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
|
242 | "constructs.Construct"
|
243 | ],
|
244 | "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\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
245 | "syntaxKindCounter": {
|
246 | "8": 2,
|
247 | "10": 6,
|
248 | "75": 32,
|
249 | "104": 3,
|
250 | "130": 1,
|
251 | "153": 1,
|
252 | "169": 1,
|
253 | "193": 4,
|
254 | "194": 9,
|
255 | "196": 3,
|
256 | "197": 5,
|
257 | "225": 4,
|
258 | "226": 2,
|
259 | "242": 4,
|
260 | "243": 4,
|
261 | "281": 5,
|
262 | "282": 3,
|
263 | "290": 1
|
264 | },
|
265 | "fqnsFingerprint": "0739ad13a3819b05fb43f7b79dc55f4bf95fcb3d17d0935522c86b10488c4228"
|
266 | },
|
267 | "00471cdcbafcff42bd1b016db774055e9fb4a0c3ec03e93bc10e985be876d2f9": {
|
268 | "translations": {
|
269 | "python": {
|
270 | "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)",
|
271 | "version": "2"
|
272 | },
|
273 | "csharp": {
|
274 | "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});",
|
275 | "version": "1"
|
276 | },
|
277 | "java": {
|
278 | "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();",
|
279 | "version": "1"
|
280 | },
|
281 | "go": {
|
282 | "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})",
|
283 | "version": "1"
|
284 | },
|
285 | "$": {
|
286 | "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});",
|
287 | "version": "0"
|
288 | }
|
289 | },
|
290 | "location": {
|
291 | "api": {
|
292 | "api": "moduleReadme",
|
293 | "moduleFqn": "@aws-cdk/aws-ecs"
|
294 | },
|
295 | "field": {
|
296 | "field": "markdown",
|
297 | "line": 161
|
298 | }
|
299 | },
|
300 | "didCompile": true,
|
301 | "fqnsReferenced": [
|
302 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
303 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
304 | "@aws-cdk/aws-ec2.IMachineImage",
|
305 | "@aws-cdk/aws-ec2.IVpc",
|
306 | "@aws-cdk/aws-ec2.InstanceType",
|
307 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
308 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
|
309 | "@aws-cdk/aws-ecs.EcsOptimizedImageOptions",
|
310 | "constructs.Construct"
|
311 | ],
|
312 | "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",
|
313 | "syntaxKindCounter": {
|
314 | "10": 2,
|
315 | "75": 15,
|
316 | "104": 1,
|
317 | "106": 1,
|
318 | "130": 1,
|
319 | "153": 1,
|
320 | "169": 1,
|
321 | "193": 2,
|
322 | "194": 4,
|
323 | "196": 1,
|
324 | "197": 2,
|
325 | "225": 2,
|
326 | "242": 2,
|
327 | "243": 2,
|
328 | "281": 3,
|
329 | "282": 1,
|
330 | "290": 1
|
331 | },
|
332 | "fqnsFingerprint": "37f60a3aa6025ed8642a2f6ec9c4eedac8b529c8b8a0fae1c5d632c832f57f79"
|
333 | },
|
334 | "121007239be1194e23fd944eec608101cae029f6c9952b50622f624318feebf8": {
|
335 | "translations": {
|
336 | "python": {
|
337 | "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)",
|
338 | "version": "2"
|
339 | },
|
340 | "csharp": {
|
341 | "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});",
|
342 | "version": "1"
|
343 | },
|
344 | "java": {
|
345 | "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());",
|
346 | "version": "1"
|
347 | },
|
348 | "go": {
|
349 | "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})",
|
350 | "version": "1"
|
351 | },
|
352 | "$": {
|
353 | "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});",
|
354 | "version": "0"
|
355 | }
|
356 | },
|
357 | "location": {
|
358 | "api": {
|
359 | "api": "moduleReadme",
|
360 | "moduleFqn": "@aws-cdk/aws-ecs"
|
361 | },
|
362 | "field": {
|
363 | "field": "markdown",
|
364 | "line": 179
|
365 | }
|
366 | },
|
367 | "didCompile": true,
|
368 | "fqnsReferenced": [
|
369 | "@aws-cdk/aws-ec2.IMachineImage",
|
370 | "@aws-cdk/aws-ec2.InstanceType",
|
371 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
372 | "@aws-cdk/aws-ecs.BottleRocketImage",
|
373 | "@aws-cdk/aws-ecs.Cluster#addCapacity"
|
374 | ],
|
375 | "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",
|
376 | "syntaxKindCounter": {
|
377 | "8": 1,
|
378 | "10": 2,
|
379 | "75": 12,
|
380 | "130": 1,
|
381 | "153": 1,
|
382 | "169": 1,
|
383 | "193": 1,
|
384 | "194": 3,
|
385 | "196": 1,
|
386 | "197": 2,
|
387 | "225": 1,
|
388 | "226": 1,
|
389 | "242": 1,
|
390 | "243": 1,
|
391 | "281": 3,
|
392 | "290": 1
|
393 | },
|
394 | "fqnsFingerprint": "b8554841fa48237100424144dc8f52d978e4802d4e2a2f829eace1989b903e9a"
|
395 | },
|
396 | "617f46cc0f772b3e05233dc1b103f5072a60d5882f8c0e638a9d381818d98583": {
|
397 | "translations": {
|
398 | "python": {
|
399 | "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)",
|
400 | "version": "2"
|
401 | },
|
402 | "csharp": {
|
403 | "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});",
|
404 | "version": "1"
|
405 | },
|
406 | "java": {
|
407 | "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());",
|
408 | "version": "1"
|
409 | },
|
410 | "go": {
|
411 | "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})",
|
412 | "version": "1"
|
413 | },
|
414 | "$": {
|
415 | "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});",
|
416 | "version": "0"
|
417 | }
|
418 | },
|
419 | "location": {
|
420 | "api": {
|
421 | "api": "moduleReadme",
|
422 | "moduleFqn": "@aws-cdk/aws-ecs"
|
423 | },
|
424 | "field": {
|
425 | "field": "markdown",
|
426 | "line": 196
|
427 | }
|
428 | },
|
429 | "didCompile": true,
|
430 | "fqnsReferenced": [
|
431 | "@aws-cdk/aws-ec2.IMachineImage",
|
432 | "@aws-cdk/aws-ec2.InstanceType",
|
433 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
434 | "@aws-cdk/aws-ecs.AmiHardwareType",
|
435 | "@aws-cdk/aws-ecs.AmiHardwareType#ARM",
|
436 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
437 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
438 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2"
|
439 | ],
|
440 | "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",
|
441 | "syntaxKindCounter": {
|
442 | "8": 1,
|
443 | "10": 2,
|
444 | "75": 16,
|
445 | "130": 1,
|
446 | "153": 1,
|
447 | "169": 1,
|
448 | "193": 1,
|
449 | "194": 6,
|
450 | "196": 2,
|
451 | "197": 1,
|
452 | "225": 1,
|
453 | "226": 1,
|
454 | "242": 1,
|
455 | "243": 1,
|
456 | "281": 3,
|
457 | "290": 1
|
458 | },
|
459 | "fqnsFingerprint": "d7e155212e00aa5ae13f6992b7c2ba8309bc04b2d9102190ec6d0da942f0c56e"
|
460 | },
|
461 | "5db6bf91e6482b9a5286f7036c9f951d7de11f8b2a8fea10171cf690bdbe98ef": {
|
462 | "translations": {
|
463 | "python": {
|
464 | "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)",
|
465 | "version": "2"
|
466 | },
|
467 | "csharp": {
|
468 | "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});",
|
469 | "version": "1"
|
470 | },
|
471 | "java": {
|
472 | "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());",
|
473 | "version": "1"
|
474 | },
|
475 | "go": {
|
476 | "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})",
|
477 | "version": "1"
|
478 | },
|
479 | "$": {
|
480 | "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});",
|
481 | "version": "0"
|
482 | }
|
483 | },
|
484 | "location": {
|
485 | "api": {
|
486 | "api": "moduleReadme",
|
487 | "moduleFqn": "@aws-cdk/aws-ecs"
|
488 | },
|
489 | "field": {
|
490 | "field": "markdown",
|
491 | "line": 208
|
492 | }
|
493 | },
|
494 | "didCompile": true,
|
495 | "fqnsReferenced": [
|
496 | "@aws-cdk/aws-ec2.InstanceType",
|
497 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
498 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
499 | "@aws-cdk/aws-ecs.MachineImageType",
|
500 | "@aws-cdk/aws-ecs.MachineImageType#BOTTLEROCKET"
|
501 | ],
|
502 | "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",
|
503 | "syntaxKindCounter": {
|
504 | "8": 1,
|
505 | "10": 2,
|
506 | "75": 13,
|
507 | "130": 1,
|
508 | "153": 1,
|
509 | "169": 1,
|
510 | "193": 1,
|
511 | "194": 4,
|
512 | "196": 1,
|
513 | "197": 1,
|
514 | "225": 1,
|
515 | "226": 1,
|
516 | "242": 1,
|
517 | "243": 1,
|
518 | "281": 3,
|
519 | "290": 1
|
520 | },
|
521 | "fqnsFingerprint": "d99ffcc96d4b3e0e92521d5ee475cd49febe66ecfeef321435004e8ff9ee7066"
|
522 | },
|
523 | "1bb9cfdd26f05f212a90917efd32f414bd3c3e440a45a9723cc5886e54f527b8": {
|
524 | "translations": {
|
525 | "python": {
|
526 | "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)",
|
527 | "version": "2"
|
528 | },
|
529 | "csharp": {
|
530 | "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});",
|
531 | "version": "1"
|
532 | },
|
533 | "java": {
|
534 | "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());",
|
535 | "version": "1"
|
536 | },
|
537 | "go": {
|
538 | "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})",
|
539 | "version": "1"
|
540 | },
|
541 | "$": {
|
542 | "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});",
|
543 | "version": "0"
|
544 | }
|
545 | },
|
546 | "location": {
|
547 | "api": {
|
548 | "api": "moduleReadme",
|
549 | "moduleFqn": "@aws-cdk/aws-ecs"
|
550 | },
|
551 | "field": {
|
552 | "field": "markdown",
|
553 | "line": 222
|
554 | }
|
555 | },
|
556 | "didCompile": true,
|
557 | "fqnsReferenced": [
|
558 | "@aws-cdk/aws-ec2.InstanceType",
|
559 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
560 | "@aws-cdk/aws-ecs.Cluster#addCapacity"
|
561 | ],
|
562 | "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",
|
563 | "syntaxKindCounter": {
|
564 | "8": 3,
|
565 | "10": 3,
|
566 | "75": 13,
|
567 | "106": 1,
|
568 | "130": 1,
|
569 | "153": 1,
|
570 | "169": 1,
|
571 | "193": 1,
|
572 | "194": 2,
|
573 | "196": 1,
|
574 | "197": 1,
|
575 | "225": 1,
|
576 | "226": 1,
|
577 | "242": 1,
|
578 | "243": 1,
|
579 | "281": 6,
|
580 | "290": 1
|
581 | },
|
582 | "fqnsFingerprint": "182be3d18763dd57b5c19bfcd5a6224558bd7e1ab3cd98ad8624847cf986494e"
|
583 | },
|
584 | "9160d872aa0e50f4fd6737806775c28b280ac47895a3eea288872a9714be1bae": {
|
585 | "translations": {
|
586 | "python": {
|
587 | "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)",
|
588 | "version": "2"
|
589 | },
|
590 | "csharp": {
|
591 | "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});",
|
592 | "version": "1"
|
593 | },
|
594 | "java": {
|
595 | "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());",
|
596 | "version": "1"
|
597 | },
|
598 | "go": {
|
599 | "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})",
|
600 | "version": "1"
|
601 | },
|
602 | "$": {
|
603 | "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});",
|
604 | "version": "0"
|
605 | }
|
606 | },
|
607 | "location": {
|
608 | "api": {
|
609 | "api": "moduleReadme",
|
610 | "moduleFqn": "@aws-cdk/aws-ecs"
|
611 | },
|
612 | "field": {
|
613 | "field": "markdown",
|
614 | "line": 244
|
615 | }
|
616 | },
|
617 | "didCompile": true,
|
618 | "fqnsReferenced": [
|
619 | "@aws-cdk/aws-ec2.InstanceType",
|
620 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
621 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
622 | "@aws-cdk/aws-kms.IKey"
|
623 | ],
|
624 | "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",
|
625 | "syntaxKindCounter": {
|
626 | "8": 1,
|
627 | "10": 2,
|
628 | "75": 14,
|
629 | "130": 2,
|
630 | "153": 2,
|
631 | "169": 2,
|
632 | "193": 1,
|
633 | "194": 2,
|
634 | "196": 1,
|
635 | "197": 1,
|
636 | "225": 2,
|
637 | "226": 1,
|
638 | "242": 2,
|
639 | "243": 2,
|
640 | "281": 3,
|
641 | "290": 1
|
642 | },
|
643 | "fqnsFingerprint": "b138f169227ed9c0cbb3cd6b05603ca0c04fea82c4eb34d4774f39329f90f482"
|
644 | },
|
645 | "698e45bf0b8b2a82b165279ebc980100a0ff997bf6120bc5625912c513742012": {
|
646 | "translations": {
|
647 | "python": {
|
648 | "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256\n)",
|
649 | "version": "2"
|
650 | },
|
651 | "csharp": {
|
652 | "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256\n});",
|
653 | "version": "1"
|
654 | },
|
655 | "java": {
|
656 | "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .build();",
|
657 | "version": "1"
|
658 | },
|
659 | "go": {
|
660 | "source": "fargateTaskDefinition := ecs.NewFargateTaskDefinition(this, jsii.String(\"TaskDef\"), &fargateTaskDefinitionProps{\n\tmemoryLimitMiB: jsii.Number(512),\n\tcpu: jsii.Number(256),\n})",
|
661 | "version": "1"
|
662 | },
|
663 | "$": {
|
664 | "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n});",
|
665 | "version": "0"
|
666 | }
|
667 | },
|
668 | "location": {
|
669 | "api": {
|
670 | "api": "moduleReadme",
|
671 | "moduleFqn": "@aws-cdk/aws-ecs"
|
672 | },
|
673 | "field": {
|
674 | "field": "markdown",
|
675 | "line": 271
|
676 | }
|
677 | },
|
678 | "didCompile": true,
|
679 | "fqnsReferenced": [
|
680 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
681 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
682 | "constructs.Construct"
|
683 | ],
|
684 | "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",
|
685 | "syntaxKindCounter": {
|
686 | "8": 2,
|
687 | "10": 1,
|
688 | "75": 5,
|
689 | "104": 1,
|
690 | "193": 1,
|
691 | "194": 1,
|
692 | "197": 1,
|
693 | "225": 1,
|
694 | "242": 1,
|
695 | "243": 1,
|
696 | "281": 2
|
697 | },
|
698 | "fqnsFingerprint": "2a1f019435a419a2f5269db6fd4a74f9f7b83b24739bdd47c3e2a7ffa1ea39a1"
|
699 | },
|
700 | "97126429621d8f886e480e83bc2d80b113c1284b7e6223d272dc48028210ed23": {
|
701 | "translations": {
|
702 | "python": {
|
703 | "source": "fargate_task_definition = ecs.FargateTaskDefinition(self, \"TaskDef\",\n memory_limit_mi_b=512,\n cpu=256,\n ephemeral_storage_gi_b=100\n)",
|
704 | "version": "2"
|
705 | },
|
706 | "csharp": {
|
707 | "source": "FargateTaskDefinition fargateTaskDefinition = new FargateTaskDefinition(this, \"TaskDef\", new FargateTaskDefinitionProps {\n MemoryLimitMiB = 512,\n Cpu = 256,\n EphemeralStorageGiB = 100\n});",
|
708 | "version": "1"
|
709 | },
|
710 | "java": {
|
711 | "source": "FargateTaskDefinition fargateTaskDefinition = FargateTaskDefinition.Builder.create(this, \"TaskDef\")\n .memoryLimitMiB(512)\n .cpu(256)\n .ephemeralStorageGiB(100)\n .build();",
|
712 | "version": "1"
|
713 | },
|
714 | "go": {
|
715 | "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})",
|
716 | "version": "1"
|
717 | },
|
718 | "$": {
|
719 | "source": "const fargateTaskDefinition = new ecs.FargateTaskDefinition(this, 'TaskDef', {\n memoryLimitMiB: 512,\n cpu: 256,\n ephemeralStorageGiB: 100,\n});",
|
720 | "version": "0"
|
721 | }
|
722 | },
|
723 | "location": {
|
724 | "api": {
|
725 | "api": "moduleReadme",
|
726 | "moduleFqn": "@aws-cdk/aws-ecs"
|
727 | },
|
728 | "field": {
|
729 | "field": "markdown",
|
730 | "line": 281
|
731 | }
|
732 | },
|
733 | "didCompile": true,
|
734 | "fqnsReferenced": [
|
735 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
736 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
737 | "constructs.Construct"
|
738 | ],
|
739 | "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",
|
740 | "syntaxKindCounter": {
|
741 | "8": 3,
|
742 | "10": 1,
|
743 | "75": 6,
|
744 | "104": 1,
|
745 | "193": 1,
|
746 | "194": 1,
|
747 | "197": 1,
|
748 | "225": 1,
|
749 | "242": 1,
|
750 | "243": 1,
|
751 | "281": 3
|
752 | },
|
753 | "fqnsFingerprint": "2a1f019435a419a2f5269db6fd4a74f9f7b83b24739bdd47c3e2a7ffa1ea39a1"
|
754 | },
|
755 | "d6554b770077ed84ad594117c6f82140fcf6d223a461fef717f1cc5159bbdb34": {
|
756 | "translations": {
|
757 | "python": {
|
758 | "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)",
|
759 | "version": "2"
|
760 | },
|
761 | "csharp": {
|
762 | "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});",
|
763 | "version": "1"
|
764 | },
|
765 | "java": {
|
766 | "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());",
|
767 | "version": "1"
|
768 | },
|
769 | "go": {
|
770 | "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})",
|
771 | "version": "1"
|
772 | },
|
773 | "$": {
|
774 | "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});",
|
775 | "version": "0"
|
776 | }
|
777 | },
|
778 | "location": {
|
779 | "api": {
|
780 | "api": "moduleReadme",
|
781 | "moduleFqn": "@aws-cdk/aws-ecs"
|
782 | },
|
783 | "field": {
|
784 | "field": "markdown",
|
785 | "line": 291
|
786 | }
|
787 | },
|
788 | "didCompile": true,
|
789 | "fqnsReferenced": [
|
790 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
791 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
792 | "@aws-cdk/aws-ecs.ContainerImage",
|
793 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
794 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
795 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
796 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
797 | "constructs.Construct"
|
798 | ],
|
799 | "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",
|
800 | "syntaxKindCounter": {
|
801 | "8": 2,
|
802 | "10": 3,
|
803 | "75": 12,
|
804 | "104": 1,
|
805 | "193": 2,
|
806 | "194": 4,
|
807 | "196": 2,
|
808 | "197": 1,
|
809 | "225": 2,
|
810 | "242": 2,
|
811 | "243": 2,
|
812 | "281": 3
|
813 | },
|
814 | "fqnsFingerprint": "d22c35ca654332d845143a886d0258d76b4e1297ede7d674cd7e9e159587beda"
|
815 | },
|
816 | "5412adb846a43ca4b6449551dfc28013875e657263e8d999f53b98ff5271064d": {
|
817 | "translations": {
|
818 | "python": {
|
819 | "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)",
|
820 | "version": "2"
|
821 | },
|
822 | "csharp": {
|
823 | "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});",
|
824 | "version": "1"
|
825 | },
|
826 | "java": {
|
827 | "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());",
|
828 | "version": "1"
|
829 | },
|
830 | "go": {
|
831 | "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})",
|
832 | "version": "1"
|
833 | },
|
834 | "$": {
|
835 | "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});",
|
836 | "version": "0"
|
837 | }
|
838 | },
|
839 | "location": {
|
840 | "api": {
|
841 | "api": "moduleReadme",
|
842 | "moduleFqn": "@aws-cdk/aws-ecs"
|
843 | },
|
844 | "field": {
|
845 | "field": "markdown",
|
846 | "line": 305
|
847 | }
|
848 | },
|
849 | "didCompile": true,
|
850 | "fqnsReferenced": [
|
851 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
852 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
853 | "@aws-cdk/aws-ecs.ContainerImage",
|
854 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
855 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
856 | "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
|
857 | "@aws-cdk/aws-ecs.NetworkMode",
|
858 | "@aws-cdk/aws-ecs.NetworkMode#BRIDGE",
|
859 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
860 | "constructs.Construct"
|
861 | ],
|
862 | "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",
|
863 | "syntaxKindCounter": {
|
864 | "8": 1,
|
865 | "10": 3,
|
866 | "75": 15,
|
867 | "104": 1,
|
868 | "193": 2,
|
869 | "194": 6,
|
870 | "196": 2,
|
871 | "197": 1,
|
872 | "225": 2,
|
873 | "242": 2,
|
874 | "243": 2,
|
875 | "281": 3
|
876 | },
|
877 | "fqnsFingerprint": "d71886caf7be59125886d6b28e666b9dc1ac30fcfaefd99577179d01db34235f"
|
878 | },
|
879 | "8e8449e5a66be33a53689cc1585e1c53906fdf339f726b5a932589973b760c01": {
|
880 | "translations": {
|
881 | "python": {
|
882 | "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)",
|
883 | "version": "2"
|
884 | },
|
885 | "csharp": {
|
886 | "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});",
|
887 | "version": "1"
|
888 | },
|
889 | "java": {
|
890 | "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());",
|
891 | "version": "1"
|
892 | },
|
893 | "go": {
|
894 | "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})",
|
895 | "version": "1"
|
896 | },
|
897 | "$": {
|
898 | "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});",
|
899 | "version": "0"
|
900 | }
|
901 | },
|
902 | "location": {
|
903 | "api": {
|
904 | "api": "moduleReadme",
|
905 | "moduleFqn": "@aws-cdk/aws-ecs"
|
906 | },
|
907 | "field": {
|
908 | "field": "markdown",
|
909 | "line": 320
|
910 | }
|
911 | },
|
912 | "didCompile": true,
|
913 | "fqnsReferenced": [
|
914 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
915 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
916 | "@aws-cdk/aws-ecs.ContainerImage",
|
917 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
918 | "@aws-cdk/aws-ecs.ExternalTaskDefinition",
|
919 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
920 | "constructs.Construct"
|
921 | ],
|
922 | "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",
|
923 | "syntaxKindCounter": {
|
924 | "8": 1,
|
925 | "10": 3,
|
926 | "75": 11,
|
927 | "104": 1,
|
928 | "193": 1,
|
929 | "194": 4,
|
930 | "196": 2,
|
931 | "197": 1,
|
932 | "225": 2,
|
933 | "242": 2,
|
934 | "243": 2,
|
935 | "281": 2
|
936 | },
|
937 | "fqnsFingerprint": "6bea3ebadfc1c80ba1dc8127b6bb9502eae31d20586271ebc515f24405df2c10"
|
938 | },
|
939 | "4c4be3d143fb5d60d538ca5139c6cb3590084ef71170e941cc8c7efa2ee47d47": {
|
940 | "translations": {
|
941 | "python": {
|
942 | "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)",
|
943 | "version": "2"
|
944 | },
|
945 | "csharp": {
|
946 | "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});",
|
947 | "version": "1"
|
948 | },
|
949 | "java": {
|
950 | "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());",
|
951 | "version": "1"
|
952 | },
|
953 | "go": {
|
954 | "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})",
|
955 | "version": "1"
|
956 | },
|
957 | "$": {
|
958 | "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});",
|
959 | "version": "0"
|
960 | }
|
961 | },
|
962 | "location": {
|
963 | "api": {
|
964 | "api": "moduleReadme",
|
965 | "moduleFqn": "@aws-cdk/aws-ecs"
|
966 | },
|
967 | "field": {
|
968 | "field": "markdown",
|
969 | "line": 335
|
970 | }
|
971 | },
|
972 | "didCompile": true,
|
973 | "fqnsReferenced": [
|
974 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
975 | "@aws-cdk/aws-ecs.ContainerImage",
|
976 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
977 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer"
|
978 | ],
|
979 | "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",
|
980 | "syntaxKindCounter": {
|
981 | "8": 2,
|
982 | "10": 2,
|
983 | "75": 12,
|
984 | "130": 1,
|
985 | "153": 1,
|
986 | "169": 1,
|
987 | "192": 1,
|
988 | "193": 2,
|
989 | "194": 3,
|
990 | "196": 2,
|
991 | "225": 1,
|
992 | "226": 1,
|
993 | "242": 1,
|
994 | "243": 1,
|
995 | "281": 4,
|
996 | "290": 1
|
997 | },
|
998 | "fqnsFingerprint": "61de6855d6f435b3c9e5a630add8a6bfc5474a982c970de8b11ea88878fa538e"
|
999 | },
|
1000 | "120aea3a2de6e7bc6b6373c542fa27abb3f8abb604346ddf1b16e0b8026503ae": {
|
1001 | "translations": {
|
1002 | "python": {
|
1003 | "source": "# container: ecs.ContainerDefinition\n\n\ncontainer.add_port_mappings(\n container_port=3000\n)",
|
1004 | "version": "2"
|
1005 | },
|
1006 | "csharp": {
|
1007 | "source": "ContainerDefinition container;\n\n\ncontainer.AddPortMappings(new PortMapping {\n ContainerPort = 3000\n});",
|
1008 | "version": "1"
|
1009 | },
|
1010 | "java": {
|
1011 | "source": "ContainerDefinition container;\n\n\ncontainer.addPortMappings(PortMapping.builder()\n .containerPort(3000)\n .build());",
|
1012 | "version": "1"
|
1013 | },
|
1014 | "go": {
|
1015 | "source": "var container containerDefinition\n\n\ncontainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(3000),\n})",
|
1016 | "version": "1"
|
1017 | },
|
1018 | "$": {
|
1019 | "source": "declare const container: ecs.ContainerDefinition;\n\ncontainer.addPortMappings({\n containerPort: 3000,\n});",
|
1020 | "version": "0"
|
1021 | }
|
1022 | },
|
1023 | "location": {
|
1024 | "api": {
|
1025 | "api": "moduleReadme",
|
1026 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1027 | },
|
1028 | "field": {
|
1029 | "field": "markdown",
|
1030 | "line": 347
|
1031 | }
|
1032 | },
|
1033 | "didCompile": true,
|
1034 | "fqnsReferenced": [
|
1035 | "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
|
1036 | "@aws-cdk/aws-ecs.PortMapping"
|
1037 | ],
|
1038 | "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",
|
1039 | "syntaxKindCounter": {
|
1040 | "8": 1,
|
1041 | "75": 6,
|
1042 | "130": 1,
|
1043 | "153": 1,
|
1044 | "169": 1,
|
1045 | "193": 1,
|
1046 | "194": 1,
|
1047 | "196": 1,
|
1048 | "225": 1,
|
1049 | "226": 1,
|
1050 | "242": 1,
|
1051 | "243": 1,
|
1052 | "281": 1,
|
1053 | "290": 1
|
1054 | },
|
1055 | "fqnsFingerprint": "2b1381460d33dca05f605d00e2868645bcb73c3bc3f5e7da230cc028b0ec8477"
|
1056 | },
|
1057 | "e87a3180b41545552231bc30602ec12b9ad3a7a64fdf78e289e1adb3f715dcb4": {
|
1058 | "translations": {
|
1059 | "python": {
|
1060 | "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)",
|
1061 | "version": "2"
|
1062 | },
|
1063 | "csharp": {
|
1064 | "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);",
|
1065 | "version": "1"
|
1066 | },
|
1067 | "java": {
|
1068 | "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);",
|
1069 | "version": "1"
|
1070 | },
|
1071 | "go": {
|
1072 | "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)",
|
1073 | "version": "1"
|
1074 | },
|
1075 | "$": {
|
1076 | "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);",
|
1077 | "version": "0"
|
1078 | }
|
1079 | },
|
1080 | "location": {
|
1081 | "api": {
|
1082 | "api": "moduleReadme",
|
1083 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1084 | },
|
1085 | "field": {
|
1086 | "field": "markdown",
|
1087 | "line": 357
|
1088 | }
|
1089 | },
|
1090 | "didCompile": true,
|
1091 | "fqnsReferenced": [
|
1092 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
1093 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
1094 | "@aws-cdk/aws-ecs.TaskDefinition#addVolume",
|
1095 | "@aws-cdk/aws-ecs.Volume",
|
1096 | "constructs.Construct"
|
1097 | ],
|
1098 | "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",
|
1099 | "syntaxKindCounter": {
|
1100 | "8": 2,
|
1101 | "10": 3,
|
1102 | "75": 13,
|
1103 | "104": 1,
|
1104 | "193": 3,
|
1105 | "194": 2,
|
1106 | "196": 1,
|
1107 | "197": 1,
|
1108 | "225": 3,
|
1109 | "242": 3,
|
1110 | "243": 3,
|
1111 | "281": 5
|
1112 | },
|
1113 | "fqnsFingerprint": "8b25c26e9cf64ecc5b32921af7a9de69f4d8ff2c2636aed544240d9fbda393db"
|
1114 | },
|
1115 | "381cf4ed7560075a6242c6766d0374a9b067d968d4aa41a08a31dd91d12c081e": {
|
1116 | "translations": {
|
1117 | "python": {
|
1118 | "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)",
|
1119 | "version": "2"
|
1120 | },
|
1121 | "csharp": {
|
1122 | "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});",
|
1123 | "version": "1"
|
1124 | },
|
1125 | "java": {
|
1126 | "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();",
|
1127 | "version": "1"
|
1128 | },
|
1129 | "go": {
|
1130 | "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})",
|
1131 | "version": "1"
|
1132 | },
|
1133 | "$": {
|
1134 | "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});",
|
1135 | "version": "0"
|
1136 | }
|
1137 | },
|
1138 | "location": {
|
1139 | "api": {
|
1140 | "api": "moduleReadme",
|
1141 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1142 | },
|
1143 | "field": {
|
1144 | "field": "markdown",
|
1145 | "line": 383
|
1146 | }
|
1147 | },
|
1148 | "didCompile": true,
|
1149 | "fqnsReferenced": [
|
1150 | "@aws-cdk/aws-ecs.Compatibility",
|
1151 | "@aws-cdk/aws-ecs.Compatibility#EC2_AND_FARGATE",
|
1152 | "@aws-cdk/aws-ecs.NetworkMode",
|
1153 | "@aws-cdk/aws-ecs.NetworkMode#AWS_VPC",
|
1154 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1155 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
1156 | "constructs.Construct"
|
1157 | ],
|
1158 | "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",
|
1159 | "syntaxKindCounter": {
|
1160 | "10": 3,
|
1161 | "75": 13,
|
1162 | "104": 1,
|
1163 | "193": 1,
|
1164 | "194": 5,
|
1165 | "197": 1,
|
1166 | "225": 1,
|
1167 | "242": 1,
|
1168 | "243": 1,
|
1169 | "281": 4
|
1170 | },
|
1171 | "fqnsFingerprint": "c9e5452b0784bd90d17eb22704156d586c442483c8dda11eca58397c3d4f71f7"
|
1172 | },
|
1173 | "8a8f3d0cf3f5bdde3358986cf4a29c526e0b83bd8a63ee6138b3a9ef202d8f50": {
|
1174 | "translations": {
|
1175 | "python": {
|
1176 | "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\")",
|
1177 | "version": "2"
|
1178 | },
|
1179 | "csharp": {
|
1180 | "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\");",
|
1181 | "version": "1"
|
1182 | },
|
1183 | "java": {
|
1184 | "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\");",
|
1185 | "version": "1"
|
1186 | },
|
1187 | "go": {
|
1188 | "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\"))",
|
1189 | "version": "1"
|
1190 | },
|
1191 | "$": {
|
1192 | "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');",
|
1193 | "version": "0"
|
1194 | }
|
1195 | },
|
1196 | "location": {
|
1197 | "api": {
|
1198 | "api": "moduleReadme",
|
1199 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1200 | },
|
1201 | "field": {
|
1202 | "field": "markdown",
|
1203 | "line": 413
|
1204 | }
|
1205 | },
|
1206 | "didCompile": true,
|
1207 | "fqnsReferenced": [
|
1208 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
1209 | "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
|
1210 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
1211 | "@aws-cdk/aws-ecs.ContainerImage",
|
1212 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
1213 | "@aws-cdk/aws-ecs.EnvironmentFile",
|
1214 | "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
|
1215 | "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
|
1216 | "@aws-cdk/aws-ecs.Secret",
|
1217 | "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
|
1218 | "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
|
1219 | "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
|
1220 | "@aws-cdk/aws-ecs.SecretVersionInfo",
|
1221 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
1222 | "@aws-cdk/aws-s3.IBucket",
|
1223 | "@aws-cdk/aws-secretsmanager.ISecret",
|
1224 | "@aws-cdk/aws-ssm.IParameter"
|
1225 | ],
|
1226 | "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",
|
1227 | "syntaxKindCounter": {
|
1228 | "8": 1,
|
1229 | "10": 10,
|
1230 | "75": 57,
|
1231 | "130": 5,
|
1232 | "153": 5,
|
1233 | "169": 5,
|
1234 | "192": 1,
|
1235 | "193": 4,
|
1236 | "194": 16,
|
1237 | "196": 9,
|
1238 | "225": 6,
|
1239 | "226": 1,
|
1240 | "242": 6,
|
1241 | "243": 6,
|
1242 | "281": 11,
|
1243 | "290": 1
|
1244 | },
|
1245 | "fqnsFingerprint": "d73b3221b714300d28d2955542b6f3c7767a7f5fca1e728e01dbcd444a47dda1"
|
1246 | },
|
1247 | "46fa35a60ce38eabadf852fc67ffaf8e5a3267f03351b49ff17b071820dbd0fe": {
|
1248 | "translations": {
|
1249 | "python": {
|
1250 | "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)",
|
1251 | "version": "2"
|
1252 | },
|
1253 | "csharp": {
|
1254 | "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});",
|
1255 | "version": "1"
|
1256 | },
|
1257 | "java": {
|
1258 | "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());",
|
1259 | "version": "1"
|
1260 | },
|
1261 | "go": {
|
1262 | "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})",
|
1263 | "version": "1"
|
1264 | },
|
1265 | "$": {
|
1266 | "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});",
|
1267 | "version": "0"
|
1268 | }
|
1269 | },
|
1270 | "location": {
|
1271 | "api": {
|
1272 | "api": "moduleReadme",
|
1273 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1274 | },
|
1275 | "field": {
|
1276 | "field": "markdown",
|
1277 | "line": 448
|
1278 | }
|
1279 | },
|
1280 | "didCompile": true,
|
1281 | "fqnsReferenced": [
|
1282 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
1283 | "@aws-cdk/aws-ecs.ContainerImage",
|
1284 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
1285 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer"
|
1286 | ],
|
1287 | "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",
|
1288 | "syntaxKindCounter": {
|
1289 | "8": 1,
|
1290 | "10": 4,
|
1291 | "75": 13,
|
1292 | "130": 1,
|
1293 | "153": 1,
|
1294 | "169": 1,
|
1295 | "192": 1,
|
1296 | "193": 2,
|
1297 | "194": 3,
|
1298 | "196": 2,
|
1299 | "225": 1,
|
1300 | "226": 1,
|
1301 | "242": 1,
|
1302 | "243": 1,
|
1303 | "281": 5,
|
1304 | "290": 1
|
1305 | },
|
1306 | "fqnsFingerprint": "61de6855d6f435b3c9e5a630add8a6bfc5474a982c970de8b11ea88878fa538e"
|
1307 | },
|
1308 | "82da3700a5e641e29829134231456f74d09cb5a0bee457e9fe453cae15e1e2e7": {
|
1309 | "translations": {
|
1310 | "python": {
|
1311 | "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)",
|
1312 | "version": "2"
|
1313 | },
|
1314 | "csharp": {
|
1315 | "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});",
|
1316 | "version": "1"
|
1317 | },
|
1318 | "java": {
|
1319 | "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());",
|
1320 | "version": "1"
|
1321 | },
|
1322 | "go": {
|
1323 | "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})",
|
1324 | "version": "1"
|
1325 | },
|
1326 | "$": {
|
1327 | "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});",
|
1328 | "version": "0"
|
1329 | }
|
1330 | },
|
1331 | "location": {
|
1332 | "api": {
|
1333 | "api": "moduleReadme",
|
1334 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1335 | },
|
1336 | "field": {
|
1337 | "field": "markdown",
|
1338 | "line": 467
|
1339 | }
|
1340 | },
|
1341 | "didCompile": true,
|
1342 | "fqnsReferenced": [
|
1343 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
1344 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
1345 | "@aws-cdk/aws-ecs.ContainerImage",
|
1346 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
1347 | "@aws-cdk/aws-ecs.CpuArchitecture",
|
1348 | "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
|
1349 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
1350 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
1351 | "@aws-cdk/aws-ecs.LogDriver",
|
1352 | "@aws-cdk/aws-ecs.LogDriver#awsLogs",
|
1353 | "@aws-cdk/aws-ecs.OperatingSystemFamily",
|
1354 | "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
|
1355 | "@aws-cdk/aws-ecs.RuntimePlatform",
|
1356 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
1357 | "constructs.Construct"
|
1358 | ],
|
1359 | "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",
|
1360 | "syntaxKindCounter": {
|
1361 | "8": 3,
|
1362 | "10": 4,
|
1363 | "75": 27,
|
1364 | "104": 1,
|
1365 | "192": 1,
|
1366 | "193": 5,
|
1367 | "194": 10,
|
1368 | "196": 3,
|
1369 | "197": 1,
|
1370 | "225": 1,
|
1371 | "226": 1,
|
1372 | "242": 1,
|
1373 | "243": 1,
|
1374 | "281": 10
|
1375 | },
|
1376 | "fqnsFingerprint": "3df3a1e71685e51672ee7a5bb2dec2ef2f5eafa65ee5ae78ee18f76c30fc6c93"
|
1377 | },
|
1378 | "3aaf19f41d2c4dce1d6532142c0c01c5fb4629338557b109e47d8c3b84b6e777": {
|
1379 | "translations": {
|
1380 | "python": {
|
1381 | "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)",
|
1382 | "version": "2"
|
1383 | },
|
1384 | "csharp": {
|
1385 | "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});",
|
1386 | "version": "1"
|
1387 | },
|
1388 | "java": {
|
1389 | "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());",
|
1390 | "version": "1"
|
1391 | },
|
1392 | "go": {
|
1393 | "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})",
|
1394 | "version": "1"
|
1395 | },
|
1396 | "$": {
|
1397 | "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});",
|
1398 | "version": "0"
|
1399 | }
|
1400 | },
|
1401 | "location": {
|
1402 | "api": {
|
1403 | "api": "moduleReadme",
|
1404 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1405 | },
|
1406 | "field": {
|
1407 | "field": "markdown",
|
1408 | "line": 489
|
1409 | }
|
1410 | },
|
1411 | "didCompile": true,
|
1412 | "fqnsReferenced": [
|
1413 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
1414 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
1415 | "@aws-cdk/aws-ecs.ContainerImage",
|
1416 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
1417 | "@aws-cdk/aws-ecs.CpuArchitecture",
|
1418 | "@aws-cdk/aws-ecs.CpuArchitecture#ARM64",
|
1419 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
1420 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
1421 | "@aws-cdk/aws-ecs.LogDriver",
|
1422 | "@aws-cdk/aws-ecs.LogDriver#awsLogs",
|
1423 | "@aws-cdk/aws-ecs.OperatingSystemFamily",
|
1424 | "@aws-cdk/aws-ecs.OperatingSystemFamily#LINUX",
|
1425 | "@aws-cdk/aws-ecs.RuntimePlatform",
|
1426 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
1427 | "constructs.Construct"
|
1428 | ],
|
1429 | "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",
|
1430 | "syntaxKindCounter": {
|
1431 | "8": 3,
|
1432 | "10": 4,
|
1433 | "75": 27,
|
1434 | "104": 1,
|
1435 | "192": 1,
|
1436 | "193": 5,
|
1437 | "194": 10,
|
1438 | "196": 3,
|
1439 | "197": 1,
|
1440 | "225": 1,
|
1441 | "226": 1,
|
1442 | "242": 1,
|
1443 | "243": 1,
|
1444 | "281": 10
|
1445 | },
|
1446 | "fqnsFingerprint": "0224049143e1a69d3aecc7c624f28c783573fb0ca1eef2c0f770562a50053e97"
|
1447 | },
|
1448 | "e8b651d062f2d85d8caf0abe34ab39177209d9438ed2b260a58767b9ca2f66e9": {
|
1449 | "translations": {
|
1450 | "python": {
|
1451 | "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)",
|
1452 | "version": "2"
|
1453 | },
|
1454 | "csharp": {
|
1455 | "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});",
|
1456 | "version": "1"
|
1457 | },
|
1458 | "java": {
|
1459 | "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();",
|
1460 | "version": "1"
|
1461 | },
|
1462 | "go": {
|
1463 | "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})",
|
1464 | "version": "1"
|
1465 | },
|
1466 | "$": {
|
1467 | "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});",
|
1468 | "version": "0"
|
1469 | }
|
1470 | },
|
1471 | "location": {
|
1472 | "api": {
|
1473 | "api": "moduleReadme",
|
1474 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1475 | },
|
1476 | "field": {
|
1477 | "field": "markdown",
|
1478 | "line": 514
|
1479 | }
|
1480 | },
|
1481 | "didCompile": true,
|
1482 | "fqnsReferenced": [
|
1483 | "@aws-cdk/aws-ecs.FargateService",
|
1484 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
1485 | "@aws-cdk/aws-ecs.ICluster",
|
1486 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1487 | "constructs.Construct"
|
1488 | ],
|
1489 | "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",
|
1490 | "syntaxKindCounter": {
|
1491 | "8": 1,
|
1492 | "10": 1,
|
1493 | "75": 12,
|
1494 | "104": 1,
|
1495 | "130": 2,
|
1496 | "153": 2,
|
1497 | "169": 2,
|
1498 | "193": 1,
|
1499 | "194": 1,
|
1500 | "197": 1,
|
1501 | "225": 3,
|
1502 | "242": 3,
|
1503 | "243": 3,
|
1504 | "281": 1,
|
1505 | "282": 2,
|
1506 | "290": 1
|
1507 | },
|
1508 | "fqnsFingerprint": "77b7d804f729964cdda2431e17bd706936bc035e1bc403068f94c02317f81cac"
|
1509 | },
|
1510 | "fd8d2c7ab4906bbd6195ab3071f8e947210298cfea914c93a4a6013a6b1fb127": {
|
1511 | "translations": {
|
1512 | "python": {
|
1513 | "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)",
|
1514 | "version": "2"
|
1515 | },
|
1516 | "csharp": {
|
1517 | "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});",
|
1518 | "version": "1"
|
1519 | },
|
1520 | "java": {
|
1521 | "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();",
|
1522 | "version": "1"
|
1523 | },
|
1524 | "go": {
|
1525 | "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})",
|
1526 | "version": "1"
|
1527 | },
|
1528 | "$": {
|
1529 | "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});",
|
1530 | "version": "0"
|
1531 | }
|
1532 | },
|
1533 | "location": {
|
1534 | "api": {
|
1535 | "api": "moduleReadme",
|
1536 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1537 | },
|
1538 | "field": {
|
1539 | "field": "markdown",
|
1540 | "line": 527
|
1541 | }
|
1542 | },
|
1543 | "didCompile": true,
|
1544 | "fqnsReferenced": [
|
1545 | "@aws-cdk/aws-ecs.ExternalService",
|
1546 | "@aws-cdk/aws-ecs.ExternalServiceProps",
|
1547 | "@aws-cdk/aws-ecs.ICluster",
|
1548 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1549 | "constructs.Construct"
|
1550 | ],
|
1551 | "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",
|
1552 | "syntaxKindCounter": {
|
1553 | "8": 1,
|
1554 | "10": 1,
|
1555 | "75": 12,
|
1556 | "104": 1,
|
1557 | "130": 2,
|
1558 | "153": 2,
|
1559 | "169": 2,
|
1560 | "193": 1,
|
1561 | "194": 1,
|
1562 | "197": 1,
|
1563 | "225": 3,
|
1564 | "242": 3,
|
1565 | "243": 3,
|
1566 | "281": 1,
|
1567 | "282": 2,
|
1568 | "290": 1
|
1569 | },
|
1570 | "fqnsFingerprint": "7d8e185839ce039a8afd1af6b7064ea3cf2e7f71176b7ff73140dfbdd40f3e30"
|
1571 | },
|
1572 | "541db7bbd666c4b4d4f3f2b9fa054683272d4b45a2aad28102096ecb721441b7": {
|
1573 | "translations": {
|
1574 | "python": {
|
1575 | "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)",
|
1576 | "version": "2"
|
1577 | },
|
1578 | "csharp": {
|
1579 | "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});",
|
1580 | "version": "1"
|
1581 | },
|
1582 | "java": {
|
1583 | "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();",
|
1584 | "version": "1"
|
1585 | },
|
1586 | "go": {
|
1587 | "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})",
|
1588 | "version": "1"
|
1589 | },
|
1590 | "$": {
|
1591 | "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});",
|
1592 | "version": "0"
|
1593 | }
|
1594 | },
|
1595 | "location": {
|
1596 | "api": {
|
1597 | "api": "moduleReadme",
|
1598 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1599 | },
|
1600 | "field": {
|
1601 | "field": "markdown",
|
1602 | "line": 548
|
1603 | }
|
1604 | },
|
1605 | "didCompile": true,
|
1606 | "fqnsReferenced": [
|
1607 | "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
|
1608 | "@aws-cdk/aws-ecs.FargateService",
|
1609 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
1610 | "@aws-cdk/aws-ecs.ICluster",
|
1611 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1612 | "constructs.Construct"
|
1613 | ],
|
1614 | "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",
|
1615 | "syntaxKindCounter": {
|
1616 | "10": 1,
|
1617 | "75": 13,
|
1618 | "104": 1,
|
1619 | "106": 1,
|
1620 | "130": 2,
|
1621 | "153": 2,
|
1622 | "169": 2,
|
1623 | "193": 2,
|
1624 | "194": 1,
|
1625 | "197": 1,
|
1626 | "225": 3,
|
1627 | "242": 3,
|
1628 | "243": 3,
|
1629 | "281": 2,
|
1630 | "282": 2,
|
1631 | "290": 1
|
1632 | },
|
1633 | "fqnsFingerprint": "253ed2c52b6ba83cc9b3a3b6acde34ce8cfc995ecd268aa7006fa934227e7734"
|
1634 | },
|
1635 | "d78c73caed034995306b36fcca116cacda4655b2c6957b95ff608f0b2c566d9e": {
|
1636 | "translations": {
|
1637 | "python": {
|
1638 | "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)",
|
1639 | "version": "2"
|
1640 | },
|
1641 | "csharp": {
|
1642 | "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});",
|
1643 | "version": "1"
|
1644 | },
|
1645 | "java": {
|
1646 | "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());",
|
1647 | "version": "1"
|
1648 | },
|
1649 | "go": {
|
1650 | "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})",
|
1651 | "version": "1"
|
1652 | },
|
1653 | "$": {
|
1654 | "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});",
|
1655 | "version": "0"
|
1656 | }
|
1657 | },
|
1658 | "location": {
|
1659 | "api": {
|
1660 | "api": "moduleReadme",
|
1661 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1662 | },
|
1663 | "field": {
|
1664 | "field": "markdown",
|
1665 | "line": 564
|
1666 | }
|
1667 | },
|
1668 | "didCompile": true,
|
1669 | "fqnsReferenced": [
|
1670 | "@aws-cdk/aws-ec2.IVpc",
|
1671 | "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
|
1672 | "@aws-cdk/aws-ecs.FargateService",
|
1673 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
1674 | "@aws-cdk/aws-ecs.ICluster",
|
1675 | "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
|
1676 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1677 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
1678 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
1679 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener#addTargets",
|
1680 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
1681 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
1682 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
1683 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup",
|
1684 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
1685 | "constructs.Construct"
|
1686 | ],
|
1687 | "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",
|
1688 | "syntaxKindCounter": {
|
1689 | "8": 4,
|
1690 | "10": 6,
|
1691 | "75": 38,
|
1692 | "104": 2,
|
1693 | "106": 1,
|
1694 | "130": 3,
|
1695 | "153": 3,
|
1696 | "169": 3,
|
1697 | "192": 2,
|
1698 | "193": 6,
|
1699 | "194": 6,
|
1700 | "196": 4,
|
1701 | "197": 2,
|
1702 | "225": 8,
|
1703 | "242": 8,
|
1704 | "243": 8,
|
1705 | "281": 8,
|
1706 | "282": 3,
|
1707 | "290": 1
|
1708 | },
|
1709 | "fqnsFingerprint": "0094b6766e138956c1dc577096b3da5681a54f6362c56b23fcaba250f67e2a5c"
|
1710 | },
|
1711 | "f0f11321cf1c3065a3c46e8bb539e9860c2297544500dd3febe805f4e907d6b1": {
|
1712 | "translations": {
|
1713 | "python": {
|
1714 | "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)",
|
1715 | "version": "2"
|
1716 | },
|
1717 | "csharp": {
|
1718 | "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});",
|
1719 | "version": "1"
|
1720 | },
|
1721 | "java": {
|
1722 | "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());",
|
1723 | "version": "1"
|
1724 | },
|
1725 | "go": {
|
1726 | "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})",
|
1727 | "version": "1"
|
1728 | },
|
1729 | "$": {
|
1730 | "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);",
|
1731 | "version": "0"
|
1732 | }
|
1733 | },
|
1734 | "location": {
|
1735 | "api": {
|
1736 | "api": "moduleReadme",
|
1737 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1738 | },
|
1739 | "field": {
|
1740 | "field": "markdown",
|
1741 | "line": 591
|
1742 | }
|
1743 | },
|
1744 | "didCompile": true,
|
1745 | "fqnsReferenced": [
|
1746 | "@aws-cdk/aws-ec2.IVpc",
|
1747 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
1748 | "@aws-cdk/aws-ecs.EcsTarget",
|
1749 | "@aws-cdk/aws-ecs.FargateService",
|
1750 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
1751 | "@aws-cdk/aws-ecs.ICluster",
|
1752 | "@aws-cdk/aws-ecs.ListenerConfig",
|
1753 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
1754 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1755 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
1756 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
1757 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
1758 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
1759 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
1760 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
1761 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
|
1762 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
1763 | "constructs.Construct"
|
1764 | ],
|
1765 | "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",
|
1766 | "syntaxKindCounter": {
|
1767 | "8": 2,
|
1768 | "10": 5,
|
1769 | "75": 37,
|
1770 | "104": 2,
|
1771 | "106": 1,
|
1772 | "130": 3,
|
1773 | "153": 3,
|
1774 | "169": 3,
|
1775 | "193": 5,
|
1776 | "194": 8,
|
1777 | "196": 3,
|
1778 | "197": 2,
|
1779 | "225": 6,
|
1780 | "226": 1,
|
1781 | "242": 6,
|
1782 | "243": 6,
|
1783 | "281": 7,
|
1784 | "282": 3,
|
1785 | "290": 1
|
1786 | },
|
1787 | "fqnsFingerprint": "84e84a232d4d1659f379019316138f707df9fa005ac80fec15ca7227950a3c36"
|
1788 | },
|
1789 | "0c758c7d76859776b20f377801abe2a91c9957c5589ccf702a5722ae431b0c83": {
|
1790 | "translations": {
|
1791 | "python": {
|
1792 | "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)",
|
1793 | "version": "2"
|
1794 | },
|
1795 | "csharp": {
|
1796 | "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);",
|
1797 | "version": "1"
|
1798 | },
|
1799 | "java": {
|
1800 | "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);",
|
1801 | "version": "1"
|
1802 | },
|
1803 | "go": {
|
1804 | "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)",
|
1805 | "version": "1"
|
1806 | },
|
1807 | "$": {
|
1808 | "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);",
|
1809 | "version": "0"
|
1810 | }
|
1811 | },
|
1812 | "location": {
|
1813 | "api": {
|
1814 | "api": "moduleReadme",
|
1815 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1816 | },
|
1817 | "field": {
|
1818 | "field": "markdown",
|
1819 | "line": 630
|
1820 | }
|
1821 | },
|
1822 | "didCompile": true,
|
1823 | "fqnsReferenced": [
|
1824 | "@aws-cdk/aws-ec2.IVpc",
|
1825 | "@aws-cdk/aws-ecs.Ec2Service",
|
1826 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
1827 | "@aws-cdk/aws-ecs.ICluster",
|
1828 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1829 | "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
|
1830 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
|
1831 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
|
1832 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
|
1833 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
|
1834 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
|
1835 | "constructs.Construct"
|
1836 | ],
|
1837 | "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",
|
1838 | "syntaxKindCounter": {
|
1839 | "8": 1,
|
1840 | "10": 2,
|
1841 | "75": 24,
|
1842 | "104": 2,
|
1843 | "130": 3,
|
1844 | "153": 3,
|
1845 | "169": 3,
|
1846 | "193": 3,
|
1847 | "194": 4,
|
1848 | "196": 2,
|
1849 | "197": 2,
|
1850 | "225": 5,
|
1851 | "226": 2,
|
1852 | "242": 5,
|
1853 | "243": 5,
|
1854 | "281": 1,
|
1855 | "282": 3,
|
1856 | "290": 1
|
1857 | },
|
1858 | "fqnsFingerprint": "cb763a2a29652349c4d7d93c9e0f6f35e28b2010f00db4f07d9f5273a4524605"
|
1859 | },
|
1860 | "f458dc15a67446790f4b0f012eaa66383c9c366e71e5647e0126cde9a8fdc6eb": {
|
1861 | "translations": {
|
1862 | "python": {
|
1863 | "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))",
|
1864 | "version": "2"
|
1865 | },
|
1866 | "csharp": {
|
1867 | "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}));",
|
1868 | "version": "1"
|
1869 | },
|
1870 | "java": {
|
1871 | "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()));",
|
1872 | "version": "1"
|
1873 | },
|
1874 | "go": {
|
1875 | "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}))",
|
1876 | "version": "1"
|
1877 | },
|
1878 | "$": {
|
1879 | "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}));",
|
1880 | "version": "0"
|
1881 | }
|
1882 | },
|
1883 | "location": {
|
1884 | "api": {
|
1885 | "api": "moduleReadme",
|
1886 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1887 | },
|
1888 | "field": {
|
1889 | "field": "markdown",
|
1890 | "line": 643
|
1891 | }
|
1892 | },
|
1893 | "didCompile": true,
|
1894 | "fqnsReferenced": [
|
1895 | "@aws-cdk/aws-ec2.IVpc",
|
1896 | "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
|
1897 | "@aws-cdk/aws-ecs.Ec2Service",
|
1898 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
1899 | "@aws-cdk/aws-ecs.ICluster",
|
1900 | "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
|
1901 | "@aws-cdk/aws-ecs.TaskDefinition",
|
1902 | "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
|
1903 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
|
1904 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
|
1905 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
|
1906 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
|
1907 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
|
1908 | "constructs.Construct"
|
1909 | ],
|
1910 | "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",
|
1911 | "syntaxKindCounter": {
|
1912 | "8": 2,
|
1913 | "10": 3,
|
1914 | "75": 27,
|
1915 | "104": 2,
|
1916 | "130": 3,
|
1917 | "153": 3,
|
1918 | "169": 3,
|
1919 | "193": 4,
|
1920 | "194": 5,
|
1921 | "196": 3,
|
1922 | "197": 2,
|
1923 | "225": 5,
|
1924 | "226": 2,
|
1925 | "242": 5,
|
1926 | "243": 5,
|
1927 | "281": 3,
|
1928 | "282": 3,
|
1929 | "290": 1
|
1930 | },
|
1931 | "fqnsFingerprint": "6bc0d017020f6665c0077063d1ff906f7a40156c62560423cc66913de5e67fc0"
|
1932 | },
|
1933 | "451d7fbe0f7e0379b802cf7dbe342a5864581e6366559ab18f1d907e83c35e0a": {
|
1934 | "translations": {
|
1935 | "python": {
|
1936 | "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)",
|
1937 | "version": "2"
|
1938 | },
|
1939 | "csharp": {
|
1940 | "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});",
|
1941 | "version": "1"
|
1942 | },
|
1943 | "java": {
|
1944 | "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());",
|
1945 | "version": "1"
|
1946 | },
|
1947 | "go": {
|
1948 | "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})",
|
1949 | "version": "1"
|
1950 | },
|
1951 | "$": {
|
1952 | "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});",
|
1953 | "version": "0"
|
1954 | }
|
1955 | },
|
1956 | "location": {
|
1957 | "api": {
|
1958 | "api": "moduleReadme",
|
1959 | "moduleFqn": "@aws-cdk/aws-ecs"
|
1960 | },
|
1961 | "field": {
|
1962 | "field": "markdown",
|
1963 | "line": 667
|
1964 | }
|
1965 | },
|
1966 | "didCompile": true,
|
1967 | "fqnsReferenced": [
|
1968 | "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
|
1969 | "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
|
1970 | "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
|
1971 | "@aws-cdk/aws-ecs.RequestCountScalingProps",
|
1972 | "@aws-cdk/aws-ecs.ScalableTaskCount",
|
1973 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
|
1974 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnRequestCount",
|
1975 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup"
|
1976 | ],
|
1977 | "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",
|
1978 | "syntaxKindCounter": {
|
1979 | "8": 3,
|
1980 | "10": 2,
|
1981 | "75": 18,
|
1982 | "130": 2,
|
1983 | "153": 2,
|
1984 | "169": 2,
|
1985 | "193": 3,
|
1986 | "194": 3,
|
1987 | "196": 3,
|
1988 | "225": 3,
|
1989 | "226": 2,
|
1990 | "242": 3,
|
1991 | "243": 3,
|
1992 | "281": 4,
|
1993 | "290": 1
|
1994 | },
|
1995 | "fqnsFingerprint": "8d4751b231da14565f67592808cf526c6f95b38b6a992d919f43df3d2428e570"
|
1996 | },
|
1997 | "82abfdc8afc0dbbfa6566b8a68a0b5fc4ec7a048c3228a738b62b3a9fc947489": {
|
1998 | "translations": {
|
1999 | "python": {
|
2000 | "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))",
|
2001 | "version": "2"
|
2002 | },
|
2003 | "csharp": {
|
2004 | "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}));",
|
2005 | "version": "1"
|
2006 | },
|
2007 | "java": {
|
2008 | "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());",
|
2009 | "version": "1"
|
2010 | },
|
2011 | "go": {
|
2012 | "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}))",
|
2013 | "version": "1"
|
2014 | },
|
2015 | "$": {
|
2016 | "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}));",
|
2017 | "version": "0"
|
2018 | }
|
2019 | },
|
2020 | "location": {
|
2021 | "api": {
|
2022 | "api": "moduleReadme",
|
2023 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2024 | },
|
2025 | "field": {
|
2026 | "field": "markdown",
|
2027 | "line": 689
|
2028 | }
|
2029 | },
|
2030 | "didCompile": true,
|
2031 | "fqnsReferenced": [
|
2032 | "@aws-cdk/aws-ecs.AwsLogDriver",
|
2033 | "@aws-cdk/aws-ecs.AwsLogDriverMode",
|
2034 | "@aws-cdk/aws-ecs.AwsLogDriverMode#NON_BLOCKING",
|
2035 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
2036 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2037 | "@aws-cdk/aws-ecs.ContainerImage",
|
2038 | "@aws-cdk/aws-ecs.ContainerImage#fromAsset",
|
2039 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2040 | "@aws-cdk/aws-ecs.ICluster",
|
2041 | "@aws-cdk/aws-ecs.ITaskDefinition",
|
2042 | "@aws-cdk/aws-ecs.LogDriver",
|
2043 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2044 | "@aws-cdk/aws-events-targets.EcsTask",
|
2045 | "@aws-cdk/aws-events-targets.EcsTaskProps",
|
2046 | "@aws-cdk/aws-events.IRuleTarget",
|
2047 | "@aws-cdk/aws-events.Rule",
|
2048 | "@aws-cdk/aws-events.Rule#addTarget",
|
2049 | "@aws-cdk/aws-events.RuleProps",
|
2050 | "@aws-cdk/aws-events.Schedule",
|
2051 | "@aws-cdk/aws-events.Schedule#expression",
|
2052 | "constructs.Construct"
|
2053 | ],
|
2054 | "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",
|
2055 | "syntaxKindCounter": {
|
2056 | "8": 2,
|
2057 | "10": 10,
|
2058 | "75": 43,
|
2059 | "104": 2,
|
2060 | "130": 1,
|
2061 | "153": 1,
|
2062 | "169": 1,
|
2063 | "192": 2,
|
2064 | "193": 6,
|
2065 | "194": 13,
|
2066 | "196": 5,
|
2067 | "197": 4,
|
2068 | "225": 3,
|
2069 | "226": 2,
|
2070 | "242": 3,
|
2071 | "243": 3,
|
2072 | "281": 12,
|
2073 | "282": 2,
|
2074 | "290": 1
|
2075 | },
|
2076 | "fqnsFingerprint": "2c6371ccf10b1d669ada11a4298f57e72950ce1bcf14a138a3b24cf1e093719f"
|
2077 | },
|
2078 | "045259ccf1467b2d664ca9ba7611240d47d74be6ef8d955c3f2e34a5d9093f12": {
|
2079 | "translations": {
|
2080 | "python": {
|
2081 | "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)",
|
2082 | "version": "2"
|
2083 | },
|
2084 | "csharp": {
|
2085 | "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});",
|
2086 | "version": "1"
|
2087 | },
|
2088 | "java": {
|
2089 | "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());",
|
2090 | "version": "1"
|
2091 | },
|
2092 | "go": {
|
2093 | "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})",
|
2094 | "version": "1"
|
2095 | },
|
2096 | "$": {
|
2097 | "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});",
|
2098 | "version": "0"
|
2099 | }
|
2100 | },
|
2101 | "location": {
|
2102 | "api": {
|
2103 | "api": "moduleReadme",
|
2104 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2105 | },
|
2106 | "field": {
|
2107 | "field": "markdown",
|
2108 | "line": 735
|
2109 | }
|
2110 | },
|
2111 | "didCompile": true,
|
2112 | "fqnsReferenced": [
|
2113 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
2114 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2115 | "@aws-cdk/aws-ecs.ContainerImage",
|
2116 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2117 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2118 | "@aws-cdk/aws-ecs.LogDriver",
|
2119 | "@aws-cdk/aws-ecs.LogDrivers",
|
2120 | "@aws-cdk/aws-ecs.LogDrivers#awsLogs",
|
2121 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2122 | "constructs.Construct"
|
2123 | ],
|
2124 | "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",
|
2125 | "syntaxKindCounter": {
|
2126 | "8": 1,
|
2127 | "10": 4,
|
2128 | "75": 15,
|
2129 | "104": 1,
|
2130 | "193": 2,
|
2131 | "194": 6,
|
2132 | "196": 3,
|
2133 | "197": 1,
|
2134 | "225": 1,
|
2135 | "226": 1,
|
2136 | "242": 1,
|
2137 | "243": 1,
|
2138 | "281": 4
|
2139 | },
|
2140 | "fqnsFingerprint": "c256ffd66edc9eb5ce9f3b618216360b102894aa20a7cce4c3f398becc887005"
|
2141 | },
|
2142 | "83dad95f7c72227931c5f80d167dec2ec72d6abea9f060a003f8fad0a35a70e6": {
|
2143 | "translations": {
|
2144 | "python": {
|
2145 | "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)",
|
2146 | "version": "2"
|
2147 | },
|
2148 | "csharp": {
|
2149 | "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});",
|
2150 | "version": "1"
|
2151 | },
|
2152 | "java": {
|
2153 | "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());",
|
2154 | "version": "1"
|
2155 | },
|
2156 | "go": {
|
2157 | "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})",
|
2158 | "version": "1"
|
2159 | },
|
2160 | "$": {
|
2161 | "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});",
|
2162 | "version": "0"
|
2163 | }
|
2164 | },
|
2165 | "location": {
|
2166 | "api": {
|
2167 | "api": "moduleReadme",
|
2168 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2169 | },
|
2170 | "field": {
|
2171 | "field": "markdown",
|
2172 | "line": 747
|
2173 | }
|
2174 | },
|
2175 | "didCompile": true,
|
2176 | "fqnsReferenced": [
|
2177 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2178 | "@aws-cdk/aws-ecs.ContainerImage",
|
2179 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2180 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2181 | "@aws-cdk/aws-ecs.LogDriver",
|
2182 | "@aws-cdk/aws-ecs.LogDrivers",
|
2183 | "@aws-cdk/aws-ecs.LogDrivers#fluentd",
|
2184 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2185 | "constructs.Construct"
|
2186 | ],
|
2187 | "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",
|
2188 | "syntaxKindCounter": {
|
2189 | "8": 1,
|
2190 | "10": 3,
|
2191 | "75": 14,
|
2192 | "104": 1,
|
2193 | "193": 1,
|
2194 | "194": 6,
|
2195 | "196": 3,
|
2196 | "197": 1,
|
2197 | "225": 1,
|
2198 | "226": 1,
|
2199 | "242": 1,
|
2200 | "243": 1,
|
2201 | "281": 3
|
2202 | },
|
2203 | "fqnsFingerprint": "a7c5223a594baab6141f4c62b18156e0e96ec45d66197f23da0a6ab5f1c97cef"
|
2204 | },
|
2205 | "bf8d3e105af9ec1b9b5d087bb45d55131fa8f04a39bae371796452ff7d90afde": {
|
2206 | "translations": {
|
2207 | "python": {
|
2208 | "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)",
|
2209 | "version": "2"
|
2210 | },
|
2211 | "csharp": {
|
2212 | "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});",
|
2213 | "version": "1"
|
2214 | },
|
2215 | "java": {
|
2216 | "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());",
|
2217 | "version": "1"
|
2218 | },
|
2219 | "go": {
|
2220 | "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})",
|
2221 | "version": "1"
|
2222 | },
|
2223 | "$": {
|
2224 | "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});",
|
2225 | "version": "0"
|
2226 | }
|
2227 | },
|
2228 | "location": {
|
2229 | "api": {
|
2230 | "api": "moduleReadme",
|
2231 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2232 | },
|
2233 | "field": {
|
2234 | "field": "markdown",
|
2235 | "line": 759
|
2236 | }
|
2237 | },
|
2238 | "didCompile": true,
|
2239 | "fqnsReferenced": [
|
2240 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2241 | "@aws-cdk/aws-ecs.ContainerImage",
|
2242 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2243 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2244 | "@aws-cdk/aws-ecs.GelfLogDriverProps",
|
2245 | "@aws-cdk/aws-ecs.LogDriver",
|
2246 | "@aws-cdk/aws-ecs.LogDrivers",
|
2247 | "@aws-cdk/aws-ecs.LogDrivers#gelf",
|
2248 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2249 | "constructs.Construct"
|
2250 | ],
|
2251 | "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",
|
2252 | "syntaxKindCounter": {
|
2253 | "8": 1,
|
2254 | "10": 4,
|
2255 | "75": 15,
|
2256 | "104": 1,
|
2257 | "193": 2,
|
2258 | "194": 6,
|
2259 | "196": 3,
|
2260 | "197": 1,
|
2261 | "225": 1,
|
2262 | "226": 1,
|
2263 | "242": 1,
|
2264 | "243": 1,
|
2265 | "281": 4
|
2266 | },
|
2267 | "fqnsFingerprint": "d20c020e01f8c9a6768789fca4ceb112909f098a6ae7b8a6c92c1c4839e3f01f"
|
2268 | },
|
2269 | "38489fa18b1d7f1d505d6e6c1584935f49a0700d9df1d939ae5e2a16eda90401": {
|
2270 | "translations": {
|
2271 | "python": {
|
2272 | "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)",
|
2273 | "version": "2"
|
2274 | },
|
2275 | "csharp": {
|
2276 | "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});",
|
2277 | "version": "1"
|
2278 | },
|
2279 | "java": {
|
2280 | "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());",
|
2281 | "version": "1"
|
2282 | },
|
2283 | "go": {
|
2284 | "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})",
|
2285 | "version": "1"
|
2286 | },
|
2287 | "$": {
|
2288 | "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});",
|
2289 | "version": "0"
|
2290 | }
|
2291 | },
|
2292 | "location": {
|
2293 | "api": {
|
2294 | "api": "moduleReadme",
|
2295 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2296 | },
|
2297 | "field": {
|
2298 | "field": "markdown",
|
2299 | "line": 771
|
2300 | }
|
2301 | },
|
2302 | "didCompile": true,
|
2303 | "fqnsReferenced": [
|
2304 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2305 | "@aws-cdk/aws-ecs.ContainerImage",
|
2306 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2307 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2308 | "@aws-cdk/aws-ecs.LogDriver",
|
2309 | "@aws-cdk/aws-ecs.LogDrivers",
|
2310 | "@aws-cdk/aws-ecs.LogDrivers#journald",
|
2311 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2312 | "constructs.Construct"
|
2313 | ],
|
2314 | "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",
|
2315 | "syntaxKindCounter": {
|
2316 | "8": 1,
|
2317 | "10": 3,
|
2318 | "75": 14,
|
2319 | "104": 1,
|
2320 | "193": 1,
|
2321 | "194": 6,
|
2322 | "196": 3,
|
2323 | "197": 1,
|
2324 | "225": 1,
|
2325 | "226": 1,
|
2326 | "242": 1,
|
2327 | "243": 1,
|
2328 | "281": 3
|
2329 | },
|
2330 | "fqnsFingerprint": "2cae638b085865285b83da0db549dde4b0c04149451730246a9e5dbb05acf795"
|
2331 | },
|
2332 | "92a20a42eb9f3826be754efb0c6c03d2af85014858596d443c54c4c33681f30f": {
|
2333 | "translations": {
|
2334 | "python": {
|
2335 | "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)",
|
2336 | "version": "2"
|
2337 | },
|
2338 | "csharp": {
|
2339 | "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});",
|
2340 | "version": "1"
|
2341 | },
|
2342 | "java": {
|
2343 | "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());",
|
2344 | "version": "1"
|
2345 | },
|
2346 | "go": {
|
2347 | "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})",
|
2348 | "version": "1"
|
2349 | },
|
2350 | "$": {
|
2351 | "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});",
|
2352 | "version": "0"
|
2353 | }
|
2354 | },
|
2355 | "location": {
|
2356 | "api": {
|
2357 | "api": "moduleReadme",
|
2358 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2359 | },
|
2360 | "field": {
|
2361 | "field": "markdown",
|
2362 | "line": 783
|
2363 | }
|
2364 | },
|
2365 | "didCompile": true,
|
2366 | "fqnsReferenced": [
|
2367 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2368 | "@aws-cdk/aws-ecs.ContainerImage",
|
2369 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2370 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2371 | "@aws-cdk/aws-ecs.LogDriver",
|
2372 | "@aws-cdk/aws-ecs.LogDrivers",
|
2373 | "@aws-cdk/aws-ecs.LogDrivers#jsonFile",
|
2374 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2375 | "constructs.Construct"
|
2376 | ],
|
2377 | "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",
|
2378 | "syntaxKindCounter": {
|
2379 | "8": 1,
|
2380 | "10": 3,
|
2381 | "75": 14,
|
2382 | "104": 1,
|
2383 | "193": 1,
|
2384 | "194": 6,
|
2385 | "196": 3,
|
2386 | "197": 1,
|
2387 | "225": 1,
|
2388 | "226": 1,
|
2389 | "242": 1,
|
2390 | "243": 1,
|
2391 | "281": 3
|
2392 | },
|
2393 | "fqnsFingerprint": "3fdddddc22218b0b2e8794977361cf21cb44747b64d04db82e213b5224c7dfc6"
|
2394 | },
|
2395 | "a08d23b119c49300e0fd7ada1ba960da3ada7fe77df7b0707121761c13030176": {
|
2396 | "translations": {
|
2397 | "python": {
|
2398 | "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)",
|
2399 | "version": "2"
|
2400 | },
|
2401 | "csharp": {
|
2402 | "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});",
|
2403 | "version": "1"
|
2404 | },
|
2405 | "java": {
|
2406 | "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());",
|
2407 | "version": "1"
|
2408 | },
|
2409 | "go": {
|
2410 | "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})",
|
2411 | "version": "1"
|
2412 | },
|
2413 | "$": {
|
2414 | "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});",
|
2415 | "version": "0"
|
2416 | }
|
2417 | },
|
2418 | "location": {
|
2419 | "api": {
|
2420 | "api": "moduleReadme",
|
2421 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2422 | },
|
2423 | "field": {
|
2424 | "field": "markdown",
|
2425 | "line": 795
|
2426 | }
|
2427 | },
|
2428 | "didCompile": true,
|
2429 | "fqnsReferenced": [
|
2430 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2431 | "@aws-cdk/aws-ecs.ContainerImage",
|
2432 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2433 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2434 | "@aws-cdk/aws-ecs.LogDriver",
|
2435 | "@aws-cdk/aws-ecs.LogDrivers",
|
2436 | "@aws-cdk/aws-ecs.LogDrivers#splunk",
|
2437 | "@aws-cdk/aws-ecs.SplunkLogDriverProps",
|
2438 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2439 | "@aws-cdk/core.SecretValue",
|
2440 | "@aws-cdk/core.SecretValue#secretsManager",
|
2441 | "constructs.Construct"
|
2442 | ],
|
2443 | "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",
|
2444 | "syntaxKindCounter": {
|
2445 | "8": 1,
|
2446 | "10": 5,
|
2447 | "75": 18,
|
2448 | "104": 1,
|
2449 | "193": 2,
|
2450 | "194": 7,
|
2451 | "196": 4,
|
2452 | "197": 1,
|
2453 | "225": 1,
|
2454 | "226": 1,
|
2455 | "242": 1,
|
2456 | "243": 1,
|
2457 | "281": 5
|
2458 | },
|
2459 | "fqnsFingerprint": "cc52ba75bd1f879bd71c53c406c1153a9c413d079d8a8861c4c5a1b89e1ae96e"
|
2460 | },
|
2461 | "77a1fc893ea52b5b463f231f86b61b4748c0ffd9c3c2d7391446246f458657a4": {
|
2462 | "translations": {
|
2463 | "python": {
|
2464 | "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)",
|
2465 | "version": "2"
|
2466 | },
|
2467 | "csharp": {
|
2468 | "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});",
|
2469 | "version": "1"
|
2470 | },
|
2471 | "java": {
|
2472 | "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());",
|
2473 | "version": "1"
|
2474 | },
|
2475 | "go": {
|
2476 | "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})",
|
2477 | "version": "1"
|
2478 | },
|
2479 | "$": {
|
2480 | "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});",
|
2481 | "version": "0"
|
2482 | }
|
2483 | },
|
2484 | "location": {
|
2485 | "api": {
|
2486 | "api": "moduleReadme",
|
2487 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2488 | },
|
2489 | "field": {
|
2490 | "field": "markdown",
|
2491 | "line": 810
|
2492 | }
|
2493 | },
|
2494 | "didCompile": true,
|
2495 | "fqnsReferenced": [
|
2496 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2497 | "@aws-cdk/aws-ecs.ContainerImage",
|
2498 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2499 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2500 | "@aws-cdk/aws-ecs.LogDriver",
|
2501 | "@aws-cdk/aws-ecs.LogDrivers",
|
2502 | "@aws-cdk/aws-ecs.LogDrivers#syslog",
|
2503 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2504 | "constructs.Construct"
|
2505 | ],
|
2506 | "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",
|
2507 | "syntaxKindCounter": {
|
2508 | "8": 1,
|
2509 | "10": 3,
|
2510 | "75": 14,
|
2511 | "104": 1,
|
2512 | "193": 1,
|
2513 | "194": 6,
|
2514 | "196": 3,
|
2515 | "197": 1,
|
2516 | "225": 1,
|
2517 | "226": 1,
|
2518 | "242": 1,
|
2519 | "243": 1,
|
2520 | "281": 3
|
2521 | },
|
2522 | "fqnsFingerprint": "9a752930d4a3b808d742e41aff8419f9b201d4a9e7c3ddce011137e8d3c355dc"
|
2523 | },
|
2524 | "10c4deb9ed309a1514e57b723335b60c6d2eccb1d685925cc7041a540b7546f2": {
|
2525 | "translations": {
|
2526 | "python": {
|
2527 | "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)",
|
2528 | "version": "2"
|
2529 | },
|
2530 | "csharp": {
|
2531 | "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});",
|
2532 | "version": "1"
|
2533 | },
|
2534 | "java": {
|
2535 | "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());",
|
2536 | "version": "1"
|
2537 | },
|
2538 | "go": {
|
2539 | "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})",
|
2540 | "version": "1"
|
2541 | },
|
2542 | "$": {
|
2543 | "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});",
|
2544 | "version": "0"
|
2545 | }
|
2546 | },
|
2547 | "location": {
|
2548 | "api": {
|
2549 | "api": "moduleReadme",
|
2550 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2551 | },
|
2552 | "field": {
|
2553 | "field": "markdown",
|
2554 | "line": 822
|
2555 | }
|
2556 | },
|
2557 | "didCompile": true,
|
2558 | "fqnsReferenced": [
|
2559 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2560 | "@aws-cdk/aws-ecs.ContainerImage",
|
2561 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2562 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2563 | "@aws-cdk/aws-ecs.FireLensLogDriverProps",
|
2564 | "@aws-cdk/aws-ecs.LogDriver",
|
2565 | "@aws-cdk/aws-ecs.LogDrivers",
|
2566 | "@aws-cdk/aws-ecs.LogDrivers#firelens",
|
2567 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2568 | "constructs.Construct"
|
2569 | ],
|
2570 | "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",
|
2571 | "syntaxKindCounter": {
|
2572 | "8": 1,
|
2573 | "10": 6,
|
2574 | "75": 18,
|
2575 | "104": 1,
|
2576 | "193": 3,
|
2577 | "194": 6,
|
2578 | "196": 3,
|
2579 | "197": 1,
|
2580 | "225": 1,
|
2581 | "226": 1,
|
2582 | "242": 1,
|
2583 | "243": 1,
|
2584 | "281": 7
|
2585 | },
|
2586 | "fqnsFingerprint": "1c5e0e4b3fb4f990296c877276a51b33acaf13399efb7cce0140b98728b94685"
|
2587 | },
|
2588 | "f5ebe8cfc8ee2d59532ab90bdbf93a56732a2e3212866c550971b4124cb86dc4": {
|
2589 | "translations": {
|
2590 | "python": {
|
2591 | "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)",
|
2592 | "version": "2"
|
2593 | },
|
2594 | "csharp": {
|
2595 | "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});",
|
2596 | "version": "1"
|
2597 | },
|
2598 | "java": {
|
2599 | "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());",
|
2600 | "version": "1"
|
2601 | },
|
2602 | "go": {
|
2603 | "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})",
|
2604 | "version": "1"
|
2605 | },
|
2606 | "$": {
|
2607 | "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});",
|
2608 | "version": "0"
|
2609 | }
|
2610 | },
|
2611 | "location": {
|
2612 | "api": {
|
2613 | "api": "moduleReadme",
|
2614 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2615 | },
|
2616 | "field": {
|
2617 | "field": "markdown",
|
2618 | "line": 840
|
2619 | }
|
2620 | },
|
2621 | "didCompile": true,
|
2622 | "fqnsReferenced": [
|
2623 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2624 | "@aws-cdk/aws-ecs.ContainerImage",
|
2625 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2626 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2627 | "@aws-cdk/aws-ecs.FireLensLogDriverProps",
|
2628 | "@aws-cdk/aws-ecs.LogDriver",
|
2629 | "@aws-cdk/aws-ecs.LogDrivers",
|
2630 | "@aws-cdk/aws-ecs.LogDrivers#firelens",
|
2631 | "@aws-cdk/aws-ecs.Secret",
|
2632 | "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
|
2633 | "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
|
2634 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2635 | "@aws-cdk/aws-secretsmanager.ISecret",
|
2636 | "@aws-cdk/aws-ssm.IParameter",
|
2637 | "constructs.Construct"
|
2638 | ],
|
2639 | "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",
|
2640 | "syntaxKindCounter": {
|
2641 | "8": 1,
|
2642 | "10": 3,
|
2643 | "75": 32,
|
2644 | "104": 1,
|
2645 | "130": 2,
|
2646 | "153": 2,
|
2647 | "169": 2,
|
2648 | "193": 4,
|
2649 | "194": 10,
|
2650 | "196": 5,
|
2651 | "197": 1,
|
2652 | "225": 3,
|
2653 | "226": 1,
|
2654 | "242": 3,
|
2655 | "243": 3,
|
2656 | "281": 7,
|
2657 | "290": 1
|
2658 | },
|
2659 | "fqnsFingerprint": "7792909282c87ded1296af55a464b7725720de7069c969097c7a8257dab967dd"
|
2660 | },
|
2661 | "4ccae69164ebedec699eb10ac15c88a3e6eb4b33fd95e7e2fcdda2c698ea5c5f": {
|
2662 | "translations": {
|
2663 | "python": {
|
2664 | "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)",
|
2665 | "version": "2"
|
2666 | },
|
2667 | "csharp": {
|
2668 | "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});",
|
2669 | "version": "1"
|
2670 | },
|
2671 | "java": {
|
2672 | "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());",
|
2673 | "version": "1"
|
2674 | },
|
2675 | "go": {
|
2676 | "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})",
|
2677 | "version": "1"
|
2678 | },
|
2679 | "$": {
|
2680 | "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});",
|
2681 | "version": "0"
|
2682 | }
|
2683 | },
|
2684 | "location": {
|
2685 | "api": {
|
2686 | "api": "moduleReadme",
|
2687 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2688 | },
|
2689 | "field": {
|
2690 | "field": "markdown",
|
2691 | "line": 864
|
2692 | }
|
2693 | },
|
2694 | "didCompile": true,
|
2695 | "fqnsReferenced": [
|
2696 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2697 | "@aws-cdk/aws-ecs.ContainerImage",
|
2698 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2699 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
2700 | "@aws-cdk/aws-ecs.GenericLogDriver",
|
2701 | "@aws-cdk/aws-ecs.GenericLogDriverProps",
|
2702 | "@aws-cdk/aws-ecs.LogDriver",
|
2703 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2704 | "constructs.Construct"
|
2705 | ],
|
2706 | "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",
|
2707 | "syntaxKindCounter": {
|
2708 | "8": 1,
|
2709 | "10": 5,
|
2710 | "75": 16,
|
2711 | "104": 1,
|
2712 | "193": 3,
|
2713 | "194": 5,
|
2714 | "196": 2,
|
2715 | "197": 2,
|
2716 | "225": 1,
|
2717 | "226": 1,
|
2718 | "242": 1,
|
2719 | "243": 1,
|
2720 | "281": 6
|
2721 | },
|
2722 | "fqnsFingerprint": "a0eb315a4c35bbe830c09ff0c39dea0c0039a102338c33179238f0938d87f321"
|
2723 | },
|
2724 | "2bc3c9c2e9dfac716cb4a444f4b16178eb20e412413e991f3828bb8babb87d02": {
|
2725 | "translations": {
|
2726 | "python": {
|
2727 | "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)",
|
2728 | "version": "2"
|
2729 | },
|
2730 | "csharp": {
|
2731 | "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});",
|
2732 | "version": "1"
|
2733 | },
|
2734 | "java": {
|
2735 | "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();",
|
2736 | "version": "1"
|
2737 | },
|
2738 | "go": {
|
2739 | "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})",
|
2740 | "version": "1"
|
2741 | },
|
2742 | "$": {
|
2743 | "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});",
|
2744 | "version": "0"
|
2745 | }
|
2746 | },
|
2747 | "location": {
|
2748 | "api": {
|
2749 | "api": "moduleReadme",
|
2750 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2751 | },
|
2752 | "field": {
|
2753 | "field": "markdown",
|
2754 | "line": 884
|
2755 | }
|
2756 | },
|
2757 | "didCompile": true,
|
2758 | "fqnsReferenced": [
|
2759 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
2760 | "@aws-cdk/aws-ecs.Ec2Service",
|
2761 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
2762 | "@aws-cdk/aws-ecs.ICluster",
|
2763 | "@aws-cdk/aws-ecs.TaskDefinition",
|
2764 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
2765 | "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
|
2766 | "constructs.Construct"
|
2767 | ],
|
2768 | "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",
|
2769 | "syntaxKindCounter": {
|
2770 | "10": 1,
|
2771 | "75": 16,
|
2772 | "104": 1,
|
2773 | "130": 2,
|
2774 | "153": 2,
|
2775 | "169": 2,
|
2776 | "193": 2,
|
2777 | "194": 3,
|
2778 | "197": 1,
|
2779 | "225": 3,
|
2780 | "242": 3,
|
2781 | "243": 3,
|
2782 | "281": 2,
|
2783 | "282": 2,
|
2784 | "290": 1
|
2785 | },
|
2786 | "fqnsFingerprint": "374d3b9fa2ee49a4bffc8b15afd22fe5a74a4f58372f359fe5f02b71827ada30"
|
2787 | },
|
2788 | "8c50fe6169819a2b8bb4d4c73ed3f62b2caf61b32031acf10aed900489eeaa53": {
|
2789 | "translations": {
|
2790 | "python": {
|
2791 | "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)",
|
2792 | "version": "2"
|
2793 | },
|
2794 | "csharp": {
|
2795 | "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});",
|
2796 | "version": "1"
|
2797 | },
|
2798 | "java": {
|
2799 | "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();",
|
2800 | "version": "1"
|
2801 | },
|
2802 | "go": {
|
2803 | "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})",
|
2804 | "version": "1"
|
2805 | },
|
2806 | "$": {
|
2807 | "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});",
|
2808 | "version": "0"
|
2809 | }
|
2810 | },
|
2811 | "location": {
|
2812 | "api": {
|
2813 | "api": "moduleReadme",
|
2814 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2815 | },
|
2816 | "field": {
|
2817 | "field": "markdown",
|
2818 | "line": 902
|
2819 | }
|
2820 | },
|
2821 | "didCompile": true,
|
2822 | "fqnsReferenced": [
|
2823 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
2824 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
2825 | "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
|
2826 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2827 | "@aws-cdk/aws-ecs.ContainerImage",
|
2828 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2829 | "@aws-cdk/aws-ecs.Ec2Service",
|
2830 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
2831 | "@aws-cdk/aws-ecs.ICluster",
|
2832 | "@aws-cdk/aws-ecs.PortMapping",
|
2833 | "@aws-cdk/aws-ecs.Protocol",
|
2834 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
2835 | "@aws-cdk/aws-ecs.TaskDefinition",
|
2836 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2837 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
2838 | "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
|
2839 | "constructs.Construct"
|
2840 | ],
|
2841 | "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",
|
2842 | "syntaxKindCounter": {
|
2843 | "8": 3,
|
2844 | "10": 3,
|
2845 | "75": 33,
|
2846 | "104": 1,
|
2847 | "130": 2,
|
2848 | "153": 2,
|
2849 | "169": 2,
|
2850 | "193": 4,
|
2851 | "194": 9,
|
2852 | "196": 3,
|
2853 | "197": 1,
|
2854 | "225": 3,
|
2855 | "226": 2,
|
2856 | "242": 3,
|
2857 | "243": 3,
|
2858 | "281": 8,
|
2859 | "282": 2,
|
2860 | "290": 1
|
2861 | },
|
2862 | "fqnsFingerprint": "4f8f389b6b015497f64b9b5e88572b17edaed19cf8276005d362a4dbbb672c21"
|
2863 | },
|
2864 | "e937737ac1cfcacc47628cceba36819899cb88787a7997971da072ff69f637f9": {
|
2865 | "translations": {
|
2866 | "python": {
|
2867 | "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)",
|
2868 | "version": "2"
|
2869 | },
|
2870 | "csharp": {
|
2871 | "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.AssociateCloudMapService(new AssociateCloudMapServiceOptions {\n Service = cloudMapService\n});",
|
2872 | "version": "1"
|
2873 | },
|
2874 | "java": {
|
2875 | "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.associateCloudMapService(AssociateCloudMapServiceOptions.builder()\n .service(cloudMapService)\n .build());",
|
2876 | "version": "1"
|
2877 | },
|
2878 | "go": {
|
2879 | "source": "var cloudMapService service\nvar ecsService fargateService\n\n\necsService.associateCloudMapService(&associateCloudMapServiceOptions{\n\tservice: cloudMapService,\n})",
|
2880 | "version": "1"
|
2881 | },
|
2882 | "$": {
|
2883 | "source": "declare const cloudMapService: cloudmap.Service;\ndeclare const ecsService: ecs.FargateService;\n\necsService.associateCloudMapService({\n service: cloudMapService,\n});",
|
2884 | "version": "0"
|
2885 | }
|
2886 | },
|
2887 | "location": {
|
2888 | "api": {
|
2889 | "api": "moduleReadme",
|
2890 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2891 | },
|
2892 | "field": {
|
2893 | "field": "markdown",
|
2894 | "line": 936
|
2895 | }
|
2896 | },
|
2897 | "didCompile": true,
|
2898 | "fqnsReferenced": [
|
2899 | "@aws-cdk/aws-ecs.AssociateCloudMapServiceOptions",
|
2900 | "@aws-cdk/aws-ecs.BaseService#associateCloudMapService",
|
2901 | "@aws-cdk/aws-servicediscovery.IService"
|
2902 | ],
|
2903 | "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",
|
2904 | "syntaxKindCounter": {
|
2905 | "75": 10,
|
2906 | "130": 2,
|
2907 | "153": 2,
|
2908 | "169": 2,
|
2909 | "193": 1,
|
2910 | "194": 1,
|
2911 | "196": 1,
|
2912 | "225": 2,
|
2913 | "226": 1,
|
2914 | "242": 2,
|
2915 | "243": 2,
|
2916 | "281": 1,
|
2917 | "290": 1
|
2918 | },
|
2919 | "fqnsFingerprint": "77215cb961c6c2b75b7428305b9c5f39a2c7c30b4208395d35ecd1fc90458658"
|
2920 | },
|
2921 | "431959bec7b8f40d17b8387390f6f3833abf66f5ea6f9df349736f261a5dba47": {
|
2922 | "translations": {
|
2923 | "python": {
|
2924 | "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)",
|
2925 | "version": "2"
|
2926 | },
|
2927 | "csharp": {
|
2928 | "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});",
|
2929 | "version": "1"
|
2930 | },
|
2931 | "java": {
|
2932 | "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();",
|
2933 | "version": "1"
|
2934 | },
|
2935 | "go": {
|
2936 | "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})",
|
2937 | "version": "1"
|
2938 | },
|
2939 | "$": {
|
2940 | "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});",
|
2941 | "version": "0"
|
2942 | }
|
2943 | },
|
2944 | "location": {
|
2945 | "api": {
|
2946 | "api": "moduleReadme",
|
2947 | "moduleFqn": "@aws-cdk/aws-ecs"
|
2948 | },
|
2949 | "field": {
|
2950 | "field": "markdown",
|
2951 | "line": 961
|
2952 | }
|
2953 | },
|
2954 | "didCompile": true,
|
2955 | "fqnsReferenced": [
|
2956 | "@aws-cdk/aws-ec2.IVpc",
|
2957 | "@aws-cdk/aws-ecs.Cluster",
|
2958 | "@aws-cdk/aws-ecs.ClusterProps",
|
2959 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
2960 | "@aws-cdk/aws-ecs.ContainerImage",
|
2961 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
2962 | "@aws-cdk/aws-ecs.FargateService",
|
2963 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
2964 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
2965 | "@aws-cdk/aws-ecs.ICluster",
|
2966 | "@aws-cdk/aws-ecs.TaskDefinition",
|
2967 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
2968 | "constructs.Construct"
|
2969 | ],
|
2970 | "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",
|
2971 | "syntaxKindCounter": {
|
2972 | "8": 2,
|
2973 | "10": 7,
|
2974 | "75": 26,
|
2975 | "104": 3,
|
2976 | "106": 1,
|
2977 | "130": 1,
|
2978 | "153": 1,
|
2979 | "169": 1,
|
2980 | "192": 1,
|
2981 | "193": 5,
|
2982 | "194": 6,
|
2983 | "196": 2,
|
2984 | "197": 3,
|
2985 | "225": 3,
|
2986 | "226": 2,
|
2987 | "242": 3,
|
2988 | "243": 3,
|
2989 | "281": 7,
|
2990 | "282": 3,
|
2991 | "290": 1
|
2992 | },
|
2993 | "fqnsFingerprint": "dcb1511a61e25586cc8676022b3a537930a8c6e2a55be000a31b48819a67e7fa"
|
2994 | },
|
2995 | "c7a59d9323fd5dbdfad56c236e919b827a5ab7bd6493a6338e638448199f93a7": {
|
2996 | "translations": {
|
2997 | "python": {
|
2998 | "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)",
|
2999 | "version": "2"
|
3000 | },
|
3001 | "csharp": {
|
3002 | "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});",
|
3003 | "version": "1"
|
3004 | },
|
3005 | "java": {
|
3006 | "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();",
|
3007 | "version": "1"
|
3008 | },
|
3009 | "go": {
|
3010 | "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})",
|
3011 | "version": "1"
|
3012 | },
|
3013 | "$": {
|
3014 | "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});",
|
3015 | "version": "0"
|
3016 | }
|
3017 | },
|
3018 | "location": {
|
3019 | "api": {
|
3020 | "api": "moduleReadme",
|
3021 | "moduleFqn": "@aws-cdk/aws-ecs"
|
3022 | },
|
3023 | "field": {
|
3024 | "field": "markdown",
|
3025 | "line": 1005
|
3026 | }
|
3027 | },
|
3028 | "didCompile": true,
|
3029 | "fqnsReferenced": [
|
3030 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
3031 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
3032 | "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
|
3033 | "@aws-cdk/aws-ec2.IMachineImage",
|
3034 | "@aws-cdk/aws-ec2.IVpc",
|
3035 | "@aws-cdk/aws-ec2.InstanceType",
|
3036 | "@aws-cdk/aws-ecs.AsgCapacityProvider",
|
3037 | "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
|
3038 | "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
|
3039 | "@aws-cdk/aws-ecs.Cluster",
|
3040 | "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
|
3041 | "@aws-cdk/aws-ecs.ClusterProps",
|
3042 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
3043 | "@aws-cdk/aws-ecs.ContainerImage",
|
3044 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
3045 | "@aws-cdk/aws-ecs.Ec2Service",
|
3046 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
3047 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
3048 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
3049 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
|
3050 | "@aws-cdk/aws-ecs.ICluster",
|
3051 | "@aws-cdk/aws-ecs.TaskDefinition",
|
3052 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
3053 | "constructs.Construct"
|
3054 | ],
|
3055 | "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",
|
3056 | "syntaxKindCounter": {
|
3057 | "8": 4,
|
3058 | "10": 8,
|
3059 | "75": 46,
|
3060 | "104": 5,
|
3061 | "130": 1,
|
3062 | "153": 1,
|
3063 | "169": 1,
|
3064 | "192": 1,
|
3065 | "193": 6,
|
3066 | "194": 13,
|
3067 | "196": 4,
|
3068 | "197": 6,
|
3069 | "225": 5,
|
3070 | "226": 3,
|
3071 | "242": 5,
|
3072 | "243": 5,
|
3073 | "281": 9,
|
3074 | "282": 5,
|
3075 | "290": 1
|
3076 | },
|
3077 | "fqnsFingerprint": "68b1be7ab6e8a4488c15608eca790f2daa29466c904f5818e2aa89a689b6ba66"
|
3078 | },
|
3079 | "64839645a33e52f98097f3ab8e7a00b430229e95579fff35f208e056721a29b3": {
|
3080 | "translations": {
|
3081 | "python": {
|
3082 | "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)",
|
3083 | "version": "2"
|
3084 | },
|
3085 | "csharp": {
|
3086 | "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});",
|
3087 | "version": "1"
|
3088 | },
|
3089 | "java": {
|
3090 | "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();",
|
3091 | "version": "1"
|
3092 | },
|
3093 | "go": {
|
3094 | "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})",
|
3095 | "version": "1"
|
3096 | },
|
3097 | "$": {
|
3098 | "source": "const inferenceAccelerators = [{\n deviceName: 'device1',\n deviceType: 'eia2.medium',\n}];\n\nconst taskDefinition = new ecs.Ec2TaskDefinition(this, 'Ec2TaskDef', {\n inferenceAccelerators,\n});",
|
3099 | "version": "0"
|
3100 | }
|
3101 | },
|
3102 | "location": {
|
3103 | "api": {
|
3104 | "api": "moduleReadme",
|
3105 | "moduleFqn": "@aws-cdk/aws-ecs"
|
3106 | },
|
3107 | "field": {
|
3108 | "field": "markdown",
|
3109 | "line": 1052
|
3110 | }
|
3111 | },
|
3112 | "didCompile": true,
|
3113 | "fqnsReferenced": [
|
3114 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
3115 | "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
|
3116 | "constructs.Construct"
|
3117 | ],
|
3118 | "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",
|
3119 | "syntaxKindCounter": {
|
3120 | "10": 3,
|
3121 | "75": 7,
|
3122 | "104": 1,
|
3123 | "192": 1,
|
3124 | "193": 2,
|
3125 | "194": 1,
|
3126 | "197": 1,
|
3127 | "225": 2,
|
3128 | "242": 2,
|
3129 | "243": 2,
|
3130 | "281": 2,
|
3131 | "282": 1
|
3132 | },
|
3133 | "fqnsFingerprint": "39af06b5dca192eff80ff10ffac2b563c1bb810b0889422b39b01237a4dbd1c8"
|
3134 | },
|
3135 | "3d14998d0ff3f0aa30d11309831d533d7a37f54d31e15d050ee770ab3de7b932": {
|
3136 | "translations": {
|
3137 | "python": {
|
3138 | "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)",
|
3139 | "version": "2"
|
3140 | },
|
3141 | "csharp": {
|
3142 | "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});",
|
3143 | "version": "1"
|
3144 | },
|
3145 | "java": {
|
3146 | "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());",
|
3147 | "version": "1"
|
3148 | },
|
3149 | "go": {
|
3150 | "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})",
|
3151 | "version": "1"
|
3152 | },
|
3153 | "$": {
|
3154 | "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});",
|
3155 | "version": "0"
|
3156 | }
|
3157 | },
|
3158 | "location": {
|
3159 | "api": {
|
3160 | "api": "moduleReadme",
|
3161 | "moduleFqn": "@aws-cdk/aws-ecs"
|
3162 | },
|
3163 | "field": {
|
3164 | "field": "markdown",
|
3165 | "line": 1067
|
3166 | }
|
3167 | },
|
3168 | "didCompile": true,
|
3169 | "fqnsReferenced": [
|
3170 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
3171 | "@aws-cdk/aws-ecs.ContainerImage",
|
3172 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
3173 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer"
|
3174 | ],
|
3175 | "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",
|
3176 | "syntaxKindCounter": {
|
3177 | "8": 1,
|
3178 | "10": 3,
|
3179 | "75": 12,
|
3180 | "130": 1,
|
3181 | "153": 1,
|
3182 | "169": 1,
|
3183 | "192": 1,
|
3184 | "193": 1,
|
3185 | "194": 3,
|
3186 | "196": 2,
|
3187 | "225": 2,
|
3188 | "226": 1,
|
3189 | "242": 2,
|
3190 | "243": 2,
|
3191 | "281": 2,
|
3192 | "282": 1,
|
3193 | "290": 1
|
3194 | },
|
3195 | "fqnsFingerprint": "61de6855d6f435b3c9e5a630add8a6bfc5474a982c970de8b11ea88878fa538e"
|
3196 | },
|
3197 | "758a408961946ae4767db2fab5bfddcf1d4266428297b7185212f34eeece4a09": {
|
3198 | "translations": {
|
3199 | "python": {
|
3200 | "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)",
|
3201 | "version": "2"
|
3202 | },
|
3203 | "csharp": {
|
3204 | "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});",
|
3205 | "version": "1"
|
3206 | },
|
3207 | "java": {
|
3208 | "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();",
|
3209 | "version": "1"
|
3210 | },
|
3211 | "go": {
|
3212 | "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})",
|
3213 | "version": "1"
|
3214 | },
|
3215 | "$": {
|
3216 | "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});",
|
3217 | "version": "0"
|
3218 | }
|
3219 | },
|
3220 | "location": {
|
3221 | "api": {
|
3222 | "api": "moduleReadme",
|
3223 | "moduleFqn": "@aws-cdk/aws-ecs"
|
3224 | },
|
3225 | "field": {
|
3226 | "field": "markdown",
|
3227 | "line": 1087
|
3228 | }
|
3229 | },
|
3230 | "didCompile": true,
|
3231 | "fqnsReferenced": [
|
3232 | "@aws-cdk/aws-ecs.Ec2Service",
|
3233 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
3234 | "@aws-cdk/aws-ecs.ICluster",
|
3235 | "@aws-cdk/aws-ecs.TaskDefinition",
|
3236 | "constructs.Construct"
|
3237 | ],
|
3238 | "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",
|
3239 | "syntaxKindCounter": {
|
3240 | "10": 1,
|
3241 | "75": 12,
|
3242 | "104": 1,
|
3243 | "106": 1,
|
3244 | "130": 2,
|
3245 | "153": 2,
|
3246 | "169": 2,
|
3247 | "193": 1,
|
3248 | "194": 1,
|
3249 | "197": 1,
|
3250 | "225": 3,
|
3251 | "242": 3,
|
3252 | "243": 3,
|
3253 | "281": 1,
|
3254 | "282": 2,
|
3255 | "290": 1
|
3256 | },
|
3257 | "fqnsFingerprint": "a7f4bf3abe3760a03550a65149832ebd5e79099e5ab14b8859036076698f0cf1"
|
3258 | },
|
3259 | "d883b1f13314bce937fda6a98fe0bb1a687a93ebbbfece6bea794ad372343f49": {
|
3260 | "translations": {
|
3261 | "python": {
|
3262 | "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)",
|
3263 | "version": "2"
|
3264 | },
|
3265 | "csharp": {
|
3266 | "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});",
|
3267 | "version": "1"
|
3268 | },
|
3269 | "java": {
|
3270 | "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();",
|
3271 | "version": "1"
|
3272 | },
|
3273 | "go": {
|
3274 | "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})",
|
3275 | "version": "1"
|
3276 | },
|
3277 | "$": {
|
3278 | "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});",
|
3279 | "version": "0"
|
3280 | }
|
3281 | },
|
3282 | "location": {
|
3283 | "api": {
|
3284 | "api": "moduleReadme",
|
3285 | "moduleFqn": "@aws-cdk/aws-ecs"
|
3286 | },
|
3287 | "field": {
|
3288 | "field": "markdown",
|
3289 | "line": 1109
|
3290 | }
|
3291 | },
|
3292 | "didCompile": true,
|
3293 | "fqnsReferenced": [
|
3294 | "@aws-cdk/aws-ec2.IVpc",
|
3295 | "@aws-cdk/aws-ecs.Cluster",
|
3296 | "@aws-cdk/aws-ecs.ClusterProps",
|
3297 | "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
|
3298 | "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
|
3299 | "@aws-cdk/aws-ecs.ExecuteCommandLogging",
|
3300 | "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
|
3301 | "@aws-cdk/aws-kms.IKey",
|
3302 | "@aws-cdk/aws-kms.Key",
|
3303 | "@aws-cdk/aws-logs.ILogGroup",
|
3304 | "@aws-cdk/aws-logs.LogGroup",
|
3305 | "@aws-cdk/aws-logs.LogGroupProps",
|
3306 | "@aws-cdk/aws-s3.Bucket",
|
3307 | "@aws-cdk/aws-s3.BucketProps",
|
3308 | "@aws-cdk/aws-s3.IBucket",
|
3309 | "constructs.Construct"
|
3310 | ],
|
3311 | "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",
|
3312 | "syntaxKindCounter": {
|
3313 | "10": 5,
|
3314 | "75": 34,
|
3315 | "104": 4,
|
3316 | "106": 2,
|
3317 | "130": 1,
|
3318 | "153": 1,
|
3319 | "169": 1,
|
3320 | "193": 5,
|
3321 | "194": 6,
|
3322 | "197": 4,
|
3323 | "225": 5,
|
3324 | "242": 5,
|
3325 | "243": 5,
|
3326 | "281": 10,
|
3327 | "282": 2,
|
3328 | "290": 1
|
3329 | },
|
3330 | "fqnsFingerprint": "cf8293e9b943a9988271923223c1437aa832773c0f78be11a9a548fb715ea2bd"
|
3331 | },
|
3332 | "dcf8af97e16dd41dfb4a40b3d5f3a47f0ce0292fd40fe1dc76c4c972e0076798": {
|
3333 | "translations": {
|
3334 | "python": {
|
3335 | "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)",
|
3336 | "version": "2"
|
3337 | },
|
3338 | "csharp": {
|
3339 | "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};",
|
3340 | "version": "1"
|
3341 | },
|
3342 | "java": {
|
3343 | "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();",
|
3344 | "version": "1"
|
3345 | },
|
3346 | "go": {
|
3347 | "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}",
|
3348 | "version": "1"
|
3349 | },
|
3350 | "$": {
|
3351 | "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};",
|
3352 | "version": "0"
|
3353 | }
|
3354 | },
|
3355 | "location": {
|
3356 | "api": {
|
3357 | "api": "type",
|
3358 | "fqn": "@aws-cdk/aws-ecs.AddAutoScalingGroupCapacityOptions"
|
3359 | },
|
3360 | "field": {
|
3361 | "field": "example"
|
3362 | }
|
3363 | },
|
3364 | "didCompile": true,
|
3365 | "fqnsReferenced": [
|
3366 | "@aws-cdk/aws-ecs.AddAutoScalingGroupCapacityOptions",
|
3367 | "@aws-cdk/aws-ecs.MachineImageType",
|
3368 | "@aws-cdk/aws-ecs.MachineImageType#AMAZON_LINUX_2",
|
3369 | "@aws-cdk/aws-kms.IKey",
|
3370 | "@aws-cdk/core.Duration",
|
3371 | "@aws-cdk/core.Duration#minutes"
|
3372 | ],
|
3373 | "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} }",
|
3374 | "syntaxKindCounter": {
|
3375 | "8": 1,
|
3376 | "10": 3,
|
3377 | "75": 21,
|
3378 | "91": 2,
|
3379 | "130": 1,
|
3380 | "153": 2,
|
3381 | "169": 2,
|
3382 | "193": 1,
|
3383 | "194": 4,
|
3384 | "196": 1,
|
3385 | "225": 2,
|
3386 | "242": 2,
|
3387 | "243": 2,
|
3388 | "254": 3,
|
3389 | "255": 3,
|
3390 | "256": 3,
|
3391 | "281": 5,
|
3392 | "290": 1
|
3393 | },
|
3394 | "fqnsFingerprint": "f9d1d6ac68bf7612a02f48c89469d431a7e70c715a038a4814fd2451b5d86104"
|
3395 | },
|
3396 | "d7fe1ecb57c0e66c6b67ed5d20e0482c9e18c73f4c1448ae6ef09dc3c901b5b9": {
|
3397 | "translations": {
|
3398 | "python": {
|
3399 | "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)",
|
3400 | "version": "2"
|
3401 | },
|
3402 | "csharp": {
|
3403 | "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});",
|
3404 | "version": "1"
|
3405 | },
|
3406 | "java": {
|
3407 | "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();",
|
3408 | "version": "1"
|
3409 | },
|
3410 | "go": {
|
3411 | "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})",
|
3412 | "version": "1"
|
3413 | },
|
3414 | "$": {
|
3415 | "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});",
|
3416 | "version": "0"
|
3417 | }
|
3418 | },
|
3419 | "location": {
|
3420 | "api": {
|
3421 | "api": "type",
|
3422 | "fqn": "@aws-cdk/aws-ecs.AddCapacityOptions"
|
3423 | },
|
3424 | "field": {
|
3425 | "field": "example"
|
3426 | }
|
3427 | },
|
3428 | "didCompile": true,
|
3429 | "fqnsReferenced": [
|
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#addCapacity",
|
3435 | "@aws-cdk/aws-ecs.ClusterProps",
|
3436 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
3437 | "@aws-cdk/aws-ecs.ContainerImage",
|
3438 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
3439 | "@aws-cdk/aws-ecs.Ec2Service",
|
3440 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
3441 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
3442 | "@aws-cdk/aws-ecs.ICluster",
|
3443 | "@aws-cdk/aws-ecs.TaskDefinition",
|
3444 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
3445 | "constructs.Construct"
|
3446 | ],
|
3447 | "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",
|
3448 | "syntaxKindCounter": {
|
3449 | "8": 2,
|
3450 | "10": 7,
|
3451 | "75": 28,
|
3452 | "104": 3,
|
3453 | "130": 1,
|
3454 | "153": 1,
|
3455 | "169": 1,
|
3456 | "193": 4,
|
3457 | "194": 8,
|
3458 | "196": 3,
|
3459 | "197": 4,
|
3460 | "225": 4,
|
3461 | "226": 2,
|
3462 | "242": 4,
|
3463 | "243": 4,
|
3464 | "281": 4,
|
3465 | "282": 3,
|
3466 | "290": 1
|
3467 | },
|
3468 | "fqnsFingerprint": "7c804f75b964fd4b9e0d9abad6b00f0bb7d2eb8685c053ea6f0a6acf71ddb6d4"
|
3469 | },
|
3470 | "2059f7d055279edf57ea3c0993e8f12137eb5328460d358b980cecb2561d4c79": {
|
3471 | "translations": {
|
3472 | "python": {
|
3473 | "source": "machine_image = ecs.EcsOptimizedImage.amazon_linux2(ecs.AmiHardwareType.STANDARD,\n cached_in_context=True\n)",
|
3474 | "version": "2"
|
3475 | },
|
3476 | "csharp": {
|
3477 | "source": "EcsOptimizedImage machineImage = EcsOptimizedImage.AmazonLinux2(AmiHardwareType.STANDARD, new EcsOptimizedImageOptions {\n CachedInContext = true\n});",
|
3478 | "version": "1"
|
3479 | },
|
3480 | "java": {
|
3481 | "source": "EcsOptimizedImage machineImage = EcsOptimizedImage.amazonLinux2(AmiHardwareType.STANDARD, EcsOptimizedImageOptions.builder()\n .cachedInContext(true)\n .build());",
|
3482 | "version": "1"
|
3483 | },
|
3484 | "go": {
|
3485 | "source": "machineImage := ecs.ecsOptimizedImage.amazonLinux2(ecs.amiHardwareType_STANDARD, &ecsOptimizedImageOptions{\n\tcachedInContext: jsii.Boolean(true),\n})",
|
3486 | "version": "1"
|
3487 | },
|
3488 | "$": {
|
3489 | "source": "const machineImage = ecs.EcsOptimizedImage.amazonLinux2(ecs.AmiHardwareType.STANDARD, {\n cachedInContext: true,\n});",
|
3490 | "version": "0"
|
3491 | }
|
3492 | },
|
3493 | "location": {
|
3494 | "api": {
|
3495 | "api": "member",
|
3496 | "fqn": "@aws-cdk/aws-ecs.AddCapacityOptions",
|
3497 | "memberName": "machineImage"
|
3498 | },
|
3499 | "field": {
|
3500 | "field": "markdown",
|
3501 | "line": 8
|
3502 | }
|
3503 | },
|
3504 | "didCompile": true,
|
3505 | "fqnsReferenced": [
|
3506 | "@aws-cdk/aws-ecs.AmiHardwareType",
|
3507 | "@aws-cdk/aws-ecs.AmiHardwareType#STANDARD",
|
3508 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
3509 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
|
3510 | "@aws-cdk/aws-ecs.EcsOptimizedImageOptions"
|
3511 | ],
|
3512 | "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",
|
3513 | "syntaxKindCounter": {
|
3514 | "75": 8,
|
3515 | "106": 1,
|
3516 | "193": 1,
|
3517 | "194": 4,
|
3518 | "196": 1,
|
3519 | "225": 1,
|
3520 | "242": 1,
|
3521 | "243": 1,
|
3522 | "281": 1
|
3523 | },
|
3524 | "fqnsFingerprint": "46ee35fb59100071428be266f3c9b6a380b05e2ce82dff3e955e5b1ae018768c"
|
3525 | },
|
3526 | "3ed75590299b15c1e8a404c0360f7cfacdcaa33d2fc55680aeb49d60fdefe900": {
|
3527 | "translations": {
|
3528 | "python": {
|
3529 | "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)",
|
3530 | "version": "2"
|
3531 | },
|
3532 | "csharp": {
|
3533 | "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});",
|
3534 | "version": "1"
|
3535 | },
|
3536 | "java": {
|
3537 | "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());",
|
3538 | "version": "1"
|
3539 | },
|
3540 | "go": {
|
3541 | "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})",
|
3542 | "version": "1"
|
3543 | },
|
3544 | "$": {
|
3545 | "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});",
|
3546 | "version": "0"
|
3547 | }
|
3548 | },
|
3549 | "location": {
|
3550 | "api": {
|
3551 | "api": "type",
|
3552 | "fqn": "@aws-cdk/aws-ecs.AmiHardwareType"
|
3553 | },
|
3554 | "field": {
|
3555 | "field": "example"
|
3556 | }
|
3557 | },
|
3558 | "didCompile": true,
|
3559 | "fqnsReferenced": [
|
3560 | "@aws-cdk/aws-ec2.IMachineImage",
|
3561 | "@aws-cdk/aws-ec2.InstanceType",
|
3562 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
3563 | "@aws-cdk/aws-ecs.AmiHardwareType",
|
3564 | "@aws-cdk/aws-ecs.AmiHardwareType#ARM",
|
3565 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
3566 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
3567 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2"
|
3568 | ],
|
3569 | "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",
|
3570 | "syntaxKindCounter": {
|
3571 | "8": 1,
|
3572 | "10": 2,
|
3573 | "75": 16,
|
3574 | "130": 1,
|
3575 | "153": 1,
|
3576 | "169": 1,
|
3577 | "193": 1,
|
3578 | "194": 6,
|
3579 | "196": 2,
|
3580 | "197": 1,
|
3581 | "225": 1,
|
3582 | "226": 1,
|
3583 | "242": 1,
|
3584 | "243": 1,
|
3585 | "281": 3,
|
3586 | "290": 1
|
3587 | },
|
3588 | "fqnsFingerprint": "d7e155212e00aa5ae13f6992b7c2ba8309bc04b2d9102190ec6d0da942f0c56e"
|
3589 | },
|
3590 | "42cd092252030996ae38d8c4c275ed326532419951127edd7bfe2e0d848bb779": {
|
3591 | "translations": {
|
3592 | "python": {
|
3593 | "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)",
|
3594 | "version": "2"
|
3595 | },
|
3596 | "csharp": {
|
3597 | "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});",
|
3598 | "version": "1"
|
3599 | },
|
3600 | "java": {
|
3601 | "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();",
|
3602 | "version": "1"
|
3603 | },
|
3604 | "go": {
|
3605 | "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})",
|
3606 | "version": "1"
|
3607 | },
|
3608 | "$": {
|
3609 | "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});",
|
3610 | "version": "0"
|
3611 | }
|
3612 | },
|
3613 | "location": {
|
3614 | "api": {
|
3615 | "api": "type",
|
3616 | "fqn": "@aws-cdk/aws-ecs.AppMeshProxyConfiguration"
|
3617 | },
|
3618 | "field": {
|
3619 | "field": "example"
|
3620 | }
|
3621 | },
|
3622 | "didCompile": true,
|
3623 | "fqnsReferenced": [
|
3624 | "@aws-cdk/aws-ecs.AppMeshProxyConfiguration",
|
3625 | "@aws-cdk/aws-ecs.AppMeshProxyConfigurationConfigProps",
|
3626 | "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
|
3627 | ],
|
3628 | "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} }",
|
3629 | "syntaxKindCounter": {
|
3630 | "8": 6,
|
3631 | "10": 3,
|
3632 | "75": 13,
|
3633 | "192": 3,
|
3634 | "193": 2,
|
3635 | "194": 1,
|
3636 | "197": 1,
|
3637 | "225": 1,
|
3638 | "242": 1,
|
3639 | "243": 1,
|
3640 | "254": 1,
|
3641 | "255": 1,
|
3642 | "256": 1,
|
3643 | "281": 9,
|
3644 | "290": 1
|
3645 | },
|
3646 | "fqnsFingerprint": "b4776758ed2fd3a7a3094ed750c2c6f172cf31b9ad8ac4c311ae5b1811008a30"
|
3647 | },
|
3648 | "0da6a507e5491df2797baea8a3f6553e338c33a5e7e112cd00d8c3e7bc623650": {
|
3649 | "translations": {
|
3650 | "python": {
|
3651 | "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)",
|
3652 | "version": "2"
|
3653 | },
|
3654 | "csharp": {
|
3655 | "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};",
|
3656 | "version": "1"
|
3657 | },
|
3658 | "java": {
|
3659 | "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();",
|
3660 | "version": "1"
|
3661 | },
|
3662 | "go": {
|
3663 | "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}",
|
3664 | "version": "1"
|
3665 | },
|
3666 | "$": {
|
3667 | "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};",
|
3668 | "version": "0"
|
3669 | }
|
3670 | },
|
3671 | "location": {
|
3672 | "api": {
|
3673 | "api": "type",
|
3674 | "fqn": "@aws-cdk/aws-ecs.AppMeshProxyConfigurationConfigProps"
|
3675 | },
|
3676 | "field": {
|
3677 | "field": "example"
|
3678 | }
|
3679 | },
|
3680 | "didCompile": true,
|
3681 | "fqnsReferenced": [
|
3682 | "@aws-cdk/aws-ecs.AppMeshProxyConfigurationConfigProps",
|
3683 | "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
|
3684 | ],
|
3685 | "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} }",
|
3686 | "syntaxKindCounter": {
|
3687 | "8": 6,
|
3688 | "10": 3,
|
3689 | "75": 13,
|
3690 | "153": 1,
|
3691 | "169": 1,
|
3692 | "192": 3,
|
3693 | "193": 2,
|
3694 | "225": 1,
|
3695 | "242": 1,
|
3696 | "243": 1,
|
3697 | "254": 1,
|
3698 | "255": 1,
|
3699 | "256": 1,
|
3700 | "281": 9,
|
3701 | "290": 1
|
3702 | },
|
3703 | "fqnsFingerprint": "5d4c50129b8a0ce25dc0032795751b9e4e417078fde2c3274c09b9562f4d5ac1"
|
3704 | },
|
3705 | "a0643f72e7bd39ba4512cbd98813f02a7744534165a7e9dde564789d26520e73": {
|
3706 | "translations": {
|
3707 | "python": {
|
3708 | "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)",
|
3709 | "version": "2"
|
3710 | },
|
3711 | "csharp": {
|
3712 | "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};",
|
3713 | "version": "1"
|
3714 | },
|
3715 | "java": {
|
3716 | "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();",
|
3717 | "version": "1"
|
3718 | },
|
3719 | "go": {
|
3720 | "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}",
|
3721 | "version": "1"
|
3722 | },
|
3723 | "$": {
|
3724 | "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};",
|
3725 | "version": "0"
|
3726 | }
|
3727 | },
|
3728 | "location": {
|
3729 | "api": {
|
3730 | "api": "type",
|
3731 | "fqn": "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
|
3732 | },
|
3733 | "field": {
|
3734 | "field": "example"
|
3735 | }
|
3736 | },
|
3737 | "didCompile": true,
|
3738 | "fqnsReferenced": [
|
3739 | "@aws-cdk/aws-ecs.AppMeshProxyConfigurationProps"
|
3740 | ],
|
3741 | "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} }",
|
3742 | "syntaxKindCounter": {
|
3743 | "8": 6,
|
3744 | "10": 2,
|
3745 | "75": 11,
|
3746 | "153": 1,
|
3747 | "169": 1,
|
3748 | "192": 3,
|
3749 | "193": 1,
|
3750 | "225": 1,
|
3751 | "242": 1,
|
3752 | "243": 1,
|
3753 | "254": 1,
|
3754 | "255": 1,
|
3755 | "256": 1,
|
3756 | "281": 7,
|
3757 | "290": 1
|
3758 | },
|
3759 | "fqnsFingerprint": "1127835545fa1d7b9467ba25c26253a8537b641c6a13088bb3f2b877ceb54fc0"
|
3760 | },
|
3761 | "a7dfa29e432c9b7a6581638612d57b86de1101373499f0392aadb66afa478c43": {
|
3762 | "translations": {
|
3763 | "python": {
|
3764 | "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)",
|
3765 | "version": "2"
|
3766 | },
|
3767 | "csharp": {
|
3768 | "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});",
|
3769 | "version": "1"
|
3770 | },
|
3771 | "java": {
|
3772 | "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();",
|
3773 | "version": "1"
|
3774 | },
|
3775 | "go": {
|
3776 | "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})",
|
3777 | "version": "1"
|
3778 | },
|
3779 | "$": {
|
3780 | "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});",
|
3781 | "version": "0"
|
3782 | }
|
3783 | },
|
3784 | "location": {
|
3785 | "api": {
|
3786 | "api": "type",
|
3787 | "fqn": "@aws-cdk/aws-ecs.AsgCapacityProvider"
|
3788 | },
|
3789 | "field": {
|
3790 | "field": "example"
|
3791 | }
|
3792 | },
|
3793 | "didCompile": true,
|
3794 | "fqnsReferenced": [
|
3795 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
3796 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
3797 | "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
|
3798 | "@aws-cdk/aws-ec2.IMachineImage",
|
3799 | "@aws-cdk/aws-ec2.IVpc",
|
3800 | "@aws-cdk/aws-ec2.InstanceType",
|
3801 | "@aws-cdk/aws-ecs.AsgCapacityProvider",
|
3802 | "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
|
3803 | "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
|
3804 | "@aws-cdk/aws-ecs.Cluster",
|
3805 | "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
|
3806 | "@aws-cdk/aws-ecs.ClusterProps",
|
3807 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
3808 | "@aws-cdk/aws-ecs.ContainerImage",
|
3809 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
3810 | "@aws-cdk/aws-ecs.Ec2Service",
|
3811 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
3812 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
3813 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
3814 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
|
3815 | "@aws-cdk/aws-ecs.ICluster",
|
3816 | "@aws-cdk/aws-ecs.TaskDefinition",
|
3817 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
3818 | "constructs.Construct"
|
3819 | ],
|
3820 | "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",
|
3821 | "syntaxKindCounter": {
|
3822 | "8": 4,
|
3823 | "10": 8,
|
3824 | "75": 46,
|
3825 | "104": 5,
|
3826 | "130": 1,
|
3827 | "153": 1,
|
3828 | "169": 1,
|
3829 | "192": 1,
|
3830 | "193": 6,
|
3831 | "194": 13,
|
3832 | "196": 4,
|
3833 | "197": 6,
|
3834 | "225": 5,
|
3835 | "226": 3,
|
3836 | "242": 5,
|
3837 | "243": 5,
|
3838 | "281": 9,
|
3839 | "282": 5,
|
3840 | "290": 1
|
3841 | },
|
3842 | "fqnsFingerprint": "68b1be7ab6e8a4488c15608eca790f2daa29466c904f5818e2aa89a689b6ba66"
|
3843 | },
|
3844 | "f670b139abc65c03ef49541ebf0c2952251cfa013498bdbc97068ead0f59f901": {
|
3845 | "translations": {
|
3846 | "python": {
|
3847 | "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)",
|
3848 | "version": "2"
|
3849 | },
|
3850 | "csharp": {
|
3851 | "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});",
|
3852 | "version": "1"
|
3853 | },
|
3854 | "java": {
|
3855 | "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();",
|
3856 | "version": "1"
|
3857 | },
|
3858 | "go": {
|
3859 | "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})",
|
3860 | "version": "1"
|
3861 | },
|
3862 | "$": {
|
3863 | "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});",
|
3864 | "version": "0"
|
3865 | }
|
3866 | },
|
3867 | "location": {
|
3868 | "api": {
|
3869 | "api": "type",
|
3870 | "fqn": "@aws-cdk/aws-ecs.AsgCapacityProviderProps"
|
3871 | },
|
3872 | "field": {
|
3873 | "field": "example"
|
3874 | }
|
3875 | },
|
3876 | "didCompile": true,
|
3877 | "fqnsReferenced": [
|
3878 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
3879 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
3880 | "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
|
3881 | "@aws-cdk/aws-ec2.IMachineImage",
|
3882 | "@aws-cdk/aws-ec2.IVpc",
|
3883 | "@aws-cdk/aws-ec2.InstanceType",
|
3884 | "@aws-cdk/aws-ecs.AsgCapacityProvider",
|
3885 | "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
|
3886 | "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
|
3887 | "@aws-cdk/aws-ecs.Cluster",
|
3888 | "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
|
3889 | "@aws-cdk/aws-ecs.ClusterProps",
|
3890 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
3891 | "@aws-cdk/aws-ecs.ContainerImage",
|
3892 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
3893 | "@aws-cdk/aws-ecs.Ec2Service",
|
3894 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
3895 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
3896 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
3897 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
|
3898 | "@aws-cdk/aws-ecs.ICluster",
|
3899 | "@aws-cdk/aws-ecs.TaskDefinition",
|
3900 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
3901 | "constructs.Construct"
|
3902 | ],
|
3903 | "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",
|
3904 | "syntaxKindCounter": {
|
3905 | "8": 4,
|
3906 | "10": 8,
|
3907 | "75": 46,
|
3908 | "104": 5,
|
3909 | "130": 1,
|
3910 | "153": 1,
|
3911 | "169": 1,
|
3912 | "192": 1,
|
3913 | "193": 6,
|
3914 | "194": 13,
|
3915 | "196": 4,
|
3916 | "197": 6,
|
3917 | "225": 5,
|
3918 | "226": 3,
|
3919 | "242": 5,
|
3920 | "243": 5,
|
3921 | "281": 9,
|
3922 | "282": 5,
|
3923 | "290": 1
|
3924 | },
|
3925 | "fqnsFingerprint": "68b1be7ab6e8a4488c15608eca790f2daa29466c904f5818e2aa89a689b6ba66"
|
3926 | },
|
3927 | "b428e8daceaa64e0c853a2703644da9a61da01266fb48d2eaf26b0d249a5b7ed": {
|
3928 | "translations": {
|
3929 | "python": {
|
3930 | "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)",
|
3931 | "version": "2"
|
3932 | },
|
3933 | "csharp": {
|
3934 | "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});",
|
3935 | "version": "1"
|
3936 | },
|
3937 | "java": {
|
3938 | "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();",
|
3939 | "version": "1"
|
3940 | },
|
3941 | "go": {
|
3942 | "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})",
|
3943 | "version": "1"
|
3944 | },
|
3945 | "$": {
|
3946 | "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});",
|
3947 | "version": "0"
|
3948 | }
|
3949 | },
|
3950 | "location": {
|
3951 | "api": {
|
3952 | "api": "type",
|
3953 | "fqn": "@aws-cdk/aws-ecs.AssetEnvironmentFile"
|
3954 | },
|
3955 | "field": {
|
3956 | "field": "example"
|
3957 | }
|
3958 | },
|
3959 | "didCompile": true,
|
3960 | "fqnsReferenced": [
|
3961 | "@aws-cdk/assets.FollowMode",
|
3962 | "@aws-cdk/assets.FollowMode#NEVER",
|
3963 | "@aws-cdk/aws-ecs.AssetEnvironmentFile",
|
3964 | "@aws-cdk/aws-s3-assets.AssetOptions",
|
3965 | "@aws-cdk/core.AssetHashType",
|
3966 | "@aws-cdk/core.AssetHashType#SOURCE",
|
3967 | "@aws-cdk/core.BundlingOptions",
|
3968 | "@aws-cdk/core.BundlingOutput",
|
3969 | "@aws-cdk/core.BundlingOutput#ARCHIVED",
|
3970 | "@aws-cdk/core.DockerImage",
|
3971 | "@aws-cdk/core.DockerVolumeConsistency",
|
3972 | "@aws-cdk/core.DockerVolumeConsistency#CONSISTENT",
|
3973 | "@aws-cdk/core.ILocalBundling",
|
3974 | "@aws-cdk/core.IgnoreMode",
|
3975 | "@aws-cdk/core.IgnoreMode#GLOB",
|
3976 | "@aws-cdk/core.SymlinkFollowMode",
|
3977 | "@aws-cdk/core.SymlinkFollowMode#NEVER"
|
3978 | ],
|
3979 | "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} }",
|
3980 | "syntaxKindCounter": {
|
3981 | "10": 16,
|
3982 | "75": 60,
|
3983 | "130": 3,
|
3984 | "153": 3,
|
3985 | "169": 3,
|
3986 | "192": 5,
|
3987 | "193": 4,
|
3988 | "194": 13,
|
3989 | "197": 1,
|
3990 | "225": 4,
|
3991 | "242": 4,
|
3992 | "243": 4,
|
3993 | "254": 4,
|
3994 | "255": 4,
|
3995 | "256": 4,
|
3996 | "281": 23,
|
3997 | "290": 1
|
3998 | },
|
3999 | "fqnsFingerprint": "108a40545c53163eb5a131fbc2f100f39b9b8d4a799143ab61974d61838c3bff"
|
4000 | },
|
4001 | "e7439394de35cce6b16f6d6726dbd62ebe919331dc2c6d8090bdd27c21888f9c": {
|
4002 | "translations": {
|
4003 | "python": {
|
4004 | "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)",
|
4005 | "version": "2"
|
4006 | },
|
4007 | "csharp": {
|
4008 | "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});",
|
4009 | "version": "1"
|
4010 | },
|
4011 | "java": {
|
4012 | "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();",
|
4013 | "version": "1"
|
4014 | },
|
4015 | "go": {
|
4016 | "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})",
|
4017 | "version": "1"
|
4018 | },
|
4019 | "$": {
|
4020 | "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});",
|
4021 | "version": "0"
|
4022 | }
|
4023 | },
|
4024 | "location": {
|
4025 | "api": {
|
4026 | "api": "type",
|
4027 | "fqn": "@aws-cdk/aws-ecs.AssetImage"
|
4028 | },
|
4029 | "field": {
|
4030 | "field": "example"
|
4031 | }
|
4032 | },
|
4033 | "didCompile": true,
|
4034 | "fqnsReferenced": [
|
4035 | "@aws-cdk/aws-ec2.IVpc",
|
4036 | "@aws-cdk/aws-ec2.Vpc",
|
4037 | "@aws-cdk/aws-ec2.VpcProps",
|
4038 | "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateService",
|
4039 | "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateServiceProps",
|
4040 | "@aws-cdk/aws-ecs.AssetImage",
|
4041 | "@aws-cdk/aws-ecs.ContainerImage",
|
4042 | "@aws-cdk/core.App",
|
4043 | "@aws-cdk/core.Construct#node",
|
4044 | "@aws-cdk/core.ConstructNode#setContext",
|
4045 | "@aws-cdk/core.Stack",
|
4046 | "constructs.Construct"
|
4047 | ],
|
4048 | "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});",
|
4049 | "syntaxKindCounter": {
|
4050 | "8": 2,
|
4051 | "10": 11,
|
4052 | "75": 33,
|
4053 | "106": 1,
|
4054 | "193": 2,
|
4055 | "194": 7,
|
4056 | "196": 2,
|
4057 | "197": 5,
|
4058 | "225": 3,
|
4059 | "226": 2,
|
4060 | "242": 3,
|
4061 | "243": 3,
|
4062 | "254": 6,
|
4063 | "255": 6,
|
4064 | "256": 5,
|
4065 | "257": 1,
|
4066 | "258": 2,
|
4067 | "281": 3,
|
4068 | "282": 1,
|
4069 | "290": 1
|
4070 | },
|
4071 | "fqnsFingerprint": "02a246e8c16fdac635e1fb4c54ffe54be929b368d82e6a04c436d295ccfe5d9f"
|
4072 | },
|
4073 | "7c5490a57c08882e9b8f14829b06299b44681763c1e676f534f52b0769a05822": {
|
4074 | "translations": {
|
4075 | "python": {
|
4076 | "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# platform: ecr_assets.Platform\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 platform=False,\n repository_name=False,\n target=False\n ),\n network_mode=network_mode,\n platform=platform,\n repository_name=\"repositoryName\",\n target=\"target\"\n)",
|
4077 | "version": "2"
|
4078 | },
|
4079 | "csharp": {
|
4080 | "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;\nPlatform platform;\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 Platform = false,\n RepositoryName = false,\n Target = false\n },\n NetworkMode = networkMode,\n Platform = platform,\n RepositoryName = \"repositoryName\",\n Target = \"target\"\n};",
|
4081 | "version": "1"
|
4082 | },
|
4083 | "java": {
|
4084 | "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;\nPlatform platform;\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 .platform(false)\n .repositoryName(false)\n .target(false)\n .build())\n .networkMode(networkMode)\n .platform(platform)\n .repositoryName(\"repositoryName\")\n .target(\"target\")\n .build();",
|
4085 | "version": "1"
|
4086 | },
|
4087 | "go": {
|
4088 | "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\nvar platform platform\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\tplatform: jsii.Boolean(false),\n\t\trepositoryName: jsii.Boolean(false),\n\t\ttarget: jsii.Boolean(false),\n\t},\n\tnetworkMode: networkMode,\n\tplatform: platform,\n\trepositoryName: jsii.String(\"repositoryName\"),\n\ttarget: jsii.String(\"target\"),\n}",
|
4089 | "version": "1"
|
4090 | },
|
4091 | "$": {
|
4092 | "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;\ndeclare const platform: ecr_assets.Platform;\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 platform: false,\n repositoryName: false,\n target: false,\n },\n networkMode: networkMode,\n platform: platform,\n repositoryName: 'repositoryName',\n target: 'target',\n};",
|
4093 | "version": "0"
|
4094 | }
|
4095 | },
|
4096 | "location": {
|
4097 | "api": {
|
4098 | "api": "type",
|
4099 | "fqn": "@aws-cdk/aws-ecs.AssetImageProps"
|
4100 | },
|
4101 | "field": {
|
4102 | "field": "example"
|
4103 | }
|
4104 | },
|
4105 | "didCompile": true,
|
4106 | "fqnsReferenced": [
|
4107 | "@aws-cdk/assets.FollowMode",
|
4108 | "@aws-cdk/assets.FollowMode#NEVER",
|
4109 | "@aws-cdk/aws-ecr-assets.DockerImageAssetInvalidationOptions",
|
4110 | "@aws-cdk/aws-ecr-assets.NetworkMode",
|
4111 | "@aws-cdk/aws-ecr-assets.Platform",
|
4112 | "@aws-cdk/aws-ecs.AssetImageProps",
|
4113 | "@aws-cdk/core.IgnoreMode",
|
4114 | "@aws-cdk/core.IgnoreMode#GLOB",
|
4115 | "@aws-cdk/core.SymlinkFollowMode",
|
4116 | "@aws-cdk/core.SymlinkFollowMode#NEVER"
|
4117 | ],
|
4118 | "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;\ndeclare const platform: ecr_assets.Platform;\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 platform: false,\n repositoryName: false,\n target: false,\n },\n networkMode: networkMode,\n platform: platform,\n repositoryName: 'repositoryName',\n target: 'target',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4119 | "syntaxKindCounter": {
|
4120 | "10": 10,
|
4121 | "75": 44,
|
4122 | "91": 7,
|
4123 | "130": 2,
|
4124 | "153": 3,
|
4125 | "169": 3,
|
4126 | "192": 1,
|
4127 | "193": 3,
|
4128 | "194": 6,
|
4129 | "225": 3,
|
4130 | "242": 3,
|
4131 | "243": 3,
|
4132 | "254": 4,
|
4133 | "255": 4,
|
4134 | "256": 4,
|
4135 | "281": 20,
|
4136 | "290": 1
|
4137 | },
|
4138 | "fqnsFingerprint": "69ee882771fd87da730a7d10b85e12ff327d373bf4754b038ec274777063baf0"
|
4139 | },
|
4140 | "975197bb83c6ff3f17853604e44703b2baa9b3ef4a3ca4a70aa977d2e9ab6934": {
|
4141 | "translations": {
|
4142 | "python": {
|
4143 | "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)",
|
4144 | "version": "2"
|
4145 | },
|
4146 | "csharp": {
|
4147 | "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.AssociateCloudMapService(new AssociateCloudMapServiceOptions {\n Service = cloudMapService\n});",
|
4148 | "version": "1"
|
4149 | },
|
4150 | "java": {
|
4151 | "source": "Service cloudMapService;\nFargateService ecsService;\n\n\necsService.associateCloudMapService(AssociateCloudMapServiceOptions.builder()\n .service(cloudMapService)\n .build());",
|
4152 | "version": "1"
|
4153 | },
|
4154 | "go": {
|
4155 | "source": "var cloudMapService service\nvar ecsService fargateService\n\n\necsService.associateCloudMapService(&associateCloudMapServiceOptions{\n\tservice: cloudMapService,\n})",
|
4156 | "version": "1"
|
4157 | },
|
4158 | "$": {
|
4159 | "source": "declare const cloudMapService: cloudmap.Service;\ndeclare const ecsService: ecs.FargateService;\n\necsService.associateCloudMapService({\n service: cloudMapService,\n});",
|
4160 | "version": "0"
|
4161 | }
|
4162 | },
|
4163 | "location": {
|
4164 | "api": {
|
4165 | "api": "type",
|
4166 | "fqn": "@aws-cdk/aws-ecs.AssociateCloudMapServiceOptions"
|
4167 | },
|
4168 | "field": {
|
4169 | "field": "example"
|
4170 | }
|
4171 | },
|
4172 | "didCompile": true,
|
4173 | "fqnsReferenced": [
|
4174 | "@aws-cdk/aws-ecs.AssociateCloudMapServiceOptions",
|
4175 | "@aws-cdk/aws-ecs.BaseService#associateCloudMapService",
|
4176 | "@aws-cdk/aws-servicediscovery.IService"
|
4177 | ],
|
4178 | "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",
|
4179 | "syntaxKindCounter": {
|
4180 | "75": 10,
|
4181 | "130": 2,
|
4182 | "153": 2,
|
4183 | "169": 2,
|
4184 | "193": 1,
|
4185 | "194": 1,
|
4186 | "196": 1,
|
4187 | "225": 2,
|
4188 | "226": 1,
|
4189 | "242": 2,
|
4190 | "243": 2,
|
4191 | "281": 1,
|
4192 | "290": 1
|
4193 | },
|
4194 | "fqnsFingerprint": "77215cb961c6c2b75b7428305b9c5f39a2c7c30b4208395d35ecd1fc90458658"
|
4195 | },
|
4196 | "cdafd97cd59d0c06e097b88a56ec6f3f09eef6a4136a48cde1fd653a1b9649bd": {
|
4197 | "translations": {
|
4198 | "python": {
|
4199 | "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)",
|
4200 | "version": "2"
|
4201 | },
|
4202 | "csharp": {
|
4203 | "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};",
|
4204 | "version": "1"
|
4205 | },
|
4206 | "java": {
|
4207 | "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();",
|
4208 | "version": "1"
|
4209 | },
|
4210 | "go": {
|
4211 | "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}",
|
4212 | "version": "1"
|
4213 | },
|
4214 | "$": {
|
4215 | "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};",
|
4216 | "version": "0"
|
4217 | }
|
4218 | },
|
4219 | "location": {
|
4220 | "api": {
|
4221 | "api": "type",
|
4222 | "fqn": "@aws-cdk/aws-ecs.AuthorizationConfig"
|
4223 | },
|
4224 | "field": {
|
4225 | "field": "example"
|
4226 | }
|
4227 | },
|
4228 | "didCompile": true,
|
4229 | "fqnsReferenced": [
|
4230 | "@aws-cdk/aws-ecs.AuthorizationConfig"
|
4231 | ],
|
4232 | "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} }",
|
4233 | "syntaxKindCounter": {
|
4234 | "10": 3,
|
4235 | "75": 6,
|
4236 | "153": 1,
|
4237 | "169": 1,
|
4238 | "193": 1,
|
4239 | "225": 1,
|
4240 | "242": 1,
|
4241 | "243": 1,
|
4242 | "254": 1,
|
4243 | "255": 1,
|
4244 | "256": 1,
|
4245 | "281": 2,
|
4246 | "290": 1
|
4247 | },
|
4248 | "fqnsFingerprint": "d85b02e9c3bad0eed6e1a48fbf7f0f08693034fc825b7bd4966ed57c68432f85"
|
4249 | },
|
4250 | "64e34658ac071b0a559a22cf6b5d093afc4efef47f3b62b753bb9381a18052f5": {
|
4251 | "translations": {
|
4252 | "python": {
|
4253 | "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))",
|
4254 | "version": "2"
|
4255 | },
|
4256 | "csharp": {
|
4257 | "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}));",
|
4258 | "version": "1"
|
4259 | },
|
4260 | "java": {
|
4261 | "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());",
|
4262 | "version": "1"
|
4263 | },
|
4264 | "go": {
|
4265 | "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}))",
|
4266 | "version": "1"
|
4267 | },
|
4268 | "$": {
|
4269 | "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}));",
|
4270 | "version": "0"
|
4271 | }
|
4272 | },
|
4273 | "location": {
|
4274 | "api": {
|
4275 | "api": "type",
|
4276 | "fqn": "@aws-cdk/aws-ecs.AwsLogDriver"
|
4277 | },
|
4278 | "field": {
|
4279 | "field": "example"
|
4280 | }
|
4281 | },
|
4282 | "didCompile": true,
|
4283 | "fqnsReferenced": [
|
4284 | "@aws-cdk/aws-ecs.AwsLogDriver",
|
4285 | "@aws-cdk/aws-ecs.AwsLogDriverMode",
|
4286 | "@aws-cdk/aws-ecs.AwsLogDriverMode#NON_BLOCKING",
|
4287 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
4288 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
4289 | "@aws-cdk/aws-ecs.ContainerImage",
|
4290 | "@aws-cdk/aws-ecs.ContainerImage#fromAsset",
|
4291 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
4292 | "@aws-cdk/aws-ecs.ICluster",
|
4293 | "@aws-cdk/aws-ecs.ITaskDefinition",
|
4294 | "@aws-cdk/aws-ecs.LogDriver",
|
4295 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
4296 | "@aws-cdk/aws-events-targets.EcsTask",
|
4297 | "@aws-cdk/aws-events-targets.EcsTaskProps",
|
4298 | "@aws-cdk/aws-events.IRuleTarget",
|
4299 | "@aws-cdk/aws-events.Rule",
|
4300 | "@aws-cdk/aws-events.Rule#addTarget",
|
4301 | "@aws-cdk/aws-events.RuleProps",
|
4302 | "@aws-cdk/aws-events.Schedule",
|
4303 | "@aws-cdk/aws-events.Schedule#expression",
|
4304 | "constructs.Construct"
|
4305 | ],
|
4306 | "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",
|
4307 | "syntaxKindCounter": {
|
4308 | "8": 2,
|
4309 | "10": 10,
|
4310 | "75": 43,
|
4311 | "104": 2,
|
4312 | "130": 1,
|
4313 | "153": 1,
|
4314 | "169": 1,
|
4315 | "192": 2,
|
4316 | "193": 6,
|
4317 | "194": 13,
|
4318 | "196": 5,
|
4319 | "197": 4,
|
4320 | "225": 3,
|
4321 | "226": 2,
|
4322 | "242": 3,
|
4323 | "243": 3,
|
4324 | "281": 12,
|
4325 | "282": 2,
|
4326 | "290": 1
|
4327 | },
|
4328 | "fqnsFingerprint": "2c6371ccf10b1d669ada11a4298f57e72950ce1bcf14a138a3b24cf1e093719f"
|
4329 | },
|
4330 | "5ccb660d129fa97188cd4d5fc28f29fb7954b263e17a981286992298db1f2141": {
|
4331 | "translations": {
|
4332 | "python": {
|
4333 | "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))",
|
4334 | "version": "2"
|
4335 | },
|
4336 | "csharp": {
|
4337 | "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}));",
|
4338 | "version": "1"
|
4339 | },
|
4340 | "java": {
|
4341 | "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());",
|
4342 | "version": "1"
|
4343 | },
|
4344 | "go": {
|
4345 | "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}))",
|
4346 | "version": "1"
|
4347 | },
|
4348 | "$": {
|
4349 | "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}));",
|
4350 | "version": "0"
|
4351 | }
|
4352 | },
|
4353 | "location": {
|
4354 | "api": {
|
4355 | "api": "type",
|
4356 | "fqn": "@aws-cdk/aws-ecs.AwsLogDriverMode"
|
4357 | },
|
4358 | "field": {
|
4359 | "field": "example"
|
4360 | }
|
4361 | },
|
4362 | "didCompile": true,
|
4363 | "fqnsReferenced": [
|
4364 | "@aws-cdk/aws-ecs.AwsLogDriver",
|
4365 | "@aws-cdk/aws-ecs.AwsLogDriverMode",
|
4366 | "@aws-cdk/aws-ecs.AwsLogDriverMode#NON_BLOCKING",
|
4367 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
4368 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
4369 | "@aws-cdk/aws-ecs.ContainerImage",
|
4370 | "@aws-cdk/aws-ecs.ContainerImage#fromAsset",
|
4371 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
4372 | "@aws-cdk/aws-ecs.ICluster",
|
4373 | "@aws-cdk/aws-ecs.ITaskDefinition",
|
4374 | "@aws-cdk/aws-ecs.LogDriver",
|
4375 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
4376 | "@aws-cdk/aws-events-targets.EcsTask",
|
4377 | "@aws-cdk/aws-events-targets.EcsTaskProps",
|
4378 | "@aws-cdk/aws-events.IRuleTarget",
|
4379 | "@aws-cdk/aws-events.Rule",
|
4380 | "@aws-cdk/aws-events.Rule#addTarget",
|
4381 | "@aws-cdk/aws-events.RuleProps",
|
4382 | "@aws-cdk/aws-events.Schedule",
|
4383 | "@aws-cdk/aws-events.Schedule#expression",
|
4384 | "constructs.Construct"
|
4385 | ],
|
4386 | "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",
|
4387 | "syntaxKindCounter": {
|
4388 | "8": 2,
|
4389 | "10": 10,
|
4390 | "75": 43,
|
4391 | "104": 2,
|
4392 | "130": 1,
|
4393 | "153": 1,
|
4394 | "169": 1,
|
4395 | "192": 2,
|
4396 | "193": 6,
|
4397 | "194": 13,
|
4398 | "196": 5,
|
4399 | "197": 4,
|
4400 | "225": 3,
|
4401 | "226": 2,
|
4402 | "242": 3,
|
4403 | "243": 3,
|
4404 | "281": 12,
|
4405 | "282": 2,
|
4406 | "290": 1
|
4407 | },
|
4408 | "fqnsFingerprint": "2c6371ccf10b1d669ada11a4298f57e72950ce1bcf14a138a3b24cf1e093719f"
|
4409 | },
|
4410 | "ec3d1d5e381eef3229364ab7c22acea4b49efce7e50cf5831962e59884810ae0": {
|
4411 | "translations": {
|
4412 | "python": {
|
4413 | "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)",
|
4414 | "version": "2"
|
4415 | },
|
4416 | "csharp": {
|
4417 | "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});",
|
4418 | "version": "1"
|
4419 | },
|
4420 | "java": {
|
4421 | "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());",
|
4422 | "version": "1"
|
4423 | },
|
4424 | "go": {
|
4425 | "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})",
|
4426 | "version": "1"
|
4427 | },
|
4428 | "$": {
|
4429 | "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});",
|
4430 | "version": "0"
|
4431 | }
|
4432 | },
|
4433 | "location": {
|
4434 | "api": {
|
4435 | "api": "type",
|
4436 | "fqn": "@aws-cdk/aws-ecs.AwsLogDriverProps"
|
4437 | },
|
4438 | "field": {
|
4439 | "field": "example"
|
4440 | }
|
4441 | },
|
4442 | "didCompile": true,
|
4443 | "fqnsReferenced": [
|
4444 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
4445 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
4446 | "@aws-cdk/aws-ecs.ContainerImage",
|
4447 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
4448 | "@aws-cdk/aws-ecs.CpuArchitecture",
|
4449 | "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
|
4450 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
4451 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
4452 | "@aws-cdk/aws-ecs.LogDriver",
|
4453 | "@aws-cdk/aws-ecs.LogDriver#awsLogs",
|
4454 | "@aws-cdk/aws-ecs.OperatingSystemFamily",
|
4455 | "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
|
4456 | "@aws-cdk/aws-ecs.RuntimePlatform",
|
4457 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
4458 | "constructs.Construct"
|
4459 | ],
|
4460 | "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",
|
4461 | "syntaxKindCounter": {
|
4462 | "8": 3,
|
4463 | "10": 4,
|
4464 | "75": 27,
|
4465 | "104": 1,
|
4466 | "192": 1,
|
4467 | "193": 5,
|
4468 | "194": 10,
|
4469 | "196": 3,
|
4470 | "197": 1,
|
4471 | "225": 1,
|
4472 | "226": 1,
|
4473 | "242": 1,
|
4474 | "243": 1,
|
4475 | "281": 10
|
4476 | },
|
4477 | "fqnsFingerprint": "3df3a1e71685e51672ee7a5bb2dec2ef2f5eafa65ee5ae78ee18f76c30fc6c93"
|
4478 | },
|
4479 | "6ff52d2a47faf92526ecf7d3b8205a7d2b366953db6e2d8665e7cad9df99b243": {
|
4480 | "translations": {
|
4481 | "python": {
|
4482 | "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)",
|
4483 | "version": "2"
|
4484 | },
|
4485 | "csharp": {
|
4486 | "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};",
|
4487 | "version": "1"
|
4488 | },
|
4489 | "java": {
|
4490 | "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();",
|
4491 | "version": "1"
|
4492 | },
|
4493 | "go": {
|
4494 | "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}",
|
4495 | "version": "1"
|
4496 | },
|
4497 | "$": {
|
4498 | "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};",
|
4499 | "version": "0"
|
4500 | }
|
4501 | },
|
4502 | "location": {
|
4503 | "api": {
|
4504 | "api": "type",
|
4505 | "fqn": "@aws-cdk/aws-ecs.BaseLogDriverProps"
|
4506 | },
|
4507 | "field": {
|
4508 | "field": "example"
|
4509 | }
|
4510 | },
|
4511 | "didCompile": true,
|
4512 | "fqnsReferenced": [
|
4513 | "@aws-cdk/aws-ecs.BaseLogDriverProps"
|
4514 | ],
|
4515 | "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} }",
|
4516 | "syntaxKindCounter": {
|
4517 | "10": 5,
|
4518 | "75": 8,
|
4519 | "153": 1,
|
4520 | "169": 1,
|
4521 | "192": 2,
|
4522 | "193": 1,
|
4523 | "225": 1,
|
4524 | "242": 1,
|
4525 | "243": 1,
|
4526 | "254": 1,
|
4527 | "255": 1,
|
4528 | "256": 1,
|
4529 | "281": 4,
|
4530 | "290": 1
|
4531 | },
|
4532 | "fqnsFingerprint": "cb1ae9f14f20efc01cb214ef5547ae89521139d20a72c771649bb768a9795516"
|
4533 | },
|
4534 | "d5a882954e0fbd65e92659bc685629b884dc3744fccc701c22e5c4bdf5d0a0d2": {
|
4535 | "translations": {
|
4536 | "python": {
|
4537 | "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)",
|
4538 | "version": "2"
|
4539 | },
|
4540 | "csharp": {
|
4541 | "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});",
|
4542 | "version": "1"
|
4543 | },
|
4544 | "java": {
|
4545 | "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());",
|
4546 | "version": "1"
|
4547 | },
|
4548 | "go": {
|
4549 | "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})",
|
4550 | "version": "1"
|
4551 | },
|
4552 | "$": {
|
4553 | "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});",
|
4554 | "version": "0"
|
4555 | }
|
4556 | },
|
4557 | "location": {
|
4558 | "api": {
|
4559 | "api": "type",
|
4560 | "fqn": "@aws-cdk/aws-ecs.BaseService"
|
4561 | },
|
4562 | "field": {
|
4563 | "field": "example"
|
4564 | }
|
4565 | },
|
4566 | "didCompile": true,
|
4567 | "fqnsReferenced": [
|
4568 | "@aws-cdk/aws-codepipeline-actions.EcsDeployAction",
|
4569 | "@aws-cdk/aws-codepipeline-actions.EcsDeployActionProps",
|
4570 | "@aws-cdk/aws-codepipeline.Artifact",
|
4571 | "@aws-cdk/aws-codepipeline.IStage",
|
4572 | "@aws-cdk/aws-codepipeline.Pipeline",
|
4573 | "@aws-cdk/aws-codepipeline.Pipeline#addStage",
|
4574 | "@aws-cdk/aws-codepipeline.StageOptions",
|
4575 | "@aws-cdk/aws-ecs.BaseService",
|
4576 | "@aws-cdk/aws-ecs.BaseService#fromServiceArnWithCluster",
|
4577 | "@aws-cdk/aws-ecs.IBaseService",
|
4578 | "constructs.Construct"
|
4579 | ],
|
4580 | "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",
|
4581 | "syntaxKindCounter": {
|
4582 | "10": 6,
|
4583 | "75": 23,
|
4584 | "104": 2,
|
4585 | "192": 1,
|
4586 | "193": 2,
|
4587 | "194": 6,
|
4588 | "196": 2,
|
4589 | "197": 3,
|
4590 | "225": 4,
|
4591 | "242": 4,
|
4592 | "243": 4,
|
4593 | "254": 1,
|
4594 | "255": 1,
|
4595 | "256": 1,
|
4596 | "281": 5,
|
4597 | "290": 1
|
4598 | },
|
4599 | "fqnsFingerprint": "674b04bc5f0a12e69e054b7cbb274ef2c7f4ec6ff9a19b0fb6e8fbc3371dba7f"
|
4600 | },
|
4601 | "0fa11bf0f0753dc888cc2139c0c7312581a0e1861ade19f6a2805945c7b92122": {
|
4602 | "translations": {
|
4603 | "python": {
|
4604 | "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)",
|
4605 | "version": "2"
|
4606 | },
|
4607 | "csharp": {
|
4608 | "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});",
|
4609 | "version": "1"
|
4610 | },
|
4611 | "java": {
|
4612 | "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());",
|
4613 | "version": "1"
|
4614 | },
|
4615 | "go": {
|
4616 | "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})",
|
4617 | "version": "1"
|
4618 | },
|
4619 | "$": {
|
4620 | "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});",
|
4621 | "version": "0"
|
4622 | }
|
4623 | },
|
4624 | "location": {
|
4625 | "api": {
|
4626 | "api": "member",
|
4627 | "fqn": "@aws-cdk/aws-ecs.BaseService",
|
4628 | "memberName": "loadBalancerTarget"
|
4629 | },
|
4630 | "field": {
|
4631 | "field": "example"
|
4632 | }
|
4633 | },
|
4634 | "didCompile": true,
|
4635 | "fqnsReferenced": [
|
4636 | "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
|
4637 | "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
|
4638 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
4639 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener#addTargets"
|
4640 | ],
|
4641 | "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",
|
4642 | "syntaxKindCounter": {
|
4643 | "8": 2,
|
4644 | "10": 2,
|
4645 | "75": 14,
|
4646 | "130": 2,
|
4647 | "153": 2,
|
4648 | "169": 2,
|
4649 | "192": 1,
|
4650 | "193": 2,
|
4651 | "194": 2,
|
4652 | "196": 2,
|
4653 | "225": 2,
|
4654 | "226": 1,
|
4655 | "242": 2,
|
4656 | "243": 2,
|
4657 | "281": 4,
|
4658 | "290": 1
|
4659 | },
|
4660 | "fqnsFingerprint": "633779a1ec99009562148c96d5fc9c0cbb3c9543eb34a030fb20c761a3b654f7"
|
4661 | },
|
4662 | "c9d6a37f16760ea5624209a122282729d34e21b365e19cf06dda576b99de8c3e": {
|
4663 | "translations": {
|
4664 | "python": {
|
4665 | "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)",
|
4666 | "version": "2"
|
4667 | },
|
4668 | "csharp": {
|
4669 | "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});",
|
4670 | "version": "1"
|
4671 | },
|
4672 | "java": {
|
4673 | "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());",
|
4674 | "version": "1"
|
4675 | },
|
4676 | "go": {
|
4677 | "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})",
|
4678 | "version": "1"
|
4679 | },
|
4680 | "$": {
|
4681 | "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)",
|
4682 | "version": "0"
|
4683 | }
|
4684 | },
|
4685 | "location": {
|
4686 | "api": {
|
4687 | "api": "member",
|
4688 | "fqn": "@aws-cdk/aws-ecs.BaseService",
|
4689 | "memberName": "registerLoadBalancerTargets"
|
4690 | },
|
4691 | "field": {
|
4692 | "field": "example"
|
4693 | }
|
4694 | },
|
4695 | "didCompile": true,
|
4696 | "fqnsReferenced": [
|
4697 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
4698 | "@aws-cdk/aws-ecs.EcsTarget",
|
4699 | "@aws-cdk/aws-ecs.ListenerConfig",
|
4700 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
4701 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
4702 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
4703 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
4704 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS"
|
4705 | ],
|
4706 | "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",
|
4707 | "syntaxKindCounter": {
|
4708 | "8": 1,
|
4709 | "10": 2,
|
4710 | "75": 20,
|
4711 | "130": 2,
|
4712 | "153": 2,
|
4713 | "169": 2,
|
4714 | "193": 2,
|
4715 | "194": 5,
|
4716 | "196": 2,
|
4717 | "225": 2,
|
4718 | "226": 1,
|
4719 | "242": 2,
|
4720 | "243": 2,
|
4721 | "281": 5,
|
4722 | "290": 1
|
4723 | },
|
4724 | "fqnsFingerprint": "5def220db92593a0ac3a31bcd25f65f0b96ad7ae2e98ba31324ccc029ca45aa6"
|
4725 | },
|
4726 | "8bde92172dc42e1e354b824d1c1b620469ffabd8a4d1f47b223c8c7953d47768": {
|
4727 | "translations": {
|
4728 | "python": {
|
4729 | "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)",
|
4730 | "version": "2"
|
4731 | },
|
4732 | "csharp": {
|
4733 | "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};",
|
4734 | "version": "1"
|
4735 | },
|
4736 | "java": {
|
4737 | "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();",
|
4738 | "version": "1"
|
4739 | },
|
4740 | "go": {
|
4741 | "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}",
|
4742 | "version": "1"
|
4743 | },
|
4744 | "$": {
|
4745 | "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};",
|
4746 | "version": "0"
|
4747 | }
|
4748 | },
|
4749 | "location": {
|
4750 | "api": {
|
4751 | "api": "type",
|
4752 | "fqn": "@aws-cdk/aws-ecs.BaseServiceOptions"
|
4753 | },
|
4754 | "field": {
|
4755 | "field": "example"
|
4756 | }
|
4757 | },
|
4758 | "didCompile": true,
|
4759 | "fqnsReferenced": [
|
4760 | "@aws-cdk/aws-ecs.BaseServiceOptions",
|
4761 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
4762 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
4763 | "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
|
4764 | "@aws-cdk/aws-ecs.DeploymentController",
|
4765 | "@aws-cdk/aws-ecs.DeploymentControllerType",
|
4766 | "@aws-cdk/aws-ecs.DeploymentControllerType#ECS",
|
4767 | "@aws-cdk/aws-ecs.ICluster",
|
4768 | "@aws-cdk/aws-ecs.PropagatedTagSource",
|
4769 | "@aws-cdk/aws-ecs.PropagatedTagSource#SERVICE",
|
4770 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
4771 | "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
|
4772 | "@aws-cdk/aws-servicediscovery.INamespace",
|
4773 | "@aws-cdk/core.Duration",
|
4774 | "@aws-cdk/core.Duration#minutes"
|
4775 | ],
|
4776 | "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} }",
|
4777 | "syntaxKindCounter": {
|
4778 | "8": 9,
|
4779 | "10": 6,
|
4780 | "75": 62,
|
4781 | "91": 3,
|
4782 | "130": 3,
|
4783 | "153": 4,
|
4784 | "169": 4,
|
4785 | "192": 1,
|
4786 | "193": 5,
|
4787 | "194": 12,
|
4788 | "196": 2,
|
4789 | "225": 4,
|
4790 | "242": 4,
|
4791 | "243": 4,
|
4792 | "254": 3,
|
4793 | "255": 3,
|
4794 | "256": 3,
|
4795 | "281": 26,
|
4796 | "290": 1
|
4797 | },
|
4798 | "fqnsFingerprint": "c0969d87a88fab24174d41ae620bbf46c20d46234fa024a4f0b7b23b70173cc6"
|
4799 | },
|
4800 | "f78201f0aa5fdc1763f112372661a26b1240e3890ee3d2b4aac186005eebccd5": {
|
4801 | "translations": {
|
4802 | "python": {
|
4803 | "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)",
|
4804 | "version": "2"
|
4805 | },
|
4806 | "csharp": {
|
4807 | "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};",
|
4808 | "version": "1"
|
4809 | },
|
4810 | "java": {
|
4811 | "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();",
|
4812 | "version": "1"
|
4813 | },
|
4814 | "go": {
|
4815 | "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}",
|
4816 | "version": "1"
|
4817 | },
|
4818 | "$": {
|
4819 | "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};",
|
4820 | "version": "0"
|
4821 | }
|
4822 | },
|
4823 | "location": {
|
4824 | "api": {
|
4825 | "api": "type",
|
4826 | "fqn": "@aws-cdk/aws-ecs.BaseServiceProps"
|
4827 | },
|
4828 | "field": {
|
4829 | "field": "example"
|
4830 | }
|
4831 | },
|
4832 | "didCompile": true,
|
4833 | "fqnsReferenced": [
|
4834 | "@aws-cdk/aws-ecs.BaseServiceProps",
|
4835 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
4836 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
4837 | "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
|
4838 | "@aws-cdk/aws-ecs.DeploymentController",
|
4839 | "@aws-cdk/aws-ecs.DeploymentControllerType",
|
4840 | "@aws-cdk/aws-ecs.DeploymentControllerType#ECS",
|
4841 | "@aws-cdk/aws-ecs.ICluster",
|
4842 | "@aws-cdk/aws-ecs.LaunchType",
|
4843 | "@aws-cdk/aws-ecs.LaunchType#EC2",
|
4844 | "@aws-cdk/aws-ecs.PropagatedTagSource",
|
4845 | "@aws-cdk/aws-ecs.PropagatedTagSource#SERVICE",
|
4846 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
4847 | "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
|
4848 | "@aws-cdk/aws-servicediscovery.INamespace",
|
4849 | "@aws-cdk/core.Duration",
|
4850 | "@aws-cdk/core.Duration#minutes"
|
4851 | ],
|
4852 | "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} }",
|
4853 | "syntaxKindCounter": {
|
4854 | "8": 9,
|
4855 | "10": 6,
|
4856 | "75": 66,
|
4857 | "91": 3,
|
4858 | "130": 3,
|
4859 | "153": 4,
|
4860 | "169": 4,
|
4861 | "192": 1,
|
4862 | "193": 5,
|
4863 | "194": 14,
|
4864 | "196": 2,
|
4865 | "225": 4,
|
4866 | "242": 4,
|
4867 | "243": 4,
|
4868 | "254": 3,
|
4869 | "255": 3,
|
4870 | "256": 3,
|
4871 | "281": 27,
|
4872 | "290": 1
|
4873 | },
|
4874 | "fqnsFingerprint": "501df97c57087b45cc97199010f3a50b42251781e7fc08586b5b29410d8d8ea2"
|
4875 | },
|
4876 | "f26ec2637847fde68928fc82c4bd3712e3f65355224b9207071351ad6f1df1c9": {
|
4877 | "translations": {
|
4878 | "python": {
|
4879 | "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)",
|
4880 | "version": "2"
|
4881 | },
|
4882 | "csharp": {
|
4883 | "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});",
|
4884 | "version": "1"
|
4885 | },
|
4886 | "java": {
|
4887 | "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());",
|
4888 | "version": "1"
|
4889 | },
|
4890 | "go": {
|
4891 | "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})",
|
4892 | "version": "1"
|
4893 | },
|
4894 | "$": {
|
4895 | "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});",
|
4896 | "version": "0"
|
4897 | }
|
4898 | },
|
4899 | "location": {
|
4900 | "api": {
|
4901 | "api": "type",
|
4902 | "fqn": "@aws-cdk/aws-ecs.BottleRocketImage"
|
4903 | },
|
4904 | "field": {
|
4905 | "field": "example"
|
4906 | }
|
4907 | },
|
4908 | "didCompile": true,
|
4909 | "fqnsReferenced": [
|
4910 | "@aws-cdk/aws-ec2.IMachineImage",
|
4911 | "@aws-cdk/aws-ec2.InstanceType",
|
4912 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
4913 | "@aws-cdk/aws-ecs.BottleRocketImage",
|
4914 | "@aws-cdk/aws-ecs.Cluster#addCapacity"
|
4915 | ],
|
4916 | "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",
|
4917 | "syntaxKindCounter": {
|
4918 | "8": 1,
|
4919 | "10": 2,
|
4920 | "75": 12,
|
4921 | "130": 1,
|
4922 | "153": 1,
|
4923 | "169": 1,
|
4924 | "193": 1,
|
4925 | "194": 3,
|
4926 | "196": 1,
|
4927 | "197": 2,
|
4928 | "225": 1,
|
4929 | "226": 1,
|
4930 | "242": 1,
|
4931 | "243": 1,
|
4932 | "281": 3,
|
4933 | "290": 1
|
4934 | },
|
4935 | "fqnsFingerprint": "b8554841fa48237100424144dc8f52d978e4802d4e2a2f829eace1989b903e9a"
|
4936 | },
|
4937 | "f9228c7d120eb71a536301613d3fe128ac78568fb1f681cfbfa4c9902fb92c99": {
|
4938 | "translations": {
|
4939 | "python": {
|
4940 | "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)",
|
4941 | "version": "2"
|
4942 | },
|
4943 | "csharp": {
|
4944 | "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};",
|
4945 | "version": "1"
|
4946 | },
|
4947 | "java": {
|
4948 | "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();",
|
4949 | "version": "1"
|
4950 | },
|
4951 | "go": {
|
4952 | "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}",
|
4953 | "version": "1"
|
4954 | },
|
4955 | "$": {
|
4956 | "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};",
|
4957 | "version": "0"
|
4958 | }
|
4959 | },
|
4960 | "location": {
|
4961 | "api": {
|
4962 | "api": "type",
|
4963 | "fqn": "@aws-cdk/aws-ecs.BottleRocketImageProps"
|
4964 | },
|
4965 | "field": {
|
4966 | "field": "example"
|
4967 | }
|
4968 | },
|
4969 | "didCompile": true,
|
4970 | "fqnsReferenced": [
|
4971 | "@aws-cdk/aws-ec2.InstanceArchitecture",
|
4972 | "@aws-cdk/aws-ec2.InstanceArchitecture#ARM_64",
|
4973 | "@aws-cdk/aws-ecs.BottleRocketImageProps",
|
4974 | "@aws-cdk/aws-ecs.BottlerocketEcsVariant",
|
4975 | "@aws-cdk/aws-ecs.BottlerocketEcsVariant#AWS_ECS_1"
|
4976 | ],
|
4977 | "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} }",
|
4978 | "syntaxKindCounter": {
|
4979 | "10": 2,
|
4980 | "75": 14,
|
4981 | "91": 1,
|
4982 | "153": 1,
|
4983 | "169": 1,
|
4984 | "193": 1,
|
4985 | "194": 4,
|
4986 | "225": 1,
|
4987 | "242": 1,
|
4988 | "243": 1,
|
4989 | "254": 2,
|
4990 | "255": 2,
|
4991 | "256": 2,
|
4992 | "281": 3,
|
4993 | "290": 1
|
4994 | },
|
4995 | "fqnsFingerprint": "57930f49301953ef7a5c0220c16a94f0c1df063af54293dbdb172e6b0511d6da"
|
4996 | },
|
4997 | "9d1f2f9e39707fbfa3c874ec045c5c22903e689d270e18e3645468ada3fb8696": {
|
4998 | "translations": {
|
4999 | "python": {
|
5000 | "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()",
|
5001 | "version": "2"
|
5002 | },
|
5003 | "csharp": {
|
5004 | "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();",
|
5005 | "version": "1"
|
5006 | },
|
5007 | "java": {
|
5008 | "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();",
|
5009 | "version": "1"
|
5010 | },
|
5011 | "go": {
|
5012 | "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()",
|
5013 | "version": "1"
|
5014 | },
|
5015 | "$": {
|
5016 | "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();",
|
5017 | "version": "0"
|
5018 | }
|
5019 | },
|
5020 | "location": {
|
5021 | "api": {
|
5022 | "api": "type",
|
5023 | "fqn": "@aws-cdk/aws-ecs.BuiltInAttributes"
|
5024 | },
|
5025 | "field": {
|
5026 | "field": "example"
|
5027 | }
|
5028 | },
|
5029 | "didCompile": true,
|
5030 | "fqnsReferenced": [
|
5031 | "@aws-cdk/aws-ecs.BuiltInAttributes"
|
5032 | ],
|
5033 | "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} }",
|
5034 | "syntaxKindCounter": {
|
5035 | "10": 1,
|
5036 | "75": 4,
|
5037 | "194": 1,
|
5038 | "197": 1,
|
5039 | "225": 1,
|
5040 | "242": 1,
|
5041 | "243": 1,
|
5042 | "254": 1,
|
5043 | "255": 1,
|
5044 | "256": 1,
|
5045 | "290": 1
|
5046 | },
|
5047 | "fqnsFingerprint": "88d9c6ae3fbb57c3676e8264f02e962c4ebcb92f69258b2d0630e6e0435df6da"
|
5048 | },
|
5049 | "ef3713a614bd4425268da9bd5de9dfadbb26994f2fec53fcff62de6bb2288442": {
|
5050 | "translations": {
|
5051 | "python": {
|
5052 | "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)",
|
5053 | "version": "2"
|
5054 | },
|
5055 | "csharp": {
|
5056 | "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};",
|
5057 | "version": "1"
|
5058 | },
|
5059 | "java": {
|
5060 | "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();",
|
5061 | "version": "1"
|
5062 | },
|
5063 | "go": {
|
5064 | "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}",
|
5065 | "version": "1"
|
5066 | },
|
5067 | "$": {
|
5068 | "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};",
|
5069 | "version": "0"
|
5070 | }
|
5071 | },
|
5072 | "location": {
|
5073 | "api": {
|
5074 | "api": "type",
|
5075 | "fqn": "@aws-cdk/aws-ecs.CapacityProviderStrategy"
|
5076 | },
|
5077 | "field": {
|
5078 | "field": "example"
|
5079 | }
|
5080 | },
|
5081 | "didCompile": true,
|
5082 | "fqnsReferenced": [
|
5083 | "@aws-cdk/aws-ecs.CapacityProviderStrategy"
|
5084 | ],
|
5085 | "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} }",
|
5086 | "syntaxKindCounter": {
|
5087 | "8": 2,
|
5088 | "10": 2,
|
5089 | "75": 7,
|
5090 | "153": 1,
|
5091 | "169": 1,
|
5092 | "193": 1,
|
5093 | "225": 1,
|
5094 | "242": 1,
|
5095 | "243": 1,
|
5096 | "254": 1,
|
5097 | "255": 1,
|
5098 | "256": 1,
|
5099 | "281": 3,
|
5100 | "290": 1
|
5101 | },
|
5102 | "fqnsFingerprint": "0345fbf2c8cb1082cfaae802a7ad0511314d6eb03d47360246da79b25df36cb0"
|
5103 | },
|
5104 | "f9d48b11a4d56b6aef849c93ef02d5136df9a752982be176c98a616048cc29c9": {
|
5105 | "translations": {
|
5106 | "python": {
|
5107 | "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)",
|
5108 | "version": "2"
|
5109 | },
|
5110 | "csharp": {
|
5111 | "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});",
|
5112 | "version": "1"
|
5113 | },
|
5114 | "java": {
|
5115 | "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();",
|
5116 | "version": "1"
|
5117 | },
|
5118 | "go": {
|
5119 | "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})",
|
5120 | "version": "1"
|
5121 | },
|
5122 | "$": {
|
5123 | "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});",
|
5124 | "version": "0"
|
5125 | }
|
5126 | },
|
5127 | "location": {
|
5128 | "api": {
|
5129 | "api": "type",
|
5130 | "fqn": "@aws-cdk/aws-ecs.CfnCapacityProvider"
|
5131 | },
|
5132 | "field": {
|
5133 | "field": "example"
|
5134 | }
|
5135 | },
|
5136 | "didCompile": true,
|
5137 | "fqnsReferenced": [
|
5138 | "@aws-cdk/aws-ecs.CfnCapacityProvider",
|
5139 | "@aws-cdk/aws-ecs.CfnCapacityProviderProps",
|
5140 | "@aws-cdk/core.Construct"
|
5141 | ],
|
5142 | "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} }",
|
5143 | "syntaxKindCounter": {
|
5144 | "8": 4,
|
5145 | "10": 8,
|
5146 | "75": 17,
|
5147 | "104": 1,
|
5148 | "192": 1,
|
5149 | "193": 4,
|
5150 | "194": 1,
|
5151 | "197": 1,
|
5152 | "225": 1,
|
5153 | "242": 1,
|
5154 | "243": 1,
|
5155 | "254": 1,
|
5156 | "255": 1,
|
5157 | "256": 1,
|
5158 | "281": 13,
|
5159 | "290": 1
|
5160 | },
|
5161 | "fqnsFingerprint": "31a96b6f34b30b98ecf581cc63c5856d1145bf27631858e4c2d88d45d210cdef"
|
5162 | },
|
5163 | "2980f4668219766e0fa825a82fe0d2b8568369283d4e08d4d96e1f0259b67493": {
|
5164 | "translations": {
|
5165 | "python": {
|
5166 | "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)",
|
5167 | "version": "2"
|
5168 | },
|
5169 | "csharp": {
|
5170 | "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};",
|
5171 | "version": "1"
|
5172 | },
|
5173 | "java": {
|
5174 | "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();",
|
5175 | "version": "1"
|
5176 | },
|
5177 | "go": {
|
5178 | "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}",
|
5179 | "version": "1"
|
5180 | },
|
5181 | "$": {
|
5182 | "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};",
|
5183 | "version": "0"
|
5184 | }
|
5185 | },
|
5186 | "location": {
|
5187 | "api": {
|
5188 | "api": "type",
|
5189 | "fqn": "@aws-cdk/aws-ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty"
|
5190 | },
|
5191 | "field": {
|
5192 | "field": "example"
|
5193 | }
|
5194 | },
|
5195 | "didCompile": true,
|
5196 | "fqnsReferenced": [
|
5197 | "@aws-cdk/aws-ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty"
|
5198 | ],
|
5199 | "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} }",
|
5200 | "syntaxKindCounter": {
|
5201 | "8": 4,
|
5202 | "10": 4,
|
5203 | "75": 13,
|
5204 | "153": 2,
|
5205 | "169": 1,
|
5206 | "193": 2,
|
5207 | "225": 1,
|
5208 | "242": 1,
|
5209 | "243": 1,
|
5210 | "254": 1,
|
5211 | "255": 1,
|
5212 | "256": 1,
|
5213 | "281": 8,
|
5214 | "290": 1
|
5215 | },
|
5216 | "fqnsFingerprint": "cb9ab075529722de75ca4c40bbe273b465d3e0a7f0c78c1652d2167cb1eb9eb3"
|
5217 | },
|
5218 | "e39f18b851e6025ed109aaed5fd4e3799852a322a56e23e6b4c9dbaf5755b87b": {
|
5219 | "translations": {
|
5220 | "python": {
|
5221 | "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)",
|
5222 | "version": "2"
|
5223 | },
|
5224 | "csharp": {
|
5225 | "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};",
|
5226 | "version": "1"
|
5227 | },
|
5228 | "java": {
|
5229 | "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();",
|
5230 | "version": "1"
|
5231 | },
|
5232 | "go": {
|
5233 | "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}",
|
5234 | "version": "1"
|
5235 | },
|
5236 | "$": {
|
5237 | "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};",
|
5238 | "version": "0"
|
5239 | }
|
5240 | },
|
5241 | "location": {
|
5242 | "api": {
|
5243 | "api": "type",
|
5244 | "fqn": "@aws-cdk/aws-ecs.CfnCapacityProvider.ManagedScalingProperty"
|
5245 | },
|
5246 | "field": {
|
5247 | "field": "example"
|
5248 | }
|
5249 | },
|
5250 | "didCompile": true,
|
5251 | "fqnsReferenced": [
|
5252 | "@aws-cdk/aws-ecs.CfnCapacityProvider.ManagedScalingProperty"
|
5253 | ],
|
5254 | "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} }",
|
5255 | "syntaxKindCounter": {
|
5256 | "8": 4,
|
5257 | "10": 2,
|
5258 | "75": 10,
|
5259 | "153": 2,
|
5260 | "169": 1,
|
5261 | "193": 1,
|
5262 | "225": 1,
|
5263 | "242": 1,
|
5264 | "243": 1,
|
5265 | "254": 1,
|
5266 | "255": 1,
|
5267 | "256": 1,
|
5268 | "281": 5,
|
5269 | "290": 1
|
5270 | },
|
5271 | "fqnsFingerprint": "d799035507b15e19c7e2b0344d744ad85d9416022434678c48a83d8a27dba66a"
|
5272 | },
|
5273 | "2ba9d06db32878a23513dac80bba8e8b0341d1f9743986b00225c2b7595aed99": {
|
5274 | "translations": {
|
5275 | "python": {
|
5276 | "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)",
|
5277 | "version": "2"
|
5278 | },
|
5279 | "csharp": {
|
5280 | "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};",
|
5281 | "version": "1"
|
5282 | },
|
5283 | "java": {
|
5284 | "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();",
|
5285 | "version": "1"
|
5286 | },
|
5287 | "go": {
|
5288 | "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}",
|
5289 | "version": "1"
|
5290 | },
|
5291 | "$": {
|
5292 | "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};",
|
5293 | "version": "0"
|
5294 | }
|
5295 | },
|
5296 | "location": {
|
5297 | "api": {
|
5298 | "api": "type",
|
5299 | "fqn": "@aws-cdk/aws-ecs.CfnCapacityProviderProps"
|
5300 | },
|
5301 | "field": {
|
5302 | "field": "example"
|
5303 | }
|
5304 | },
|
5305 | "didCompile": true,
|
5306 | "fqnsReferenced": [
|
5307 | "@aws-cdk/aws-ecs.CfnCapacityProviderProps"
|
5308 | ],
|
5309 | "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} }",
|
5310 | "syntaxKindCounter": {
|
5311 | "8": 4,
|
5312 | "10": 7,
|
5313 | "75": 17,
|
5314 | "153": 1,
|
5315 | "169": 1,
|
5316 | "192": 1,
|
5317 | "193": 4,
|
5318 | "225": 1,
|
5319 | "242": 1,
|
5320 | "243": 1,
|
5321 | "254": 1,
|
5322 | "255": 1,
|
5323 | "256": 1,
|
5324 | "281": 13,
|
5325 | "290": 1
|
5326 | },
|
5327 | "fqnsFingerprint": "71dc16f61cdcb0367b13fff23226325c3102c3e9bdcf6570394f40eda8a5878d"
|
5328 | },
|
5329 | "a0554c8bfebde349d8a75ab6f05ed3ec0f0e10e4f8152a60aaf49a075a80b720": {
|
5330 | "translations": {
|
5331 | "python": {
|
5332 | "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)",
|
5333 | "version": "2"
|
5334 | },
|
5335 | "csharp": {
|
5336 | "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});",
|
5337 | "version": "1"
|
5338 | },
|
5339 | "java": {
|
5340 | "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();",
|
5341 | "version": "1"
|
5342 | },
|
5343 | "go": {
|
5344 | "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})",
|
5345 | "version": "1"
|
5346 | },
|
5347 | "$": {
|
5348 | "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});",
|
5349 | "version": "0"
|
5350 | }
|
5351 | },
|
5352 | "location": {
|
5353 | "api": {
|
5354 | "api": "type",
|
5355 | "fqn": "@aws-cdk/aws-ecs.CfnCluster"
|
5356 | },
|
5357 | "field": {
|
5358 | "field": "example"
|
5359 | }
|
5360 | },
|
5361 | "didCompile": true,
|
5362 | "fqnsReferenced": [
|
5363 | "@aws-cdk/aws-ecs.CfnCluster",
|
5364 | "@aws-cdk/aws-ecs.CfnClusterProps",
|
5365 | "@aws-cdk/core.Construct"
|
5366 | ],
|
5367 | "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} }",
|
5368 | "syntaxKindCounter": {
|
5369 | "8": 2,
|
5370 | "10": 14,
|
5371 | "75": 26,
|
5372 | "91": 2,
|
5373 | "104": 1,
|
5374 | "192": 4,
|
5375 | "193": 7,
|
5376 | "194": 1,
|
5377 | "197": 1,
|
5378 | "225": 1,
|
5379 | "242": 1,
|
5380 | "243": 1,
|
5381 | "254": 1,
|
5382 | "255": 1,
|
5383 | "256": 1,
|
5384 | "281": 22,
|
5385 | "290": 1
|
5386 | },
|
5387 | "fqnsFingerprint": "060ddd33a067a7e04850e29dc21a436b07e10f376409f5f1f469d688b3f8f130"
|
5388 | },
|
5389 | "05077a61fc9126493f5a3299dba755a44beff3646619e5bbac25d293afabdf9c": {
|
5390 | "translations": {
|
5391 | "python": {
|
5392 | "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)",
|
5393 | "version": "2"
|
5394 | },
|
5395 | "csharp": {
|
5396 | "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};",
|
5397 | "version": "1"
|
5398 | },
|
5399 | "java": {
|
5400 | "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();",
|
5401 | "version": "1"
|
5402 | },
|
5403 | "go": {
|
5404 | "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}",
|
5405 | "version": "1"
|
5406 | },
|
5407 | "$": {
|
5408 | "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};",
|
5409 | "version": "0"
|
5410 | }
|
5411 | },
|
5412 | "location": {
|
5413 | "api": {
|
5414 | "api": "type",
|
5415 | "fqn": "@aws-cdk/aws-ecs.CfnCluster.CapacityProviderStrategyItemProperty"
|
5416 | },
|
5417 | "field": {
|
5418 | "field": "example"
|
5419 | }
|
5420 | },
|
5421 | "didCompile": true,
|
5422 | "fqnsReferenced": [
|
5423 | "@aws-cdk/aws-ecs.CfnCluster.CapacityProviderStrategyItemProperty"
|
5424 | ],
|
5425 | "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} }",
|
5426 | "syntaxKindCounter": {
|
5427 | "8": 2,
|
5428 | "10": 2,
|
5429 | "75": 8,
|
5430 | "153": 2,
|
5431 | "169": 1,
|
5432 | "193": 1,
|
5433 | "225": 1,
|
5434 | "242": 1,
|
5435 | "243": 1,
|
5436 | "254": 1,
|
5437 | "255": 1,
|
5438 | "256": 1,
|
5439 | "281": 3,
|
5440 | "290": 1
|
5441 | },
|
5442 | "fqnsFingerprint": "02d4ef446b9d3cd995fcf621adb9df3778cab237d4f054a68976c6490396b956"
|
5443 | },
|
5444 | "5ca69da183b29dba3fd08df973c211fb71b3dc9c170d472e7d966fae9ad5ea52": {
|
5445 | "translations": {
|
5446 | "python": {
|
5447 | "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)",
|
5448 | "version": "2"
|
5449 | },
|
5450 | "csharp": {
|
5451 | "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};",
|
5452 | "version": "1"
|
5453 | },
|
5454 | "java": {
|
5455 | "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();",
|
5456 | "version": "1"
|
5457 | },
|
5458 | "go": {
|
5459 | "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}",
|
5460 | "version": "1"
|
5461 | },
|
5462 | "$": {
|
5463 | "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};",
|
5464 | "version": "0"
|
5465 | }
|
5466 | },
|
5467 | "location": {
|
5468 | "api": {
|
5469 | "api": "type",
|
5470 | "fqn": "@aws-cdk/aws-ecs.CfnCluster.ClusterConfigurationProperty"
|
5471 | },
|
5472 | "field": {
|
5473 | "field": "example"
|
5474 | }
|
5475 | },
|
5476 | "didCompile": true,
|
5477 | "fqnsReferenced": [
|
5478 | "@aws-cdk/aws-ecs.CfnCluster.ClusterConfigurationProperty"
|
5479 | ],
|
5480 | "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} }",
|
5481 | "syntaxKindCounter": {
|
5482 | "10": 6,
|
5483 | "75": 14,
|
5484 | "91": 2,
|
5485 | "153": 2,
|
5486 | "169": 1,
|
5487 | "193": 3,
|
5488 | "225": 1,
|
5489 | "242": 1,
|
5490 | "243": 1,
|
5491 | "254": 1,
|
5492 | "255": 1,
|
5493 | "256": 1,
|
5494 | "281": 9,
|
5495 | "290": 1
|
5496 | },
|
5497 | "fqnsFingerprint": "43474998c8b0fecc5cf3c0ca8ea53797f2bf965670e369b0b855cb42d5946c1b"
|
5498 | },
|
5499 | "b302d7b686fdafaed598b4ec020bb6509715a7cd68cedd90667dda78db177f8f": {
|
5500 | "translations": {
|
5501 | "python": {
|
5502 | "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)",
|
5503 | "version": "2"
|
5504 | },
|
5505 | "csharp": {
|
5506 | "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};",
|
5507 | "version": "1"
|
5508 | },
|
5509 | "java": {
|
5510 | "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();",
|
5511 | "version": "1"
|
5512 | },
|
5513 | "go": {
|
5514 | "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}",
|
5515 | "version": "1"
|
5516 | },
|
5517 | "$": {
|
5518 | "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};",
|
5519 | "version": "0"
|
5520 | }
|
5521 | },
|
5522 | "location": {
|
5523 | "api": {
|
5524 | "api": "type",
|
5525 | "fqn": "@aws-cdk/aws-ecs.CfnCluster.ClusterSettingsProperty"
|
5526 | },
|
5527 | "field": {
|
5528 | "field": "example"
|
5529 | }
|
5530 | },
|
5531 | "didCompile": true,
|
5532 | "fqnsReferenced": [
|
5533 | "@aws-cdk/aws-ecs.CfnCluster.ClusterSettingsProperty"
|
5534 | ],
|
5535 | "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} }",
|
5536 | "syntaxKindCounter": {
|
5537 | "10": 3,
|
5538 | "75": 7,
|
5539 | "153": 2,
|
5540 | "169": 1,
|
5541 | "193": 1,
|
5542 | "225": 1,
|
5543 | "242": 1,
|
5544 | "243": 1,
|
5545 | "254": 1,
|
5546 | "255": 1,
|
5547 | "256": 1,
|
5548 | "281": 2,
|
5549 | "290": 1
|
5550 | },
|
5551 | "fqnsFingerprint": "d9a969388b55dc1ca027a97b5f0a8e82baf19325bd795f91e9d4de7f193b8ad9"
|
5552 | },
|
5553 | "2966fa2d43b1e44fc4e0780dff9218ebc1611ad4a3571f9730e251d06038e8e5": {
|
5554 | "translations": {
|
5555 | "python": {
|
5556 | "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)",
|
5557 | "version": "2"
|
5558 | },
|
5559 | "csharp": {
|
5560 | "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};",
|
5561 | "version": "1"
|
5562 | },
|
5563 | "java": {
|
5564 | "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();",
|
5565 | "version": "1"
|
5566 | },
|
5567 | "go": {
|
5568 | "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}",
|
5569 | "version": "1"
|
5570 | },
|
5571 | "$": {
|
5572 | "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};",
|
5573 | "version": "0"
|
5574 | }
|
5575 | },
|
5576 | "location": {
|
5577 | "api": {
|
5578 | "api": "type",
|
5579 | "fqn": "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandConfigurationProperty"
|
5580 | },
|
5581 | "field": {
|
5582 | "field": "example"
|
5583 | }
|
5584 | },
|
5585 | "didCompile": true,
|
5586 | "fqnsReferenced": [
|
5587 | "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandConfigurationProperty"
|
5588 | ],
|
5589 | "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} }",
|
5590 | "syntaxKindCounter": {
|
5591 | "10": 6,
|
5592 | "75": 13,
|
5593 | "91": 2,
|
5594 | "153": 2,
|
5595 | "169": 1,
|
5596 | "193": 2,
|
5597 | "225": 1,
|
5598 | "242": 1,
|
5599 | "243": 1,
|
5600 | "254": 1,
|
5601 | "255": 1,
|
5602 | "256": 1,
|
5603 | "281": 8,
|
5604 | "290": 1
|
5605 | },
|
5606 | "fqnsFingerprint": "84a09185c2b53102c4b4a14dc6a404ec1fc33b72670d857182d16d6b0309669f"
|
5607 | },
|
5608 | "d5bc8c40131f14f668f17c659fd56d2196c36e115c7f23ded0f21b4db22da91e": {
|
5609 | "translations": {
|
5610 | "python": {
|
5611 | "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)",
|
5612 | "version": "2"
|
5613 | },
|
5614 | "csharp": {
|
5615 | "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};",
|
5616 | "version": "1"
|
5617 | },
|
5618 | "java": {
|
5619 | "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();",
|
5620 | "version": "1"
|
5621 | },
|
5622 | "go": {
|
5623 | "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}",
|
5624 | "version": "1"
|
5625 | },
|
5626 | "$": {
|
5627 | "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};",
|
5628 | "version": "0"
|
5629 | }
|
5630 | },
|
5631 | "location": {
|
5632 | "api": {
|
5633 | "api": "type",
|
5634 | "fqn": "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandLogConfigurationProperty"
|
5635 | },
|
5636 | "field": {
|
5637 | "field": "example"
|
5638 | }
|
5639 | },
|
5640 | "didCompile": true,
|
5641 | "fqnsReferenced": [
|
5642 | "@aws-cdk/aws-ecs.CfnCluster.ExecuteCommandLogConfigurationProperty"
|
5643 | ],
|
5644 | "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} }",
|
5645 | "syntaxKindCounter": {
|
5646 | "10": 4,
|
5647 | "75": 10,
|
5648 | "91": 2,
|
5649 | "153": 2,
|
5650 | "169": 1,
|
5651 | "193": 1,
|
5652 | "225": 1,
|
5653 | "242": 1,
|
5654 | "243": 1,
|
5655 | "254": 1,
|
5656 | "255": 1,
|
5657 | "256": 1,
|
5658 | "281": 5,
|
5659 | "290": 1
|
5660 | },
|
5661 | "fqnsFingerprint": "ff41584a8de7bfce20ef20a3e97774568fbc9b90ee7f686938ae45ab4426cda1"
|
5662 | },
|
5663 | "426137e803a3f7172e85c538ecb67d504da451fafd981a691dae2dbce309c280": {
|
5664 | "translations": {
|
5665 | "python": {
|
5666 | "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)",
|
5667 | "version": "2"
|
5668 | },
|
5669 | "csharp": {
|
5670 | "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});",
|
5671 | "version": "1"
|
5672 | },
|
5673 | "java": {
|
5674 | "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();",
|
5675 | "version": "1"
|
5676 | },
|
5677 | "go": {
|
5678 | "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})",
|
5679 | "version": "1"
|
5680 | },
|
5681 | "$": {
|
5682 | "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});",
|
5683 | "version": "0"
|
5684 | }
|
5685 | },
|
5686 | "location": {
|
5687 | "api": {
|
5688 | "api": "type",
|
5689 | "fqn": "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations"
|
5690 | },
|
5691 | "field": {
|
5692 | "field": "example"
|
5693 | }
|
5694 | },
|
5695 | "didCompile": true,
|
5696 | "fqnsReferenced": [
|
5697 | "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations",
|
5698 | "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociationsProps",
|
5699 | "@aws-cdk/core.Construct"
|
5700 | ],
|
5701 | "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} }",
|
5702 | "syntaxKindCounter": {
|
5703 | "8": 2,
|
5704 | "10": 5,
|
5705 | "75": 10,
|
5706 | "104": 1,
|
5707 | "192": 2,
|
5708 | "193": 2,
|
5709 | "194": 1,
|
5710 | "197": 1,
|
5711 | "225": 1,
|
5712 | "242": 1,
|
5713 | "243": 1,
|
5714 | "254": 1,
|
5715 | "255": 1,
|
5716 | "256": 1,
|
5717 | "281": 6,
|
5718 | "290": 1
|
5719 | },
|
5720 | "fqnsFingerprint": "847355d7acce1a4c835dd34b57e083678a2f8bc545a9ef53d61e8fead43dbfa0"
|
5721 | },
|
5722 | "f042da0e92c1b23bc89966fc5d74b10ab442a96fa624ae86c7a98eb3f075283d": {
|
5723 | "translations": {
|
5724 | "python": {
|
5725 | "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)",
|
5726 | "version": "2"
|
5727 | },
|
5728 | "csharp": {
|
5729 | "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};",
|
5730 | "version": "1"
|
5731 | },
|
5732 | "java": {
|
5733 | "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();",
|
5734 | "version": "1"
|
5735 | },
|
5736 | "go": {
|
5737 | "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}",
|
5738 | "version": "1"
|
5739 | },
|
5740 | "$": {
|
5741 | "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};",
|
5742 | "version": "0"
|
5743 | }
|
5744 | },
|
5745 | "location": {
|
5746 | "api": {
|
5747 | "api": "type",
|
5748 | "fqn": "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty"
|
5749 | },
|
5750 | "field": {
|
5751 | "field": "example"
|
5752 | }
|
5753 | },
|
5754 | "didCompile": true,
|
5755 | "fqnsReferenced": [
|
5756 | "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociations.CapacityProviderStrategyProperty"
|
5757 | ],
|
5758 | "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} }",
|
5759 | "syntaxKindCounter": {
|
5760 | "8": 2,
|
5761 | "10": 2,
|
5762 | "75": 8,
|
5763 | "153": 2,
|
5764 | "169": 1,
|
5765 | "193": 1,
|
5766 | "225": 1,
|
5767 | "242": 1,
|
5768 | "243": 1,
|
5769 | "254": 1,
|
5770 | "255": 1,
|
5771 | "256": 1,
|
5772 | "281": 3,
|
5773 | "290": 1
|
5774 | },
|
5775 | "fqnsFingerprint": "e2dd491c3afbcf8b2b79b7a0c50e7a5876372f56e60f40f688dd992aaf52c863"
|
5776 | },
|
5777 | "01734873a7c23a5919854b27ba78ed3f7963e157fbe46c8588e858ce90360873": {
|
5778 | "translations": {
|
5779 | "python": {
|
5780 | "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)",
|
5781 | "version": "2"
|
5782 | },
|
5783 | "csharp": {
|
5784 | "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};",
|
5785 | "version": "1"
|
5786 | },
|
5787 | "java": {
|
5788 | "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();",
|
5789 | "version": "1"
|
5790 | },
|
5791 | "go": {
|
5792 | "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}",
|
5793 | "version": "1"
|
5794 | },
|
5795 | "$": {
|
5796 | "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};",
|
5797 | "version": "0"
|
5798 | }
|
5799 | },
|
5800 | "location": {
|
5801 | "api": {
|
5802 | "api": "type",
|
5803 | "fqn": "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociationsProps"
|
5804 | },
|
5805 | "field": {
|
5806 | "field": "example"
|
5807 | }
|
5808 | },
|
5809 | "didCompile": true,
|
5810 | "fqnsReferenced": [
|
5811 | "@aws-cdk/aws-ecs.CfnClusterCapacityProviderAssociationsProps"
|
5812 | ],
|
5813 | "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} }",
|
5814 | "syntaxKindCounter": {
|
5815 | "8": 2,
|
5816 | "10": 4,
|
5817 | "75": 10,
|
5818 | "153": 1,
|
5819 | "169": 1,
|
5820 | "192": 2,
|
5821 | "193": 2,
|
5822 | "225": 1,
|
5823 | "242": 1,
|
5824 | "243": 1,
|
5825 | "254": 1,
|
5826 | "255": 1,
|
5827 | "256": 1,
|
5828 | "281": 6,
|
5829 | "290": 1
|
5830 | },
|
5831 | "fqnsFingerprint": "4fee094ae022880945f78b6ab75f3ff0b7ac2d5f01fb78f70d9defc492d16cd3"
|
5832 | },
|
5833 | "481d9618a7e378c2e637bf15a12255e28514b0025b3792234b31f98eb4dca194": {
|
5834 | "translations": {
|
5835 | "python": {
|
5836 | "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)",
|
5837 | "version": "2"
|
5838 | },
|
5839 | "csharp": {
|
5840 | "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};",
|
5841 | "version": "1"
|
5842 | },
|
5843 | "java": {
|
5844 | "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();",
|
5845 | "version": "1"
|
5846 | },
|
5847 | "go": {
|
5848 | "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}",
|
5849 | "version": "1"
|
5850 | },
|
5851 | "$": {
|
5852 | "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};",
|
5853 | "version": "0"
|
5854 | }
|
5855 | },
|
5856 | "location": {
|
5857 | "api": {
|
5858 | "api": "type",
|
5859 | "fqn": "@aws-cdk/aws-ecs.CfnClusterProps"
|
5860 | },
|
5861 | "field": {
|
5862 | "field": "example"
|
5863 | }
|
5864 | },
|
5865 | "didCompile": true,
|
5866 | "fqnsReferenced": [
|
5867 | "@aws-cdk/aws-ecs.CfnClusterProps"
|
5868 | ],
|
5869 | "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} }",
|
5870 | "syntaxKindCounter": {
|
5871 | "8": 2,
|
5872 | "10": 13,
|
5873 | "75": 26,
|
5874 | "91": 2,
|
5875 | "153": 1,
|
5876 | "169": 1,
|
5877 | "192": 4,
|
5878 | "193": 7,
|
5879 | "225": 1,
|
5880 | "242": 1,
|
5881 | "243": 1,
|
5882 | "254": 1,
|
5883 | "255": 1,
|
5884 | "256": 1,
|
5885 | "281": 22,
|
5886 | "290": 1
|
5887 | },
|
5888 | "fqnsFingerprint": "33ba1589999cef2edacc727649c2a866a6ee1fdb4bd9245710c32fb8f953e024"
|
5889 | },
|
5890 | "543a9f6857da26c1cd77bf31298e99c64cf362b83eac9b780f6d2a75f02422ee": {
|
5891 | "translations": {
|
5892 | "python": {
|
5893 | "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)",
|
5894 | "version": "2"
|
5895 | },
|
5896 | "csharp": {
|
5897 | "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});",
|
5898 | "version": "1"
|
5899 | },
|
5900 | "java": {
|
5901 | "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();",
|
5902 | "version": "1"
|
5903 | },
|
5904 | "go": {
|
5905 | "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})",
|
5906 | "version": "1"
|
5907 | },
|
5908 | "$": {
|
5909 | "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});",
|
5910 | "version": "0"
|
5911 | }
|
5912 | },
|
5913 | "location": {
|
5914 | "api": {
|
5915 | "api": "type",
|
5916 | "fqn": "@aws-cdk/aws-ecs.CfnPrimaryTaskSet"
|
5917 | },
|
5918 | "field": {
|
5919 | "field": "example"
|
5920 | }
|
5921 | },
|
5922 | "didCompile": true,
|
5923 | "fqnsReferenced": [
|
5924 | "@aws-cdk/aws-ecs.CfnPrimaryTaskSet",
|
5925 | "@aws-cdk/aws-ecs.CfnPrimaryTaskSetProps",
|
5926 | "@aws-cdk/core.Construct"
|
5927 | ],
|
5928 | "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} }",
|
5929 | "syntaxKindCounter": {
|
5930 | "10": 5,
|
5931 | "75": 7,
|
5932 | "104": 1,
|
5933 | "193": 1,
|
5934 | "194": 1,
|
5935 | "197": 1,
|
5936 | "225": 1,
|
5937 | "242": 1,
|
5938 | "243": 1,
|
5939 | "254": 1,
|
5940 | "255": 1,
|
5941 | "256": 1,
|
5942 | "281": 3,
|
5943 | "290": 1
|
5944 | },
|
5945 | "fqnsFingerprint": "166a122ad5dab7518c377e8779dae70f3301f7ac2cff319ad7378f6fb3465523"
|
5946 | },
|
5947 | "e3c770045e7c9f6696f1796495064fee766439caaaf04a6693769f2651562d41": {
|
5948 | "translations": {
|
5949 | "python": {
|
5950 | "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)",
|
5951 | "version": "2"
|
5952 | },
|
5953 | "csharp": {
|
5954 | "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};",
|
5955 | "version": "1"
|
5956 | },
|
5957 | "java": {
|
5958 | "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();",
|
5959 | "version": "1"
|
5960 | },
|
5961 | "go": {
|
5962 | "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}",
|
5963 | "version": "1"
|
5964 | },
|
5965 | "$": {
|
5966 | "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};",
|
5967 | "version": "0"
|
5968 | }
|
5969 | },
|
5970 | "location": {
|
5971 | "api": {
|
5972 | "api": "type",
|
5973 | "fqn": "@aws-cdk/aws-ecs.CfnPrimaryTaskSetProps"
|
5974 | },
|
5975 | "field": {
|
5976 | "field": "example"
|
5977 | }
|
5978 | },
|
5979 | "didCompile": true,
|
5980 | "fqnsReferenced": [
|
5981 | "@aws-cdk/aws-ecs.CfnPrimaryTaskSetProps"
|
5982 | ],
|
5983 | "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} }",
|
5984 | "syntaxKindCounter": {
|
5985 | "10": 4,
|
5986 | "75": 7,
|
5987 | "153": 1,
|
5988 | "169": 1,
|
5989 | "193": 1,
|
5990 | "225": 1,
|
5991 | "242": 1,
|
5992 | "243": 1,
|
5993 | "254": 1,
|
5994 | "255": 1,
|
5995 | "256": 1,
|
5996 | "281": 3,
|
5997 | "290": 1
|
5998 | },
|
5999 | "fqnsFingerprint": "9427b3cb68ff3b04a917c5e525261fd65af45c54077d424c260f20db257512d9"
|
6000 | },
|
6001 | "57ee5e1c49cea1f4a757604a60b1621dbb8839f497d85f4dc8e7d50d638fe8fb": {
|
6002 | "translations": {
|
6003 | "python": {
|
6004 | "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)",
|
6005 | "version": "2"
|
6006 | },
|
6007 | "csharp": {
|
6008 | "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});",
|
6009 | "version": "1"
|
6010 | },
|
6011 | "java": {
|
6012 | "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();",
|
6013 | "version": "1"
|
6014 | },
|
6015 | "go": {
|
6016 | "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})",
|
6017 | "version": "1"
|
6018 | },
|
6019 | "$": {
|
6020 | "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});",
|
6021 | "version": "0"
|
6022 | }
|
6023 | },
|
6024 | "location": {
|
6025 | "api": {
|
6026 | "api": "type",
|
6027 | "fqn": "@aws-cdk/aws-ecs.CfnService"
|
6028 | },
|
6029 | "field": {
|
6030 | "field": "example"
|
6031 | }
|
6032 | },
|
6033 | "didCompile": true,
|
6034 | "fqnsReferenced": [
|
6035 | "@aws-cdk/aws-ecs.CfnService",
|
6036 | "@aws-cdk/aws-ecs.CfnServiceProps",
|
6037 | "@aws-cdk/core.Construct"
|
6038 | ],
|
6039 | "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} }",
|
6040 | "syntaxKindCounter": {
|
6041 | "8": 9,
|
6042 | "10": 26,
|
6043 | "75": 52,
|
6044 | "91": 4,
|
6045 | "104": 1,
|
6046 | "192": 8,
|
6047 | "193": 12,
|
6048 | "194": 1,
|
6049 | "197": 1,
|
6050 | "225": 1,
|
6051 | "242": 1,
|
6052 | "243": 1,
|
6053 | "254": 1,
|
6054 | "255": 1,
|
6055 | "256": 1,
|
6056 | "281": 48,
|
6057 | "290": 1
|
6058 | },
|
6059 | "fqnsFingerprint": "d0ca11e9c2941eb8233531c11ca5165c8f4e0bd9d711ed580343aa1b7c8fb81b"
|
6060 | },
|
6061 | "31ad37e54d2e4c264ffdf13ffaa8e70eeb699af0bf515272712c700e8ecb2d5d": {
|
6062 | "translations": {
|
6063 | "python": {
|
6064 | "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)",
|
6065 | "version": "2"
|
6066 | },
|
6067 | "csharp": {
|
6068 | "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};",
|
6069 | "version": "1"
|
6070 | },
|
6071 | "java": {
|
6072 | "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();",
|
6073 | "version": "1"
|
6074 | },
|
6075 | "go": {
|
6076 | "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}",
|
6077 | "version": "1"
|
6078 | },
|
6079 | "$": {
|
6080 | "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};",
|
6081 | "version": "0"
|
6082 | }
|
6083 | },
|
6084 | "location": {
|
6085 | "api": {
|
6086 | "api": "type",
|
6087 | "fqn": "@aws-cdk/aws-ecs.CfnService.AwsVpcConfigurationProperty"
|
6088 | },
|
6089 | "field": {
|
6090 | "field": "example"
|
6091 | }
|
6092 | },
|
6093 | "didCompile": true,
|
6094 | "fqnsReferenced": [
|
6095 | "@aws-cdk/aws-ecs.CfnService.AwsVpcConfigurationProperty"
|
6096 | ],
|
6097 | "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} }",
|
6098 | "syntaxKindCounter": {
|
6099 | "10": 4,
|
6100 | "75": 8,
|
6101 | "153": 2,
|
6102 | "169": 1,
|
6103 | "192": 2,
|
6104 | "193": 1,
|
6105 | "225": 1,
|
6106 | "242": 1,
|
6107 | "243": 1,
|
6108 | "254": 1,
|
6109 | "255": 1,
|
6110 | "256": 1,
|
6111 | "281": 3,
|
6112 | "290": 1
|
6113 | },
|
6114 | "fqnsFingerprint": "cc604e5ab17a0a13a4fef2806a25e8757ab5a21e362670782fddb5be04d58af9"
|
6115 | },
|
6116 | "1caba174a5dd6250b2a8e6aa7849c9ae160700fab84147339af39f51f3b721b0": {
|
6117 | "translations": {
|
6118 | "python": {
|
6119 | "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)",
|
6120 | "version": "2"
|
6121 | },
|
6122 | "csharp": {
|
6123 | "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};",
|
6124 | "version": "1"
|
6125 | },
|
6126 | "java": {
|
6127 | "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();",
|
6128 | "version": "1"
|
6129 | },
|
6130 | "go": {
|
6131 | "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}",
|
6132 | "version": "1"
|
6133 | },
|
6134 | "$": {
|
6135 | "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};",
|
6136 | "version": "0"
|
6137 | }
|
6138 | },
|
6139 | "location": {
|
6140 | "api": {
|
6141 | "api": "type",
|
6142 | "fqn": "@aws-cdk/aws-ecs.CfnService.CapacityProviderStrategyItemProperty"
|
6143 | },
|
6144 | "field": {
|
6145 | "field": "example"
|
6146 | }
|
6147 | },
|
6148 | "didCompile": true,
|
6149 | "fqnsReferenced": [
|
6150 | "@aws-cdk/aws-ecs.CfnService.CapacityProviderStrategyItemProperty"
|
6151 | ],
|
6152 | "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} }",
|
6153 | "syntaxKindCounter": {
|
6154 | "8": 2,
|
6155 | "10": 2,
|
6156 | "75": 8,
|
6157 | "153": 2,
|
6158 | "169": 1,
|
6159 | "193": 1,
|
6160 | "225": 1,
|
6161 | "242": 1,
|
6162 | "243": 1,
|
6163 | "254": 1,
|
6164 | "255": 1,
|
6165 | "256": 1,
|
6166 | "281": 3,
|
6167 | "290": 1
|
6168 | },
|
6169 | "fqnsFingerprint": "ee4b78c398e74123ac59aa98c92715686c07e354cbc1befb341055991a03678e"
|
6170 | },
|
6171 | "6daaf9b63192ea7cc01387adf8a9877ae1a32f5a94a7c609fac44107708ce6d3": {
|
6172 | "translations": {
|
6173 | "python": {
|
6174 | "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)",
|
6175 | "version": "2"
|
6176 | },
|
6177 | "csharp": {
|
6178 | "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};",
|
6179 | "version": "1"
|
6180 | },
|
6181 | "java": {
|
6182 | "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();",
|
6183 | "version": "1"
|
6184 | },
|
6185 | "go": {
|
6186 | "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}",
|
6187 | "version": "1"
|
6188 | },
|
6189 | "$": {
|
6190 | "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};",
|
6191 | "version": "0"
|
6192 | }
|
6193 | },
|
6194 | "location": {
|
6195 | "api": {
|
6196 | "api": "type",
|
6197 | "fqn": "@aws-cdk/aws-ecs.CfnService.DeploymentCircuitBreakerProperty"
|
6198 | },
|
6199 | "field": {
|
6200 | "field": "example"
|
6201 | }
|
6202 | },
|
6203 | "didCompile": true,
|
6204 | "fqnsReferenced": [
|
6205 | "@aws-cdk/aws-ecs.CfnService.DeploymentCircuitBreakerProperty"
|
6206 | ],
|
6207 | "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} }",
|
6208 | "syntaxKindCounter": {
|
6209 | "10": 1,
|
6210 | "75": 7,
|
6211 | "91": 2,
|
6212 | "153": 2,
|
6213 | "169": 1,
|
6214 | "193": 1,
|
6215 | "225": 1,
|
6216 | "242": 1,
|
6217 | "243": 1,
|
6218 | "254": 1,
|
6219 | "255": 1,
|
6220 | "256": 1,
|
6221 | "281": 2,
|
6222 | "290": 1
|
6223 | },
|
6224 | "fqnsFingerprint": "76cba429177b3aab59c8d505e39bf7204f6f94be30d82b0bdd6863bc9401e39d"
|
6225 | },
|
6226 | "c4102edcca0986d04e5cff297cd63d43ae004f75cb2edef0c8053d2e117c4456": {
|
6227 | "translations": {
|
6228 | "python": {
|
6229 | "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)",
|
6230 | "version": "2"
|
6231 | },
|
6232 | "csharp": {
|
6233 | "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};",
|
6234 | "version": "1"
|
6235 | },
|
6236 | "java": {
|
6237 | "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();",
|
6238 | "version": "1"
|
6239 | },
|
6240 | "go": {
|
6241 | "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}",
|
6242 | "version": "1"
|
6243 | },
|
6244 | "$": {
|
6245 | "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};",
|
6246 | "version": "0"
|
6247 | }
|
6248 | },
|
6249 | "location": {
|
6250 | "api": {
|
6251 | "api": "type",
|
6252 | "fqn": "@aws-cdk/aws-ecs.CfnService.DeploymentConfigurationProperty"
|
6253 | },
|
6254 | "field": {
|
6255 | "field": "example"
|
6256 | }
|
6257 | },
|
6258 | "didCompile": true,
|
6259 | "fqnsReferenced": [
|
6260 | "@aws-cdk/aws-ecs.CfnService.DeploymentConfigurationProperty"
|
6261 | ],
|
6262 | "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} }",
|
6263 | "syntaxKindCounter": {
|
6264 | "8": 2,
|
6265 | "10": 1,
|
6266 | "75": 10,
|
6267 | "91": 2,
|
6268 | "153": 2,
|
6269 | "169": 1,
|
6270 | "193": 2,
|
6271 | "225": 1,
|
6272 | "242": 1,
|
6273 | "243": 1,
|
6274 | "254": 1,
|
6275 | "255": 1,
|
6276 | "256": 1,
|
6277 | "281": 5,
|
6278 | "290": 1
|
6279 | },
|
6280 | "fqnsFingerprint": "705b7cbf18a175f105b4696e70f86ec3a6fb40cb3cf24c46ca260edce023ab48"
|
6281 | },
|
6282 | "5b32d4dbc38e26fcbe3a3d1eb17cc57992a330fd4d456659672da24374ae1e72": {
|
6283 | "translations": {
|
6284 | "python": {
|
6285 | "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)",
|
6286 | "version": "2"
|
6287 | },
|
6288 | "csharp": {
|
6289 | "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};",
|
6290 | "version": "1"
|
6291 | },
|
6292 | "java": {
|
6293 | "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();",
|
6294 | "version": "1"
|
6295 | },
|
6296 | "go": {
|
6297 | "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}",
|
6298 | "version": "1"
|
6299 | },
|
6300 | "$": {
|
6301 | "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};",
|
6302 | "version": "0"
|
6303 | }
|
6304 | },
|
6305 | "location": {
|
6306 | "api": {
|
6307 | "api": "type",
|
6308 | "fqn": "@aws-cdk/aws-ecs.CfnService.DeploymentControllerProperty"
|
6309 | },
|
6310 | "field": {
|
6311 | "field": "example"
|
6312 | }
|
6313 | },
|
6314 | "didCompile": true,
|
6315 | "fqnsReferenced": [
|
6316 | "@aws-cdk/aws-ecs.CfnService.DeploymentControllerProperty"
|
6317 | ],
|
6318 | "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} }",
|
6319 | "syntaxKindCounter": {
|
6320 | "10": 2,
|
6321 | "75": 6,
|
6322 | "153": 2,
|
6323 | "169": 1,
|
6324 | "193": 1,
|
6325 | "225": 1,
|
6326 | "242": 1,
|
6327 | "243": 1,
|
6328 | "254": 1,
|
6329 | "255": 1,
|
6330 | "256": 1,
|
6331 | "281": 1,
|
6332 | "290": 1
|
6333 | },
|
6334 | "fqnsFingerprint": "0afe8d77f3e9df6e6abf0509125b8c907fa9902bf58aa2c06bc80bdaa251a083"
|
6335 | },
|
6336 | "05769022cd288b784e132d61cff36924da84f249a8ff1ce8ebdb7eb00f3b3f76": {
|
6337 | "translations": {
|
6338 | "python": {
|
6339 | "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)",
|
6340 | "version": "2"
|
6341 | },
|
6342 | "csharp": {
|
6343 | "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};",
|
6344 | "version": "1"
|
6345 | },
|
6346 | "java": {
|
6347 | "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();",
|
6348 | "version": "1"
|
6349 | },
|
6350 | "go": {
|
6351 | "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}",
|
6352 | "version": "1"
|
6353 | },
|
6354 | "$": {
|
6355 | "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};",
|
6356 | "version": "0"
|
6357 | }
|
6358 | },
|
6359 | "location": {
|
6360 | "api": {
|
6361 | "api": "type",
|
6362 | "fqn": "@aws-cdk/aws-ecs.CfnService.LoadBalancerProperty"
|
6363 | },
|
6364 | "field": {
|
6365 | "field": "example"
|
6366 | }
|
6367 | },
|
6368 | "didCompile": true,
|
6369 | "fqnsReferenced": [
|
6370 | "@aws-cdk/aws-ecs.CfnService.LoadBalancerProperty"
|
6371 | ],
|
6372 | "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} }",
|
6373 | "syntaxKindCounter": {
|
6374 | "8": 1,
|
6375 | "10": 4,
|
6376 | "75": 9,
|
6377 | "153": 2,
|
6378 | "169": 1,
|
6379 | "193": 1,
|
6380 | "225": 1,
|
6381 | "242": 1,
|
6382 | "243": 1,
|
6383 | "254": 1,
|
6384 | "255": 1,
|
6385 | "256": 1,
|
6386 | "281": 4,
|
6387 | "290": 1
|
6388 | },
|
6389 | "fqnsFingerprint": "e7bd5bab6dd615884975c4ba8f32fc61dd109494f8038bab20ea4ebdb59ad161"
|
6390 | },
|
6391 | "a052831eb31bb7cdddd5d09161c0973ec3f890529a375cd7d03ed21952f321ff": {
|
6392 | "translations": {
|
6393 | "python": {
|
6394 | "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)",
|
6395 | "version": "2"
|
6396 | },
|
6397 | "csharp": {
|
6398 | "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};",
|
6399 | "version": "1"
|
6400 | },
|
6401 | "java": {
|
6402 | "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();",
|
6403 | "version": "1"
|
6404 | },
|
6405 | "go": {
|
6406 | "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}",
|
6407 | "version": "1"
|
6408 | },
|
6409 | "$": {
|
6410 | "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};",
|
6411 | "version": "0"
|
6412 | }
|
6413 | },
|
6414 | "location": {
|
6415 | "api": {
|
6416 | "api": "type",
|
6417 | "fqn": "@aws-cdk/aws-ecs.CfnService.NetworkConfigurationProperty"
|
6418 | },
|
6419 | "field": {
|
6420 | "field": "example"
|
6421 | }
|
6422 | },
|
6423 | "didCompile": true,
|
6424 | "fqnsReferenced": [
|
6425 | "@aws-cdk/aws-ecs.CfnService.NetworkConfigurationProperty"
|
6426 | ],
|
6427 | "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} }",
|
6428 | "syntaxKindCounter": {
|
6429 | "10": 4,
|
6430 | "75": 9,
|
6431 | "153": 2,
|
6432 | "169": 1,
|
6433 | "192": 2,
|
6434 | "193": 2,
|
6435 | "225": 1,
|
6436 | "242": 1,
|
6437 | "243": 1,
|
6438 | "254": 1,
|
6439 | "255": 1,
|
6440 | "256": 1,
|
6441 | "281": 4,
|
6442 | "290": 1
|
6443 | },
|
6444 | "fqnsFingerprint": "60652aa37cb7e8047a9d93f01fd69d9b471ae8a53b32393fd3abb0e907f10ae7"
|
6445 | },
|
6446 | "b4f10b49970d1ce9c905831c17ea1e4bfc723704ee6f9f9f895c7aac778df924": {
|
6447 | "translations": {
|
6448 | "python": {
|
6449 | "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)",
|
6450 | "version": "2"
|
6451 | },
|
6452 | "csharp": {
|
6453 | "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};",
|
6454 | "version": "1"
|
6455 | },
|
6456 | "java": {
|
6457 | "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();",
|
6458 | "version": "1"
|
6459 | },
|
6460 | "go": {
|
6461 | "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}",
|
6462 | "version": "1"
|
6463 | },
|
6464 | "$": {
|
6465 | "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};",
|
6466 | "version": "0"
|
6467 | }
|
6468 | },
|
6469 | "location": {
|
6470 | "api": {
|
6471 | "api": "type",
|
6472 | "fqn": "@aws-cdk/aws-ecs.CfnService.PlacementConstraintProperty"
|
6473 | },
|
6474 | "field": {
|
6475 | "field": "example"
|
6476 | }
|
6477 | },
|
6478 | "didCompile": true,
|
6479 | "fqnsReferenced": [
|
6480 | "@aws-cdk/aws-ecs.CfnService.PlacementConstraintProperty"
|
6481 | ],
|
6482 | "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} }",
|
6483 | "syntaxKindCounter": {
|
6484 | "10": 3,
|
6485 | "75": 7,
|
6486 | "153": 2,
|
6487 | "169": 1,
|
6488 | "193": 1,
|
6489 | "225": 1,
|
6490 | "242": 1,
|
6491 | "243": 1,
|
6492 | "254": 1,
|
6493 | "255": 1,
|
6494 | "256": 1,
|
6495 | "281": 2,
|
6496 | "290": 1
|
6497 | },
|
6498 | "fqnsFingerprint": "928a984690590fccd425b8952e75edfea53d6fc85cff717eb22a08e67d1cf81f"
|
6499 | },
|
6500 | "9dcfa06f883573919dc7ae6c8da37c9b6736893a3028538ed77fab17b1bd0e4e": {
|
6501 | "translations": {
|
6502 | "python": {
|
6503 | "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)",
|
6504 | "version": "2"
|
6505 | },
|
6506 | "csharp": {
|
6507 | "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};",
|
6508 | "version": "1"
|
6509 | },
|
6510 | "java": {
|
6511 | "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();",
|
6512 | "version": "1"
|
6513 | },
|
6514 | "go": {
|
6515 | "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}",
|
6516 | "version": "1"
|
6517 | },
|
6518 | "$": {
|
6519 | "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};",
|
6520 | "version": "0"
|
6521 | }
|
6522 | },
|
6523 | "location": {
|
6524 | "api": {
|
6525 | "api": "type",
|
6526 | "fqn": "@aws-cdk/aws-ecs.CfnService.PlacementStrategyProperty"
|
6527 | },
|
6528 | "field": {
|
6529 | "field": "example"
|
6530 | }
|
6531 | },
|
6532 | "didCompile": true,
|
6533 | "fqnsReferenced": [
|
6534 | "@aws-cdk/aws-ecs.CfnService.PlacementStrategyProperty"
|
6535 | ],
|
6536 | "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} }",
|
6537 | "syntaxKindCounter": {
|
6538 | "10": 3,
|
6539 | "75": 7,
|
6540 | "153": 2,
|
6541 | "169": 1,
|
6542 | "193": 1,
|
6543 | "225": 1,
|
6544 | "242": 1,
|
6545 | "243": 1,
|
6546 | "254": 1,
|
6547 | "255": 1,
|
6548 | "256": 1,
|
6549 | "281": 2,
|
6550 | "290": 1
|
6551 | },
|
6552 | "fqnsFingerprint": "af37a9bc713bcd49650e2972ae53133335cede51b1f996c1d96171fd0e5020c4"
|
6553 | },
|
6554 | "c94869f97a55846fda6ce3482ebcc5e02a03ecceaf9000a93ccfd2b63d876e0e": {
|
6555 | "translations": {
|
6556 | "python": {
|
6557 | "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)",
|
6558 | "version": "2"
|
6559 | },
|
6560 | "csharp": {
|
6561 | "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};",
|
6562 | "version": "1"
|
6563 | },
|
6564 | "java": {
|
6565 | "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();",
|
6566 | "version": "1"
|
6567 | },
|
6568 | "go": {
|
6569 | "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}",
|
6570 | "version": "1"
|
6571 | },
|
6572 | "$": {
|
6573 | "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};",
|
6574 | "version": "0"
|
6575 | }
|
6576 | },
|
6577 | "location": {
|
6578 | "api": {
|
6579 | "api": "type",
|
6580 | "fqn": "@aws-cdk/aws-ecs.CfnService.ServiceRegistryProperty"
|
6581 | },
|
6582 | "field": {
|
6583 | "field": "example"
|
6584 | }
|
6585 | },
|
6586 | "didCompile": true,
|
6587 | "fqnsReferenced": [
|
6588 | "@aws-cdk/aws-ecs.CfnService.ServiceRegistryProperty"
|
6589 | ],
|
6590 | "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} }",
|
6591 | "syntaxKindCounter": {
|
6592 | "8": 2,
|
6593 | "10": 3,
|
6594 | "75": 9,
|
6595 | "153": 2,
|
6596 | "169": 1,
|
6597 | "193": 1,
|
6598 | "225": 1,
|
6599 | "242": 1,
|
6600 | "243": 1,
|
6601 | "254": 1,
|
6602 | "255": 1,
|
6603 | "256": 1,
|
6604 | "281": 4,
|
6605 | "290": 1
|
6606 | },
|
6607 | "fqnsFingerprint": "13b50abd234c1e9efe1727008a31a1959def8844089cea4122d88e5d0723913f"
|
6608 | },
|
6609 | "f1986d3020fb5bcc12e7d74365c2a08478ae8018ec6b89243c6be69784358538": {
|
6610 | "translations": {
|
6611 | "python": {
|
6612 | "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)",
|
6613 | "version": "2"
|
6614 | },
|
6615 | "csharp": {
|
6616 | "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};",
|
6617 | "version": "1"
|
6618 | },
|
6619 | "java": {
|
6620 | "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();",
|
6621 | "version": "1"
|
6622 | },
|
6623 | "go": {
|
6624 | "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}",
|
6625 | "version": "1"
|
6626 | },
|
6627 | "$": {
|
6628 | "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};",
|
6629 | "version": "0"
|
6630 | }
|
6631 | },
|
6632 | "location": {
|
6633 | "api": {
|
6634 | "api": "type",
|
6635 | "fqn": "@aws-cdk/aws-ecs.CfnServiceProps"
|
6636 | },
|
6637 | "field": {
|
6638 | "field": "example"
|
6639 | }
|
6640 | },
|
6641 | "didCompile": true,
|
6642 | "fqnsReferenced": [
|
6643 | "@aws-cdk/aws-ecs.CfnServiceProps"
|
6644 | ],
|
6645 | "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} }",
|
6646 | "syntaxKindCounter": {
|
6647 | "8": 9,
|
6648 | "10": 25,
|
6649 | "75": 52,
|
6650 | "91": 4,
|
6651 | "153": 1,
|
6652 | "169": 1,
|
6653 | "192": 8,
|
6654 | "193": 12,
|
6655 | "225": 1,
|
6656 | "242": 1,
|
6657 | "243": 1,
|
6658 | "254": 1,
|
6659 | "255": 1,
|
6660 | "256": 1,
|
6661 | "281": 48,
|
6662 | "290": 1
|
6663 | },
|
6664 | "fqnsFingerprint": "ac7e402c72b9e07efc2814d4805e0663559f89d0144723da1b7c1f1e774e6ff1"
|
6665 | },
|
6666 | "b4792b3e315c27785c1fc6c16ecfaffc13839ad30efd902665fe47c836d1ea3c": {
|
6667 | "translations": {
|
6668 | "python": {
|
6669 | "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)",
|
6670 | "version": "2"
|
6671 | },
|
6672 | "csharp": {
|
6673 | "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});",
|
6674 | "version": "1"
|
6675 | },
|
6676 | "java": {
|
6677 | "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();",
|
6678 | "version": "1"
|
6679 | },
|
6680 | "go": {
|
6681 | "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})",
|
6682 | "version": "1"
|
6683 | },
|
6684 | "$": {
|
6685 | "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});",
|
6686 | "version": "0"
|
6687 | }
|
6688 | },
|
6689 | "location": {
|
6690 | "api": {
|
6691 | "api": "type",
|
6692 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition"
|
6693 | },
|
6694 | "field": {
|
6695 | "field": "example"
|
6696 | }
|
6697 | },
|
6698 | "didCompile": true,
|
6699 | "fqnsReferenced": [
|
6700 | "@aws-cdk/aws-ecs.CfnTaskDefinition",
|
6701 | "@aws-cdk/aws-ecs.CfnTaskDefinitionProps",
|
6702 | "@aws-cdk/core.Construct"
|
6703 | ],
|
6704 | "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} }",
|
6705 | "syntaxKindCounter": {
|
6706 | "8": 19,
|
6707 | "10": 80,
|
6708 | "75": 149,
|
6709 | "91": 10,
|
6710 | "104": 1,
|
6711 | "192": 32,
|
6712 | "193": 39,
|
6713 | "194": 1,
|
6714 | "197": 1,
|
6715 | "225": 1,
|
6716 | "242": 1,
|
6717 | "243": 1,
|
6718 | "254": 1,
|
6719 | "255": 1,
|
6720 | "256": 1,
|
6721 | "281": 145,
|
6722 | "290": 1
|
6723 | },
|
6724 | "fqnsFingerprint": "bcb2b57594ccb1a1e1108bcdcbef8ba0d9cd85860d68275280e0bfc428d26c9b"
|
6725 | },
|
6726 | "6d50ed91782911db313ee4d423e8a1ec2d5ea18fd83012363a9b80edaf846510": {
|
6727 | "translations": {
|
6728 | "python": {
|
6729 | "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)",
|
6730 | "version": "2"
|
6731 | },
|
6732 | "csharp": {
|
6733 | "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};",
|
6734 | "version": "1"
|
6735 | },
|
6736 | "java": {
|
6737 | "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();",
|
6738 | "version": "1"
|
6739 | },
|
6740 | "go": {
|
6741 | "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}",
|
6742 | "version": "1"
|
6743 | },
|
6744 | "$": {
|
6745 | "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};",
|
6746 | "version": "0"
|
6747 | }
|
6748 | },
|
6749 | "location": {
|
6750 | "api": {
|
6751 | "api": "type",
|
6752 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.AuthorizationConfigProperty"
|
6753 | },
|
6754 | "field": {
|
6755 | "field": "example"
|
6756 | }
|
6757 | },
|
6758 | "didCompile": true,
|
6759 | "fqnsReferenced": [
|
6760 | "@aws-cdk/aws-ecs.CfnTaskDefinition.AuthorizationConfigProperty"
|
6761 | ],
|
6762 | "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} }",
|
6763 | "syntaxKindCounter": {
|
6764 | "10": 3,
|
6765 | "75": 7,
|
6766 | "153": 2,
|
6767 | "169": 1,
|
6768 | "193": 1,
|
6769 | "225": 1,
|
6770 | "242": 1,
|
6771 | "243": 1,
|
6772 | "254": 1,
|
6773 | "255": 1,
|
6774 | "256": 1,
|
6775 | "281": 2,
|
6776 | "290": 1
|
6777 | },
|
6778 | "fqnsFingerprint": "7b609ca3026aa6d756ccbfab254bf369f80739cb3ece3c0bd9e23da25cecca81"
|
6779 | },
|
6780 | "c8cd58d57c70c7d92525d6556ee072fd8aeb8a27218521a2d347444c894fd858": {
|
6781 | "translations": {
|
6782 | "python": {
|
6783 | "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)",
|
6784 | "version": "2"
|
6785 | },
|
6786 | "csharp": {
|
6787 | "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};",
|
6788 | "version": "1"
|
6789 | },
|
6790 | "java": {
|
6791 | "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();",
|
6792 | "version": "1"
|
6793 | },
|
6794 | "go": {
|
6795 | "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}",
|
6796 | "version": "1"
|
6797 | },
|
6798 | "$": {
|
6799 | "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};",
|
6800 | "version": "0"
|
6801 | }
|
6802 | },
|
6803 | "location": {
|
6804 | "api": {
|
6805 | "api": "type",
|
6806 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDefinitionProperty"
|
6807 | },
|
6808 | "field": {
|
6809 | "field": "example"
|
6810 | }
|
6811 | },
|
6812 | "didCompile": true,
|
6813 | "fqnsReferenced": [
|
6814 | "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDefinitionProperty"
|
6815 | ],
|
6816 | "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} }",
|
6817 | "syntaxKindCounter": {
|
6818 | "8": 17,
|
6819 | "10": 47,
|
6820 | "75": 100,
|
6821 | "91": 9,
|
6822 | "153": 2,
|
6823 | "169": 1,
|
6824 | "192": 25,
|
6825 | "193": 24,
|
6826 | "225": 1,
|
6827 | "242": 1,
|
6828 | "243": 1,
|
6829 | "254": 1,
|
6830 | "255": 1,
|
6831 | "256": 1,
|
6832 | "281": 95,
|
6833 | "290": 1
|
6834 | },
|
6835 | "fqnsFingerprint": "f327759870caef309cb66a804bd2ba4dec0366740761304549e01a80d7013207"
|
6836 | },
|
6837 | "725aba7a546a4b755f877b9281a927e6997518e2bacfd1aad9d83609db7ffd52": {
|
6838 | "translations": {
|
6839 | "python": {
|
6840 | "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)",
|
6841 | "version": "2"
|
6842 | },
|
6843 | "csharp": {
|
6844 | "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};",
|
6845 | "version": "1"
|
6846 | },
|
6847 | "java": {
|
6848 | "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();",
|
6849 | "version": "1"
|
6850 | },
|
6851 | "go": {
|
6852 | "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}",
|
6853 | "version": "1"
|
6854 | },
|
6855 | "$": {
|
6856 | "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};",
|
6857 | "version": "0"
|
6858 | }
|
6859 | },
|
6860 | "location": {
|
6861 | "api": {
|
6862 | "api": "type",
|
6863 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDependencyProperty"
|
6864 | },
|
6865 | "field": {
|
6866 | "field": "example"
|
6867 | }
|
6868 | },
|
6869 | "didCompile": true,
|
6870 | "fqnsReferenced": [
|
6871 | "@aws-cdk/aws-ecs.CfnTaskDefinition.ContainerDependencyProperty"
|
6872 | ],
|
6873 | "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} }",
|
6874 | "syntaxKindCounter": {
|
6875 | "10": 3,
|
6876 | "75": 7,
|
6877 | "153": 2,
|
6878 | "169": 1,
|
6879 | "193": 1,
|
6880 | "225": 1,
|
6881 | "242": 1,
|
6882 | "243": 1,
|
6883 | "254": 1,
|
6884 | "255": 1,
|
6885 | "256": 1,
|
6886 | "281": 2,
|
6887 | "290": 1
|
6888 | },
|
6889 | "fqnsFingerprint": "7d2b078c2283c0ebd9736168260ddbad71b36116eb308aeb173e1ebe566cdf46"
|
6890 | },
|
6891 | "a3cec9859ca8d2581561a45f5d31565e0ba09905720f37a86baceee1b8d9eceb": {
|
6892 | "translations": {
|
6893 | "python": {
|
6894 | "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)",
|
6895 | "version": "2"
|
6896 | },
|
6897 | "csharp": {
|
6898 | "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};",
|
6899 | "version": "1"
|
6900 | },
|
6901 | "java": {
|
6902 | "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();",
|
6903 | "version": "1"
|
6904 | },
|
6905 | "go": {
|
6906 | "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}",
|
6907 | "version": "1"
|
6908 | },
|
6909 | "$": {
|
6910 | "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};",
|
6911 | "version": "0"
|
6912 | }
|
6913 | },
|
6914 | "location": {
|
6915 | "api": {
|
6916 | "api": "type",
|
6917 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.DeviceProperty"
|
6918 | },
|
6919 | "field": {
|
6920 | "field": "example"
|
6921 | }
|
6922 | },
|
6923 | "didCompile": true,
|
6924 | "fqnsReferenced": [
|
6925 | "@aws-cdk/aws-ecs.CfnTaskDefinition.DeviceProperty"
|
6926 | ],
|
6927 | "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} }",
|
6928 | "syntaxKindCounter": {
|
6929 | "10": 4,
|
6930 | "75": 8,
|
6931 | "153": 2,
|
6932 | "169": 1,
|
6933 | "192": 1,
|
6934 | "193": 1,
|
6935 | "225": 1,
|
6936 | "242": 1,
|
6937 | "243": 1,
|
6938 | "254": 1,
|
6939 | "255": 1,
|
6940 | "256": 1,
|
6941 | "281": 3,
|
6942 | "290": 1
|
6943 | },
|
6944 | "fqnsFingerprint": "bdaef3c06a3c4c809aeea30342aef52d518c7008ff61ff861ebfd0fc08068829"
|
6945 | },
|
6946 | "edbe6731de2e03045e2567a7ba2399b31b1ff9a3786567e51e9c440f358226c2": {
|
6947 | "translations": {
|
6948 | "python": {
|
6949 | "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)",
|
6950 | "version": "2"
|
6951 | },
|
6952 | "csharp": {
|
6953 | "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};",
|
6954 | "version": "1"
|
6955 | },
|
6956 | "java": {
|
6957 | "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();",
|
6958 | "version": "1"
|
6959 | },
|
6960 | "go": {
|
6961 | "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}",
|
6962 | "version": "1"
|
6963 | },
|
6964 | "$": {
|
6965 | "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};",
|
6966 | "version": "0"
|
6967 | }
|
6968 | },
|
6969 | "location": {
|
6970 | "api": {
|
6971 | "api": "type",
|
6972 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty"
|
6973 | },
|
6974 | "field": {
|
6975 | "field": "example"
|
6976 | }
|
6977 | },
|
6978 | "didCompile": true,
|
6979 | "fqnsReferenced": [
|
6980 | "@aws-cdk/aws-ecs.CfnTaskDefinition.DockerVolumeConfigurationProperty"
|
6981 | ],
|
6982 | "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} }",
|
6983 | "syntaxKindCounter": {
|
6984 | "10": 5,
|
6985 | "75": 12,
|
6986 | "91": 1,
|
6987 | "153": 2,
|
6988 | "169": 1,
|
6989 | "193": 3,
|
6990 | "225": 1,
|
6991 | "242": 1,
|
6992 | "243": 1,
|
6993 | "254": 1,
|
6994 | "255": 1,
|
6995 | "256": 1,
|
6996 | "281": 7,
|
6997 | "290": 1
|
6998 | },
|
6999 | "fqnsFingerprint": "6488c8c0fe4dbc6d0957745692a1c6b9e0561d444c20a5b1ae0d7056af01b058"
|
7000 | },
|
7001 | "e85ed055887edc36226287a9a1b89035370c450a46921485bd4d4d64879a5d61": {
|
7002 | "translations": {
|
7003 | "python": {
|
7004 | "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)",
|
7005 | "version": "2"
|
7006 | },
|
7007 | "csharp": {
|
7008 | "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};",
|
7009 | "version": "1"
|
7010 | },
|
7011 | "java": {
|
7012 | "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();",
|
7013 | "version": "1"
|
7014 | },
|
7015 | "go": {
|
7016 | "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}",
|
7017 | "version": "1"
|
7018 | },
|
7019 | "$": {
|
7020 | "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};",
|
7021 | "version": "0"
|
7022 | }
|
7023 | },
|
7024 | "location": {
|
7025 | "api": {
|
7026 | "api": "type",
|
7027 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty"
|
7028 | },
|
7029 | "field": {
|
7030 | "field": "example"
|
7031 | }
|
7032 | },
|
7033 | "didCompile": true,
|
7034 | "fqnsReferenced": [
|
7035 | "@aws-cdk/aws-ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty"
|
7036 | ],
|
7037 | "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} }",
|
7038 | "syntaxKindCounter": {
|
7039 | "8": 1,
|
7040 | "10": 6,
|
7041 | "75": 12,
|
7042 | "153": 2,
|
7043 | "169": 1,
|
7044 | "193": 2,
|
7045 | "225": 1,
|
7046 | "242": 1,
|
7047 | "243": 1,
|
7048 | "254": 1,
|
7049 | "255": 1,
|
7050 | "256": 1,
|
7051 | "281": 7,
|
7052 | "290": 1
|
7053 | },
|
7054 | "fqnsFingerprint": "3e376626953b3b69f298ec6f94b3858cac31a3f538c9a15faedac813044654e5"
|
7055 | },
|
7056 | "476bc45526fa8d1819114939c5f9e811aa0ae00a00379ad8878e1a691fc03c7d": {
|
7057 | "translations": {
|
7058 | "python": {
|
7059 | "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)",
|
7060 | "version": "2"
|
7061 | },
|
7062 | "csharp": {
|
7063 | "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};",
|
7064 | "version": "1"
|
7065 | },
|
7066 | "java": {
|
7067 | "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();",
|
7068 | "version": "1"
|
7069 | },
|
7070 | "go": {
|
7071 | "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}",
|
7072 | "version": "1"
|
7073 | },
|
7074 | "$": {
|
7075 | "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};",
|
7076 | "version": "0"
|
7077 | }
|
7078 | },
|
7079 | "location": {
|
7080 | "api": {
|
7081 | "api": "type",
|
7082 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.EnvironmentFileProperty"
|
7083 | },
|
7084 | "field": {
|
7085 | "field": "example"
|
7086 | }
|
7087 | },
|
7088 | "didCompile": true,
|
7089 | "fqnsReferenced": [
|
7090 | "@aws-cdk/aws-ecs.CfnTaskDefinition.EnvironmentFileProperty"
|
7091 | ],
|
7092 | "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} }",
|
7093 | "syntaxKindCounter": {
|
7094 | "10": 3,
|
7095 | "75": 7,
|
7096 | "153": 2,
|
7097 | "169": 1,
|
7098 | "193": 1,
|
7099 | "225": 1,
|
7100 | "242": 1,
|
7101 | "243": 1,
|
7102 | "254": 1,
|
7103 | "255": 1,
|
7104 | "256": 1,
|
7105 | "281": 2,
|
7106 | "290": 1
|
7107 | },
|
7108 | "fqnsFingerprint": "6f40420d90f405431f65a2ace982feb80b3e7395cb718dc10f7b8066dcdb400e"
|
7109 | },
|
7110 | "64d7887a519786dc7fb27ff42cdf72f034f7d7490f4c2a12ee66a645b52bb195": {
|
7111 | "translations": {
|
7112 | "python": {
|
7113 | "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)",
|
7114 | "version": "2"
|
7115 | },
|
7116 | "csharp": {
|
7117 | "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};",
|
7118 | "version": "1"
|
7119 | },
|
7120 | "java": {
|
7121 | "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();",
|
7122 | "version": "1"
|
7123 | },
|
7124 | "go": {
|
7125 | "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}",
|
7126 | "version": "1"
|
7127 | },
|
7128 | "$": {
|
7129 | "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};",
|
7130 | "version": "0"
|
7131 | }
|
7132 | },
|
7133 | "location": {
|
7134 | "api": {
|
7135 | "api": "type",
|
7136 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.EphemeralStorageProperty"
|
7137 | },
|
7138 | "field": {
|
7139 | "field": "example"
|
7140 | }
|
7141 | },
|
7142 | "didCompile": true,
|
7143 | "fqnsReferenced": [
|
7144 | "@aws-cdk/aws-ecs.CfnTaskDefinition.EphemeralStorageProperty"
|
7145 | ],
|
7146 | "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} }",
|
7147 | "syntaxKindCounter": {
|
7148 | "8": 1,
|
7149 | "10": 1,
|
7150 | "75": 6,
|
7151 | "153": 2,
|
7152 | "169": 1,
|
7153 | "193": 1,
|
7154 | "225": 1,
|
7155 | "242": 1,
|
7156 | "243": 1,
|
7157 | "254": 1,
|
7158 | "255": 1,
|
7159 | "256": 1,
|
7160 | "281": 1,
|
7161 | "290": 1
|
7162 | },
|
7163 | "fqnsFingerprint": "9000cba34d746cd5035765e8255dd3b5246d8d75a506540d0e7536c3f286afba"
|
7164 | },
|
7165 | "f6353b29981a80871d974116067e9676cfd49b4340858a3309ee5ff62cabe0d6": {
|
7166 | "translations": {
|
7167 | "python": {
|
7168 | "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)",
|
7169 | "version": "2"
|
7170 | },
|
7171 | "csharp": {
|
7172 | "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};",
|
7173 | "version": "1"
|
7174 | },
|
7175 | "java": {
|
7176 | "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();",
|
7177 | "version": "1"
|
7178 | },
|
7179 | "go": {
|
7180 | "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}",
|
7181 | "version": "1"
|
7182 | },
|
7183 | "$": {
|
7184 | "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};",
|
7185 | "version": "0"
|
7186 | }
|
7187 | },
|
7188 | "location": {
|
7189 | "api": {
|
7190 | "api": "type",
|
7191 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.FirelensConfigurationProperty"
|
7192 | },
|
7193 | "field": {
|
7194 | "field": "example"
|
7195 | }
|
7196 | },
|
7197 | "didCompile": true,
|
7198 | "fqnsReferenced": [
|
7199 | "@aws-cdk/aws-ecs.CfnTaskDefinition.FirelensConfigurationProperty"
|
7200 | ],
|
7201 | "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} }",
|
7202 | "syntaxKindCounter": {
|
7203 | "10": 3,
|
7204 | "75": 8,
|
7205 | "153": 2,
|
7206 | "169": 1,
|
7207 | "193": 2,
|
7208 | "225": 1,
|
7209 | "242": 1,
|
7210 | "243": 1,
|
7211 | "254": 1,
|
7212 | "255": 1,
|
7213 | "256": 1,
|
7214 | "281": 3,
|
7215 | "290": 1
|
7216 | },
|
7217 | "fqnsFingerprint": "cf9329123d9a4c4e71359ede6248fa17d6f86bdc2ce39bf1d9f590a31fd273d9"
|
7218 | },
|
7219 | "52ecdc12d693a30d9e7585ebf94c5d6a59917272c9bd7eab25e41aae99978e09": {
|
7220 | "translations": {
|
7221 | "python": {
|
7222 | "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)",
|
7223 | "version": "2"
|
7224 | },
|
7225 | "csharp": {
|
7226 | "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};",
|
7227 | "version": "1"
|
7228 | },
|
7229 | "java": {
|
7230 | "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();",
|
7231 | "version": "1"
|
7232 | },
|
7233 | "go": {
|
7234 | "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}",
|
7235 | "version": "1"
|
7236 | },
|
7237 | "$": {
|
7238 | "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};",
|
7239 | "version": "0"
|
7240 | }
|
7241 | },
|
7242 | "location": {
|
7243 | "api": {
|
7244 | "api": "type",
|
7245 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.HealthCheckProperty"
|
7246 | },
|
7247 | "field": {
|
7248 | "field": "example"
|
7249 | }
|
7250 | },
|
7251 | "didCompile": true,
|
7252 | "fqnsReferenced": [
|
7253 | "@aws-cdk/aws-ecs.CfnTaskDefinition.HealthCheckProperty"
|
7254 | ],
|
7255 | "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} }",
|
7256 | "syntaxKindCounter": {
|
7257 | "8": 4,
|
7258 | "10": 2,
|
7259 | "75": 10,
|
7260 | "153": 2,
|
7261 | "169": 1,
|
7262 | "192": 1,
|
7263 | "193": 1,
|
7264 | "225": 1,
|
7265 | "242": 1,
|
7266 | "243": 1,
|
7267 | "254": 1,
|
7268 | "255": 1,
|
7269 | "256": 1,
|
7270 | "281": 5,
|
7271 | "290": 1
|
7272 | },
|
7273 | "fqnsFingerprint": "f66ef3b458dbaaf279346f271803b3e4bf286ed7ac5741dee0229c6675c3ac6d"
|
7274 | },
|
7275 | "18e76fbfacc248f48c7c53ad3191ed10b05de6c46744081073c3ded9d42deb8f": {
|
7276 | "translations": {
|
7277 | "python": {
|
7278 | "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)",
|
7279 | "version": "2"
|
7280 | },
|
7281 | "csharp": {
|
7282 | "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};",
|
7283 | "version": "1"
|
7284 | },
|
7285 | "java": {
|
7286 | "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();",
|
7287 | "version": "1"
|
7288 | },
|
7289 | "go": {
|
7290 | "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}",
|
7291 | "version": "1"
|
7292 | },
|
7293 | "$": {
|
7294 | "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};",
|
7295 | "version": "0"
|
7296 | }
|
7297 | },
|
7298 | "location": {
|
7299 | "api": {
|
7300 | "api": "type",
|
7301 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.HostEntryProperty"
|
7302 | },
|
7303 | "field": {
|
7304 | "field": "example"
|
7305 | }
|
7306 | },
|
7307 | "didCompile": true,
|
7308 | "fqnsReferenced": [
|
7309 | "@aws-cdk/aws-ecs.CfnTaskDefinition.HostEntryProperty"
|
7310 | ],
|
7311 | "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} }",
|
7312 | "syntaxKindCounter": {
|
7313 | "10": 3,
|
7314 | "75": 7,
|
7315 | "153": 2,
|
7316 | "169": 1,
|
7317 | "193": 1,
|
7318 | "225": 1,
|
7319 | "242": 1,
|
7320 | "243": 1,
|
7321 | "254": 1,
|
7322 | "255": 1,
|
7323 | "256": 1,
|
7324 | "281": 2,
|
7325 | "290": 1
|
7326 | },
|
7327 | "fqnsFingerprint": "9a4349573bececdea55b3b06e53572a43b17f691603a01f74a99dcf8dfea37c8"
|
7328 | },
|
7329 | "e91b091b1aabf86fc4ed7f0e877ea24f12000e8dac976a5b9780fb61e70171f2": {
|
7330 | "translations": {
|
7331 | "python": {
|
7332 | "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)",
|
7333 | "version": "2"
|
7334 | },
|
7335 | "csharp": {
|
7336 | "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};",
|
7337 | "version": "1"
|
7338 | },
|
7339 | "java": {
|
7340 | "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();",
|
7341 | "version": "1"
|
7342 | },
|
7343 | "go": {
|
7344 | "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}",
|
7345 | "version": "1"
|
7346 | },
|
7347 | "$": {
|
7348 | "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};",
|
7349 | "version": "0"
|
7350 | }
|
7351 | },
|
7352 | "location": {
|
7353 | "api": {
|
7354 | "api": "type",
|
7355 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.HostVolumePropertiesProperty"
|
7356 | },
|
7357 | "field": {
|
7358 | "field": "example"
|
7359 | }
|
7360 | },
|
7361 | "didCompile": true,
|
7362 | "fqnsReferenced": [
|
7363 | "@aws-cdk/aws-ecs.CfnTaskDefinition.HostVolumePropertiesProperty"
|
7364 | ],
|
7365 | "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} }",
|
7366 | "syntaxKindCounter": {
|
7367 | "10": 2,
|
7368 | "75": 6,
|
7369 | "153": 2,
|
7370 | "169": 1,
|
7371 | "193": 1,
|
7372 | "225": 1,
|
7373 | "242": 1,
|
7374 | "243": 1,
|
7375 | "254": 1,
|
7376 | "255": 1,
|
7377 | "256": 1,
|
7378 | "281": 1,
|
7379 | "290": 1
|
7380 | },
|
7381 | "fqnsFingerprint": "c4c1d99e6de1a0d2aefb7b3fa97bed6fe027af2021b4038e4aba7718636b1155"
|
7382 | },
|
7383 | "0710a1e2de375a221c11485176209d8f3496366e2253a8dc605b1ab6c975dbb0": {
|
7384 | "translations": {
|
7385 | "python": {
|
7386 | "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)",
|
7387 | "version": "2"
|
7388 | },
|
7389 | "csharp": {
|
7390 | "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};",
|
7391 | "version": "1"
|
7392 | },
|
7393 | "java": {
|
7394 | "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();",
|
7395 | "version": "1"
|
7396 | },
|
7397 | "go": {
|
7398 | "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}",
|
7399 | "version": "1"
|
7400 | },
|
7401 | "$": {
|
7402 | "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};",
|
7403 | "version": "0"
|
7404 | }
|
7405 | },
|
7406 | "location": {
|
7407 | "api": {
|
7408 | "api": "type",
|
7409 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.InferenceAcceleratorProperty"
|
7410 | },
|
7411 | "field": {
|
7412 | "field": "example"
|
7413 | }
|
7414 | },
|
7415 | "didCompile": true,
|
7416 | "fqnsReferenced": [
|
7417 | "@aws-cdk/aws-ecs.CfnTaskDefinition.InferenceAcceleratorProperty"
|
7418 | ],
|
7419 | "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} }",
|
7420 | "syntaxKindCounter": {
|
7421 | "10": 3,
|
7422 | "75": 7,
|
7423 | "153": 2,
|
7424 | "169": 1,
|
7425 | "193": 1,
|
7426 | "225": 1,
|
7427 | "242": 1,
|
7428 | "243": 1,
|
7429 | "254": 1,
|
7430 | "255": 1,
|
7431 | "256": 1,
|
7432 | "281": 2,
|
7433 | "290": 1
|
7434 | },
|
7435 | "fqnsFingerprint": "1fd8febc13b0dbea2740e53de6a29cec042c8d97692ff4d996fc643ebc22c186"
|
7436 | },
|
7437 | "41d5b5ffd7543d259d321c3423562922b7dc4d912035714e2d9b1d23d918f402": {
|
7438 | "translations": {
|
7439 | "python": {
|
7440 | "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)",
|
7441 | "version": "2"
|
7442 | },
|
7443 | "csharp": {
|
7444 | "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};",
|
7445 | "version": "1"
|
7446 | },
|
7447 | "java": {
|
7448 | "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();",
|
7449 | "version": "1"
|
7450 | },
|
7451 | "go": {
|
7452 | "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}",
|
7453 | "version": "1"
|
7454 | },
|
7455 | "$": {
|
7456 | "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};",
|
7457 | "version": "0"
|
7458 | }
|
7459 | },
|
7460 | "location": {
|
7461 | "api": {
|
7462 | "api": "type",
|
7463 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.KernelCapabilitiesProperty"
|
7464 | },
|
7465 | "field": {
|
7466 | "field": "example"
|
7467 | }
|
7468 | },
|
7469 | "didCompile": true,
|
7470 | "fqnsReferenced": [
|
7471 | "@aws-cdk/aws-ecs.CfnTaskDefinition.KernelCapabilitiesProperty"
|
7472 | ],
|
7473 | "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} }",
|
7474 | "syntaxKindCounter": {
|
7475 | "10": 3,
|
7476 | "75": 7,
|
7477 | "153": 2,
|
7478 | "169": 1,
|
7479 | "192": 2,
|
7480 | "193": 1,
|
7481 | "225": 1,
|
7482 | "242": 1,
|
7483 | "243": 1,
|
7484 | "254": 1,
|
7485 | "255": 1,
|
7486 | "256": 1,
|
7487 | "281": 2,
|
7488 | "290": 1
|
7489 | },
|
7490 | "fqnsFingerprint": "360a0771f0a9247cd6c3caf465c65ff9be0214d294edc25f18db81bb89d49bb1"
|
7491 | },
|
7492 | "0c60b8c33af34fc86e959b344578a18e57dc3ff3bfc8989ec634dd03bb03971d": {
|
7493 | "translations": {
|
7494 | "python": {
|
7495 | "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)",
|
7496 | "version": "2"
|
7497 | },
|
7498 | "csharp": {
|
7499 | "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};",
|
7500 | "version": "1"
|
7501 | },
|
7502 | "java": {
|
7503 | "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();",
|
7504 | "version": "1"
|
7505 | },
|
7506 | "go": {
|
7507 | "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}",
|
7508 | "version": "1"
|
7509 | },
|
7510 | "$": {
|
7511 | "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};",
|
7512 | "version": "0"
|
7513 | }
|
7514 | },
|
7515 | "location": {
|
7516 | "api": {
|
7517 | "api": "type",
|
7518 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.KeyValuePairProperty"
|
7519 | },
|
7520 | "field": {
|
7521 | "field": "example"
|
7522 | }
|
7523 | },
|
7524 | "didCompile": true,
|
7525 | "fqnsReferenced": [
|
7526 | "@aws-cdk/aws-ecs.CfnTaskDefinition.KeyValuePairProperty"
|
7527 | ],
|
7528 | "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} }",
|
7529 | "syntaxKindCounter": {
|
7530 | "10": 3,
|
7531 | "75": 7,
|
7532 | "153": 2,
|
7533 | "169": 1,
|
7534 | "193": 1,
|
7535 | "225": 1,
|
7536 | "242": 1,
|
7537 | "243": 1,
|
7538 | "254": 1,
|
7539 | "255": 1,
|
7540 | "256": 1,
|
7541 | "281": 2,
|
7542 | "290": 1
|
7543 | },
|
7544 | "fqnsFingerprint": "89278a2f9108e1f897e1b7efb0acb09aa19718bf80e80b6fb94bcf2e581c384a"
|
7545 | },
|
7546 | "f33e6f7c1df90493a14caf8d6fddf3b5214e6d744346014f8b66a37bb2521f29": {
|
7547 | "translations": {
|
7548 | "python": {
|
7549 | "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)",
|
7550 | "version": "2"
|
7551 | },
|
7552 | "csharp": {
|
7553 | "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};",
|
7554 | "version": "1"
|
7555 | },
|
7556 | "java": {
|
7557 | "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();",
|
7558 | "version": "1"
|
7559 | },
|
7560 | "go": {
|
7561 | "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}",
|
7562 | "version": "1"
|
7563 | },
|
7564 | "$": {
|
7565 | "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};",
|
7566 | "version": "0"
|
7567 | }
|
7568 | },
|
7569 | "location": {
|
7570 | "api": {
|
7571 | "api": "type",
|
7572 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.LinuxParametersProperty"
|
7573 | },
|
7574 | "field": {
|
7575 | "field": "example"
|
7576 | }
|
7577 | },
|
7578 | "didCompile": true,
|
7579 | "fqnsReferenced": [
|
7580 | "@aws-cdk/aws-ecs.CfnTaskDefinition.LinuxParametersProperty"
|
7581 | ],
|
7582 | "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} }",
|
7583 | "syntaxKindCounter": {
|
7584 | "8": 4,
|
7585 | "10": 8,
|
7586 | "75": 20,
|
7587 | "91": 1,
|
7588 | "153": 2,
|
7589 | "169": 1,
|
7590 | "192": 6,
|
7591 | "193": 4,
|
7592 | "225": 1,
|
7593 | "242": 1,
|
7594 | "243": 1,
|
7595 | "254": 1,
|
7596 | "255": 1,
|
7597 | "256": 1,
|
7598 | "281": 15,
|
7599 | "290": 1
|
7600 | },
|
7601 | "fqnsFingerprint": "af190decd2476b996887e47ed6581f6bcfdbecdc436e9207a8321e91e5965e5d"
|
7602 | },
|
7603 | "04b6d69ddae9d4ff0982cc3cb91b437aa6bb96ad231beddc18055725c984dd02": {
|
7604 | "translations": {
|
7605 | "python": {
|
7606 | "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)",
|
7607 | "version": "2"
|
7608 | },
|
7609 | "csharp": {
|
7610 | "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};",
|
7611 | "version": "1"
|
7612 | },
|
7613 | "java": {
|
7614 | "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();",
|
7615 | "version": "1"
|
7616 | },
|
7617 | "go": {
|
7618 | "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}",
|
7619 | "version": "1"
|
7620 | },
|
7621 | "$": {
|
7622 | "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};",
|
7623 | "version": "0"
|
7624 | }
|
7625 | },
|
7626 | "location": {
|
7627 | "api": {
|
7628 | "api": "type",
|
7629 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.LogConfigurationProperty"
|
7630 | },
|
7631 | "field": {
|
7632 | "field": "example"
|
7633 | }
|
7634 | },
|
7635 | "didCompile": true,
|
7636 | "fqnsReferenced": [
|
7637 | "@aws-cdk/aws-ecs.CfnTaskDefinition.LogConfigurationProperty"
|
7638 | ],
|
7639 | "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} }",
|
7640 | "syntaxKindCounter": {
|
7641 | "10": 5,
|
7642 | "75": 11,
|
7643 | "153": 2,
|
7644 | "169": 1,
|
7645 | "192": 1,
|
7646 | "193": 3,
|
7647 | "225": 1,
|
7648 | "242": 1,
|
7649 | "243": 1,
|
7650 | "254": 1,
|
7651 | "255": 1,
|
7652 | "256": 1,
|
7653 | "281": 6,
|
7654 | "290": 1
|
7655 | },
|
7656 | "fqnsFingerprint": "52d5b64d954c8215e0ed242717775b1478c0293d6b0e1615a539120cb8021194"
|
7657 | },
|
7658 | "4b386c950f9a57f54efc1235c9ef502dc4948da009fa1913e7e13e273fbd5dad": {
|
7659 | "translations": {
|
7660 | "python": {
|
7661 | "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)",
|
7662 | "version": "2"
|
7663 | },
|
7664 | "csharp": {
|
7665 | "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};",
|
7666 | "version": "1"
|
7667 | },
|
7668 | "java": {
|
7669 | "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();",
|
7670 | "version": "1"
|
7671 | },
|
7672 | "go": {
|
7673 | "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}",
|
7674 | "version": "1"
|
7675 | },
|
7676 | "$": {
|
7677 | "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};",
|
7678 | "version": "0"
|
7679 | }
|
7680 | },
|
7681 | "location": {
|
7682 | "api": {
|
7683 | "api": "type",
|
7684 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.MountPointProperty"
|
7685 | },
|
7686 | "field": {
|
7687 | "field": "example"
|
7688 | }
|
7689 | },
|
7690 | "didCompile": true,
|
7691 | "fqnsReferenced": [
|
7692 | "@aws-cdk/aws-ecs.CfnTaskDefinition.MountPointProperty"
|
7693 | ],
|
7694 | "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} }",
|
7695 | "syntaxKindCounter": {
|
7696 | "10": 3,
|
7697 | "75": 8,
|
7698 | "91": 1,
|
7699 | "153": 2,
|
7700 | "169": 1,
|
7701 | "193": 1,
|
7702 | "225": 1,
|
7703 | "242": 1,
|
7704 | "243": 1,
|
7705 | "254": 1,
|
7706 | "255": 1,
|
7707 | "256": 1,
|
7708 | "281": 3,
|
7709 | "290": 1
|
7710 | },
|
7711 | "fqnsFingerprint": "35735f8c562d8fa70de3d263a48490ce10dcb5051f38d8aee97d3070e251e14c"
|
7712 | },
|
7713 | "d7c952d5ec99c8029fb9dc9c98c4a0f81b9ac441afd922988f1bdd4d65a30fa5": {
|
7714 | "translations": {
|
7715 | "python": {
|
7716 | "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)",
|
7717 | "version": "2"
|
7718 | },
|
7719 | "csharp": {
|
7720 | "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};",
|
7721 | "version": "1"
|
7722 | },
|
7723 | "java": {
|
7724 | "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();",
|
7725 | "version": "1"
|
7726 | },
|
7727 | "go": {
|
7728 | "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}",
|
7729 | "version": "1"
|
7730 | },
|
7731 | "$": {
|
7732 | "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};",
|
7733 | "version": "0"
|
7734 | }
|
7735 | },
|
7736 | "location": {
|
7737 | "api": {
|
7738 | "api": "type",
|
7739 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.PortMappingProperty"
|
7740 | },
|
7741 | "field": {
|
7742 | "field": "example"
|
7743 | }
|
7744 | },
|
7745 | "didCompile": true,
|
7746 | "fqnsReferenced": [
|
7747 | "@aws-cdk/aws-ecs.CfnTaskDefinition.PortMappingProperty"
|
7748 | ],
|
7749 | "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} }",
|
7750 | "syntaxKindCounter": {
|
7751 | "8": 2,
|
7752 | "10": 2,
|
7753 | "75": 8,
|
7754 | "153": 2,
|
7755 | "169": 1,
|
7756 | "193": 1,
|
7757 | "225": 1,
|
7758 | "242": 1,
|
7759 | "243": 1,
|
7760 | "254": 1,
|
7761 | "255": 1,
|
7762 | "256": 1,
|
7763 | "281": 3,
|
7764 | "290": 1
|
7765 | },
|
7766 | "fqnsFingerprint": "7571c1605ae78240b241849ac6d06d513f04de1204c20b29bcc1ae2697f8f6f8"
|
7767 | },
|
7768 | "e0e3eead94db27d370dab70bcbb1079555ed3e88a1873aa4e2a1b6dbdf1b561d": {
|
7769 | "translations": {
|
7770 | "python": {
|
7771 | "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)",
|
7772 | "version": "2"
|
7773 | },
|
7774 | "csharp": {
|
7775 | "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};",
|
7776 | "version": "1"
|
7777 | },
|
7778 | "java": {
|
7779 | "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();",
|
7780 | "version": "1"
|
7781 | },
|
7782 | "go": {
|
7783 | "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}",
|
7784 | "version": "1"
|
7785 | },
|
7786 | "$": {
|
7787 | "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};",
|
7788 | "version": "0"
|
7789 | }
|
7790 | },
|
7791 | "location": {
|
7792 | "api": {
|
7793 | "api": "type",
|
7794 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ProxyConfigurationProperty"
|
7795 | },
|
7796 | "field": {
|
7797 | "field": "example"
|
7798 | }
|
7799 | },
|
7800 | "didCompile": true,
|
7801 | "fqnsReferenced": [
|
7802 | "@aws-cdk/aws-ecs.CfnTaskDefinition.ProxyConfigurationProperty"
|
7803 | ],
|
7804 | "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} }",
|
7805 | "syntaxKindCounter": {
|
7806 | "10": 5,
|
7807 | "75": 10,
|
7808 | "153": 2,
|
7809 | "169": 1,
|
7810 | "192": 1,
|
7811 | "193": 2,
|
7812 | "225": 1,
|
7813 | "242": 1,
|
7814 | "243": 1,
|
7815 | "254": 1,
|
7816 | "255": 1,
|
7817 | "256": 1,
|
7818 | "281": 5,
|
7819 | "290": 1
|
7820 | },
|
7821 | "fqnsFingerprint": "4c69665368f9a0d5fb7b041159394c10a96fc5d1dfb473e17ee3cadf2b1f170d"
|
7822 | },
|
7823 | "67f2284abb8a338a4fdbac6000206eb06f7dfe473180913130864a0810234c84": {
|
7824 | "translations": {
|
7825 | "python": {
|
7826 | "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)",
|
7827 | "version": "2"
|
7828 | },
|
7829 | "csharp": {
|
7830 | "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};",
|
7831 | "version": "1"
|
7832 | },
|
7833 | "java": {
|
7834 | "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();",
|
7835 | "version": "1"
|
7836 | },
|
7837 | "go": {
|
7838 | "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}",
|
7839 | "version": "1"
|
7840 | },
|
7841 | "$": {
|
7842 | "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};",
|
7843 | "version": "0"
|
7844 | }
|
7845 | },
|
7846 | "location": {
|
7847 | "api": {
|
7848 | "api": "type",
|
7849 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.RepositoryCredentialsProperty"
|
7850 | },
|
7851 | "field": {
|
7852 | "field": "example"
|
7853 | }
|
7854 | },
|
7855 | "didCompile": true,
|
7856 | "fqnsReferenced": [
|
7857 | "@aws-cdk/aws-ecs.CfnTaskDefinition.RepositoryCredentialsProperty"
|
7858 | ],
|
7859 | "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} }",
|
7860 | "syntaxKindCounter": {
|
7861 | "10": 2,
|
7862 | "75": 6,
|
7863 | "153": 2,
|
7864 | "169": 1,
|
7865 | "193": 1,
|
7866 | "225": 1,
|
7867 | "242": 1,
|
7868 | "243": 1,
|
7869 | "254": 1,
|
7870 | "255": 1,
|
7871 | "256": 1,
|
7872 | "281": 1,
|
7873 | "290": 1
|
7874 | },
|
7875 | "fqnsFingerprint": "9c2b2a7ebe7a850c6ce9448186ebee7ec0cf45e77368f2f7963677fe7bf1e022"
|
7876 | },
|
7877 | "bb1a18567342a8799737ec1ccd5ecbca84f01ab579a88f2141d4128a8675a3b5": {
|
7878 | "translations": {
|
7879 | "python": {
|
7880 | "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)",
|
7881 | "version": "2"
|
7882 | },
|
7883 | "csharp": {
|
7884 | "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};",
|
7885 | "version": "1"
|
7886 | },
|
7887 | "java": {
|
7888 | "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();",
|
7889 | "version": "1"
|
7890 | },
|
7891 | "go": {
|
7892 | "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}",
|
7893 | "version": "1"
|
7894 | },
|
7895 | "$": {
|
7896 | "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};",
|
7897 | "version": "0"
|
7898 | }
|
7899 | },
|
7900 | "location": {
|
7901 | "api": {
|
7902 | "api": "type",
|
7903 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.ResourceRequirementProperty"
|
7904 | },
|
7905 | "field": {
|
7906 | "field": "example"
|
7907 | }
|
7908 | },
|
7909 | "didCompile": true,
|
7910 | "fqnsReferenced": [
|
7911 | "@aws-cdk/aws-ecs.CfnTaskDefinition.ResourceRequirementProperty"
|
7912 | ],
|
7913 | "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} }",
|
7914 | "syntaxKindCounter": {
|
7915 | "10": 3,
|
7916 | "75": 7,
|
7917 | "153": 2,
|
7918 | "169": 1,
|
7919 | "193": 1,
|
7920 | "225": 1,
|
7921 | "242": 1,
|
7922 | "243": 1,
|
7923 | "254": 1,
|
7924 | "255": 1,
|
7925 | "256": 1,
|
7926 | "281": 2,
|
7927 | "290": 1
|
7928 | },
|
7929 | "fqnsFingerprint": "4787176dd7b1d5dde7717fdc566b2e92e6cf6f4d71720ce53eaca013d9d06e6c"
|
7930 | },
|
7931 | "d8f39c11e23c55baf531bd8702bd7d92fe18ca402df58ee3fdfb3d78170f877f": {
|
7932 | "translations": {
|
7933 | "python": {
|
7934 | "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)",
|
7935 | "version": "2"
|
7936 | },
|
7937 | "csharp": {
|
7938 | "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};",
|
7939 | "version": "1"
|
7940 | },
|
7941 | "java": {
|
7942 | "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();",
|
7943 | "version": "1"
|
7944 | },
|
7945 | "go": {
|
7946 | "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}",
|
7947 | "version": "1"
|
7948 | },
|
7949 | "$": {
|
7950 | "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};",
|
7951 | "version": "0"
|
7952 | }
|
7953 | },
|
7954 | "location": {
|
7955 | "api": {
|
7956 | "api": "type",
|
7957 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.RuntimePlatformProperty"
|
7958 | },
|
7959 | "field": {
|
7960 | "field": "example"
|
7961 | }
|
7962 | },
|
7963 | "didCompile": true,
|
7964 | "fqnsReferenced": [
|
7965 | "@aws-cdk/aws-ecs.CfnTaskDefinition.RuntimePlatformProperty"
|
7966 | ],
|
7967 | "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} }",
|
7968 | "syntaxKindCounter": {
|
7969 | "10": 3,
|
7970 | "75": 7,
|
7971 | "153": 2,
|
7972 | "169": 1,
|
7973 | "193": 1,
|
7974 | "225": 1,
|
7975 | "242": 1,
|
7976 | "243": 1,
|
7977 | "254": 1,
|
7978 | "255": 1,
|
7979 | "256": 1,
|
7980 | "281": 2,
|
7981 | "290": 1
|
7982 | },
|
7983 | "fqnsFingerprint": "0dd4a08937d9a317b57af7ac464641276e64838bf6b5ae28a7aecef946bb56f3"
|
7984 | },
|
7985 | "ba075ff0cc80ef372a4ce35feab33af0a53ef29dd7c3d69f8ea0c4bbfc19ae20": {
|
7986 | "translations": {
|
7987 | "python": {
|
7988 | "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)",
|
7989 | "version": "2"
|
7990 | },
|
7991 | "csharp": {
|
7992 | "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};",
|
7993 | "version": "1"
|
7994 | },
|
7995 | "java": {
|
7996 | "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();",
|
7997 | "version": "1"
|
7998 | },
|
7999 | "go": {
|
8000 | "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}",
|
8001 | "version": "1"
|
8002 | },
|
8003 | "$": {
|
8004 | "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};",
|
8005 | "version": "0"
|
8006 | }
|
8007 | },
|
8008 | "location": {
|
8009 | "api": {
|
8010 | "api": "type",
|
8011 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.SecretProperty"
|
8012 | },
|
8013 | "field": {
|
8014 | "field": "example"
|
8015 | }
|
8016 | },
|
8017 | "didCompile": true,
|
8018 | "fqnsReferenced": [
|
8019 | "@aws-cdk/aws-ecs.CfnTaskDefinition.SecretProperty"
|
8020 | ],
|
8021 | "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} }",
|
8022 | "syntaxKindCounter": {
|
8023 | "10": 3,
|
8024 | "75": 7,
|
8025 | "153": 2,
|
8026 | "169": 1,
|
8027 | "193": 1,
|
8028 | "225": 1,
|
8029 | "242": 1,
|
8030 | "243": 1,
|
8031 | "254": 1,
|
8032 | "255": 1,
|
8033 | "256": 1,
|
8034 | "281": 2,
|
8035 | "290": 1
|
8036 | },
|
8037 | "fqnsFingerprint": "48d72cd242c9f8a6a9349195145b25eb6942b6a274c922127225001a39ce0699"
|
8038 | },
|
8039 | "cd7ef25664a9808ba4d4eb3ce30456a5d5b631158c686910d48cfc051ca6bf7e": {
|
8040 | "translations": {
|
8041 | "python": {
|
8042 | "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)",
|
8043 | "version": "2"
|
8044 | },
|
8045 | "csharp": {
|
8046 | "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};",
|
8047 | "version": "1"
|
8048 | },
|
8049 | "java": {
|
8050 | "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();",
|
8051 | "version": "1"
|
8052 | },
|
8053 | "go": {
|
8054 | "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}",
|
8055 | "version": "1"
|
8056 | },
|
8057 | "$": {
|
8058 | "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};",
|
8059 | "version": "0"
|
8060 | }
|
8061 | },
|
8062 | "location": {
|
8063 | "api": {
|
8064 | "api": "type",
|
8065 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.SystemControlProperty"
|
8066 | },
|
8067 | "field": {
|
8068 | "field": "example"
|
8069 | }
|
8070 | },
|
8071 | "didCompile": true,
|
8072 | "fqnsReferenced": [
|
8073 | "@aws-cdk/aws-ecs.CfnTaskDefinition.SystemControlProperty"
|
8074 | ],
|
8075 | "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} }",
|
8076 | "syntaxKindCounter": {
|
8077 | "10": 3,
|
8078 | "75": 7,
|
8079 | "153": 2,
|
8080 | "169": 1,
|
8081 | "193": 1,
|
8082 | "225": 1,
|
8083 | "242": 1,
|
8084 | "243": 1,
|
8085 | "254": 1,
|
8086 | "255": 1,
|
8087 | "256": 1,
|
8088 | "281": 2,
|
8089 | "290": 1
|
8090 | },
|
8091 | "fqnsFingerprint": "e03d66feffeb8f71a47604484673eb4261b431e3c251804cdba77884725c6ece"
|
8092 | },
|
8093 | "d2c7e69d27a8ef8a55b6c9c87641c02b4e4cf8101f74618f64a6d747443f3e61": {
|
8094 | "translations": {
|
8095 | "python": {
|
8096 | "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)",
|
8097 | "version": "2"
|
8098 | },
|
8099 | "csharp": {
|
8100 | "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};",
|
8101 | "version": "1"
|
8102 | },
|
8103 | "java": {
|
8104 | "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();",
|
8105 | "version": "1"
|
8106 | },
|
8107 | "go": {
|
8108 | "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}",
|
8109 | "version": "1"
|
8110 | },
|
8111 | "$": {
|
8112 | "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};",
|
8113 | "version": "0"
|
8114 | }
|
8115 | },
|
8116 | "location": {
|
8117 | "api": {
|
8118 | "api": "type",
|
8119 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty"
|
8120 | },
|
8121 | "field": {
|
8122 | "field": "example"
|
8123 | }
|
8124 | },
|
8125 | "didCompile": true,
|
8126 | "fqnsReferenced": [
|
8127 | "@aws-cdk/aws-ecs.CfnTaskDefinition.TaskDefinitionPlacementConstraintProperty"
|
8128 | ],
|
8129 | "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} }",
|
8130 | "syntaxKindCounter": {
|
8131 | "10": 3,
|
8132 | "75": 7,
|
8133 | "153": 2,
|
8134 | "169": 1,
|
8135 | "193": 1,
|
8136 | "225": 1,
|
8137 | "242": 1,
|
8138 | "243": 1,
|
8139 | "254": 1,
|
8140 | "255": 1,
|
8141 | "256": 1,
|
8142 | "281": 2,
|
8143 | "290": 1
|
8144 | },
|
8145 | "fqnsFingerprint": "78cf813a80a24a4217dce1090424ad2e803d49f4fa4813c268987af27e3f7111"
|
8146 | },
|
8147 | "a3e21f483cda3f344c8de9e56ec90aded849cbe39ac3588d0b86a431411756e0": {
|
8148 | "translations": {
|
8149 | "python": {
|
8150 | "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)",
|
8151 | "version": "2"
|
8152 | },
|
8153 | "csharp": {
|
8154 | "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};",
|
8155 | "version": "1"
|
8156 | },
|
8157 | "java": {
|
8158 | "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();",
|
8159 | "version": "1"
|
8160 | },
|
8161 | "go": {
|
8162 | "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}",
|
8163 | "version": "1"
|
8164 | },
|
8165 | "$": {
|
8166 | "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};",
|
8167 | "version": "0"
|
8168 | }
|
8169 | },
|
8170 | "location": {
|
8171 | "api": {
|
8172 | "api": "type",
|
8173 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.TmpfsProperty"
|
8174 | },
|
8175 | "field": {
|
8176 | "field": "example"
|
8177 | }
|
8178 | },
|
8179 | "didCompile": true,
|
8180 | "fqnsReferenced": [
|
8181 | "@aws-cdk/aws-ecs.CfnTaskDefinition.TmpfsProperty"
|
8182 | ],
|
8183 | "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} }",
|
8184 | "syntaxKindCounter": {
|
8185 | "8": 1,
|
8186 | "10": 3,
|
8187 | "75": 8,
|
8188 | "153": 2,
|
8189 | "169": 1,
|
8190 | "192": 1,
|
8191 | "193": 1,
|
8192 | "225": 1,
|
8193 | "242": 1,
|
8194 | "243": 1,
|
8195 | "254": 1,
|
8196 | "255": 1,
|
8197 | "256": 1,
|
8198 | "281": 3,
|
8199 | "290": 1
|
8200 | },
|
8201 | "fqnsFingerprint": "bf95e62f475db79819134eaa1caa98e2b396427c2c689b4fbbb2214f9c99c050"
|
8202 | },
|
8203 | "4ed8d26d8b4460de7162473ea7220b97c6eb319777d84e95cdd5ca2c4eafaf8c": {
|
8204 | "translations": {
|
8205 | "python": {
|
8206 | "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)",
|
8207 | "version": "2"
|
8208 | },
|
8209 | "csharp": {
|
8210 | "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};",
|
8211 | "version": "1"
|
8212 | },
|
8213 | "java": {
|
8214 | "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();",
|
8215 | "version": "1"
|
8216 | },
|
8217 | "go": {
|
8218 | "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}",
|
8219 | "version": "1"
|
8220 | },
|
8221 | "$": {
|
8222 | "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};",
|
8223 | "version": "0"
|
8224 | }
|
8225 | },
|
8226 | "location": {
|
8227 | "api": {
|
8228 | "api": "type",
|
8229 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.UlimitProperty"
|
8230 | },
|
8231 | "field": {
|
8232 | "field": "example"
|
8233 | }
|
8234 | },
|
8235 | "didCompile": true,
|
8236 | "fqnsReferenced": [
|
8237 | "@aws-cdk/aws-ecs.CfnTaskDefinition.UlimitProperty"
|
8238 | ],
|
8239 | "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} }",
|
8240 | "syntaxKindCounter": {
|
8241 | "8": 2,
|
8242 | "10": 2,
|
8243 | "75": 8,
|
8244 | "153": 2,
|
8245 | "169": 1,
|
8246 | "193": 1,
|
8247 | "225": 1,
|
8248 | "242": 1,
|
8249 | "243": 1,
|
8250 | "254": 1,
|
8251 | "255": 1,
|
8252 | "256": 1,
|
8253 | "281": 3,
|
8254 | "290": 1
|
8255 | },
|
8256 | "fqnsFingerprint": "661c68c4f0dff9c7d00fafe4f7719995a9dcff6ed90c3d4f19f3bb8abe891b2f"
|
8257 | },
|
8258 | "c03483ec790431f734b19765118f3f9e43c3f095b190f1dd6ee1bb2a2d9ce5a0": {
|
8259 | "translations": {
|
8260 | "python": {
|
8261 | "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)",
|
8262 | "version": "2"
|
8263 | },
|
8264 | "csharp": {
|
8265 | "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};",
|
8266 | "version": "1"
|
8267 | },
|
8268 | "java": {
|
8269 | "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();",
|
8270 | "version": "1"
|
8271 | },
|
8272 | "go": {
|
8273 | "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}",
|
8274 | "version": "1"
|
8275 | },
|
8276 | "$": {
|
8277 | "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};",
|
8278 | "version": "0"
|
8279 | }
|
8280 | },
|
8281 | "location": {
|
8282 | "api": {
|
8283 | "api": "type",
|
8284 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeFromProperty"
|
8285 | },
|
8286 | "field": {
|
8287 | "field": "example"
|
8288 | }
|
8289 | },
|
8290 | "didCompile": true,
|
8291 | "fqnsReferenced": [
|
8292 | "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeFromProperty"
|
8293 | ],
|
8294 | "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} }",
|
8295 | "syntaxKindCounter": {
|
8296 | "10": 2,
|
8297 | "75": 7,
|
8298 | "91": 1,
|
8299 | "153": 2,
|
8300 | "169": 1,
|
8301 | "193": 1,
|
8302 | "225": 1,
|
8303 | "242": 1,
|
8304 | "243": 1,
|
8305 | "254": 1,
|
8306 | "255": 1,
|
8307 | "256": 1,
|
8308 | "281": 2,
|
8309 | "290": 1
|
8310 | },
|
8311 | "fqnsFingerprint": "19508737b9b4b7588b6cbba05c692db152fe758be1109a4a732664d0bb3e993b"
|
8312 | },
|
8313 | "708762178ef20a55338c2bc648049fcde7491b3dfd1f69ff2808a9a0213b2656": {
|
8314 | "translations": {
|
8315 | "python": {
|
8316 | "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)",
|
8317 | "version": "2"
|
8318 | },
|
8319 | "csharp": {
|
8320 | "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};",
|
8321 | "version": "1"
|
8322 | },
|
8323 | "java": {
|
8324 | "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();",
|
8325 | "version": "1"
|
8326 | },
|
8327 | "go": {
|
8328 | "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}",
|
8329 | "version": "1"
|
8330 | },
|
8331 | "$": {
|
8332 | "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};",
|
8333 | "version": "0"
|
8334 | }
|
8335 | },
|
8336 | "location": {
|
8337 | "api": {
|
8338 | "api": "type",
|
8339 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeProperty"
|
8340 | },
|
8341 | "field": {
|
8342 | "field": "example"
|
8343 | }
|
8344 | },
|
8345 | "didCompile": true,
|
8346 | "fqnsReferenced": [
|
8347 | "@aws-cdk/aws-ecs.CfnTaskDefinition.VolumeProperty"
|
8348 | ],
|
8349 | "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} }",
|
8350 | "syntaxKindCounter": {
|
8351 | "8": 1,
|
8352 | "10": 12,
|
8353 | "75": 24,
|
8354 | "91": 1,
|
8355 | "153": 2,
|
8356 | "169": 1,
|
8357 | "193": 7,
|
8358 | "225": 1,
|
8359 | "242": 1,
|
8360 | "243": 1,
|
8361 | "254": 1,
|
8362 | "255": 1,
|
8363 | "256": 1,
|
8364 | "281": 19,
|
8365 | "290": 1
|
8366 | },
|
8367 | "fqnsFingerprint": "54a6c79893fb539a5edc3f93b164745cf64cf212b728d18748c4a3521dc6854c"
|
8368 | },
|
8369 | "f0026f008ed7691d6af1ff04edf0dc01e1acc51401856f2acdac3f571e85f56c": {
|
8370 | "translations": {
|
8371 | "python": {
|
8372 | "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)",
|
8373 | "version": "2"
|
8374 | },
|
8375 | "csharp": {
|
8376 | "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};",
|
8377 | "version": "1"
|
8378 | },
|
8379 | "java": {
|
8380 | "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();",
|
8381 | "version": "1"
|
8382 | },
|
8383 | "go": {
|
8384 | "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}",
|
8385 | "version": "1"
|
8386 | },
|
8387 | "$": {
|
8388 | "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};",
|
8389 | "version": "0"
|
8390 | }
|
8391 | },
|
8392 | "location": {
|
8393 | "api": {
|
8394 | "api": "type",
|
8395 | "fqn": "@aws-cdk/aws-ecs.CfnTaskDefinitionProps"
|
8396 | },
|
8397 | "field": {
|
8398 | "field": "example"
|
8399 | }
|
8400 | },
|
8401 | "didCompile": true,
|
8402 | "fqnsReferenced": [
|
8403 | "@aws-cdk/aws-ecs.CfnTaskDefinitionProps"
|
8404 | ],
|
8405 | "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} }",
|
8406 | "syntaxKindCounter": {
|
8407 | "8": 19,
|
8408 | "10": 79,
|
8409 | "75": 149,
|
8410 | "91": 10,
|
8411 | "153": 1,
|
8412 | "169": 1,
|
8413 | "192": 32,
|
8414 | "193": 39,
|
8415 | "225": 1,
|
8416 | "242": 1,
|
8417 | "243": 1,
|
8418 | "254": 1,
|
8419 | "255": 1,
|
8420 | "256": 1,
|
8421 | "281": 145,
|
8422 | "290": 1
|
8423 | },
|
8424 | "fqnsFingerprint": "f0c7e17d0f8155be280929c7dcabcf7f5d74a1180779cefc142fd101bb571bc7"
|
8425 | },
|
8426 | "487b21171557743ccd5a9929034c4f644b9d5a726d7e1533f7d5d83ba27aec29": {
|
8427 | "translations": {
|
8428 | "python": {
|
8429 | "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)",
|
8430 | "version": "2"
|
8431 | },
|
8432 | "csharp": {
|
8433 | "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});",
|
8434 | "version": "1"
|
8435 | },
|
8436 | "java": {
|
8437 | "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();",
|
8438 | "version": "1"
|
8439 | },
|
8440 | "go": {
|
8441 | "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})",
|
8442 | "version": "1"
|
8443 | },
|
8444 | "$": {
|
8445 | "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});",
|
8446 | "version": "0"
|
8447 | }
|
8448 | },
|
8449 | "location": {
|
8450 | "api": {
|
8451 | "api": "type",
|
8452 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSet"
|
8453 | },
|
8454 | "field": {
|
8455 | "field": "example"
|
8456 | }
|
8457 | },
|
8458 | "didCompile": true,
|
8459 | "fqnsReferenced": [
|
8460 | "@aws-cdk/aws-ecs.CfnTaskSet",
|
8461 | "@aws-cdk/aws-ecs.CfnTaskSetProps",
|
8462 | "@aws-cdk/core.Construct"
|
8463 | ],
|
8464 | "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} }",
|
8465 | "syntaxKindCounter": {
|
8466 | "8": 4,
|
8467 | "10": 17,
|
8468 | "75": 28,
|
8469 | "104": 1,
|
8470 | "192": 4,
|
8471 | "193": 6,
|
8472 | "194": 1,
|
8473 | "197": 1,
|
8474 | "225": 1,
|
8475 | "242": 1,
|
8476 | "243": 1,
|
8477 | "254": 1,
|
8478 | "255": 1,
|
8479 | "256": 1,
|
8480 | "281": 24,
|
8481 | "290": 1
|
8482 | },
|
8483 | "fqnsFingerprint": "6fec7879c8dbd0534f127dcf0d33cf2cf290744bf922dca69593f8d29f3d22d2"
|
8484 | },
|
8485 | "ea43e5765c428e954a952cf9be46f05945d7a76dd92bbfa88e8f66ddbc6fdb91": {
|
8486 | "translations": {
|
8487 | "python": {
|
8488 | "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)",
|
8489 | "version": "2"
|
8490 | },
|
8491 | "csharp": {
|
8492 | "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};",
|
8493 | "version": "1"
|
8494 | },
|
8495 | "java": {
|
8496 | "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();",
|
8497 | "version": "1"
|
8498 | },
|
8499 | "go": {
|
8500 | "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}",
|
8501 | "version": "1"
|
8502 | },
|
8503 | "$": {
|
8504 | "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};",
|
8505 | "version": "0"
|
8506 | }
|
8507 | },
|
8508 | "location": {
|
8509 | "api": {
|
8510 | "api": "type",
|
8511 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.AwsVpcConfigurationProperty"
|
8512 | },
|
8513 | "field": {
|
8514 | "field": "example"
|
8515 | }
|
8516 | },
|
8517 | "didCompile": true,
|
8518 | "fqnsReferenced": [
|
8519 | "@aws-cdk/aws-ecs.CfnTaskSet.AwsVpcConfigurationProperty"
|
8520 | ],
|
8521 | "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} }",
|
8522 | "syntaxKindCounter": {
|
8523 | "10": 4,
|
8524 | "75": 8,
|
8525 | "153": 2,
|
8526 | "169": 1,
|
8527 | "192": 2,
|
8528 | "193": 1,
|
8529 | "225": 1,
|
8530 | "242": 1,
|
8531 | "243": 1,
|
8532 | "254": 1,
|
8533 | "255": 1,
|
8534 | "256": 1,
|
8535 | "281": 3,
|
8536 | "290": 1
|
8537 | },
|
8538 | "fqnsFingerprint": "ef544ab2b838270e9eb1283708a3fb1f437b39dc6048d4219e27f96ef7919a3e"
|
8539 | },
|
8540 | "d751418524b18f47b4290ce3a9cf9b59145030ef8b0ccf08684adad5035b6ef4": {
|
8541 | "translations": {
|
8542 | "python": {
|
8543 | "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)",
|
8544 | "version": "2"
|
8545 | },
|
8546 | "csharp": {
|
8547 | "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};",
|
8548 | "version": "1"
|
8549 | },
|
8550 | "java": {
|
8551 | "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();",
|
8552 | "version": "1"
|
8553 | },
|
8554 | "go": {
|
8555 | "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}",
|
8556 | "version": "1"
|
8557 | },
|
8558 | "$": {
|
8559 | "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};",
|
8560 | "version": "0"
|
8561 | }
|
8562 | },
|
8563 | "location": {
|
8564 | "api": {
|
8565 | "api": "type",
|
8566 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.LoadBalancerProperty"
|
8567 | },
|
8568 | "field": {
|
8569 | "field": "example"
|
8570 | }
|
8571 | },
|
8572 | "didCompile": true,
|
8573 | "fqnsReferenced": [
|
8574 | "@aws-cdk/aws-ecs.CfnTaskSet.LoadBalancerProperty"
|
8575 | ],
|
8576 | "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} }",
|
8577 | "syntaxKindCounter": {
|
8578 | "8": 1,
|
8579 | "10": 4,
|
8580 | "75": 9,
|
8581 | "153": 2,
|
8582 | "169": 1,
|
8583 | "193": 1,
|
8584 | "225": 1,
|
8585 | "242": 1,
|
8586 | "243": 1,
|
8587 | "254": 1,
|
8588 | "255": 1,
|
8589 | "256": 1,
|
8590 | "281": 4,
|
8591 | "290": 1
|
8592 | },
|
8593 | "fqnsFingerprint": "56d788264606fbd698e1cbdbae7bbd99c017a3ffcecab16e4b0e25a19fe78593"
|
8594 | },
|
8595 | "eca52a1d9362b62e35e13b261085de40cb2a0162e8acb19a4593819c4b16858e": {
|
8596 | "translations": {
|
8597 | "python": {
|
8598 | "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)",
|
8599 | "version": "2"
|
8600 | },
|
8601 | "csharp": {
|
8602 | "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};",
|
8603 | "version": "1"
|
8604 | },
|
8605 | "java": {
|
8606 | "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();",
|
8607 | "version": "1"
|
8608 | },
|
8609 | "go": {
|
8610 | "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}",
|
8611 | "version": "1"
|
8612 | },
|
8613 | "$": {
|
8614 | "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};",
|
8615 | "version": "0"
|
8616 | }
|
8617 | },
|
8618 | "location": {
|
8619 | "api": {
|
8620 | "api": "type",
|
8621 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.NetworkConfigurationProperty"
|
8622 | },
|
8623 | "field": {
|
8624 | "field": "example"
|
8625 | }
|
8626 | },
|
8627 | "didCompile": true,
|
8628 | "fqnsReferenced": [
|
8629 | "@aws-cdk/aws-ecs.CfnTaskSet.NetworkConfigurationProperty"
|
8630 | ],
|
8631 | "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} }",
|
8632 | "syntaxKindCounter": {
|
8633 | "10": 4,
|
8634 | "75": 9,
|
8635 | "153": 2,
|
8636 | "169": 1,
|
8637 | "192": 2,
|
8638 | "193": 2,
|
8639 | "225": 1,
|
8640 | "242": 1,
|
8641 | "243": 1,
|
8642 | "254": 1,
|
8643 | "255": 1,
|
8644 | "256": 1,
|
8645 | "281": 4,
|
8646 | "290": 1
|
8647 | },
|
8648 | "fqnsFingerprint": "3414aadb04cfa6bf837d2866658944938153a0b85a4ccd63169fa6f2d8919b40"
|
8649 | },
|
8650 | "13fb9cd2e084b75fbdb92d72ea12b4290a10e34831511b5e3b10d01b9b3a3db9": {
|
8651 | "translations": {
|
8652 | "python": {
|
8653 | "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)",
|
8654 | "version": "2"
|
8655 | },
|
8656 | "csharp": {
|
8657 | "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};",
|
8658 | "version": "1"
|
8659 | },
|
8660 | "java": {
|
8661 | "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();",
|
8662 | "version": "1"
|
8663 | },
|
8664 | "go": {
|
8665 | "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}",
|
8666 | "version": "1"
|
8667 | },
|
8668 | "$": {
|
8669 | "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};",
|
8670 | "version": "0"
|
8671 | }
|
8672 | },
|
8673 | "location": {
|
8674 | "api": {
|
8675 | "api": "type",
|
8676 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.ScaleProperty"
|
8677 | },
|
8678 | "field": {
|
8679 | "field": "example"
|
8680 | }
|
8681 | },
|
8682 | "didCompile": true,
|
8683 | "fqnsReferenced": [
|
8684 | "@aws-cdk/aws-ecs.CfnTaskSet.ScaleProperty"
|
8685 | ],
|
8686 | "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} }",
|
8687 | "syntaxKindCounter": {
|
8688 | "8": 1,
|
8689 | "10": 2,
|
8690 | "75": 7,
|
8691 | "153": 2,
|
8692 | "169": 1,
|
8693 | "193": 1,
|
8694 | "225": 1,
|
8695 | "242": 1,
|
8696 | "243": 1,
|
8697 | "254": 1,
|
8698 | "255": 1,
|
8699 | "256": 1,
|
8700 | "281": 2,
|
8701 | "290": 1
|
8702 | },
|
8703 | "fqnsFingerprint": "7ce0e6aeaa3c9972e3bbd372ae9254a34efe1337c941e769a41e1bd5caf9702b"
|
8704 | },
|
8705 | "0d2d89f7bc7e2b0829a13e08cf9905b43e3eaa018a9c48db249f9ecdeb2a0938": {
|
8706 | "translations": {
|
8707 | "python": {
|
8708 | "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)",
|
8709 | "version": "2"
|
8710 | },
|
8711 | "csharp": {
|
8712 | "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};",
|
8713 | "version": "1"
|
8714 | },
|
8715 | "java": {
|
8716 | "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();",
|
8717 | "version": "1"
|
8718 | },
|
8719 | "go": {
|
8720 | "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}",
|
8721 | "version": "1"
|
8722 | },
|
8723 | "$": {
|
8724 | "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};",
|
8725 | "version": "0"
|
8726 | }
|
8727 | },
|
8728 | "location": {
|
8729 | "api": {
|
8730 | "api": "type",
|
8731 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSet.ServiceRegistryProperty"
|
8732 | },
|
8733 | "field": {
|
8734 | "field": "example"
|
8735 | }
|
8736 | },
|
8737 | "didCompile": true,
|
8738 | "fqnsReferenced": [
|
8739 | "@aws-cdk/aws-ecs.CfnTaskSet.ServiceRegistryProperty"
|
8740 | ],
|
8741 | "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} }",
|
8742 | "syntaxKindCounter": {
|
8743 | "8": 2,
|
8744 | "10": 3,
|
8745 | "75": 9,
|
8746 | "153": 2,
|
8747 | "169": 1,
|
8748 | "193": 1,
|
8749 | "225": 1,
|
8750 | "242": 1,
|
8751 | "243": 1,
|
8752 | "254": 1,
|
8753 | "255": 1,
|
8754 | "256": 1,
|
8755 | "281": 4,
|
8756 | "290": 1
|
8757 | },
|
8758 | "fqnsFingerprint": "0e92abee8b9d4bdd1b6c28cfef46ee186e52c0a3a6c0d546f8728f31d5eb2bdc"
|
8759 | },
|
8760 | "c1c0d97388c9640c30f339ab4117a0fd7fe6c7b59438347607d34064407998de": {
|
8761 | "translations": {
|
8762 | "python": {
|
8763 | "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)",
|
8764 | "version": "2"
|
8765 | },
|
8766 | "csharp": {
|
8767 | "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};",
|
8768 | "version": "1"
|
8769 | },
|
8770 | "java": {
|
8771 | "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();",
|
8772 | "version": "1"
|
8773 | },
|
8774 | "go": {
|
8775 | "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}",
|
8776 | "version": "1"
|
8777 | },
|
8778 | "$": {
|
8779 | "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};",
|
8780 | "version": "0"
|
8781 | }
|
8782 | },
|
8783 | "location": {
|
8784 | "api": {
|
8785 | "api": "type",
|
8786 | "fqn": "@aws-cdk/aws-ecs.CfnTaskSetProps"
|
8787 | },
|
8788 | "field": {
|
8789 | "field": "example"
|
8790 | }
|
8791 | },
|
8792 | "didCompile": true,
|
8793 | "fqnsReferenced": [
|
8794 | "@aws-cdk/aws-ecs.CfnTaskSetProps"
|
8795 | ],
|
8796 | "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} }",
|
8797 | "syntaxKindCounter": {
|
8798 | "8": 4,
|
8799 | "10": 16,
|
8800 | "75": 28,
|
8801 | "153": 1,
|
8802 | "169": 1,
|
8803 | "192": 4,
|
8804 | "193": 6,
|
8805 | "225": 1,
|
8806 | "242": 1,
|
8807 | "243": 1,
|
8808 | "254": 1,
|
8809 | "255": 1,
|
8810 | "256": 1,
|
8811 | "281": 24,
|
8812 | "290": 1
|
8813 | },
|
8814 | "fqnsFingerprint": "bb9697fcd3644d64916b11fd46f887f524f35e16e9cda45e3bbee44fdd9135ea"
|
8815 | },
|
8816 | "1818c3e90c192cfd1bd808eb2ec7bbebcedb05196de9d466d4b5d14ca0a29cd6": {
|
8817 | "translations": {
|
8818 | "python": {
|
8819 | "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)",
|
8820 | "version": "2"
|
8821 | },
|
8822 | "csharp": {
|
8823 | "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};",
|
8824 | "version": "1"
|
8825 | },
|
8826 | "java": {
|
8827 | "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();",
|
8828 | "version": "1"
|
8829 | },
|
8830 | "go": {
|
8831 | "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}",
|
8832 | "version": "1"
|
8833 | },
|
8834 | "$": {
|
8835 | "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};",
|
8836 | "version": "0"
|
8837 | }
|
8838 | },
|
8839 | "location": {
|
8840 | "api": {
|
8841 | "api": "type",
|
8842 | "fqn": "@aws-cdk/aws-ecs.CloudMapNamespaceOptions"
|
8843 | },
|
8844 | "field": {
|
8845 | "field": "example"
|
8846 | }
|
8847 | },
|
8848 | "didCompile": true,
|
8849 | "fqnsReferenced": [
|
8850 | "@aws-cdk/aws-ec2.IVpc",
|
8851 | "@aws-cdk/aws-ecs.CloudMapNamespaceOptions",
|
8852 | "@aws-cdk/aws-servicediscovery.NamespaceType",
|
8853 | "@aws-cdk/aws-servicediscovery.NamespaceType#HTTP"
|
8854 | ],
|
8855 | "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} }",
|
8856 | "syntaxKindCounter": {
|
8857 | "10": 4,
|
8858 | "75": 16,
|
8859 | "130": 1,
|
8860 | "153": 2,
|
8861 | "169": 2,
|
8862 | "193": 1,
|
8863 | "194": 2,
|
8864 | "225": 2,
|
8865 | "242": 2,
|
8866 | "243": 2,
|
8867 | "254": 3,
|
8868 | "255": 3,
|
8869 | "256": 3,
|
8870 | "281": 3,
|
8871 | "290": 1
|
8872 | },
|
8873 | "fqnsFingerprint": "6b409fd9b4d2688db3d345677eadef71cbecdf651f1bb60a3e79380224328403"
|
8874 | },
|
8875 | "52e4cde21120d51675431c484d5d4ac4d99a4202f719b28f7640aba71d57af72": {
|
8876 | "translations": {
|
8877 | "python": {
|
8878 | "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)",
|
8879 | "version": "2"
|
8880 | },
|
8881 | "csharp": {
|
8882 | "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});",
|
8883 | "version": "1"
|
8884 | },
|
8885 | "java": {
|
8886 | "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();",
|
8887 | "version": "1"
|
8888 | },
|
8889 | "go": {
|
8890 | "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})",
|
8891 | "version": "1"
|
8892 | },
|
8893 | "$": {
|
8894 | "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});",
|
8895 | "version": "0"
|
8896 | }
|
8897 | },
|
8898 | "location": {
|
8899 | "api": {
|
8900 | "api": "type",
|
8901 | "fqn": "@aws-cdk/aws-ecs.CloudMapOptions"
|
8902 | },
|
8903 | "field": {
|
8904 | "field": "example"
|
8905 | }
|
8906 | },
|
8907 | "didCompile": true,
|
8908 | "fqnsReferenced": [
|
8909 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
8910 | "@aws-cdk/aws-ecs.Ec2Service",
|
8911 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
8912 | "@aws-cdk/aws-ecs.ICluster",
|
8913 | "@aws-cdk/aws-ecs.TaskDefinition",
|
8914 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
8915 | "@aws-cdk/aws-servicediscovery.DnsRecordType#A",
|
8916 | "constructs.Construct"
|
8917 | ],
|
8918 | "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",
|
8919 | "syntaxKindCounter": {
|
8920 | "10": 1,
|
8921 | "75": 16,
|
8922 | "104": 1,
|
8923 | "130": 2,
|
8924 | "153": 2,
|
8925 | "169": 2,
|
8926 | "193": 2,
|
8927 | "194": 3,
|
8928 | "197": 1,
|
8929 | "225": 3,
|
8930 | "242": 3,
|
8931 | "243": 3,
|
8932 | "281": 2,
|
8933 | "282": 2,
|
8934 | "290": 1
|
8935 | },
|
8936 | "fqnsFingerprint": "374d3b9fa2ee49a4bffc8b15afd22fe5a74a4f58372f359fe5f02b71827ada30"
|
8937 | },
|
8938 | "a3e3c1934e6c762889b8e3e482a443514b03d82d2d09e7d6320285d7744506ad": {
|
8939 | "translations": {
|
8940 | "python": {
|
8941 | "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)",
|
8942 | "version": "2"
|
8943 | },
|
8944 | "csharp": {
|
8945 | "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});",
|
8946 | "version": "1"
|
8947 | },
|
8948 | "java": {
|
8949 | "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();",
|
8950 | "version": "1"
|
8951 | },
|
8952 | "go": {
|
8953 | "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})",
|
8954 | "version": "1"
|
8955 | },
|
8956 | "$": {
|
8957 | "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});",
|
8958 | "version": "0"
|
8959 | }
|
8960 | },
|
8961 | "location": {
|
8962 | "api": {
|
8963 | "api": "type",
|
8964 | "fqn": "@aws-cdk/aws-ecs.Cluster"
|
8965 | },
|
8966 | "field": {
|
8967 | "field": "example"
|
8968 | }
|
8969 | },
|
8970 | "didCompile": true,
|
8971 | "fqnsReferenced": [
|
8972 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
8973 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
8974 | "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
|
8975 | "@aws-cdk/aws-ec2.IMachineImage",
|
8976 | "@aws-cdk/aws-ec2.IVpc",
|
8977 | "@aws-cdk/aws-ec2.InstanceType",
|
8978 | "@aws-cdk/aws-ecs.AsgCapacityProvider",
|
8979 | "@aws-cdk/aws-ecs.AsgCapacityProvider#capacityProviderName",
|
8980 | "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
|
8981 | "@aws-cdk/aws-ecs.Cluster",
|
8982 | "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
|
8983 | "@aws-cdk/aws-ecs.ClusterProps",
|
8984 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
8985 | "@aws-cdk/aws-ecs.ContainerImage",
|
8986 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
8987 | "@aws-cdk/aws-ecs.Ec2Service",
|
8988 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
8989 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
8990 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
8991 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux2",
|
8992 | "@aws-cdk/aws-ecs.ICluster",
|
8993 | "@aws-cdk/aws-ecs.TaskDefinition",
|
8994 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
8995 | "constructs.Construct"
|
8996 | ],
|
8997 | "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",
|
8998 | "syntaxKindCounter": {
|
8999 | "8": 4,
|
9000 | "10": 8,
|
9001 | "75": 46,
|
9002 | "104": 5,
|
9003 | "130": 1,
|
9004 | "153": 1,
|
9005 | "169": 1,
|
9006 | "192": 1,
|
9007 | "193": 6,
|
9008 | "194": 13,
|
9009 | "196": 4,
|
9010 | "197": 6,
|
9011 | "225": 5,
|
9012 | "226": 3,
|
9013 | "242": 5,
|
9014 | "243": 5,
|
9015 | "281": 9,
|
9016 | "282": 5,
|
9017 | "290": 1
|
9018 | },
|
9019 | "fqnsFingerprint": "68b1be7ab6e8a4488c15608eca790f2daa29466c904f5818e2aa89a689b6ba66"
|
9020 | },
|
9021 | "70d3e7c6490ed66f2ea7ffbe3139e1d94ee432b6b12119b38f46852f9f98b87d": {
|
9022 | "translations": {
|
9023 | "python": {
|
9024 | "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)",
|
9025 | "version": "2"
|
9026 | },
|
9027 | "csharp": {
|
9028 | "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};",
|
9029 | "version": "1"
|
9030 | },
|
9031 | "java": {
|
9032 | "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();",
|
9033 | "version": "1"
|
9034 | },
|
9035 | "go": {
|
9036 | "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}",
|
9037 | "version": "1"
|
9038 | },
|
9039 | "$": {
|
9040 | "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};",
|
9041 | "version": "0"
|
9042 | }
|
9043 | },
|
9044 | "location": {
|
9045 | "api": {
|
9046 | "api": "type",
|
9047 | "fqn": "@aws-cdk/aws-ecs.ClusterAttributes"
|
9048 | },
|
9049 | "field": {
|
9050 | "field": "example"
|
9051 | }
|
9052 | },
|
9053 | "didCompile": true,
|
9054 | "fqnsReferenced": [
|
9055 | "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
|
9056 | "@aws-cdk/aws-ec2.IVpc",
|
9057 | "@aws-cdk/aws-ecs.ClusterAttributes",
|
9058 | "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
|
9059 | "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
|
9060 | "@aws-cdk/aws-ecs.ExecuteCommandLogging",
|
9061 | "@aws-cdk/aws-ecs.ExecuteCommandLogging#NONE",
|
9062 | "@aws-cdk/aws-kms.IKey",
|
9063 | "@aws-cdk/aws-logs.ILogGroup",
|
9064 | "@aws-cdk/aws-s3.IBucket",
|
9065 | "@aws-cdk/aws-servicediscovery.INamespace"
|
9066 | ],
|
9067 | "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} }",
|
9068 | "syntaxKindCounter": {
|
9069 | "10": 10,
|
9070 | "75": 57,
|
9071 | "91": 3,
|
9072 | "130": 7,
|
9073 | "153": 8,
|
9074 | "169": 8,
|
9075 | "192": 1,
|
9076 | "193": 3,
|
9077 | "194": 2,
|
9078 | "225": 8,
|
9079 | "242": 8,
|
9080 | "243": 8,
|
9081 | "254": 7,
|
9082 | "255": 7,
|
9083 | "256": 7,
|
9084 | "281": 16,
|
9085 | "290": 1
|
9086 | },
|
9087 | "fqnsFingerprint": "8c0fce386a55b4f082c14c74876ed1df1b659e83a9fc9201095a57013008e969"
|
9088 | },
|
9089 | "f7738eeb757dc1be01b718b7b0387879439fc8a738cf8705bc3f16f98b7b8067": {
|
9090 | "translations": {
|
9091 | "python": {
|
9092 | "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)",
|
9093 | "version": "2"
|
9094 | },
|
9095 | "csharp": {
|
9096 | "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});",
|
9097 | "version": "1"
|
9098 | },
|
9099 | "java": {
|
9100 | "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();",
|
9101 | "version": "1"
|
9102 | },
|
9103 | "go": {
|
9104 | "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})",
|
9105 | "version": "1"
|
9106 | },
|
9107 | "$": {
|
9108 | "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});",
|
9109 | "version": "0"
|
9110 | }
|
9111 | },
|
9112 | "location": {
|
9113 | "api": {
|
9114 | "api": "type",
|
9115 | "fqn": "@aws-cdk/aws-ecs.ClusterProps"
|
9116 | },
|
9117 | "field": {
|
9118 | "field": "example"
|
9119 | }
|
9120 | },
|
9121 | "didCompile": true,
|
9122 | "fqnsReferenced": [
|
9123 | "@aws-cdk/aws-ec2.IVpc",
|
9124 | "@aws-cdk/aws-ec2.Vpc",
|
9125 | "@aws-cdk/aws-ec2.Vpc#fromLookup",
|
9126 | "@aws-cdk/aws-ec2.VpcLookupOptions",
|
9127 | "@aws-cdk/aws-ecs.Cluster",
|
9128 | "@aws-cdk/aws-ecs.ClusterProps",
|
9129 | "@aws-cdk/aws-ecs.Compatibility",
|
9130 | "@aws-cdk/aws-ecs.Compatibility#FARGATE",
|
9131 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
9132 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
9133 | "@aws-cdk/aws-ecs.ContainerImage",
|
9134 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
9135 | "@aws-cdk/aws-ecs.ICluster",
|
9136 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9137 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
9138 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
9139 | "@aws-cdk/aws-stepfunctions-tasks.EcsFargateLaunchTarget",
|
9140 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
|
9141 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
|
9142 | "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
|
9143 | "@aws-cdk/aws-stepfunctions.IntegrationPattern",
|
9144 | "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
|
9145 | "@aws-cdk/aws-stepfunctions.JsonPath",
|
9146 | "@aws-cdk/aws-stepfunctions.JsonPath#stringAt",
|
9147 | "constructs.Construct"
|
9148 | ],
|
9149 | "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",
|
9150 | "syntaxKindCounter": {
|
9151 | "8": 1,
|
9152 | "10": 10,
|
9153 | "75": 47,
|
9154 | "104": 4,
|
9155 | "106": 2,
|
9156 | "192": 2,
|
9157 | "193": 7,
|
9158 | "194": 15,
|
9159 | "196": 4,
|
9160 | "197": 4,
|
9161 | "225": 5,
|
9162 | "242": 5,
|
9163 | "243": 5,
|
9164 | "281": 13,
|
9165 | "282": 4
|
9166 | },
|
9167 | "fqnsFingerprint": "7ee1fa6831692b79f38b409908af6663f8f57a321ce480bce25621dd4b612708"
|
9168 | },
|
9169 | "ceddedc4c3ec5f87e2bfb7198dc29c27cd9f4890e1d70beb76ec9fe195223c02": {
|
9170 | "translations": {
|
9171 | "python": {
|
9172 | "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)",
|
9173 | "version": "2"
|
9174 | },
|
9175 | "csharp": {
|
9176 | "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};",
|
9177 | "version": "1"
|
9178 | },
|
9179 | "java": {
|
9180 | "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();",
|
9181 | "version": "1"
|
9182 | },
|
9183 | "go": {
|
9184 | "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}",
|
9185 | "version": "1"
|
9186 | },
|
9187 | "$": {
|
9188 | "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};",
|
9189 | "version": "0"
|
9190 | }
|
9191 | },
|
9192 | "location": {
|
9193 | "api": {
|
9194 | "api": "type",
|
9195 | "fqn": "@aws-cdk/aws-ecs.CommonTaskDefinitionAttributes"
|
9196 | },
|
9197 | "field": {
|
9198 | "field": "example"
|
9199 | }
|
9200 | },
|
9201 | "didCompile": true,
|
9202 | "fqnsReferenced": [
|
9203 | "@aws-cdk/aws-ecs.CommonTaskDefinitionAttributes",
|
9204 | "@aws-cdk/aws-ecs.NetworkMode",
|
9205 | "@aws-cdk/aws-ecs.NetworkMode#NONE",
|
9206 | "@aws-cdk/aws-iam.IRole"
|
9207 | ],
|
9208 | "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} }",
|
9209 | "syntaxKindCounter": {
|
9210 | "10": 3,
|
9211 | "75": 15,
|
9212 | "130": 1,
|
9213 | "153": 2,
|
9214 | "169": 2,
|
9215 | "193": 1,
|
9216 | "194": 2,
|
9217 | "225": 2,
|
9218 | "242": 2,
|
9219 | "243": 2,
|
9220 | "254": 2,
|
9221 | "255": 2,
|
9222 | "256": 2,
|
9223 | "281": 3,
|
9224 | "290": 1
|
9225 | },
|
9226 | "fqnsFingerprint": "8ed90c6efa7ebbe713f77a94c68b2d3e19fa9168a69fe76f3e983c57bf1c58ea"
|
9227 | },
|
9228 | "add6922652836abae37b932854c5b4fdcffb9d82a34bcee20dd49af0551b1a3d": {
|
9229 | "translations": {
|
9230 | "python": {
|
9231 | "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)",
|
9232 | "version": "2"
|
9233 | },
|
9234 | "csharp": {
|
9235 | "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};",
|
9236 | "version": "1"
|
9237 | },
|
9238 | "java": {
|
9239 | "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();",
|
9240 | "version": "1"
|
9241 | },
|
9242 | "go": {
|
9243 | "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}",
|
9244 | "version": "1"
|
9245 | },
|
9246 | "$": {
|
9247 | "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};",
|
9248 | "version": "0"
|
9249 | }
|
9250 | },
|
9251 | "location": {
|
9252 | "api": {
|
9253 | "api": "type",
|
9254 | "fqn": "@aws-cdk/aws-ecs.CommonTaskDefinitionProps"
|
9255 | },
|
9256 | "field": {
|
9257 | "field": "example"
|
9258 | }
|
9259 | },
|
9260 | "didCompile": true,
|
9261 | "fqnsReferenced": [
|
9262 | "@aws-cdk/aws-ecs.AuthorizationConfig",
|
9263 | "@aws-cdk/aws-ecs.CommonTaskDefinitionProps",
|
9264 | "@aws-cdk/aws-ecs.DockerVolumeConfiguration",
|
9265 | "@aws-cdk/aws-ecs.EfsVolumeConfiguration",
|
9266 | "@aws-cdk/aws-ecs.Host",
|
9267 | "@aws-cdk/aws-ecs.ProxyConfiguration",
|
9268 | "@aws-cdk/aws-ecs.Scope",
|
9269 | "@aws-cdk/aws-ecs.Scope#TASK",
|
9270 | "@aws-cdk/aws-iam.IRole"
|
9271 | ],
|
9272 | "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} }",
|
9273 | "syntaxKindCounter": {
|
9274 | "8": 1,
|
9275 | "10": 13,
|
9276 | "75": 41,
|
9277 | "91": 1,
|
9278 | "130": 2,
|
9279 | "153": 3,
|
9280 | "169": 3,
|
9281 | "192": 1,
|
9282 | "193": 8,
|
9283 | "194": 2,
|
9284 | "225": 3,
|
9285 | "242": 3,
|
9286 | "243": 3,
|
9287 | "254": 2,
|
9288 | "255": 2,
|
9289 | "256": 2,
|
9290 | "281": 24,
|
9291 | "290": 1
|
9292 | },
|
9293 | "fqnsFingerprint": "37e48d5cb048519618bbf710732662f9583f3461b8ba094c2ea576789911b104"
|
9294 | },
|
9295 | "a3750479f5769f761144d92cc8ad7c3ee4481f653c3e8706e8722045e21ea790": {
|
9296 | "translations": {
|
9297 | "python": {
|
9298 | "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)",
|
9299 | "version": "2"
|
9300 | },
|
9301 | "csharp": {
|
9302 | "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});",
|
9303 | "version": "1"
|
9304 | },
|
9305 | "java": {
|
9306 | "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();",
|
9307 | "version": "1"
|
9308 | },
|
9309 | "go": {
|
9310 | "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})",
|
9311 | "version": "1"
|
9312 | },
|
9313 | "$": {
|
9314 | "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});",
|
9315 | "version": "0"
|
9316 | }
|
9317 | },
|
9318 | "location": {
|
9319 | "api": {
|
9320 | "api": "type",
|
9321 | "fqn": "@aws-cdk/aws-ecs.Compatibility"
|
9322 | },
|
9323 | "field": {
|
9324 | "field": "example"
|
9325 | }
|
9326 | },
|
9327 | "didCompile": true,
|
9328 | "fqnsReferenced": [
|
9329 | "@aws-cdk/aws-ec2.IVpc",
|
9330 | "@aws-cdk/aws-ec2.InstanceType",
|
9331 | "@aws-cdk/aws-ec2.SubnetSelection",
|
9332 | "@aws-cdk/aws-ec2.SubnetType",
|
9333 | "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
|
9334 | "@aws-cdk/aws-ec2.Vpc",
|
9335 | "@aws-cdk/aws-ec2.Vpc#fromLookup",
|
9336 | "@aws-cdk/aws-ec2.VpcLookupOptions",
|
9337 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
9338 | "@aws-cdk/aws-ecs.Cluster",
|
9339 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
9340 | "@aws-cdk/aws-ecs.ClusterProps",
|
9341 | "@aws-cdk/aws-ecs.Compatibility",
|
9342 | "@aws-cdk/aws-ecs.Compatibility#EC2",
|
9343 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
9344 | "@aws-cdk/aws-ecs.ContainerImage",
|
9345 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
9346 | "@aws-cdk/aws-ecs.ICluster",
|
9347 | "@aws-cdk/aws-ecs.PlacementConstraint",
|
9348 | "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
|
9349 | "@aws-cdk/aws-ecs.PlacementStrategy",
|
9350 | "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
|
9351 | "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
|
9352 | "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
|
9353 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9354 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
9355 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
9356 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
|
9357 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
|
9358 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
|
9359 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
|
9360 | "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
|
9361 | "@aws-cdk/aws-stepfunctions.IntegrationPattern",
|
9362 | "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
|
9363 | "constructs.Construct"
|
9364 | ],
|
9365 | "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",
|
9366 | "syntaxKindCounter": {
|
9367 | "8": 1,
|
9368 | "10": 9,
|
9369 | "75": 59,
|
9370 | "104": 4,
|
9371 | "106": 1,
|
9372 | "192": 2,
|
9373 | "193": 8,
|
9374 | "194": 25,
|
9375 | "196": 8,
|
9376 | "197": 5,
|
9377 | "225": 4,
|
9378 | "226": 2,
|
9379 | "242": 4,
|
9380 | "243": 4,
|
9381 | "281": 11,
|
9382 | "282": 3
|
9383 | },
|
9384 | "fqnsFingerprint": "f04254501bd105fbef26fa74f8a437e4ca808bdd379d2d939889e2d9bd8e207d"
|
9385 | },
|
9386 | "cebacc29d0b155646cd97375a9821359fa1c3315da925bb9da579b3162e3db48": {
|
9387 | "translations": {
|
9388 | "python": {
|
9389 | "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)",
|
9390 | "version": "2"
|
9391 | },
|
9392 | "csharp": {
|
9393 | "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});",
|
9394 | "version": "1"
|
9395 | },
|
9396 | "java": {
|
9397 | "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();",
|
9398 | "version": "1"
|
9399 | },
|
9400 | "go": {
|
9401 | "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})",
|
9402 | "version": "1"
|
9403 | },
|
9404 | "$": {
|
9405 | "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});",
|
9406 | "version": "0"
|
9407 | }
|
9408 | },
|
9409 | "location": {
|
9410 | "api": {
|
9411 | "api": "type",
|
9412 | "fqn": "@aws-cdk/aws-ecs.ContainerDefinition"
|
9413 | },
|
9414 | "field": {
|
9415 | "field": "example"
|
9416 | }
|
9417 | },
|
9418 | "didCompile": true,
|
9419 | "fqnsReferenced": [
|
9420 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
9421 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
9422 | "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
|
9423 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
9424 | "@aws-cdk/aws-ecs.ContainerImage",
|
9425 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
9426 | "@aws-cdk/aws-ecs.Ec2Service",
|
9427 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
9428 | "@aws-cdk/aws-ecs.ICluster",
|
9429 | "@aws-cdk/aws-ecs.PortMapping",
|
9430 | "@aws-cdk/aws-ecs.Protocol",
|
9431 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
9432 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9433 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
9434 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
9435 | "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
|
9436 | "constructs.Construct"
|
9437 | ],
|
9438 | "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",
|
9439 | "syntaxKindCounter": {
|
9440 | "8": 3,
|
9441 | "10": 3,
|
9442 | "75": 33,
|
9443 | "104": 1,
|
9444 | "130": 2,
|
9445 | "153": 2,
|
9446 | "169": 2,
|
9447 | "193": 4,
|
9448 | "194": 9,
|
9449 | "196": 3,
|
9450 | "197": 1,
|
9451 | "225": 3,
|
9452 | "226": 2,
|
9453 | "242": 3,
|
9454 | "243": 3,
|
9455 | "281": 8,
|
9456 | "282": 2,
|
9457 | "290": 1
|
9458 | },
|
9459 | "fqnsFingerprint": "4f8f389b6b015497f64b9b5e88572b17edaed19cf8276005d362a4dbbb672c21"
|
9460 | },
|
9461 | "d04750ccbe6bfb9f3062dce7fe41055ee757d82f7860993d4aa5062557c8e3cd": {
|
9462 | "translations": {
|
9463 | "python": {
|
9464 | "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)",
|
9465 | "version": "2"
|
9466 | },
|
9467 | "csharp": {
|
9468 | "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});",
|
9469 | "version": "1"
|
9470 | },
|
9471 | "java": {
|
9472 | "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();",
|
9473 | "version": "1"
|
9474 | },
|
9475 | "go": {
|
9476 | "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})",
|
9477 | "version": "1"
|
9478 | },
|
9479 | "$": {
|
9480 | "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});",
|
9481 | "version": "0"
|
9482 | }
|
9483 | },
|
9484 | "location": {
|
9485 | "api": {
|
9486 | "api": "type",
|
9487 | "fqn": "@aws-cdk/aws-ecs.ContainerDefinitionOptions"
|
9488 | },
|
9489 | "field": {
|
9490 | "field": "example"
|
9491 | }
|
9492 | },
|
9493 | "didCompile": true,
|
9494 | "fqnsReferenced": [
|
9495 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
9496 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
9497 | "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
|
9498 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
9499 | "@aws-cdk/aws-ecs.ContainerImage",
|
9500 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
9501 | "@aws-cdk/aws-ecs.Ec2Service",
|
9502 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
9503 | "@aws-cdk/aws-ecs.ICluster",
|
9504 | "@aws-cdk/aws-ecs.PortMapping",
|
9505 | "@aws-cdk/aws-ecs.Protocol",
|
9506 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
9507 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9508 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
9509 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
9510 | "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
|
9511 | "constructs.Construct"
|
9512 | ],
|
9513 | "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",
|
9514 | "syntaxKindCounter": {
|
9515 | "8": 3,
|
9516 | "10": 3,
|
9517 | "75": 33,
|
9518 | "104": 1,
|
9519 | "130": 2,
|
9520 | "153": 2,
|
9521 | "169": 2,
|
9522 | "193": 4,
|
9523 | "194": 9,
|
9524 | "196": 3,
|
9525 | "197": 1,
|
9526 | "225": 3,
|
9527 | "226": 2,
|
9528 | "242": 3,
|
9529 | "243": 3,
|
9530 | "281": 8,
|
9531 | "282": 2,
|
9532 | "290": 1
|
9533 | },
|
9534 | "fqnsFingerprint": "4f8f389b6b015497f64b9b5e88572b17edaed19cf8276005d362a4dbbb672c21"
|
9535 | },
|
9536 | "75a4ca9e00176445eef021ba73866b0be6f2e84888d938530c4044086bc08101": {
|
9537 | "translations": {
|
9538 | "python": {
|
9539 | "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)",
|
9540 | "version": "2"
|
9541 | },
|
9542 | "csharp": {
|
9543 | "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};",
|
9544 | "version": "1"
|
9545 | },
|
9546 | "java": {
|
9547 | "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();",
|
9548 | "version": "1"
|
9549 | },
|
9550 | "go": {
|
9551 | "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}",
|
9552 | "version": "1"
|
9553 | },
|
9554 | "$": {
|
9555 | "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};",
|
9556 | "version": "0"
|
9557 | }
|
9558 | },
|
9559 | "location": {
|
9560 | "api": {
|
9561 | "api": "type",
|
9562 | "fqn": "@aws-cdk/aws-ecs.ContainerDefinitionProps"
|
9563 | },
|
9564 | "field": {
|
9565 | "field": "example"
|
9566 | }
|
9567 | },
|
9568 | "didCompile": true,
|
9569 | "fqnsReferenced": [
|
9570 | "@aws-cdk/aws-ecs.ContainerDefinitionProps",
|
9571 | "@aws-cdk/aws-ecs.ContainerImage",
|
9572 | "@aws-cdk/aws-ecs.HealthCheck",
|
9573 | "@aws-cdk/aws-ecs.LinuxParameters",
|
9574 | "@aws-cdk/aws-ecs.LogDriver",
|
9575 | "@aws-cdk/aws-ecs.Protocol",
|
9576 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
9577 | "@aws-cdk/aws-ecs.Secret",
|
9578 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9579 | "@aws-cdk/core.Duration",
|
9580 | "@aws-cdk/core.Duration#minutes"
|
9581 | ],
|
9582 | "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} }",
|
9583 | "syntaxKindCounter": {
|
9584 | "8": 12,
|
9585 | "10": 18,
|
9586 | "75": 93,
|
9587 | "91": 4,
|
9588 | "130": 6,
|
9589 | "153": 7,
|
9590 | "169": 7,
|
9591 | "192": 10,
|
9592 | "193": 8,
|
9593 | "194": 12,
|
9594 | "196": 5,
|
9595 | "225": 7,
|
9596 | "242": 7,
|
9597 | "243": 7,
|
9598 | "254": 2,
|
9599 | "255": 2,
|
9600 | "256": 2,
|
9601 | "281": 46,
|
9602 | "290": 1
|
9603 | },
|
9604 | "fqnsFingerprint": "d33cbc8d6df2518d240b2e8eb357b020327e0bb6661349cc05f52ebdd92d0851"
|
9605 | },
|
9606 | "3b93f6b2c41b19c22c905d02d68598b1d536f8408fd3a4fed1725870c8a874da": {
|
9607 | "translations": {
|
9608 | "python": {
|
9609 | "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)",
|
9610 | "version": "2"
|
9611 | },
|
9612 | "csharp": {
|
9613 | "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};",
|
9614 | "version": "1"
|
9615 | },
|
9616 | "java": {
|
9617 | "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();",
|
9618 | "version": "1"
|
9619 | },
|
9620 | "go": {
|
9621 | "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}",
|
9622 | "version": "1"
|
9623 | },
|
9624 | "$": {
|
9625 | "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};",
|
9626 | "version": "0"
|
9627 | }
|
9628 | },
|
9629 | "location": {
|
9630 | "api": {
|
9631 | "api": "type",
|
9632 | "fqn": "@aws-cdk/aws-ecs.ContainerDependency"
|
9633 | },
|
9634 | "field": {
|
9635 | "field": "example"
|
9636 | }
|
9637 | },
|
9638 | "didCompile": true,
|
9639 | "fqnsReferenced": [
|
9640 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
9641 | "@aws-cdk/aws-ecs.ContainerDependency",
|
9642 | "@aws-cdk/aws-ecs.ContainerDependencyCondition",
|
9643 | "@aws-cdk/aws-ecs.ContainerDependencyCondition#START"
|
9644 | ],
|
9645 | "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} }",
|
9646 | "syntaxKindCounter": {
|
9647 | "10": 1,
|
9648 | "75": 13,
|
9649 | "130": 1,
|
9650 | "153": 2,
|
9651 | "169": 2,
|
9652 | "193": 1,
|
9653 | "194": 2,
|
9654 | "225": 2,
|
9655 | "242": 2,
|
9656 | "243": 2,
|
9657 | "254": 1,
|
9658 | "255": 1,
|
9659 | "256": 1,
|
9660 | "281": 2,
|
9661 | "290": 1
|
9662 | },
|
9663 | "fqnsFingerprint": "538afff9f8a40eb48ddaef6a2f764d5645b224c5cb3671073dde50ae7519d858"
|
9664 | },
|
9665 | "72f0855afa22e04897cfdfb195c64da0939648cbb3bcd7a73e259d6470301912": {
|
9666 | "translations": {
|
9667 | "python": {
|
9668 | "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)",
|
9669 | "version": "2"
|
9670 | },
|
9671 | "csharp": {
|
9672 | "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});",
|
9673 | "version": "1"
|
9674 | },
|
9675 | "java": {
|
9676 | "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();",
|
9677 | "version": "1"
|
9678 | },
|
9679 | "go": {
|
9680 | "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})",
|
9681 | "version": "1"
|
9682 | },
|
9683 | "$": {
|
9684 | "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});",
|
9685 | "version": "0"
|
9686 | }
|
9687 | },
|
9688 | "location": {
|
9689 | "api": {
|
9690 | "api": "type",
|
9691 | "fqn": "@aws-cdk/aws-ecs.ContainerImage"
|
9692 | },
|
9693 | "field": {
|
9694 | "field": "example"
|
9695 | }
|
9696 | },
|
9697 | "didCompile": true,
|
9698 | "fqnsReferenced": [
|
9699 | "@aws-cdk/aws-ec2.IVpc",
|
9700 | "@aws-cdk/aws-ecs.Cluster",
|
9701 | "@aws-cdk/aws-ecs.ClusterProps",
|
9702 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
9703 | "@aws-cdk/aws-ecs.ContainerImage",
|
9704 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
9705 | "@aws-cdk/aws-ecs.FargateService",
|
9706 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
9707 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
9708 | "@aws-cdk/aws-ecs.ICluster",
|
9709 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9710 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
9711 | "constructs.Construct"
|
9712 | ],
|
9713 | "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",
|
9714 | "syntaxKindCounter": {
|
9715 | "8": 2,
|
9716 | "10": 7,
|
9717 | "75": 26,
|
9718 | "104": 3,
|
9719 | "106": 1,
|
9720 | "130": 1,
|
9721 | "153": 1,
|
9722 | "169": 1,
|
9723 | "192": 1,
|
9724 | "193": 5,
|
9725 | "194": 6,
|
9726 | "196": 2,
|
9727 | "197": 3,
|
9728 | "225": 3,
|
9729 | "226": 2,
|
9730 | "242": 3,
|
9731 | "243": 3,
|
9732 | "281": 7,
|
9733 | "282": 3,
|
9734 | "290": 1
|
9735 | },
|
9736 | "fqnsFingerprint": "dcb1511a61e25586cc8676022b3a537930a8c6e2a55be000a31b48819a67e7fa"
|
9737 | },
|
9738 | "2b00aea382f7ac3cf035029a7a0ec0965ef1a040d30040e7adb589e820206140": {
|
9739 | "translations": {
|
9740 | "python": {
|
9741 | "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)",
|
9742 | "version": "2"
|
9743 | },
|
9744 | "csharp": {
|
9745 | "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};",
|
9746 | "version": "1"
|
9747 | },
|
9748 | "java": {
|
9749 | "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();",
|
9750 | "version": "1"
|
9751 | },
|
9752 | "go": {
|
9753 | "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}",
|
9754 | "version": "1"
|
9755 | },
|
9756 | "$": {
|
9757 | "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};",
|
9758 | "version": "0"
|
9759 | }
|
9760 | },
|
9761 | "location": {
|
9762 | "api": {
|
9763 | "api": "type",
|
9764 | "fqn": "@aws-cdk/aws-ecs.ContainerImageConfig"
|
9765 | },
|
9766 | "field": {
|
9767 | "field": "example"
|
9768 | }
|
9769 | },
|
9770 | "didCompile": true,
|
9771 | "fqnsReferenced": [
|
9772 | "@aws-cdk/aws-ecs.CfnTaskDefinition.RepositoryCredentialsProperty",
|
9773 | "@aws-cdk/aws-ecs.ContainerImageConfig"
|
9774 | ],
|
9775 | "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} }",
|
9776 | "syntaxKindCounter": {
|
9777 | "10": 3,
|
9778 | "75": 7,
|
9779 | "153": 1,
|
9780 | "169": 1,
|
9781 | "193": 2,
|
9782 | "225": 1,
|
9783 | "242": 1,
|
9784 | "243": 1,
|
9785 | "254": 1,
|
9786 | "255": 1,
|
9787 | "256": 1,
|
9788 | "281": 3,
|
9789 | "290": 1
|
9790 | },
|
9791 | "fqnsFingerprint": "a5cd6bb2234df650cbff0a316d9e41cb6669e414591141e073d90f64a3aeff32"
|
9792 | },
|
9793 | "97608df19b94ac81752da2454976ba8454019ab0608cc2cb33d4b8f225b15433": {
|
9794 | "translations": {
|
9795 | "python": {
|
9796 | "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)",
|
9797 | "version": "2"
|
9798 | },
|
9799 | "csharp": {
|
9800 | "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});",
|
9801 | "version": "1"
|
9802 | },
|
9803 | "java": {
|
9804 | "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());",
|
9805 | "version": "1"
|
9806 | },
|
9807 | "go": {
|
9808 | "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})",
|
9809 | "version": "1"
|
9810 | },
|
9811 | "$": {
|
9812 | "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});",
|
9813 | "version": "0"
|
9814 | }
|
9815 | },
|
9816 | "location": {
|
9817 | "api": {
|
9818 | "api": "type",
|
9819 | "fqn": "@aws-cdk/aws-ecs.CpuArchitecture"
|
9820 | },
|
9821 | "field": {
|
9822 | "field": "example"
|
9823 | }
|
9824 | },
|
9825 | "didCompile": true,
|
9826 | "fqnsReferenced": [
|
9827 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
9828 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
9829 | "@aws-cdk/aws-ecs.ContainerImage",
|
9830 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
9831 | "@aws-cdk/aws-ecs.CpuArchitecture",
|
9832 | "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
|
9833 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
9834 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
9835 | "@aws-cdk/aws-ecs.LogDriver",
|
9836 | "@aws-cdk/aws-ecs.LogDriver#awsLogs",
|
9837 | "@aws-cdk/aws-ecs.OperatingSystemFamily",
|
9838 | "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
|
9839 | "@aws-cdk/aws-ecs.RuntimePlatform",
|
9840 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
9841 | "constructs.Construct"
|
9842 | ],
|
9843 | "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",
|
9844 | "syntaxKindCounter": {
|
9845 | "8": 3,
|
9846 | "10": 4,
|
9847 | "75": 27,
|
9848 | "104": 1,
|
9849 | "192": 1,
|
9850 | "193": 5,
|
9851 | "194": 10,
|
9852 | "196": 3,
|
9853 | "197": 1,
|
9854 | "225": 1,
|
9855 | "226": 1,
|
9856 | "242": 1,
|
9857 | "243": 1,
|
9858 | "281": 10
|
9859 | },
|
9860 | "fqnsFingerprint": "3df3a1e71685e51672ee7a5bb2dec2ef2f5eafa65ee5ae78ee18f76c30fc6c93"
|
9861 | },
|
9862 | "098b10291fb0eff7bc41bb825922a1670788d3b6faa872bd1db18f506dd571c8": {
|
9863 | "translations": {
|
9864 | "python": {
|
9865 | "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)",
|
9866 | "version": "2"
|
9867 | },
|
9868 | "csharp": {
|
9869 | "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});",
|
9870 | "version": "1"
|
9871 | },
|
9872 | "java": {
|
9873 | "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());",
|
9874 | "version": "1"
|
9875 | },
|
9876 | "go": {
|
9877 | "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})",
|
9878 | "version": "1"
|
9879 | },
|
9880 | "$": {
|
9881 | "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});",
|
9882 | "version": "0"
|
9883 | }
|
9884 | },
|
9885 | "location": {
|
9886 | "api": {
|
9887 | "api": "type",
|
9888 | "fqn": "@aws-cdk/aws-ecs.CpuUtilizationScalingProps"
|
9889 | },
|
9890 | "field": {
|
9891 | "field": "example"
|
9892 | }
|
9893 | },
|
9894 | "didCompile": true,
|
9895 | "fqnsReferenced": [
|
9896 | "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
|
9897 | "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
|
9898 | "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
|
9899 | "@aws-cdk/aws-ecs.RequestCountScalingProps",
|
9900 | "@aws-cdk/aws-ecs.ScalableTaskCount",
|
9901 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
|
9902 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnRequestCount",
|
9903 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup"
|
9904 | ],
|
9905 | "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",
|
9906 | "syntaxKindCounter": {
|
9907 | "8": 3,
|
9908 | "10": 2,
|
9909 | "75": 18,
|
9910 | "130": 2,
|
9911 | "153": 2,
|
9912 | "169": 2,
|
9913 | "193": 3,
|
9914 | "194": 3,
|
9915 | "196": 3,
|
9916 | "225": 3,
|
9917 | "226": 2,
|
9918 | "242": 3,
|
9919 | "243": 3,
|
9920 | "281": 4,
|
9921 | "290": 1
|
9922 | },
|
9923 | "fqnsFingerprint": "8d4751b231da14565f67592808cf526c6f95b38b6a992d919f43df3d2428e570"
|
9924 | },
|
9925 | "4c85abdefa398d8cdab8652b6bb51da1d6eb5b4796d82305036c9d0b0f7354d8": {
|
9926 | "translations": {
|
9927 | "python": {
|
9928 | "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)",
|
9929 | "version": "2"
|
9930 | },
|
9931 | "csharp": {
|
9932 | "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});",
|
9933 | "version": "1"
|
9934 | },
|
9935 | "java": {
|
9936 | "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();",
|
9937 | "version": "1"
|
9938 | },
|
9939 | "go": {
|
9940 | "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})",
|
9941 | "version": "1"
|
9942 | },
|
9943 | "$": {
|
9944 | "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});",
|
9945 | "version": "0"
|
9946 | }
|
9947 | },
|
9948 | "location": {
|
9949 | "api": {
|
9950 | "api": "type",
|
9951 | "fqn": "@aws-cdk/aws-ecs.DeploymentCircuitBreaker"
|
9952 | },
|
9953 | "field": {
|
9954 | "field": "example"
|
9955 | }
|
9956 | },
|
9957 | "didCompile": true,
|
9958 | "fqnsReferenced": [
|
9959 | "@aws-cdk/aws-ecs.DeploymentCircuitBreaker",
|
9960 | "@aws-cdk/aws-ecs.FargateService",
|
9961 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
9962 | "@aws-cdk/aws-ecs.ICluster",
|
9963 | "@aws-cdk/aws-ecs.TaskDefinition",
|
9964 | "constructs.Construct"
|
9965 | ],
|
9966 | "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",
|
9967 | "syntaxKindCounter": {
|
9968 | "10": 1,
|
9969 | "75": 13,
|
9970 | "104": 1,
|
9971 | "106": 1,
|
9972 | "130": 2,
|
9973 | "153": 2,
|
9974 | "169": 2,
|
9975 | "193": 2,
|
9976 | "194": 1,
|
9977 | "197": 1,
|
9978 | "225": 3,
|
9979 | "242": 3,
|
9980 | "243": 3,
|
9981 | "281": 2,
|
9982 | "282": 2,
|
9983 | "290": 1
|
9984 | },
|
9985 | "fqnsFingerprint": "253ed2c52b6ba83cc9b3a3b6acde34ce8cfc995ecd268aa7006fa934227e7734"
|
9986 | },
|
9987 | "a3708ef7cbd5aa7878e2f2456bbc703be68fb8f5975ab3d64d67774e06a33950": {
|
9988 | "translations": {
|
9989 | "python": {
|
9990 | "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)",
|
9991 | "version": "2"
|
9992 | },
|
9993 | "csharp": {
|
9994 | "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});",
|
9995 | "version": "1"
|
9996 | },
|
9997 | "java": {
|
9998 | "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();",
|
9999 | "version": "1"
|
10000 | },
|
10001 | "go": {
|
10002 | "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})",
|
10003 | "version": "1"
|
10004 | },
|
10005 | "$": {
|
10006 | "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});",
|
10007 | "version": "0"
|
10008 | }
|
10009 | },
|
10010 | "location": {
|
10011 | "api": {
|
10012 | "api": "type",
|
10013 | "fqn": "@aws-cdk/aws-ecs.DeploymentController"
|
10014 | },
|
10015 | "field": {
|
10016 | "field": "example"
|
10017 | }
|
10018 | },
|
10019 | "didCompile": true,
|
10020 | "fqnsReferenced": [
|
10021 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
|
10022 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
|
10023 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
|
10024 | "@aws-cdk/aws-ecs.ContainerImage",
|
10025 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
10026 | "@aws-cdk/aws-ecs.DeploymentController",
|
10027 | "@aws-cdk/aws-ecs.DeploymentControllerType",
|
10028 | "@aws-cdk/aws-ecs.DeploymentControllerType#CODE_DEPLOY",
|
10029 | "@aws-cdk/aws-ecs.ICluster",
|
10030 | "constructs.Construct"
|
10031 | ],
|
10032 | "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",
|
10033 | "syntaxKindCounter": {
|
10034 | "8": 3,
|
10035 | "10": 2,
|
10036 | "75": 20,
|
10037 | "104": 1,
|
10038 | "130": 1,
|
10039 | "153": 1,
|
10040 | "169": 1,
|
10041 | "193": 3,
|
10042 | "194": 5,
|
10043 | "196": 1,
|
10044 | "197": 1,
|
10045 | "225": 2,
|
10046 | "242": 2,
|
10047 | "243": 2,
|
10048 | "281": 7,
|
10049 | "282": 1,
|
10050 | "290": 1
|
10051 | },
|
10052 | "fqnsFingerprint": "468f14fabfda4ea1dd5d51e836c0638581bc567e465ba7236b96910d9695d4ed"
|
10053 | },
|
10054 | "ca6f496411e8248abb1edf8cdfbeac19f86c94cffad21c368fe6b7700a13b32b": {
|
10055 | "translations": {
|
10056 | "python": {
|
10057 | "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)",
|
10058 | "version": "2"
|
10059 | },
|
10060 | "csharp": {
|
10061 | "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});",
|
10062 | "version": "1"
|
10063 | },
|
10064 | "java": {
|
10065 | "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();",
|
10066 | "version": "1"
|
10067 | },
|
10068 | "go": {
|
10069 | "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})",
|
10070 | "version": "1"
|
10071 | },
|
10072 | "$": {
|
10073 | "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});",
|
10074 | "version": "0"
|
10075 | }
|
10076 | },
|
10077 | "location": {
|
10078 | "api": {
|
10079 | "api": "type",
|
10080 | "fqn": "@aws-cdk/aws-ecs.DeploymentControllerType"
|
10081 | },
|
10082 | "field": {
|
10083 | "field": "example"
|
10084 | }
|
10085 | },
|
10086 | "didCompile": true,
|
10087 | "fqnsReferenced": [
|
10088 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
|
10089 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
|
10090 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
|
10091 | "@aws-cdk/aws-ecs.ContainerImage",
|
10092 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
10093 | "@aws-cdk/aws-ecs.DeploymentController",
|
10094 | "@aws-cdk/aws-ecs.DeploymentControllerType",
|
10095 | "@aws-cdk/aws-ecs.DeploymentControllerType#CODE_DEPLOY",
|
10096 | "@aws-cdk/aws-ecs.ICluster",
|
10097 | "constructs.Construct"
|
10098 | ],
|
10099 | "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",
|
10100 | "syntaxKindCounter": {
|
10101 | "8": 3,
|
10102 | "10": 2,
|
10103 | "75": 20,
|
10104 | "104": 1,
|
10105 | "130": 1,
|
10106 | "153": 1,
|
10107 | "169": 1,
|
10108 | "193": 3,
|
10109 | "194": 5,
|
10110 | "196": 1,
|
10111 | "197": 1,
|
10112 | "225": 2,
|
10113 | "242": 2,
|
10114 | "243": 2,
|
10115 | "281": 7,
|
10116 | "282": 1,
|
10117 | "290": 1
|
10118 | },
|
10119 | "fqnsFingerprint": "468f14fabfda4ea1dd5d51e836c0638581bc567e465ba7236b96910d9695d4ed"
|
10120 | },
|
10121 | "8919e0663c66cc3a875c0cd82a13619703137a0f329b46ac1cbfa618b57f514e": {
|
10122 | "translations": {
|
10123 | "python": {
|
10124 | "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)",
|
10125 | "version": "2"
|
10126 | },
|
10127 | "csharp": {
|
10128 | "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};",
|
10129 | "version": "1"
|
10130 | },
|
10131 | "java": {
|
10132 | "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();",
|
10133 | "version": "1"
|
10134 | },
|
10135 | "go": {
|
10136 | "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}",
|
10137 | "version": "1"
|
10138 | },
|
10139 | "$": {
|
10140 | "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};",
|
10141 | "version": "0"
|
10142 | }
|
10143 | },
|
10144 | "location": {
|
10145 | "api": {
|
10146 | "api": "type",
|
10147 | "fqn": "@aws-cdk/aws-ecs.Device"
|
10148 | },
|
10149 | "field": {
|
10150 | "field": "example"
|
10151 | }
|
10152 | },
|
10153 | "didCompile": true,
|
10154 | "fqnsReferenced": [
|
10155 | "@aws-cdk/aws-ecs.Device",
|
10156 | "@aws-cdk/aws-ecs.DevicePermission",
|
10157 | "@aws-cdk/aws-ecs.DevicePermission#READ"
|
10158 | ],
|
10159 | "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} }",
|
10160 | "syntaxKindCounter": {
|
10161 | "10": 3,
|
10162 | "75": 10,
|
10163 | "153": 1,
|
10164 | "169": 1,
|
10165 | "192": 1,
|
10166 | "193": 1,
|
10167 | "194": 2,
|
10168 | "225": 1,
|
10169 | "242": 1,
|
10170 | "243": 1,
|
10171 | "254": 1,
|
10172 | "255": 1,
|
10173 | "256": 1,
|
10174 | "281": 3,
|
10175 | "290": 1
|
10176 | },
|
10177 | "fqnsFingerprint": "8879109dd4f7aeeb80974d0b5a5ab0f642e8ce22d1dcfb4a96b558c27bb61e58"
|
10178 | },
|
10179 | "038c4fa61f148c3b45bbc08a3fdd5d5052c25709f22d8e8a4781d0512c698e14": {
|
10180 | "translations": {
|
10181 | "python": {
|
10182 | "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)",
|
10183 | "version": "2"
|
10184 | },
|
10185 | "csharp": {
|
10186 | "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};",
|
10187 | "version": "1"
|
10188 | },
|
10189 | "java": {
|
10190 | "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();",
|
10191 | "version": "1"
|
10192 | },
|
10193 | "go": {
|
10194 | "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}",
|
10195 | "version": "1"
|
10196 | },
|
10197 | "$": {
|
10198 | "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};",
|
10199 | "version": "0"
|
10200 | }
|
10201 | },
|
10202 | "location": {
|
10203 | "api": {
|
10204 | "api": "type",
|
10205 | "fqn": "@aws-cdk/aws-ecs.DockerVolumeConfiguration"
|
10206 | },
|
10207 | "field": {
|
10208 | "field": "example"
|
10209 | }
|
10210 | },
|
10211 | "didCompile": true,
|
10212 | "fqnsReferenced": [
|
10213 | "@aws-cdk/aws-ecs.DockerVolumeConfiguration",
|
10214 | "@aws-cdk/aws-ecs.Scope",
|
10215 | "@aws-cdk/aws-ecs.Scope#TASK"
|
10216 | ],
|
10217 | "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} }",
|
10218 | "syntaxKindCounter": {
|
10219 | "10": 4,
|
10220 | "75": 14,
|
10221 | "91": 1,
|
10222 | "153": 1,
|
10223 | "169": 1,
|
10224 | "193": 3,
|
10225 | "194": 2,
|
10226 | "225": 1,
|
10227 | "242": 1,
|
10228 | "243": 1,
|
10229 | "254": 1,
|
10230 | "255": 1,
|
10231 | "256": 1,
|
10232 | "281": 7,
|
10233 | "290": 1
|
10234 | },
|
10235 | "fqnsFingerprint": "8c2bca7cc77cb1414476120fefea0c135a35195bc1dd380abeae9dbd46afb1af"
|
10236 | },
|
10237 | "1180e5e6b7c8e1434b524eb5c3fd9b599ff33e96bebd94eebc945a7650fe6092": {
|
10238 | "translations": {
|
10239 | "python": {
|
10240 | "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))",
|
10241 | "version": "2"
|
10242 | },
|
10243 | "csharp": {
|
10244 | "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}));",
|
10245 | "version": "1"
|
10246 | },
|
10247 | "java": {
|
10248 | "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()));",
|
10249 | "version": "1"
|
10250 | },
|
10251 | "go": {
|
10252 | "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}))",
|
10253 | "version": "1"
|
10254 | },
|
10255 | "$": {
|
10256 | "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}));",
|
10257 | "version": "0"
|
10258 | }
|
10259 | },
|
10260 | "location": {
|
10261 | "api": {
|
10262 | "api": "type",
|
10263 | "fqn": "@aws-cdk/aws-ecs.Ec2Service"
|
10264 | },
|
10265 | "field": {
|
10266 | "field": "example"
|
10267 | }
|
10268 | },
|
10269 | "didCompile": true,
|
10270 | "fqnsReferenced": [
|
10271 | "@aws-cdk/aws-ec2.IVpc",
|
10272 | "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
|
10273 | "@aws-cdk/aws-ecs.Ec2Service",
|
10274 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
10275 | "@aws-cdk/aws-ecs.ICluster",
|
10276 | "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
|
10277 | "@aws-cdk/aws-ecs.TaskDefinition",
|
10278 | "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
|
10279 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
|
10280 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
|
10281 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
|
10282 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
|
10283 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
|
10284 | "constructs.Construct"
|
10285 | ],
|
10286 | "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",
|
10287 | "syntaxKindCounter": {
|
10288 | "8": 2,
|
10289 | "10": 3,
|
10290 | "75": 27,
|
10291 | "104": 2,
|
10292 | "130": 3,
|
10293 | "153": 3,
|
10294 | "169": 3,
|
10295 | "193": 4,
|
10296 | "194": 5,
|
10297 | "196": 3,
|
10298 | "197": 2,
|
10299 | "225": 5,
|
10300 | "226": 2,
|
10301 | "242": 5,
|
10302 | "243": 5,
|
10303 | "281": 3,
|
10304 | "282": 3,
|
10305 | "290": 1
|
10306 | },
|
10307 | "fqnsFingerprint": "6bc0d017020f6665c0077063d1ff906f7a40156c62560423cc66913de5e67fc0"
|
10308 | },
|
10309 | "683f3fa378095c1bc1bb68a312cc49c64dfc81fa500f11da8d48005b345ecd33": {
|
10310 | "translations": {
|
10311 | "python": {
|
10312 | "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)",
|
10313 | "version": "2"
|
10314 | },
|
10315 | "csharp": {
|
10316 | "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};",
|
10317 | "version": "1"
|
10318 | },
|
10319 | "java": {
|
10320 | "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();",
|
10321 | "version": "1"
|
10322 | },
|
10323 | "go": {
|
10324 | "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}",
|
10325 | "version": "1"
|
10326 | },
|
10327 | "$": {
|
10328 | "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};",
|
10329 | "version": "0"
|
10330 | }
|
10331 | },
|
10332 | "location": {
|
10333 | "api": {
|
10334 | "api": "type",
|
10335 | "fqn": "@aws-cdk/aws-ecs.Ec2ServiceAttributes"
|
10336 | },
|
10337 | "field": {
|
10338 | "field": "example"
|
10339 | }
|
10340 | },
|
10341 | "didCompile": true,
|
10342 | "fqnsReferenced": [
|
10343 | "@aws-cdk/aws-ecs.Ec2ServiceAttributes",
|
10344 | "@aws-cdk/aws-ecs.ICluster"
|
10345 | ],
|
10346 | "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} }",
|
10347 | "syntaxKindCounter": {
|
10348 | "10": 3,
|
10349 | "75": 11,
|
10350 | "130": 1,
|
10351 | "153": 2,
|
10352 | "169": 2,
|
10353 | "193": 1,
|
10354 | "225": 2,
|
10355 | "242": 2,
|
10356 | "243": 2,
|
10357 | "254": 1,
|
10358 | "255": 1,
|
10359 | "256": 1,
|
10360 | "281": 3,
|
10361 | "290": 1
|
10362 | },
|
10363 | "fqnsFingerprint": "51c1deeed7af70546fc23a5ef7cfe041e01d935845b8b0723186295f42571982"
|
10364 | },
|
10365 | "d539111a2cd2d1ca26a91f39d729a261e262f86686544b682be4a7d0ab17a4e9": {
|
10366 | "translations": {
|
10367 | "python": {
|
10368 | "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))",
|
10369 | "version": "2"
|
10370 | },
|
10371 | "csharp": {
|
10372 | "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}));",
|
10373 | "version": "1"
|
10374 | },
|
10375 | "java": {
|
10376 | "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()));",
|
10377 | "version": "1"
|
10378 | },
|
10379 | "go": {
|
10380 | "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}))",
|
10381 | "version": "1"
|
10382 | },
|
10383 | "$": {
|
10384 | "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}));",
|
10385 | "version": "0"
|
10386 | }
|
10387 | },
|
10388 | "location": {
|
10389 | "api": {
|
10390 | "api": "type",
|
10391 | "fqn": "@aws-cdk/aws-ecs.Ec2ServiceProps"
|
10392 | },
|
10393 | "field": {
|
10394 | "field": "example"
|
10395 | }
|
10396 | },
|
10397 | "didCompile": true,
|
10398 | "fqnsReferenced": [
|
10399 | "@aws-cdk/aws-ec2.IVpc",
|
10400 | "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
|
10401 | "@aws-cdk/aws-ecs.Ec2Service",
|
10402 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
10403 | "@aws-cdk/aws-ecs.ICluster",
|
10404 | "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
|
10405 | "@aws-cdk/aws-ecs.TaskDefinition",
|
10406 | "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
|
10407 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
|
10408 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
|
10409 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
|
10410 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
|
10411 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
|
10412 | "constructs.Construct"
|
10413 | ],
|
10414 | "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",
|
10415 | "syntaxKindCounter": {
|
10416 | "8": 2,
|
10417 | "10": 3,
|
10418 | "75": 27,
|
10419 | "104": 2,
|
10420 | "130": 3,
|
10421 | "153": 3,
|
10422 | "169": 3,
|
10423 | "193": 4,
|
10424 | "194": 5,
|
10425 | "196": 3,
|
10426 | "197": 2,
|
10427 | "225": 5,
|
10428 | "226": 2,
|
10429 | "242": 5,
|
10430 | "243": 5,
|
10431 | "281": 3,
|
10432 | "282": 3,
|
10433 | "290": 1
|
10434 | },
|
10435 | "fqnsFingerprint": "6bc0d017020f6665c0077063d1ff906f7a40156c62560423cc66913de5e67fc0"
|
10436 | },
|
10437 | "f828b210dcaba337c461f26ce5e15de95b5fc3180888a3ca7b770b2f21be1abe": {
|
10438 | "translations": {
|
10439 | "python": {
|
10440 | "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)",
|
10441 | "version": "2"
|
10442 | },
|
10443 | "csharp": {
|
10444 | "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});",
|
10445 | "version": "1"
|
10446 | },
|
10447 | "java": {
|
10448 | "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());",
|
10449 | "version": "1"
|
10450 | },
|
10451 | "go": {
|
10452 | "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})",
|
10453 | "version": "1"
|
10454 | },
|
10455 | "$": {
|
10456 | "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});",
|
10457 | "version": "0"
|
10458 | }
|
10459 | },
|
10460 | "location": {
|
10461 | "api": {
|
10462 | "api": "type",
|
10463 | "fqn": "@aws-cdk/aws-ecs.Ec2TaskDefinition"
|
10464 | },
|
10465 | "field": {
|
10466 | "field": "example"
|
10467 | }
|
10468 | },
|
10469 | "didCompile": true,
|
10470 | "fqnsReferenced": [
|
10471 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
10472 | "@aws-cdk/aws-ecs.ContainerImage",
|
10473 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
10474 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
10475 | "@aws-cdk/aws-ecs.LogDriver",
|
10476 | "@aws-cdk/aws-ecs.LogDrivers",
|
10477 | "@aws-cdk/aws-ecs.LogDrivers#splunk",
|
10478 | "@aws-cdk/aws-ecs.SplunkLogDriverProps",
|
10479 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
10480 | "@aws-cdk/core.SecretValue",
|
10481 | "@aws-cdk/core.SecretValue#secretsManager",
|
10482 | "constructs.Construct"
|
10483 | ],
|
10484 | "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",
|
10485 | "syntaxKindCounter": {
|
10486 | "8": 1,
|
10487 | "10": 5,
|
10488 | "75": 18,
|
10489 | "104": 1,
|
10490 | "193": 2,
|
10491 | "194": 7,
|
10492 | "196": 4,
|
10493 | "197": 1,
|
10494 | "225": 1,
|
10495 | "226": 1,
|
10496 | "242": 1,
|
10497 | "243": 1,
|
10498 | "281": 5
|
10499 | },
|
10500 | "fqnsFingerprint": "cc52ba75bd1f879bd71c53c406c1153a9c413d079d8a8861c4c5a1b89e1ae96e"
|
10501 | },
|
10502 | "3a8f44a8259b91909df393f0b91b2018cdecebec1a46fe396e2704e85b2b1233": {
|
10503 | "translations": {
|
10504 | "python": {
|
10505 | "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)",
|
10506 | "version": "2"
|
10507 | },
|
10508 | "csharp": {
|
10509 | "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};",
|
10510 | "version": "1"
|
10511 | },
|
10512 | "java": {
|
10513 | "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();",
|
10514 | "version": "1"
|
10515 | },
|
10516 | "go": {
|
10517 | "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}",
|
10518 | "version": "1"
|
10519 | },
|
10520 | "$": {
|
10521 | "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};",
|
10522 | "version": "0"
|
10523 | }
|
10524 | },
|
10525 | "location": {
|
10526 | "api": {
|
10527 | "api": "type",
|
10528 | "fqn": "@aws-cdk/aws-ecs.Ec2TaskDefinitionAttributes"
|
10529 | },
|
10530 | "field": {
|
10531 | "field": "example"
|
10532 | }
|
10533 | },
|
10534 | "didCompile": true,
|
10535 | "fqnsReferenced": [
|
10536 | "@aws-cdk/aws-ecs.Ec2TaskDefinitionAttributes",
|
10537 | "@aws-cdk/aws-ecs.NetworkMode",
|
10538 | "@aws-cdk/aws-ecs.NetworkMode#NONE",
|
10539 | "@aws-cdk/aws-iam.IRole"
|
10540 | ],
|
10541 | "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} }",
|
10542 | "syntaxKindCounter": {
|
10543 | "10": 3,
|
10544 | "75": 15,
|
10545 | "130": 1,
|
10546 | "153": 2,
|
10547 | "169": 2,
|
10548 | "193": 1,
|
10549 | "194": 2,
|
10550 | "225": 2,
|
10551 | "242": 2,
|
10552 | "243": 2,
|
10553 | "254": 2,
|
10554 | "255": 2,
|
10555 | "256": 2,
|
10556 | "281": 3,
|
10557 | "290": 1
|
10558 | },
|
10559 | "fqnsFingerprint": "ff0670d11e3ee443ddb7db1d109d1bdb9ac2b9d6fb364b9853914570817e84f7"
|
10560 | },
|
10561 | "0ec64f64d92495d8999d5855ec85539ef307eab8191fd739262aa5c46e9616b6": {
|
10562 | "translations": {
|
10563 | "python": {
|
10564 | "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)",
|
10565 | "version": "2"
|
10566 | },
|
10567 | "csharp": {
|
10568 | "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});",
|
10569 | "version": "1"
|
10570 | },
|
10571 | "java": {
|
10572 | "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());",
|
10573 | "version": "1"
|
10574 | },
|
10575 | "go": {
|
10576 | "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})",
|
10577 | "version": "1"
|
10578 | },
|
10579 | "$": {
|
10580 | "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});",
|
10581 | "version": "0"
|
10582 | }
|
10583 | },
|
10584 | "location": {
|
10585 | "api": {
|
10586 | "api": "type",
|
10587 | "fqn": "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps"
|
10588 | },
|
10589 | "field": {
|
10590 | "field": "example"
|
10591 | }
|
10592 | },
|
10593 | "didCompile": true,
|
10594 | "fqnsReferenced": [
|
10595 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
10596 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
10597 | "@aws-cdk/aws-ecs.ContainerImage",
|
10598 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
10599 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
10600 | "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
|
10601 | "@aws-cdk/aws-ecs.NetworkMode",
|
10602 | "@aws-cdk/aws-ecs.NetworkMode#BRIDGE",
|
10603 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
10604 | "constructs.Construct"
|
10605 | ],
|
10606 | "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",
|
10607 | "syntaxKindCounter": {
|
10608 | "8": 1,
|
10609 | "10": 3,
|
10610 | "75": 15,
|
10611 | "104": 1,
|
10612 | "193": 2,
|
10613 | "194": 6,
|
10614 | "196": 2,
|
10615 | "197": 1,
|
10616 | "225": 2,
|
10617 | "242": 2,
|
10618 | "243": 2,
|
10619 | "281": 3
|
10620 | },
|
10621 | "fqnsFingerprint": "d71886caf7be59125886d6b28e666b9dc1ac30fcfaefd99577179d01db34235f"
|
10622 | },
|
10623 | "76df5c04098e7c11144bb59f0acc8ea9c612d0f2cd8bba4eeb729ce83f63892d": {
|
10624 | "translations": {
|
10625 | "python": {
|
10626 | "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)",
|
10627 | "version": "2"
|
10628 | },
|
10629 | "csharp": {
|
10630 | "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});",
|
10631 | "version": "1"
|
10632 | },
|
10633 | "java": {
|
10634 | "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();",
|
10635 | "version": "1"
|
10636 | },
|
10637 | "go": {
|
10638 | "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})",
|
10639 | "version": "1"
|
10640 | },
|
10641 | "$": {
|
10642 | "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});",
|
10643 | "version": "0"
|
10644 | }
|
10645 | },
|
10646 | "location": {
|
10647 | "api": {
|
10648 | "api": "type",
|
10649 | "fqn": "@aws-cdk/aws-ecs.EcrImage"
|
10650 | },
|
10651 | "field": {
|
10652 | "field": "example"
|
10653 | }
|
10654 | },
|
10655 | "didCompile": true,
|
10656 | "fqnsReferenced": [
|
10657 | "@aws-cdk/aws-batch.JobDefinition",
|
10658 | "@aws-cdk/aws-batch.JobDefinitionContainer",
|
10659 | "@aws-cdk/aws-batch.JobDefinitionProps",
|
10660 | "@aws-cdk/aws-ecr.IRepository",
|
10661 | "@aws-cdk/aws-ecr.Repository",
|
10662 | "@aws-cdk/aws-ecr.Repository#fromRepositoryName",
|
10663 | "@aws-cdk/aws-ecs.ContainerImage",
|
10664 | "@aws-cdk/aws-ecs.EcrImage",
|
10665 | "constructs.Construct"
|
10666 | ],
|
10667 | "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",
|
10668 | "syntaxKindCounter": {
|
10669 | "10": 5,
|
10670 | "75": 12,
|
10671 | "104": 2,
|
10672 | "193": 2,
|
10673 | "194": 4,
|
10674 | "196": 1,
|
10675 | "197": 2,
|
10676 | "225": 1,
|
10677 | "226": 1,
|
10678 | "242": 1,
|
10679 | "243": 1,
|
10680 | "254": 1,
|
10681 | "255": 1,
|
10682 | "256": 1,
|
10683 | "281": 2,
|
10684 | "290": 1
|
10685 | },
|
10686 | "fqnsFingerprint": "8892debc85629ee689e89d5ef893be93e9e77bdfb16f32b2ec5faa44427feb6b"
|
10687 | },
|
10688 | "c03a612f3f42a53bfa906015670934b04958ea8707dd96c5c67397e646ec004e": {
|
10689 | "translations": {
|
10690 | "python": {
|
10691 | "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)",
|
10692 | "version": "2"
|
10693 | },
|
10694 | "csharp": {
|
10695 | "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});",
|
10696 | "version": "1"
|
10697 | },
|
10698 | "java": {
|
10699 | "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();",
|
10700 | "version": "1"
|
10701 | },
|
10702 | "go": {
|
10703 | "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})",
|
10704 | "version": "1"
|
10705 | },
|
10706 | "$": {
|
10707 | "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});",
|
10708 | "version": "0"
|
10709 | }
|
10710 | },
|
10711 | "location": {
|
10712 | "api": {
|
10713 | "api": "type",
|
10714 | "fqn": "@aws-cdk/aws-ecs.EcsOptimizedAmi"
|
10715 | },
|
10716 | "field": {
|
10717 | "field": "example"
|
10718 | }
|
10719 | },
|
10720 | "didCompile": true,
|
10721 | "fqnsReferenced": [
|
10722 | "@aws-cdk/aws-batch.ComputeEnvironment",
|
10723 | "@aws-cdk/aws-batch.ComputeEnvironmentProps",
|
10724 | "@aws-cdk/aws-batch.ComputeResources",
|
10725 | "@aws-cdk/aws-ec2.AmazonLinuxGeneration",
|
10726 | "@aws-cdk/aws-ec2.AmazonLinuxGeneration#AMAZON_LINUX_2",
|
10727 | "@aws-cdk/aws-ec2.IMachineImage",
|
10728 | "@aws-cdk/aws-ec2.IVpc",
|
10729 | "@aws-cdk/aws-ecs.EcsOptimizedAmi",
|
10730 | "@aws-cdk/aws-ecs.EcsOptimizedAmiProps",
|
10731 | "constructs.Construct"
|
10732 | ],
|
10733 | "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",
|
10734 | "syntaxKindCounter": {
|
10735 | "10": 1,
|
10736 | "75": 15,
|
10737 | "104": 1,
|
10738 | "130": 1,
|
10739 | "153": 1,
|
10740 | "169": 1,
|
10741 | "193": 3,
|
10742 | "194": 4,
|
10743 | "197": 2,
|
10744 | "225": 2,
|
10745 | "242": 2,
|
10746 | "243": 2,
|
10747 | "281": 3,
|
10748 | "282": 1,
|
10749 | "290": 1
|
10750 | },
|
10751 | "fqnsFingerprint": "7f817af473ed796eacec451c346c35ca00ee8ed957eed20be4d8f43d55bccb29"
|
10752 | },
|
10753 | "234eff489226dbb4aec27573324bd641ba77aa1bad41a6433aebcbd5bcc676da": {
|
10754 | "translations": {
|
10755 | "python": {
|
10756 | "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)",
|
10757 | "version": "2"
|
10758 | },
|
10759 | "csharp": {
|
10760 | "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});",
|
10761 | "version": "1"
|
10762 | },
|
10763 | "java": {
|
10764 | "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();",
|
10765 | "version": "1"
|
10766 | },
|
10767 | "go": {
|
10768 | "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})",
|
10769 | "version": "1"
|
10770 | },
|
10771 | "$": {
|
10772 | "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});",
|
10773 | "version": "0"
|
10774 | }
|
10775 | },
|
10776 | "location": {
|
10777 | "api": {
|
10778 | "api": "type",
|
10779 | "fqn": "@aws-cdk/aws-ecs.EcsOptimizedAmiProps"
|
10780 | },
|
10781 | "field": {
|
10782 | "field": "example"
|
10783 | }
|
10784 | },
|
10785 | "didCompile": true,
|
10786 | "fqnsReferenced": [
|
10787 | "@aws-cdk/aws-batch.ComputeEnvironment",
|
10788 | "@aws-cdk/aws-batch.ComputeEnvironmentProps",
|
10789 | "@aws-cdk/aws-batch.ComputeResources",
|
10790 | "@aws-cdk/aws-ec2.AmazonLinuxGeneration",
|
10791 | "@aws-cdk/aws-ec2.AmazonLinuxGeneration#AMAZON_LINUX_2",
|
10792 | "@aws-cdk/aws-ec2.IMachineImage",
|
10793 | "@aws-cdk/aws-ec2.IVpc",
|
10794 | "@aws-cdk/aws-ecs.EcsOptimizedAmi",
|
10795 | "@aws-cdk/aws-ecs.EcsOptimizedAmiProps",
|
10796 | "constructs.Construct"
|
10797 | ],
|
10798 | "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",
|
10799 | "syntaxKindCounter": {
|
10800 | "10": 1,
|
10801 | "75": 15,
|
10802 | "104": 1,
|
10803 | "130": 1,
|
10804 | "153": 1,
|
10805 | "169": 1,
|
10806 | "193": 3,
|
10807 | "194": 4,
|
10808 | "197": 2,
|
10809 | "225": 2,
|
10810 | "242": 2,
|
10811 | "243": 2,
|
10812 | "281": 3,
|
10813 | "282": 1,
|
10814 | "290": 1
|
10815 | },
|
10816 | "fqnsFingerprint": "7f817af473ed796eacec451c346c35ca00ee8ed957eed20be4d8f43d55bccb29"
|
10817 | },
|
10818 | "7a12ae56615b1d9bce88d1e6322d004494dd62ddff57ee42dbd4d1309e93eab7": {
|
10819 | "translations": {
|
10820 | "python": {
|
10821 | "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\ncapacity_provider = ecs.AsgCapacityProvider(self, \"AsgCapacityProvider\",\n auto_scaling_group=auto_scaling_group\n)\ncluster.add_asg_capacity_provider(capacity_provider)",
|
10822 | "version": "2"
|
10823 | },
|
10824 | "csharp": {
|
10825 | "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\nAsgCapacityProvider capacityProvider = new AsgCapacityProvider(this, \"AsgCapacityProvider\", new AsgCapacityProviderProps {\n AutoScalingGroup = autoScalingGroup\n});\ncluster.AddAsgCapacityProvider(capacityProvider);",
|
10826 | "version": "1"
|
10827 | },
|
10828 | "java": {
|
10829 | "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\nAsgCapacityProvider capacityProvider = AsgCapacityProvider.Builder.create(this, \"AsgCapacityProvider\")\n .autoScalingGroup(autoScalingGroup)\n .build();\ncluster.addAsgCapacityProvider(capacityProvider);",
|
10830 | "version": "1"
|
10831 | },
|
10832 | "go": {
|
10833 | "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\ncapacityProvider := ecs.NewAsgCapacityProvider(this, jsii.String(\"AsgCapacityProvider\"), &asgCapacityProviderProps{\n\tautoScalingGroup: autoScalingGroup,\n})\ncluster.addAsgCapacityProvider(capacityProvider)",
|
10834 | "version": "1"
|
10835 | },
|
10836 | "$": {
|
10837 | "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\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);",
|
10838 | "version": "0"
|
10839 | }
|
10840 | },
|
10841 | "location": {
|
10842 | "api": {
|
10843 | "api": "type",
|
10844 | "fqn": "@aws-cdk/aws-ecs.EcsOptimizedImage"
|
10845 | },
|
10846 | "field": {
|
10847 | "field": "example"
|
10848 | }
|
10849 | },
|
10850 | "didCompile": true,
|
10851 | "fqnsReferenced": [
|
10852 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
10853 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
10854 | "@aws-cdk/aws-autoscaling.IAutoScalingGroup",
|
10855 | "@aws-cdk/aws-ec2.IMachineImage",
|
10856 | "@aws-cdk/aws-ec2.IVpc",
|
10857 | "@aws-cdk/aws-ec2.InstanceType",
|
10858 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
10859 | "@aws-cdk/aws-ecs.AsgCapacityProvider",
|
10860 | "@aws-cdk/aws-ecs.AsgCapacityProviderProps",
|
10861 | "@aws-cdk/aws-ecs.Cluster",
|
10862 | "@aws-cdk/aws-ecs.Cluster#addAsgCapacityProvider",
|
10863 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
10864 | "@aws-cdk/aws-ecs.ClusterProps",
|
10865 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
10866 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
|
10867 | "constructs.Construct"
|
10868 | ],
|
10869 | "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\nconst capacityProvider = new ecs.AsgCapacityProvider(this, 'AsgCapacityProvider', {\n autoScalingGroup,\n});\ncluster.addAsgCapacityProvider(capacityProvider);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
10870 | "syntaxKindCounter": {
|
10871 | "8": 2,
|
10872 | "10": 6,
|
10873 | "75": 32,
|
10874 | "104": 3,
|
10875 | "130": 1,
|
10876 | "153": 1,
|
10877 | "169": 1,
|
10878 | "193": 4,
|
10879 | "194": 9,
|
10880 | "196": 3,
|
10881 | "197": 5,
|
10882 | "225": 4,
|
10883 | "226": 2,
|
10884 | "242": 4,
|
10885 | "243": 4,
|
10886 | "281": 5,
|
10887 | "282": 3,
|
10888 | "290": 1
|
10889 | },
|
10890 | "fqnsFingerprint": "0739ad13a3819b05fb43f7b79dc55f4bf95fcb3d17d0935522c86b10488c4228"
|
10891 | },
|
10892 | "2ce4c5cd3c9e69f83aa254d87694891befad4e6875932ceccca2b9b4b1193c1b": {
|
10893 | "translations": {
|
10894 | "python": {
|
10895 | "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)",
|
10896 | "version": "2"
|
10897 | },
|
10898 | "csharp": {
|
10899 | "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});",
|
10900 | "version": "1"
|
10901 | },
|
10902 | "java": {
|
10903 | "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();",
|
10904 | "version": "1"
|
10905 | },
|
10906 | "go": {
|
10907 | "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})",
|
10908 | "version": "1"
|
10909 | },
|
10910 | "$": {
|
10911 | "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});",
|
10912 | "version": "0"
|
10913 | }
|
10914 | },
|
10915 | "location": {
|
10916 | "api": {
|
10917 | "api": "type",
|
10918 | "fqn": "@aws-cdk/aws-ecs.EcsOptimizedImageOptions"
|
10919 | },
|
10920 | "field": {
|
10921 | "field": "example"
|
10922 | }
|
10923 | },
|
10924 | "didCompile": true,
|
10925 | "fqnsReferenced": [
|
10926 | "@aws-cdk/aws-autoscaling.AutoScalingGroup",
|
10927 | "@aws-cdk/aws-autoscaling.AutoScalingGroupProps",
|
10928 | "@aws-cdk/aws-ec2.IMachineImage",
|
10929 | "@aws-cdk/aws-ec2.IVpc",
|
10930 | "@aws-cdk/aws-ec2.InstanceType",
|
10931 | "@aws-cdk/aws-ecs.EcsOptimizedImage",
|
10932 | "@aws-cdk/aws-ecs.EcsOptimizedImage#amazonLinux",
|
10933 | "@aws-cdk/aws-ecs.EcsOptimizedImageOptions",
|
10934 | "constructs.Construct"
|
10935 | ],
|
10936 | "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",
|
10937 | "syntaxKindCounter": {
|
10938 | "10": 2,
|
10939 | "75": 15,
|
10940 | "104": 1,
|
10941 | "106": 1,
|
10942 | "130": 1,
|
10943 | "153": 1,
|
10944 | "169": 1,
|
10945 | "193": 2,
|
10946 | "194": 4,
|
10947 | "196": 1,
|
10948 | "197": 2,
|
10949 | "225": 2,
|
10950 | "242": 2,
|
10951 | "243": 2,
|
10952 | "281": 3,
|
10953 | "282": 1,
|
10954 | "290": 1
|
10955 | },
|
10956 | "fqnsFingerprint": "37f60a3aa6025ed8642a2f6ec9c4eedac8b529c8b8a0fae1c5d632c832f57f79"
|
10957 | },
|
10958 | "8a84d300a9a226aa3bd4e90d64682eb3679c0b270785e27dce545f2ba44b40f1": {
|
10959 | "translations": {
|
10960 | "python": {
|
10961 | "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)",
|
10962 | "version": "2"
|
10963 | },
|
10964 | "csharp": {
|
10965 | "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});",
|
10966 | "version": "1"
|
10967 | },
|
10968 | "java": {
|
10969 | "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());",
|
10970 | "version": "1"
|
10971 | },
|
10972 | "go": {
|
10973 | "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})",
|
10974 | "version": "1"
|
10975 | },
|
10976 | "$": {
|
10977 | "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);",
|
10978 | "version": "0"
|
10979 | }
|
10980 | },
|
10981 | "location": {
|
10982 | "api": {
|
10983 | "api": "type",
|
10984 | "fqn": "@aws-cdk/aws-ecs.EcsTarget"
|
10985 | },
|
10986 | "field": {
|
10987 | "field": "example"
|
10988 | }
|
10989 | },
|
10990 | "didCompile": true,
|
10991 | "fqnsReferenced": [
|
10992 | "@aws-cdk/aws-ec2.IVpc",
|
10993 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
10994 | "@aws-cdk/aws-ecs.EcsTarget",
|
10995 | "@aws-cdk/aws-ecs.FargateService",
|
10996 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
10997 | "@aws-cdk/aws-ecs.ICluster",
|
10998 | "@aws-cdk/aws-ecs.ListenerConfig",
|
10999 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
11000 | "@aws-cdk/aws-ecs.TaskDefinition",
|
11001 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
11002 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
11003 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
11004 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
11005 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
11006 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
11007 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
|
11008 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
11009 | "constructs.Construct"
|
11010 | ],
|
11011 | "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",
|
11012 | "syntaxKindCounter": {
|
11013 | "8": 2,
|
11014 | "10": 5,
|
11015 | "75": 37,
|
11016 | "104": 2,
|
11017 | "106": 1,
|
11018 | "130": 3,
|
11019 | "153": 3,
|
11020 | "169": 3,
|
11021 | "193": 5,
|
11022 | "194": 8,
|
11023 | "196": 3,
|
11024 | "197": 2,
|
11025 | "225": 6,
|
11026 | "226": 1,
|
11027 | "242": 6,
|
11028 | "243": 6,
|
11029 | "281": 7,
|
11030 | "282": 3,
|
11031 | "290": 1
|
11032 | },
|
11033 | "fqnsFingerprint": "84e84a232d4d1659f379019316138f707df9fa005ac80fec15ca7227950a3c36"
|
11034 | },
|
11035 | "0b67a6ade5a4ca56da6b4ecb021cb367b4a7fc695e67f66ebc6f3795e4e9a41a": {
|
11036 | "translations": {
|
11037 | "python": {
|
11038 | "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)",
|
11039 | "version": "2"
|
11040 | },
|
11041 | "csharp": {
|
11042 | "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};",
|
11043 | "version": "1"
|
11044 | },
|
11045 | "java": {
|
11046 | "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();",
|
11047 | "version": "1"
|
11048 | },
|
11049 | "go": {
|
11050 | "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}",
|
11051 | "version": "1"
|
11052 | },
|
11053 | "$": {
|
11054 | "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};",
|
11055 | "version": "0"
|
11056 | }
|
11057 | },
|
11058 | "location": {
|
11059 | "api": {
|
11060 | "api": "type",
|
11061 | "fqn": "@aws-cdk/aws-ecs.EfsVolumeConfiguration"
|
11062 | },
|
11063 | "field": {
|
11064 | "field": "example"
|
11065 | }
|
11066 | },
|
11067 | "didCompile": true,
|
11068 | "fqnsReferenced": [
|
11069 | "@aws-cdk/aws-ecs.AuthorizationConfig",
|
11070 | "@aws-cdk/aws-ecs.EfsVolumeConfiguration"
|
11071 | ],
|
11072 | "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} }",
|
11073 | "syntaxKindCounter": {
|
11074 | "8": 1,
|
11075 | "10": 6,
|
11076 | "75": 11,
|
11077 | "153": 1,
|
11078 | "169": 1,
|
11079 | "193": 2,
|
11080 | "225": 1,
|
11081 | "242": 1,
|
11082 | "243": 1,
|
11083 | "254": 1,
|
11084 | "255": 1,
|
11085 | "256": 1,
|
11086 | "281": 7,
|
11087 | "290": 1
|
11088 | },
|
11089 | "fqnsFingerprint": "8616d1aa2f8e9a8ad635ab6e071493b421f5a598af58a177d28e02ea3e272603"
|
11090 | },
|
11091 | "d2c5410e72d41463311be69d2255aa5827b1a97a4cc23899fec30ab4c0892af7": {
|
11092 | "translations": {
|
11093 | "python": {
|
11094 | "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\")",
|
11095 | "version": "2"
|
11096 | },
|
11097 | "csharp": {
|
11098 | "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\");",
|
11099 | "version": "1"
|
11100 | },
|
11101 | "java": {
|
11102 | "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\");",
|
11103 | "version": "1"
|
11104 | },
|
11105 | "go": {
|
11106 | "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\"))",
|
11107 | "version": "1"
|
11108 | },
|
11109 | "$": {
|
11110 | "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');",
|
11111 | "version": "0"
|
11112 | }
|
11113 | },
|
11114 | "location": {
|
11115 | "api": {
|
11116 | "api": "type",
|
11117 | "fqn": "@aws-cdk/aws-ecs.EnvironmentFile"
|
11118 | },
|
11119 | "field": {
|
11120 | "field": "example"
|
11121 | }
|
11122 | },
|
11123 | "didCompile": true,
|
11124 | "fqnsReferenced": [
|
11125 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
11126 | "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
|
11127 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
11128 | "@aws-cdk/aws-ecs.ContainerImage",
|
11129 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
11130 | "@aws-cdk/aws-ecs.EnvironmentFile",
|
11131 | "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
|
11132 | "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
|
11133 | "@aws-cdk/aws-ecs.Secret",
|
11134 | "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
|
11135 | "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
|
11136 | "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
|
11137 | "@aws-cdk/aws-ecs.SecretVersionInfo",
|
11138 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
11139 | "@aws-cdk/aws-s3.IBucket",
|
11140 | "@aws-cdk/aws-secretsmanager.ISecret",
|
11141 | "@aws-cdk/aws-ssm.IParameter"
|
11142 | ],
|
11143 | "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",
|
11144 | "syntaxKindCounter": {
|
11145 | "8": 1,
|
11146 | "10": 10,
|
11147 | "75": 57,
|
11148 | "130": 5,
|
11149 | "153": 5,
|
11150 | "169": 5,
|
11151 | "192": 1,
|
11152 | "193": 4,
|
11153 | "194": 16,
|
11154 | "196": 9,
|
11155 | "225": 6,
|
11156 | "226": 1,
|
11157 | "242": 6,
|
11158 | "243": 6,
|
11159 | "281": 11,
|
11160 | "290": 1
|
11161 | },
|
11162 | "fqnsFingerprint": "d73b3221b714300d28d2955542b6f3c7767a7f5fca1e728e01dbcd444a47dda1"
|
11163 | },
|
11164 | "d4f494f60cf45ec38f9f5b4bc442aedf5299abd8f4e8cd63a8728fa1d33419de": {
|
11165 | "translations": {
|
11166 | "python": {
|
11167 | "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)",
|
11168 | "version": "2"
|
11169 | },
|
11170 | "csharp": {
|
11171 | "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};",
|
11172 | "version": "1"
|
11173 | },
|
11174 | "java": {
|
11175 | "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();",
|
11176 | "version": "1"
|
11177 | },
|
11178 | "go": {
|
11179 | "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}",
|
11180 | "version": "1"
|
11181 | },
|
11182 | "$": {
|
11183 | "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};",
|
11184 | "version": "0"
|
11185 | }
|
11186 | },
|
11187 | "location": {
|
11188 | "api": {
|
11189 | "api": "type",
|
11190 | "fqn": "@aws-cdk/aws-ecs.EnvironmentFileConfig"
|
11191 | },
|
11192 | "field": {
|
11193 | "field": "example"
|
11194 | }
|
11195 | },
|
11196 | "didCompile": true,
|
11197 | "fqnsReferenced": [
|
11198 | "@aws-cdk/aws-ecs.EnvironmentFileConfig",
|
11199 | "@aws-cdk/aws-ecs.EnvironmentFileType",
|
11200 | "@aws-cdk/aws-ecs.EnvironmentFileType#S3",
|
11201 | "@aws-cdk/aws-s3.Location"
|
11202 | ],
|
11203 | "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} }",
|
11204 | "syntaxKindCounter": {
|
11205 | "10": 4,
|
11206 | "75": 12,
|
11207 | "153": 1,
|
11208 | "169": 1,
|
11209 | "193": 2,
|
11210 | "194": 2,
|
11211 | "225": 1,
|
11212 | "242": 1,
|
11213 | "243": 1,
|
11214 | "254": 1,
|
11215 | "255": 1,
|
11216 | "256": 1,
|
11217 | "281": 5,
|
11218 | "290": 1
|
11219 | },
|
11220 | "fqnsFingerprint": "1cec03efb3bbda5248c9eb38d5be8cea7b38d763514516b850fe1ac6ef9ee090"
|
11221 | },
|
11222 | "1069609c4cd5986e4faa9517e08d0f58e88e164d8d7d2e339f4bbddce27a5d67": {
|
11223 | "translations": {
|
11224 | "python": {
|
11225 | "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)",
|
11226 | "version": "2"
|
11227 | },
|
11228 | "csharp": {
|
11229 | "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});",
|
11230 | "version": "1"
|
11231 | },
|
11232 | "java": {
|
11233 | "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();",
|
11234 | "version": "1"
|
11235 | },
|
11236 | "go": {
|
11237 | "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})",
|
11238 | "version": "1"
|
11239 | },
|
11240 | "$": {
|
11241 | "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});",
|
11242 | "version": "0"
|
11243 | }
|
11244 | },
|
11245 | "location": {
|
11246 | "api": {
|
11247 | "api": "type",
|
11248 | "fqn": "@aws-cdk/aws-ecs.ExecuteCommandConfiguration"
|
11249 | },
|
11250 | "field": {
|
11251 | "field": "example"
|
11252 | }
|
11253 | },
|
11254 | "didCompile": true,
|
11255 | "fqnsReferenced": [
|
11256 | "@aws-cdk/aws-ec2.IVpc",
|
11257 | "@aws-cdk/aws-ecs.Cluster",
|
11258 | "@aws-cdk/aws-ecs.ClusterProps",
|
11259 | "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
|
11260 | "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
|
11261 | "@aws-cdk/aws-ecs.ExecuteCommandLogging",
|
11262 | "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
|
11263 | "@aws-cdk/aws-kms.IKey",
|
11264 | "@aws-cdk/aws-kms.Key",
|
11265 | "@aws-cdk/aws-logs.ILogGroup",
|
11266 | "@aws-cdk/aws-logs.LogGroup",
|
11267 | "@aws-cdk/aws-logs.LogGroupProps",
|
11268 | "@aws-cdk/aws-s3.Bucket",
|
11269 | "@aws-cdk/aws-s3.BucketProps",
|
11270 | "@aws-cdk/aws-s3.IBucket",
|
11271 | "constructs.Construct"
|
11272 | ],
|
11273 | "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",
|
11274 | "syntaxKindCounter": {
|
11275 | "10": 5,
|
11276 | "75": 34,
|
11277 | "104": 4,
|
11278 | "106": 2,
|
11279 | "130": 1,
|
11280 | "153": 1,
|
11281 | "169": 1,
|
11282 | "193": 5,
|
11283 | "194": 6,
|
11284 | "197": 4,
|
11285 | "225": 5,
|
11286 | "242": 5,
|
11287 | "243": 5,
|
11288 | "281": 10,
|
11289 | "282": 2,
|
11290 | "290": 1
|
11291 | },
|
11292 | "fqnsFingerprint": "cf8293e9b943a9988271923223c1437aa832773c0f78be11a9a548fb715ea2bd"
|
11293 | },
|
11294 | "a012a8272575a158807d7c88527fc2abd0a72d119804ca9b0b6698ff6f7a01f0": {
|
11295 | "translations": {
|
11296 | "python": {
|
11297 | "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)",
|
11298 | "version": "2"
|
11299 | },
|
11300 | "csharp": {
|
11301 | "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});",
|
11302 | "version": "1"
|
11303 | },
|
11304 | "java": {
|
11305 | "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();",
|
11306 | "version": "1"
|
11307 | },
|
11308 | "go": {
|
11309 | "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})",
|
11310 | "version": "1"
|
11311 | },
|
11312 | "$": {
|
11313 | "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});",
|
11314 | "version": "0"
|
11315 | }
|
11316 | },
|
11317 | "location": {
|
11318 | "api": {
|
11319 | "api": "type",
|
11320 | "fqn": "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration"
|
11321 | },
|
11322 | "field": {
|
11323 | "field": "example"
|
11324 | }
|
11325 | },
|
11326 | "didCompile": true,
|
11327 | "fqnsReferenced": [
|
11328 | "@aws-cdk/aws-ec2.IVpc",
|
11329 | "@aws-cdk/aws-ecs.Cluster",
|
11330 | "@aws-cdk/aws-ecs.ClusterProps",
|
11331 | "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
|
11332 | "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
|
11333 | "@aws-cdk/aws-ecs.ExecuteCommandLogging",
|
11334 | "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
|
11335 | "@aws-cdk/aws-kms.IKey",
|
11336 | "@aws-cdk/aws-kms.Key",
|
11337 | "@aws-cdk/aws-logs.ILogGroup",
|
11338 | "@aws-cdk/aws-logs.LogGroup",
|
11339 | "@aws-cdk/aws-logs.LogGroupProps",
|
11340 | "@aws-cdk/aws-s3.Bucket",
|
11341 | "@aws-cdk/aws-s3.BucketProps",
|
11342 | "@aws-cdk/aws-s3.IBucket",
|
11343 | "constructs.Construct"
|
11344 | ],
|
11345 | "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",
|
11346 | "syntaxKindCounter": {
|
11347 | "10": 5,
|
11348 | "75": 34,
|
11349 | "104": 4,
|
11350 | "106": 2,
|
11351 | "130": 1,
|
11352 | "153": 1,
|
11353 | "169": 1,
|
11354 | "193": 5,
|
11355 | "194": 6,
|
11356 | "197": 4,
|
11357 | "225": 5,
|
11358 | "242": 5,
|
11359 | "243": 5,
|
11360 | "281": 10,
|
11361 | "282": 2,
|
11362 | "290": 1
|
11363 | },
|
11364 | "fqnsFingerprint": "cf8293e9b943a9988271923223c1437aa832773c0f78be11a9a548fb715ea2bd"
|
11365 | },
|
11366 | "8035343e6494a5363616c62e8e82f7fdb853dcf8be4e43ce39a02e158bc7a590": {
|
11367 | "translations": {
|
11368 | "python": {
|
11369 | "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)",
|
11370 | "version": "2"
|
11371 | },
|
11372 | "csharp": {
|
11373 | "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});",
|
11374 | "version": "1"
|
11375 | },
|
11376 | "java": {
|
11377 | "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();",
|
11378 | "version": "1"
|
11379 | },
|
11380 | "go": {
|
11381 | "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})",
|
11382 | "version": "1"
|
11383 | },
|
11384 | "$": {
|
11385 | "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});",
|
11386 | "version": "0"
|
11387 | }
|
11388 | },
|
11389 | "location": {
|
11390 | "api": {
|
11391 | "api": "type",
|
11392 | "fqn": "@aws-cdk/aws-ecs.ExecuteCommandLogging"
|
11393 | },
|
11394 | "field": {
|
11395 | "field": "example"
|
11396 | }
|
11397 | },
|
11398 | "didCompile": true,
|
11399 | "fqnsReferenced": [
|
11400 | "@aws-cdk/aws-ec2.IVpc",
|
11401 | "@aws-cdk/aws-ecs.Cluster",
|
11402 | "@aws-cdk/aws-ecs.ClusterProps",
|
11403 | "@aws-cdk/aws-ecs.ExecuteCommandConfiguration",
|
11404 | "@aws-cdk/aws-ecs.ExecuteCommandLogConfiguration",
|
11405 | "@aws-cdk/aws-ecs.ExecuteCommandLogging",
|
11406 | "@aws-cdk/aws-ecs.ExecuteCommandLogging#OVERRIDE",
|
11407 | "@aws-cdk/aws-kms.IKey",
|
11408 | "@aws-cdk/aws-kms.Key",
|
11409 | "@aws-cdk/aws-logs.ILogGroup",
|
11410 | "@aws-cdk/aws-logs.LogGroup",
|
11411 | "@aws-cdk/aws-logs.LogGroupProps",
|
11412 | "@aws-cdk/aws-s3.Bucket",
|
11413 | "@aws-cdk/aws-s3.BucketProps",
|
11414 | "@aws-cdk/aws-s3.IBucket",
|
11415 | "constructs.Construct"
|
11416 | ],
|
11417 | "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",
|
11418 | "syntaxKindCounter": {
|
11419 | "10": 5,
|
11420 | "75": 34,
|
11421 | "104": 4,
|
11422 | "106": 2,
|
11423 | "130": 1,
|
11424 | "153": 1,
|
11425 | "169": 1,
|
11426 | "193": 5,
|
11427 | "194": 6,
|
11428 | "197": 4,
|
11429 | "225": 5,
|
11430 | "242": 5,
|
11431 | "243": 5,
|
11432 | "281": 10,
|
11433 | "282": 2,
|
11434 | "290": 1
|
11435 | },
|
11436 | "fqnsFingerprint": "cf8293e9b943a9988271923223c1437aa832773c0f78be11a9a548fb715ea2bd"
|
11437 | },
|
11438 | "2a51d994e5587208abb324addbb06027860d39566054445895774d81af080387": {
|
11439 | "translations": {
|
11440 | "python": {
|
11441 | "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)",
|
11442 | "version": "2"
|
11443 | },
|
11444 | "csharp": {
|
11445 | "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});",
|
11446 | "version": "1"
|
11447 | },
|
11448 | "java": {
|
11449 | "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();",
|
11450 | "version": "1"
|
11451 | },
|
11452 | "go": {
|
11453 | "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})",
|
11454 | "version": "1"
|
11455 | },
|
11456 | "$": {
|
11457 | "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});",
|
11458 | "version": "0"
|
11459 | }
|
11460 | },
|
11461 | "location": {
|
11462 | "api": {
|
11463 | "api": "type",
|
11464 | "fqn": "@aws-cdk/aws-ecs.ExternalService"
|
11465 | },
|
11466 | "field": {
|
11467 | "field": "example"
|
11468 | }
|
11469 | },
|
11470 | "didCompile": true,
|
11471 | "fqnsReferenced": [
|
11472 | "@aws-cdk/aws-ecs.ExternalService",
|
11473 | "@aws-cdk/aws-ecs.ExternalServiceProps",
|
11474 | "@aws-cdk/aws-ecs.ICluster",
|
11475 | "@aws-cdk/aws-ecs.TaskDefinition",
|
11476 | "constructs.Construct"
|
11477 | ],
|
11478 | "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",
|
11479 | "syntaxKindCounter": {
|
11480 | "8": 1,
|
11481 | "10": 1,
|
11482 | "75": 12,
|
11483 | "104": 1,
|
11484 | "130": 2,
|
11485 | "153": 2,
|
11486 | "169": 2,
|
11487 | "193": 1,
|
11488 | "194": 1,
|
11489 | "197": 1,
|
11490 | "225": 3,
|
11491 | "242": 3,
|
11492 | "243": 3,
|
11493 | "281": 1,
|
11494 | "282": 2,
|
11495 | "290": 1
|
11496 | },
|
11497 | "fqnsFingerprint": "7d8e185839ce039a8afd1af6b7064ea3cf2e7f71176b7ff73140dfbdd40f3e30"
|
11498 | },
|
11499 | "2cddec0b774995aca31dfaccfb676be6bad0637938f169ece6e33de9c739a3d6": {
|
11500 | "translations": {
|
11501 | "python": {
|
11502 | "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)",
|
11503 | "version": "2"
|
11504 | },
|
11505 | "csharp": {
|
11506 | "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};",
|
11507 | "version": "1"
|
11508 | },
|
11509 | "java": {
|
11510 | "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();",
|
11511 | "version": "1"
|
11512 | },
|
11513 | "go": {
|
11514 | "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}",
|
11515 | "version": "1"
|
11516 | },
|
11517 | "$": {
|
11518 | "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};",
|
11519 | "version": "0"
|
11520 | }
|
11521 | },
|
11522 | "location": {
|
11523 | "api": {
|
11524 | "api": "type",
|
11525 | "fqn": "@aws-cdk/aws-ecs.ExternalServiceAttributes"
|
11526 | },
|
11527 | "field": {
|
11528 | "field": "example"
|
11529 | }
|
11530 | },
|
11531 | "didCompile": true,
|
11532 | "fqnsReferenced": [
|
11533 | "@aws-cdk/aws-ecs.ExternalServiceAttributes",
|
11534 | "@aws-cdk/aws-ecs.ICluster"
|
11535 | ],
|
11536 | "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} }",
|
11537 | "syntaxKindCounter": {
|
11538 | "10": 3,
|
11539 | "75": 11,
|
11540 | "130": 1,
|
11541 | "153": 2,
|
11542 | "169": 2,
|
11543 | "193": 1,
|
11544 | "225": 2,
|
11545 | "242": 2,
|
11546 | "243": 2,
|
11547 | "254": 1,
|
11548 | "255": 1,
|
11549 | "256": 1,
|
11550 | "281": 3,
|
11551 | "290": 1
|
11552 | },
|
11553 | "fqnsFingerprint": "0dcffb7e75ffc839557efe66a931ae79b4c5d0acf42fb09a3da492dbe95ee8a7"
|
11554 | },
|
11555 | "a41d0e042af471f30a1d843e40f31549b39127e082876af37bb092d6eeaf9352": {
|
11556 | "translations": {
|
11557 | "python": {
|
11558 | "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)",
|
11559 | "version": "2"
|
11560 | },
|
11561 | "csharp": {
|
11562 | "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});",
|
11563 | "version": "1"
|
11564 | },
|
11565 | "java": {
|
11566 | "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();",
|
11567 | "version": "1"
|
11568 | },
|
11569 | "go": {
|
11570 | "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})",
|
11571 | "version": "1"
|
11572 | },
|
11573 | "$": {
|
11574 | "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});",
|
11575 | "version": "0"
|
11576 | }
|
11577 | },
|
11578 | "location": {
|
11579 | "api": {
|
11580 | "api": "type",
|
11581 | "fqn": "@aws-cdk/aws-ecs.ExternalServiceProps"
|
11582 | },
|
11583 | "field": {
|
11584 | "field": "example"
|
11585 | }
|
11586 | },
|
11587 | "didCompile": true,
|
11588 | "fqnsReferenced": [
|
11589 | "@aws-cdk/aws-ecs.ExternalService",
|
11590 | "@aws-cdk/aws-ecs.ExternalServiceProps",
|
11591 | "@aws-cdk/aws-ecs.ICluster",
|
11592 | "@aws-cdk/aws-ecs.TaskDefinition",
|
11593 | "constructs.Construct"
|
11594 | ],
|
11595 | "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",
|
11596 | "syntaxKindCounter": {
|
11597 | "8": 1,
|
11598 | "10": 1,
|
11599 | "75": 12,
|
11600 | "104": 1,
|
11601 | "130": 2,
|
11602 | "153": 2,
|
11603 | "169": 2,
|
11604 | "193": 1,
|
11605 | "194": 1,
|
11606 | "197": 1,
|
11607 | "225": 3,
|
11608 | "242": 3,
|
11609 | "243": 3,
|
11610 | "281": 1,
|
11611 | "282": 2,
|
11612 | "290": 1
|
11613 | },
|
11614 | "fqnsFingerprint": "7d8e185839ce039a8afd1af6b7064ea3cf2e7f71176b7ff73140dfbdd40f3e30"
|
11615 | },
|
11616 | "939ee9559ebefca8601a0c1561afd0bcd0f2d2d5b1fc7a9412d81f1f781553b8": {
|
11617 | "translations": {
|
11618 | "python": {
|
11619 | "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)",
|
11620 | "version": "2"
|
11621 | },
|
11622 | "csharp": {
|
11623 | "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});",
|
11624 | "version": "1"
|
11625 | },
|
11626 | "java": {
|
11627 | "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());",
|
11628 | "version": "1"
|
11629 | },
|
11630 | "go": {
|
11631 | "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})",
|
11632 | "version": "1"
|
11633 | },
|
11634 | "$": {
|
11635 | "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});",
|
11636 | "version": "0"
|
11637 | }
|
11638 | },
|
11639 | "location": {
|
11640 | "api": {
|
11641 | "api": "type",
|
11642 | "fqn": "@aws-cdk/aws-ecs.ExternalTaskDefinition"
|
11643 | },
|
11644 | "field": {
|
11645 | "field": "example"
|
11646 | }
|
11647 | },
|
11648 | "didCompile": true,
|
11649 | "fqnsReferenced": [
|
11650 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
11651 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
11652 | "@aws-cdk/aws-ecs.ContainerImage",
|
11653 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
11654 | "@aws-cdk/aws-ecs.ExternalTaskDefinition",
|
11655 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
11656 | "constructs.Construct"
|
11657 | ],
|
11658 | "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",
|
11659 | "syntaxKindCounter": {
|
11660 | "8": 1,
|
11661 | "10": 3,
|
11662 | "75": 11,
|
11663 | "104": 1,
|
11664 | "193": 1,
|
11665 | "194": 4,
|
11666 | "196": 2,
|
11667 | "197": 1,
|
11668 | "225": 2,
|
11669 | "242": 2,
|
11670 | "243": 2,
|
11671 | "281": 2
|
11672 | },
|
11673 | "fqnsFingerprint": "6bea3ebadfc1c80ba1dc8127b6bb9502eae31d20586271ebc515f24405df2c10"
|
11674 | },
|
11675 | "65a1e67abbb8f0a2875eff9100213b5200278d11c60039e304d6047615a18c09": {
|
11676 | "translations": {
|
11677 | "python": {
|
11678 | "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)",
|
11679 | "version": "2"
|
11680 | },
|
11681 | "csharp": {
|
11682 | "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};",
|
11683 | "version": "1"
|
11684 | },
|
11685 | "java": {
|
11686 | "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();",
|
11687 | "version": "1"
|
11688 | },
|
11689 | "go": {
|
11690 | "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}",
|
11691 | "version": "1"
|
11692 | },
|
11693 | "$": {
|
11694 | "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};",
|
11695 | "version": "0"
|
11696 | }
|
11697 | },
|
11698 | "location": {
|
11699 | "api": {
|
11700 | "api": "type",
|
11701 | "fqn": "@aws-cdk/aws-ecs.ExternalTaskDefinitionAttributes"
|
11702 | },
|
11703 | "field": {
|
11704 | "field": "example"
|
11705 | }
|
11706 | },
|
11707 | "didCompile": true,
|
11708 | "fqnsReferenced": [
|
11709 | "@aws-cdk/aws-ecs.ExternalTaskDefinitionAttributes",
|
11710 | "@aws-cdk/aws-ecs.NetworkMode",
|
11711 | "@aws-cdk/aws-ecs.NetworkMode#NONE",
|
11712 | "@aws-cdk/aws-iam.IRole"
|
11713 | ],
|
11714 | "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} }",
|
11715 | "syntaxKindCounter": {
|
11716 | "10": 3,
|
11717 | "75": 15,
|
11718 | "130": 1,
|
11719 | "153": 2,
|
11720 | "169": 2,
|
11721 | "193": 1,
|
11722 | "194": 2,
|
11723 | "225": 2,
|
11724 | "242": 2,
|
11725 | "243": 2,
|
11726 | "254": 2,
|
11727 | "255": 2,
|
11728 | "256": 2,
|
11729 | "281": 3,
|
11730 | "290": 1
|
11731 | },
|
11732 | "fqnsFingerprint": "7d76726f1cffbcdb92a207aa2f6fad7cf0e3340949acf47c22134f3bd80081d3"
|
11733 | },
|
11734 | "5894849529b4138a2752f4dde319bb65a9cdcca4f27087bc86a4346afebed3d0": {
|
11735 | "translations": {
|
11736 | "python": {
|
11737 | "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)",
|
11738 | "version": "2"
|
11739 | },
|
11740 | "csharp": {
|
11741 | "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};",
|
11742 | "version": "1"
|
11743 | },
|
11744 | "java": {
|
11745 | "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();",
|
11746 | "version": "1"
|
11747 | },
|
11748 | "go": {
|
11749 | "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}",
|
11750 | "version": "1"
|
11751 | },
|
11752 | "$": {
|
11753 | "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};",
|
11754 | "version": "0"
|
11755 | }
|
11756 | },
|
11757 | "location": {
|
11758 | "api": {
|
11759 | "api": "type",
|
11760 | "fqn": "@aws-cdk/aws-ecs.ExternalTaskDefinitionProps"
|
11761 | },
|
11762 | "field": {
|
11763 | "field": "example"
|
11764 | }
|
11765 | },
|
11766 | "didCompile": true,
|
11767 | "fqnsReferenced": [
|
11768 | "@aws-cdk/aws-ecs.AuthorizationConfig",
|
11769 | "@aws-cdk/aws-ecs.DockerVolumeConfiguration",
|
11770 | "@aws-cdk/aws-ecs.EfsVolumeConfiguration",
|
11771 | "@aws-cdk/aws-ecs.ExternalTaskDefinitionProps",
|
11772 | "@aws-cdk/aws-ecs.Host",
|
11773 | "@aws-cdk/aws-ecs.ProxyConfiguration",
|
11774 | "@aws-cdk/aws-ecs.Scope",
|
11775 | "@aws-cdk/aws-ecs.Scope#TASK",
|
11776 | "@aws-cdk/aws-iam.IRole"
|
11777 | ],
|
11778 | "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} }",
|
11779 | "syntaxKindCounter": {
|
11780 | "8": 1,
|
11781 | "10": 13,
|
11782 | "75": 41,
|
11783 | "91": 1,
|
11784 | "130": 2,
|
11785 | "153": 3,
|
11786 | "169": 3,
|
11787 | "192": 1,
|
11788 | "193": 8,
|
11789 | "194": 2,
|
11790 | "225": 3,
|
11791 | "242": 3,
|
11792 | "243": 3,
|
11793 | "254": 2,
|
11794 | "255": 2,
|
11795 | "256": 2,
|
11796 | "281": 24,
|
11797 | "290": 1
|
11798 | },
|
11799 | "fqnsFingerprint": "7a0fc686cd86091c4a462a6e631b5ce07b512c65a38cee618323ba9d1adad089"
|
11800 | },
|
11801 | "0455505c70a4c98f91e0bb72052a614c46ee163e913dafbb32099cfa22456250": {
|
11802 | "translations": {
|
11803 | "python": {
|
11804 | "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)",
|
11805 | "version": "2"
|
11806 | },
|
11807 | "csharp": {
|
11808 | "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});",
|
11809 | "version": "1"
|
11810 | },
|
11811 | "java": {
|
11812 | "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();",
|
11813 | "version": "1"
|
11814 | },
|
11815 | "go": {
|
11816 | "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})",
|
11817 | "version": "1"
|
11818 | },
|
11819 | "$": {
|
11820 | "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});",
|
11821 | "version": "0"
|
11822 | }
|
11823 | },
|
11824 | "location": {
|
11825 | "api": {
|
11826 | "api": "type",
|
11827 | "fqn": "@aws-cdk/aws-ecs.FargatePlatformVersion"
|
11828 | },
|
11829 | "field": {
|
11830 | "field": "example"
|
11831 | }
|
11832 | },
|
11833 | "didCompile": true,
|
11834 | "fqnsReferenced": [
|
11835 | "@aws-cdk/aws-applicationautoscaling.Schedule",
|
11836 | "@aws-cdk/aws-applicationautoscaling.Schedule#expression",
|
11837 | "@aws-cdk/aws-ecs-patterns.ScheduledFargateTask",
|
11838 | "@aws-cdk/aws-ecs-patterns.ScheduledFargateTaskImageOptions",
|
11839 | "@aws-cdk/aws-ecs-patterns.ScheduledFargateTaskProps",
|
11840 | "@aws-cdk/aws-ecs.ContainerImage",
|
11841 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
11842 | "@aws-cdk/aws-ecs.FargatePlatformVersion",
|
11843 | "@aws-cdk/aws-ecs.FargatePlatformVersion#LATEST",
|
11844 | "@aws-cdk/aws-ecs.ICluster",
|
11845 | "constructs.Construct"
|
11846 | ],
|
11847 | "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",
|
11848 | "syntaxKindCounter": {
|
11849 | "8": 1,
|
11850 | "10": 3,
|
11851 | "75": 21,
|
11852 | "104": 1,
|
11853 | "130": 1,
|
11854 | "153": 1,
|
11855 | "169": 1,
|
11856 | "193": 2,
|
11857 | "194": 7,
|
11858 | "196": 2,
|
11859 | "197": 1,
|
11860 | "225": 2,
|
11861 | "242": 2,
|
11862 | "243": 2,
|
11863 | "281": 5,
|
11864 | "282": 1,
|
11865 | "290": 1
|
11866 | },
|
11867 | "fqnsFingerprint": "941c45f67c4e56c709e004cdb23ff06366499381595dbee6c2fd33ade3cdbb16"
|
11868 | },
|
11869 | "5acea073f080c1d913aabe1fb6ccf03873feae924a77188672c6e22f0c47697e": {
|
11870 | "translations": {
|
11871 | "python": {
|
11872 | "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)",
|
11873 | "version": "2"
|
11874 | },
|
11875 | "csharp": {
|
11876 | "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});",
|
11877 | "version": "1"
|
11878 | },
|
11879 | "java": {
|
11880 | "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());",
|
11881 | "version": "1"
|
11882 | },
|
11883 | "go": {
|
11884 | "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})",
|
11885 | "version": "1"
|
11886 | },
|
11887 | "$": {
|
11888 | "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);",
|
11889 | "version": "0"
|
11890 | }
|
11891 | },
|
11892 | "location": {
|
11893 | "api": {
|
11894 | "api": "type",
|
11895 | "fqn": "@aws-cdk/aws-ecs.FargateService"
|
11896 | },
|
11897 | "field": {
|
11898 | "field": "example"
|
11899 | }
|
11900 | },
|
11901 | "didCompile": true,
|
11902 | "fqnsReferenced": [
|
11903 | "@aws-cdk/aws-ec2.IVpc",
|
11904 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
11905 | "@aws-cdk/aws-ecs.EcsTarget",
|
11906 | "@aws-cdk/aws-ecs.FargateService",
|
11907 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
11908 | "@aws-cdk/aws-ecs.ICluster",
|
11909 | "@aws-cdk/aws-ecs.ListenerConfig",
|
11910 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
11911 | "@aws-cdk/aws-ecs.TaskDefinition",
|
11912 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
11913 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
11914 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
11915 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
11916 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
11917 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
11918 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
|
11919 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
11920 | "constructs.Construct"
|
11921 | ],
|
11922 | "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",
|
11923 | "syntaxKindCounter": {
|
11924 | "8": 2,
|
11925 | "10": 5,
|
11926 | "75": 37,
|
11927 | "104": 2,
|
11928 | "106": 1,
|
11929 | "130": 3,
|
11930 | "153": 3,
|
11931 | "169": 3,
|
11932 | "193": 5,
|
11933 | "194": 8,
|
11934 | "196": 3,
|
11935 | "197": 2,
|
11936 | "225": 6,
|
11937 | "226": 1,
|
11938 | "242": 6,
|
11939 | "243": 6,
|
11940 | "281": 7,
|
11941 | "282": 3,
|
11942 | "290": 1
|
11943 | },
|
11944 | "fqnsFingerprint": "84e84a232d4d1659f379019316138f707df9fa005ac80fec15ca7227950a3c36"
|
11945 | },
|
11946 | "1b1658820a84c959e08c123b017e1a403940782c1c850bf0b93c37e4aa307392": {
|
11947 | "translations": {
|
11948 | "python": {
|
11949 | "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)",
|
11950 | "version": "2"
|
11951 | },
|
11952 | "csharp": {
|
11953 | "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};",
|
11954 | "version": "1"
|
11955 | },
|
11956 | "java": {
|
11957 | "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();",
|
11958 | "version": "1"
|
11959 | },
|
11960 | "go": {
|
11961 | "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}",
|
11962 | "version": "1"
|
11963 | },
|
11964 | "$": {
|
11965 | "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};",
|
11966 | "version": "0"
|
11967 | }
|
11968 | },
|
11969 | "location": {
|
11970 | "api": {
|
11971 | "api": "type",
|
11972 | "fqn": "@aws-cdk/aws-ecs.FargateServiceAttributes"
|
11973 | },
|
11974 | "field": {
|
11975 | "field": "example"
|
11976 | }
|
11977 | },
|
11978 | "didCompile": true,
|
11979 | "fqnsReferenced": [
|
11980 | "@aws-cdk/aws-ecs.FargateServiceAttributes",
|
11981 | "@aws-cdk/aws-ecs.ICluster"
|
11982 | ],
|
11983 | "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} }",
|
11984 | "syntaxKindCounter": {
|
11985 | "10": 3,
|
11986 | "75": 11,
|
11987 | "130": 1,
|
11988 | "153": 2,
|
11989 | "169": 2,
|
11990 | "193": 1,
|
11991 | "225": 2,
|
11992 | "242": 2,
|
11993 | "243": 2,
|
11994 | "254": 1,
|
11995 | "255": 1,
|
11996 | "256": 1,
|
11997 | "281": 3,
|
11998 | "290": 1
|
11999 | },
|
12000 | "fqnsFingerprint": "788b9355ee3011bd30e22946d606f093f94e5a22cda851dea627e1fa011115e3"
|
12001 | },
|
12002 | "6ecf9e74c33bd357e80eb7bd84d63250f825db176845b3b15ed791b5f0816102": {
|
12003 | "translations": {
|
12004 | "python": {
|
12005 | "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)",
|
12006 | "version": "2"
|
12007 | },
|
12008 | "csharp": {
|
12009 | "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});",
|
12010 | "version": "1"
|
12011 | },
|
12012 | "java": {
|
12013 | "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());",
|
12014 | "version": "1"
|
12015 | },
|
12016 | "go": {
|
12017 | "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})",
|
12018 | "version": "1"
|
12019 | },
|
12020 | "$": {
|
12021 | "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);",
|
12022 | "version": "0"
|
12023 | }
|
12024 | },
|
12025 | "location": {
|
12026 | "api": {
|
12027 | "api": "type",
|
12028 | "fqn": "@aws-cdk/aws-ecs.FargateServiceProps"
|
12029 | },
|
12030 | "field": {
|
12031 | "field": "example"
|
12032 | }
|
12033 | },
|
12034 | "didCompile": true,
|
12035 | "fqnsReferenced": [
|
12036 | "@aws-cdk/aws-ec2.IVpc",
|
12037 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
12038 | "@aws-cdk/aws-ecs.EcsTarget",
|
12039 | "@aws-cdk/aws-ecs.FargateService",
|
12040 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
12041 | "@aws-cdk/aws-ecs.ICluster",
|
12042 | "@aws-cdk/aws-ecs.ListenerConfig",
|
12043 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
12044 | "@aws-cdk/aws-ecs.TaskDefinition",
|
12045 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
12046 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
12047 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
12048 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
12049 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
12050 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
12051 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
|
12052 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
12053 | "constructs.Construct"
|
12054 | ],
|
12055 | "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",
|
12056 | "syntaxKindCounter": {
|
12057 | "8": 2,
|
12058 | "10": 5,
|
12059 | "75": 37,
|
12060 | "104": 2,
|
12061 | "106": 1,
|
12062 | "130": 3,
|
12063 | "153": 3,
|
12064 | "169": 3,
|
12065 | "193": 5,
|
12066 | "194": 8,
|
12067 | "196": 3,
|
12068 | "197": 2,
|
12069 | "225": 6,
|
12070 | "226": 1,
|
12071 | "242": 6,
|
12072 | "243": 6,
|
12073 | "281": 7,
|
12074 | "282": 3,
|
12075 | "290": 1
|
12076 | },
|
12077 | "fqnsFingerprint": "84e84a232d4d1659f379019316138f707df9fa005ac80fec15ca7227950a3c36"
|
12078 | },
|
12079 | "6ddc633f5dbe6a1da3257adea0218c6f5b07aa77eae06029c4800e8ed34fb3a2": {
|
12080 | "translations": {
|
12081 | "python": {
|
12082 | "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)",
|
12083 | "version": "2"
|
12084 | },
|
12085 | "csharp": {
|
12086 | "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});",
|
12087 | "version": "1"
|
12088 | },
|
12089 | "java": {
|
12090 | "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());",
|
12091 | "version": "1"
|
12092 | },
|
12093 | "go": {
|
12094 | "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})",
|
12095 | "version": "1"
|
12096 | },
|
12097 | "$": {
|
12098 | "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});",
|
12099 | "version": "0"
|
12100 | }
|
12101 | },
|
12102 | "location": {
|
12103 | "api": {
|
12104 | "api": "type",
|
12105 | "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinition"
|
12106 | },
|
12107 | "field": {
|
12108 | "field": "example"
|
12109 | }
|
12110 | },
|
12111 | "didCompile": true,
|
12112 | "fqnsReferenced": [
|
12113 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
12114 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
12115 | "@aws-cdk/aws-ecs.ContainerImage",
|
12116 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
12117 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
12118 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
12119 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
12120 | "constructs.Construct"
|
12121 | ],
|
12122 | "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",
|
12123 | "syntaxKindCounter": {
|
12124 | "8": 2,
|
12125 | "10": 3,
|
12126 | "75": 12,
|
12127 | "104": 1,
|
12128 | "193": 2,
|
12129 | "194": 4,
|
12130 | "196": 2,
|
12131 | "197": 1,
|
12132 | "225": 2,
|
12133 | "242": 2,
|
12134 | "243": 2,
|
12135 | "281": 3
|
12136 | },
|
12137 | "fqnsFingerprint": "d22c35ca654332d845143a886d0258d76b4e1297ede7d674cd7e9e159587beda"
|
12138 | },
|
12139 | "6f490cc51ce655a2dd4eee525a8ed9216e242f0cb6043b6a3f8fa87f51620891": {
|
12140 | "translations": {
|
12141 | "python": {
|
12142 | "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)",
|
12143 | "version": "2"
|
12144 | },
|
12145 | "csharp": {
|
12146 | "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};",
|
12147 | "version": "1"
|
12148 | },
|
12149 | "java": {
|
12150 | "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();",
|
12151 | "version": "1"
|
12152 | },
|
12153 | "go": {
|
12154 | "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}",
|
12155 | "version": "1"
|
12156 | },
|
12157 | "$": {
|
12158 | "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};",
|
12159 | "version": "0"
|
12160 | }
|
12161 | },
|
12162 | "location": {
|
12163 | "api": {
|
12164 | "api": "type",
|
12165 | "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinitionAttributes"
|
12166 | },
|
12167 | "field": {
|
12168 | "field": "example"
|
12169 | }
|
12170 | },
|
12171 | "didCompile": true,
|
12172 | "fqnsReferenced": [
|
12173 | "@aws-cdk/aws-ecs.FargateTaskDefinitionAttributes",
|
12174 | "@aws-cdk/aws-ecs.NetworkMode",
|
12175 | "@aws-cdk/aws-ecs.NetworkMode#NONE",
|
12176 | "@aws-cdk/aws-iam.IRole"
|
12177 | ],
|
12178 | "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} }",
|
12179 | "syntaxKindCounter": {
|
12180 | "10": 3,
|
12181 | "75": 15,
|
12182 | "130": 1,
|
12183 | "153": 2,
|
12184 | "169": 2,
|
12185 | "193": 1,
|
12186 | "194": 2,
|
12187 | "225": 2,
|
12188 | "242": 2,
|
12189 | "243": 2,
|
12190 | "254": 2,
|
12191 | "255": 2,
|
12192 | "256": 2,
|
12193 | "281": 3,
|
12194 | "290": 1
|
12195 | },
|
12196 | "fqnsFingerprint": "9bf57e1e4ac6af4d1990980e8813c9d544919eb49ffef200f0b15e56c1b2a5d3"
|
12197 | },
|
12198 | "4bbc8b5fcd4fff5bdc4f258ac1236fb96d26cb4d30eb27d943f223bb419e2a39": {
|
12199 | "translations": {
|
12200 | "python": {
|
12201 | "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)",
|
12202 | "version": "2"
|
12203 | },
|
12204 | "csharp": {
|
12205 | "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});",
|
12206 | "version": "1"
|
12207 | },
|
12208 | "java": {
|
12209 | "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());",
|
12210 | "version": "1"
|
12211 | },
|
12212 | "go": {
|
12213 | "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})",
|
12214 | "version": "1"
|
12215 | },
|
12216 | "$": {
|
12217 | "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});",
|
12218 | "version": "0"
|
12219 | }
|
12220 | },
|
12221 | "location": {
|
12222 | "api": {
|
12223 | "api": "type",
|
12224 | "fqn": "@aws-cdk/aws-ecs.FargateTaskDefinitionProps"
|
12225 | },
|
12226 | "field": {
|
12227 | "field": "example"
|
12228 | }
|
12229 | },
|
12230 | "didCompile": true,
|
12231 | "fqnsReferenced": [
|
12232 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
12233 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
12234 | "@aws-cdk/aws-ecs.ContainerImage",
|
12235 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
12236 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
12237 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
12238 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
12239 | "constructs.Construct"
|
12240 | ],
|
12241 | "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",
|
12242 | "syntaxKindCounter": {
|
12243 | "8": 2,
|
12244 | "10": 3,
|
12245 | "75": 12,
|
12246 | "104": 1,
|
12247 | "193": 2,
|
12248 | "194": 4,
|
12249 | "196": 2,
|
12250 | "197": 1,
|
12251 | "225": 2,
|
12252 | "242": 2,
|
12253 | "243": 2,
|
12254 | "281": 3
|
12255 | },
|
12256 | "fqnsFingerprint": "d22c35ca654332d845143a886d0258d76b4e1297ede7d674cd7e9e159587beda"
|
12257 | },
|
12258 | "556de94e823b0560b2140b8d15726642387d05425d08f3aa217dc64b1f5602bf": {
|
12259 | "translations": {
|
12260 | "python": {
|
12261 | "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)",
|
12262 | "version": "2"
|
12263 | },
|
12264 | "csharp": {
|
12265 | "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});",
|
12266 | "version": "1"
|
12267 | },
|
12268 | "java": {
|
12269 | "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();",
|
12270 | "version": "1"
|
12271 | },
|
12272 | "go": {
|
12273 | "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})",
|
12274 | "version": "1"
|
12275 | },
|
12276 | "$": {
|
12277 | "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});",
|
12278 | "version": "0"
|
12279 | }
|
12280 | },
|
12281 | "location": {
|
12282 | "api": {
|
12283 | "api": "type",
|
12284 | "fqn": "@aws-cdk/aws-ecs.FireLensLogDriver"
|
12285 | },
|
12286 | "field": {
|
12287 | "field": "example"
|
12288 | }
|
12289 | },
|
12290 | "didCompile": true,
|
12291 | "fqnsReferenced": [
|
12292 | "@aws-cdk/aws-ecs.FireLensLogDriver",
|
12293 | "@aws-cdk/aws-ecs.FireLensLogDriverProps",
|
12294 | "@aws-cdk/aws-ecs.Secret"
|
12295 | ],
|
12296 | "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} }",
|
12297 | "syntaxKindCounter": {
|
12298 | "10": 6,
|
12299 | "75": 16,
|
12300 | "130": 1,
|
12301 | "153": 1,
|
12302 | "169": 1,
|
12303 | "192": 2,
|
12304 | "193": 3,
|
12305 | "194": 1,
|
12306 | "197": 1,
|
12307 | "225": 2,
|
12308 | "242": 2,
|
12309 | "243": 2,
|
12310 | "254": 1,
|
12311 | "255": 1,
|
12312 | "256": 1,
|
12313 | "281": 8,
|
12314 | "290": 1
|
12315 | },
|
12316 | "fqnsFingerprint": "ec1d3be270eaaeb7e12f1d7316be0f885db52a8147a2e81413695df613eb11c5"
|
12317 | },
|
12318 | "ad1d9cf5e378d866c80889112ae52e89f76d1ef3f676c9c0c8f119f0ed72a59f": {
|
12319 | "translations": {
|
12320 | "python": {
|
12321 | "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)",
|
12322 | "version": "2"
|
12323 | },
|
12324 | "csharp": {
|
12325 | "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});",
|
12326 | "version": "1"
|
12327 | },
|
12328 | "java": {
|
12329 | "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());",
|
12330 | "version": "1"
|
12331 | },
|
12332 | "go": {
|
12333 | "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})",
|
12334 | "version": "1"
|
12335 | },
|
12336 | "$": {
|
12337 | "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});",
|
12338 | "version": "0"
|
12339 | }
|
12340 | },
|
12341 | "location": {
|
12342 | "api": {
|
12343 | "api": "type",
|
12344 | "fqn": "@aws-cdk/aws-ecs.FireLensLogDriverProps"
|
12345 | },
|
12346 | "field": {
|
12347 | "field": "example"
|
12348 | }
|
12349 | },
|
12350 | "didCompile": true,
|
12351 | "fqnsReferenced": [
|
12352 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
12353 | "@aws-cdk/aws-ecs.ContainerImage",
|
12354 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
12355 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
12356 | "@aws-cdk/aws-ecs.FireLensLogDriverProps",
|
12357 | "@aws-cdk/aws-ecs.LogDriver",
|
12358 | "@aws-cdk/aws-ecs.LogDrivers",
|
12359 | "@aws-cdk/aws-ecs.LogDrivers#firelens",
|
12360 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
12361 | "constructs.Construct"
|
12362 | ],
|
12363 | "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",
|
12364 | "syntaxKindCounter": {
|
12365 | "8": 1,
|
12366 | "10": 6,
|
12367 | "75": 18,
|
12368 | "104": 1,
|
12369 | "193": 3,
|
12370 | "194": 6,
|
12371 | "196": 3,
|
12372 | "197": 1,
|
12373 | "225": 1,
|
12374 | "226": 1,
|
12375 | "242": 1,
|
12376 | "243": 1,
|
12377 | "281": 7
|
12378 | },
|
12379 | "fqnsFingerprint": "1c5e0e4b3fb4f990296c877276a51b33acaf13399efb7cce0140b98728b94685"
|
12380 | },
|
12381 | "22d201e63b7b9aed770c4744186677f0c7f53e6802e9e8ddc4ae1389ec05d470": {
|
12382 | "translations": {
|
12383 | "python": {
|
12384 | "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)",
|
12385 | "version": "2"
|
12386 | },
|
12387 | "csharp": {
|
12388 | "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};",
|
12389 | "version": "1"
|
12390 | },
|
12391 | "java": {
|
12392 | "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();",
|
12393 | "version": "1"
|
12394 | },
|
12395 | "go": {
|
12396 | "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}",
|
12397 | "version": "1"
|
12398 | },
|
12399 | "$": {
|
12400 | "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};",
|
12401 | "version": "0"
|
12402 | }
|
12403 | },
|
12404 | "location": {
|
12405 | "api": {
|
12406 | "api": "type",
|
12407 | "fqn": "@aws-cdk/aws-ecs.FirelensConfig"
|
12408 | },
|
12409 | "field": {
|
12410 | "field": "example"
|
12411 | }
|
12412 | },
|
12413 | "didCompile": true,
|
12414 | "fqnsReferenced": [
|
12415 | "@aws-cdk/aws-ecs.FirelensConfig",
|
12416 | "@aws-cdk/aws-ecs.FirelensConfigFileType",
|
12417 | "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
|
12418 | "@aws-cdk/aws-ecs.FirelensLogRouterType",
|
12419 | "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
|
12420 | "@aws-cdk/aws-ecs.FirelensOptions"
|
12421 | ],
|
12422 | "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} }",
|
12423 | "syntaxKindCounter": {
|
12424 | "10": 2,
|
12425 | "75": 15,
|
12426 | "91": 1,
|
12427 | "153": 1,
|
12428 | "169": 1,
|
12429 | "193": 2,
|
12430 | "194": 4,
|
12431 | "225": 1,
|
12432 | "242": 1,
|
12433 | "243": 1,
|
12434 | "254": 1,
|
12435 | "255": 1,
|
12436 | "256": 1,
|
12437 | "281": 5,
|
12438 | "290": 1
|
12439 | },
|
12440 | "fqnsFingerprint": "4b4b101fa42150f58bd8fc020aab1ac2465c8e09b781e65421d27b255482c7f2"
|
12441 | },
|
12442 | "b5098aa4940963ec0875e3bd4127535d5af72bc0c9851d7ee20800c72b532595": {
|
12443 | "translations": {
|
12444 | "python": {
|
12445 | "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)",
|
12446 | "version": "2"
|
12447 | },
|
12448 | "csharp": {
|
12449 | "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});",
|
12450 | "version": "1"
|
12451 | },
|
12452 | "java": {
|
12453 | "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();",
|
12454 | "version": "1"
|
12455 | },
|
12456 | "go": {
|
12457 | "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})",
|
12458 | "version": "1"
|
12459 | },
|
12460 | "$": {
|
12461 | "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});",
|
12462 | "version": "0"
|
12463 | }
|
12464 | },
|
12465 | "location": {
|
12466 | "api": {
|
12467 | "api": "type",
|
12468 | "fqn": "@aws-cdk/aws-ecs.FirelensLogRouter"
|
12469 | },
|
12470 | "field": {
|
12471 | "field": "example"
|
12472 | }
|
12473 | },
|
12474 | "didCompile": true,
|
12475 | "fqnsReferenced": [
|
12476 | "@aws-cdk/aws-ecs.ContainerImage",
|
12477 | "@aws-cdk/aws-ecs.FirelensConfig",
|
12478 | "@aws-cdk/aws-ecs.FirelensConfigFileType",
|
12479 | "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
|
12480 | "@aws-cdk/aws-ecs.FirelensLogRouter",
|
12481 | "@aws-cdk/aws-ecs.FirelensLogRouterProps",
|
12482 | "@aws-cdk/aws-ecs.FirelensLogRouterType",
|
12483 | "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
|
12484 | "@aws-cdk/aws-ecs.FirelensOptions",
|
12485 | "@aws-cdk/aws-ecs.HealthCheck",
|
12486 | "@aws-cdk/aws-ecs.LinuxParameters",
|
12487 | "@aws-cdk/aws-ecs.LogDriver",
|
12488 | "@aws-cdk/aws-ecs.Protocol",
|
12489 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
12490 | "@aws-cdk/aws-ecs.Secret",
|
12491 | "@aws-cdk/aws-ecs.TaskDefinition",
|
12492 | "@aws-cdk/core.Duration",
|
12493 | "@aws-cdk/core.Duration#minutes",
|
12494 | "constructs.Construct"
|
12495 | ],
|
12496 | "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} }",
|
12497 | "syntaxKindCounter": {
|
12498 | "8": 12,
|
12499 | "10": 20,
|
12500 | "75": 105,
|
12501 | "91": 5,
|
12502 | "104": 1,
|
12503 | "130": 6,
|
12504 | "153": 6,
|
12505 | "169": 6,
|
12506 | "192": 10,
|
12507 | "193": 10,
|
12508 | "194": 17,
|
12509 | "196": 5,
|
12510 | "197": 1,
|
12511 | "225": 7,
|
12512 | "242": 7,
|
12513 | "243": 7,
|
12514 | "254": 2,
|
12515 | "255": 2,
|
12516 | "256": 2,
|
12517 | "281": 52,
|
12518 | "290": 1
|
12519 | },
|
12520 | "fqnsFingerprint": "6eea1627491dcc7cbbdf135924107c4bc6b80c7d3ffcc5e5f6183d24cf053044"
|
12521 | },
|
12522 | "b4677f3339b42b300c72f8e734ae0758d9254836ff6a61367d09950d863abdf2": {
|
12523 | "translations": {
|
12524 | "python": {
|
12525 | "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)",
|
12526 | "version": "2"
|
12527 | },
|
12528 | "csharp": {
|
12529 | "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};",
|
12530 | "version": "1"
|
12531 | },
|
12532 | "java": {
|
12533 | "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();",
|
12534 | "version": "1"
|
12535 | },
|
12536 | "go": {
|
12537 | "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}",
|
12538 | "version": "1"
|
12539 | },
|
12540 | "$": {
|
12541 | "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};",
|
12542 | "version": "0"
|
12543 | }
|
12544 | },
|
12545 | "location": {
|
12546 | "api": {
|
12547 | "api": "type",
|
12548 | "fqn": "@aws-cdk/aws-ecs.FirelensLogRouterDefinitionOptions"
|
12549 | },
|
12550 | "field": {
|
12551 | "field": "example"
|
12552 | }
|
12553 | },
|
12554 | "didCompile": true,
|
12555 | "fqnsReferenced": [
|
12556 | "@aws-cdk/aws-ecs.ContainerImage",
|
12557 | "@aws-cdk/aws-ecs.FirelensConfig",
|
12558 | "@aws-cdk/aws-ecs.FirelensConfigFileType",
|
12559 | "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
|
12560 | "@aws-cdk/aws-ecs.FirelensLogRouterDefinitionOptions",
|
12561 | "@aws-cdk/aws-ecs.FirelensLogRouterType",
|
12562 | "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
|
12563 | "@aws-cdk/aws-ecs.FirelensOptions",
|
12564 | "@aws-cdk/aws-ecs.HealthCheck",
|
12565 | "@aws-cdk/aws-ecs.LinuxParameters",
|
12566 | "@aws-cdk/aws-ecs.LogDriver",
|
12567 | "@aws-cdk/aws-ecs.Protocol",
|
12568 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
12569 | "@aws-cdk/aws-ecs.Secret",
|
12570 | "@aws-cdk/core.Duration",
|
12571 | "@aws-cdk/core.Duration#minutes"
|
12572 | ],
|
12573 | "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} }",
|
12574 | "syntaxKindCounter": {
|
12575 | "8": 12,
|
12576 | "10": 19,
|
12577 | "75": 100,
|
12578 | "91": 5,
|
12579 | "130": 5,
|
12580 | "153": 6,
|
12581 | "169": 6,
|
12582 | "192": 10,
|
12583 | "193": 10,
|
12584 | "194": 16,
|
12585 | "196": 5,
|
12586 | "225": 6,
|
12587 | "242": 6,
|
12588 | "243": 6,
|
12589 | "254": 2,
|
12590 | "255": 2,
|
12591 | "256": 2,
|
12592 | "281": 51,
|
12593 | "290": 1
|
12594 | },
|
12595 | "fqnsFingerprint": "392b91257d9c416943f08936aaeef5123d559e879f853cb999c18c659506cacd"
|
12596 | },
|
12597 | "83a350f9429ae652165ac96c619669e54defa4b4ef6bc05151f8fb793f453a5f": {
|
12598 | "translations": {
|
12599 | "python": {
|
12600 | "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)",
|
12601 | "version": "2"
|
12602 | },
|
12603 | "csharp": {
|
12604 | "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};",
|
12605 | "version": "1"
|
12606 | },
|
12607 | "java": {
|
12608 | "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();",
|
12609 | "version": "1"
|
12610 | },
|
12611 | "go": {
|
12612 | "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}",
|
12613 | "version": "1"
|
12614 | },
|
12615 | "$": {
|
12616 | "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};",
|
12617 | "version": "0"
|
12618 | }
|
12619 | },
|
12620 | "location": {
|
12621 | "api": {
|
12622 | "api": "type",
|
12623 | "fqn": "@aws-cdk/aws-ecs.FirelensLogRouterProps"
|
12624 | },
|
12625 | "field": {
|
12626 | "field": "example"
|
12627 | }
|
12628 | },
|
12629 | "didCompile": true,
|
12630 | "fqnsReferenced": [
|
12631 | "@aws-cdk/aws-ecs.ContainerImage",
|
12632 | "@aws-cdk/aws-ecs.FirelensConfig",
|
12633 | "@aws-cdk/aws-ecs.FirelensConfigFileType",
|
12634 | "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
|
12635 | "@aws-cdk/aws-ecs.FirelensLogRouterProps",
|
12636 | "@aws-cdk/aws-ecs.FirelensLogRouterType",
|
12637 | "@aws-cdk/aws-ecs.FirelensLogRouterType#FLUENTBIT",
|
12638 | "@aws-cdk/aws-ecs.FirelensOptions",
|
12639 | "@aws-cdk/aws-ecs.HealthCheck",
|
12640 | "@aws-cdk/aws-ecs.LinuxParameters",
|
12641 | "@aws-cdk/aws-ecs.LogDriver",
|
12642 | "@aws-cdk/aws-ecs.Protocol",
|
12643 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
12644 | "@aws-cdk/aws-ecs.Secret",
|
12645 | "@aws-cdk/aws-ecs.TaskDefinition",
|
12646 | "@aws-cdk/core.Duration",
|
12647 | "@aws-cdk/core.Duration#minutes"
|
12648 | ],
|
12649 | "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} }",
|
12650 | "syntaxKindCounter": {
|
12651 | "8": 12,
|
12652 | "10": 19,
|
12653 | "75": 105,
|
12654 | "91": 5,
|
12655 | "130": 6,
|
12656 | "153": 7,
|
12657 | "169": 7,
|
12658 | "192": 10,
|
12659 | "193": 10,
|
12660 | "194": 16,
|
12661 | "196": 5,
|
12662 | "225": 7,
|
12663 | "242": 7,
|
12664 | "243": 7,
|
12665 | "254": 2,
|
12666 | "255": 2,
|
12667 | "256": 2,
|
12668 | "281": 52,
|
12669 | "290": 1
|
12670 | },
|
12671 | "fqnsFingerprint": "a4ce73c68a17ac6f0e2a477a5456241bb6a6b47f7ed323a810468b07201eff1d"
|
12672 | },
|
12673 | "00e70803ad8a2d5994cfa6dba3cd90726f95315ac519853f7f833a93617eaeae": {
|
12674 | "translations": {
|
12675 | "python": {
|
12676 | "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)",
|
12677 | "version": "2"
|
12678 | },
|
12679 | "csharp": {
|
12680 | "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};",
|
12681 | "version": "1"
|
12682 | },
|
12683 | "java": {
|
12684 | "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();",
|
12685 | "version": "1"
|
12686 | },
|
12687 | "go": {
|
12688 | "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}",
|
12689 | "version": "1"
|
12690 | },
|
12691 | "$": {
|
12692 | "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};",
|
12693 | "version": "0"
|
12694 | }
|
12695 | },
|
12696 | "location": {
|
12697 | "api": {
|
12698 | "api": "type",
|
12699 | "fqn": "@aws-cdk/aws-ecs.FirelensOptions"
|
12700 | },
|
12701 | "field": {
|
12702 | "field": "example"
|
12703 | }
|
12704 | },
|
12705 | "didCompile": true,
|
12706 | "fqnsReferenced": [
|
12707 | "@aws-cdk/aws-ecs.FirelensConfigFileType",
|
12708 | "@aws-cdk/aws-ecs.FirelensConfigFileType#S3",
|
12709 | "@aws-cdk/aws-ecs.FirelensOptions"
|
12710 | ],
|
12711 | "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} }",
|
12712 | "syntaxKindCounter": {
|
12713 | "10": 2,
|
12714 | "75": 10,
|
12715 | "91": 1,
|
12716 | "153": 1,
|
12717 | "169": 1,
|
12718 | "193": 1,
|
12719 | "194": 2,
|
12720 | "225": 1,
|
12721 | "242": 1,
|
12722 | "243": 1,
|
12723 | "254": 1,
|
12724 | "255": 1,
|
12725 | "256": 1,
|
12726 | "281": 3,
|
12727 | "290": 1
|
12728 | },
|
12729 | "fqnsFingerprint": "95291f10cf5ca458ced13ba231935ff13a346d328fc0435b4909b1ea35f8899a"
|
12730 | },
|
12731 | "510e8e9fff47a983897cf05e969edfb4f214f61d12f8374d5955574349f8fa44": {
|
12732 | "translations": {
|
12733 | "python": {
|
12734 | "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)",
|
12735 | "version": "2"
|
12736 | },
|
12737 | "csharp": {
|
12738 | "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});",
|
12739 | "version": "1"
|
12740 | },
|
12741 | "java": {
|
12742 | "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();",
|
12743 | "version": "1"
|
12744 | },
|
12745 | "go": {
|
12746 | "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})",
|
12747 | "version": "1"
|
12748 | },
|
12749 | "$": {
|
12750 | "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});",
|
12751 | "version": "0"
|
12752 | }
|
12753 | },
|
12754 | "location": {
|
12755 | "api": {
|
12756 | "api": "type",
|
12757 | "fqn": "@aws-cdk/aws-ecs.FluentdLogDriver"
|
12758 | },
|
12759 | "field": {
|
12760 | "field": "example"
|
12761 | }
|
12762 | },
|
12763 | "didCompile": true,
|
12764 | "fqnsReferenced": [
|
12765 | "@aws-cdk/aws-ecs.FluentdLogDriver",
|
12766 | "@aws-cdk/aws-ecs.FluentdLogDriverProps",
|
12767 | "@aws-cdk/core.Duration",
|
12768 | "@aws-cdk/core.Duration#minutes"
|
12769 | ],
|
12770 | "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} }",
|
12771 | "syntaxKindCounter": {
|
12772 | "8": 3,
|
12773 | "10": 7,
|
12774 | "75": 18,
|
12775 | "91": 2,
|
12776 | "192": 2,
|
12777 | "193": 1,
|
12778 | "194": 3,
|
12779 | "196": 1,
|
12780 | "197": 1,
|
12781 | "225": 1,
|
12782 | "242": 1,
|
12783 | "243": 1,
|
12784 | "254": 2,
|
12785 | "255": 2,
|
12786 | "256": 2,
|
12787 | "281": 10,
|
12788 | "290": 1
|
12789 | },
|
12790 | "fqnsFingerprint": "6805aa440e041ba5cb2fc6eb5ceb02bec0beb8a50b3a12624447c2b9c528548b"
|
12791 | },
|
12792 | "2a7cd3e1e8c2f7961c5239404c6e6c906dfa7e173f49531a7351887269ed645e": {
|
12793 | "translations": {
|
12794 | "python": {
|
12795 | "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)",
|
12796 | "version": "2"
|
12797 | },
|
12798 | "csharp": {
|
12799 | "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};",
|
12800 | "version": "1"
|
12801 | },
|
12802 | "java": {
|
12803 | "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();",
|
12804 | "version": "1"
|
12805 | },
|
12806 | "go": {
|
12807 | "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}",
|
12808 | "version": "1"
|
12809 | },
|
12810 | "$": {
|
12811 | "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};",
|
12812 | "version": "0"
|
12813 | }
|
12814 | },
|
12815 | "location": {
|
12816 | "api": {
|
12817 | "api": "type",
|
12818 | "fqn": "@aws-cdk/aws-ecs.FluentdLogDriverProps"
|
12819 | },
|
12820 | "field": {
|
12821 | "field": "example"
|
12822 | }
|
12823 | },
|
12824 | "didCompile": true,
|
12825 | "fqnsReferenced": [
|
12826 | "@aws-cdk/aws-ecs.FluentdLogDriverProps",
|
12827 | "@aws-cdk/core.Duration",
|
12828 | "@aws-cdk/core.Duration#minutes"
|
12829 | ],
|
12830 | "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} }",
|
12831 | "syntaxKindCounter": {
|
12832 | "8": 3,
|
12833 | "10": 7,
|
12834 | "75": 18,
|
12835 | "91": 2,
|
12836 | "153": 1,
|
12837 | "169": 1,
|
12838 | "192": 2,
|
12839 | "193": 1,
|
12840 | "194": 2,
|
12841 | "196": 1,
|
12842 | "225": 1,
|
12843 | "242": 1,
|
12844 | "243": 1,
|
12845 | "254": 2,
|
12846 | "255": 2,
|
12847 | "256": 2,
|
12848 | "281": 10,
|
12849 | "290": 1
|
12850 | },
|
12851 | "fqnsFingerprint": "9288aa2b9756fe78821eff6618393b96f7a6c6d3f21ce97fcc47c67bf0cfb109"
|
12852 | },
|
12853 | "b87b9aea7bb29bffd81de30cea34248494aac8eed04454f3587cf9d551a3f9f2": {
|
12854 | "translations": {
|
12855 | "python": {
|
12856 | "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)",
|
12857 | "version": "2"
|
12858 | },
|
12859 | "csharp": {
|
12860 | "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});",
|
12861 | "version": "1"
|
12862 | },
|
12863 | "java": {
|
12864 | "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();",
|
12865 | "version": "1"
|
12866 | },
|
12867 | "go": {
|
12868 | "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})",
|
12869 | "version": "1"
|
12870 | },
|
12871 | "$": {
|
12872 | "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});",
|
12873 | "version": "0"
|
12874 | }
|
12875 | },
|
12876 | "location": {
|
12877 | "api": {
|
12878 | "api": "type",
|
12879 | "fqn": "@aws-cdk/aws-ecs.GelfLogDriver"
|
12880 | },
|
12881 | "field": {
|
12882 | "field": "example"
|
12883 | }
|
12884 | },
|
12885 | "didCompile": true,
|
12886 | "fqnsReferenced": [
|
12887 | "@aws-cdk/aws-ecs.GelfCompressionType",
|
12888 | "@aws-cdk/aws-ecs.GelfCompressionType#GZIP",
|
12889 | "@aws-cdk/aws-ecs.GelfLogDriver",
|
12890 | "@aws-cdk/aws-ecs.GelfLogDriverProps",
|
12891 | "@aws-cdk/core.Duration",
|
12892 | "@aws-cdk/core.Duration#minutes"
|
12893 | ],
|
12894 | "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} }",
|
12895 | "syntaxKindCounter": {
|
12896 | "8": 3,
|
12897 | "10": 7,
|
12898 | "75": 20,
|
12899 | "192": 2,
|
12900 | "193": 1,
|
12901 | "194": 5,
|
12902 | "196": 1,
|
12903 | "197": 1,
|
12904 | "225": 1,
|
12905 | "242": 1,
|
12906 | "243": 1,
|
12907 | "254": 2,
|
12908 | "255": 2,
|
12909 | "256": 2,
|
12910 | "281": 9,
|
12911 | "290": 1
|
12912 | },
|
12913 | "fqnsFingerprint": "8c96f31dedade763f122fcc4c332d8f9ed111df277a25ab43bbd89527479ab05"
|
12914 | },
|
12915 | "ad23da2151cd6a9cd5fbd5758825ea4168bc04a17a59338b4a838b140b7aa0c9": {
|
12916 | "translations": {
|
12917 | "python": {
|
12918 | "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)",
|
12919 | "version": "2"
|
12920 | },
|
12921 | "csharp": {
|
12922 | "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});",
|
12923 | "version": "1"
|
12924 | },
|
12925 | "java": {
|
12926 | "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());",
|
12927 | "version": "1"
|
12928 | },
|
12929 | "go": {
|
12930 | "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})",
|
12931 | "version": "1"
|
12932 | },
|
12933 | "$": {
|
12934 | "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});",
|
12935 | "version": "0"
|
12936 | }
|
12937 | },
|
12938 | "location": {
|
12939 | "api": {
|
12940 | "api": "type",
|
12941 | "fqn": "@aws-cdk/aws-ecs.GelfLogDriverProps"
|
12942 | },
|
12943 | "field": {
|
12944 | "field": "example"
|
12945 | }
|
12946 | },
|
12947 | "didCompile": true,
|
12948 | "fqnsReferenced": [
|
12949 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
12950 | "@aws-cdk/aws-ecs.ContainerImage",
|
12951 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
12952 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
12953 | "@aws-cdk/aws-ecs.GelfLogDriverProps",
|
12954 | "@aws-cdk/aws-ecs.LogDriver",
|
12955 | "@aws-cdk/aws-ecs.LogDrivers",
|
12956 | "@aws-cdk/aws-ecs.LogDrivers#gelf",
|
12957 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
12958 | "constructs.Construct"
|
12959 | ],
|
12960 | "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",
|
12961 | "syntaxKindCounter": {
|
12962 | "8": 1,
|
12963 | "10": 4,
|
12964 | "75": 15,
|
12965 | "104": 1,
|
12966 | "193": 2,
|
12967 | "194": 6,
|
12968 | "196": 3,
|
12969 | "197": 1,
|
12970 | "225": 1,
|
12971 | "226": 1,
|
12972 | "242": 1,
|
12973 | "243": 1,
|
12974 | "281": 4
|
12975 | },
|
12976 | "fqnsFingerprint": "d20c020e01f8c9a6768789fca4ceb112909f098a6ae7b8a6c92c1c4839e3f01f"
|
12977 | },
|
12978 | "f0ec578117406288c90de7e06cf2db1b5cdd52dcd7ff67af61e45435fa0efc5b": {
|
12979 | "translations": {
|
12980 | "python": {
|
12981 | "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)",
|
12982 | "version": "2"
|
12983 | },
|
12984 | "csharp": {
|
12985 | "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});",
|
12986 | "version": "1"
|
12987 | },
|
12988 | "java": {
|
12989 | "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());",
|
12990 | "version": "1"
|
12991 | },
|
12992 | "go": {
|
12993 | "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})",
|
12994 | "version": "1"
|
12995 | },
|
12996 | "$": {
|
12997 | "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});",
|
12998 | "version": "0"
|
12999 | }
|
13000 | },
|
13001 | "location": {
|
13002 | "api": {
|
13003 | "api": "type",
|
13004 | "fqn": "@aws-cdk/aws-ecs.GenericLogDriver"
|
13005 | },
|
13006 | "field": {
|
13007 | "field": "example"
|
13008 | }
|
13009 | },
|
13010 | "didCompile": true,
|
13011 | "fqnsReferenced": [
|
13012 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
13013 | "@aws-cdk/aws-ecs.ContainerImage",
|
13014 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
13015 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
13016 | "@aws-cdk/aws-ecs.GenericLogDriver",
|
13017 | "@aws-cdk/aws-ecs.GenericLogDriverProps",
|
13018 | "@aws-cdk/aws-ecs.LogDriver",
|
13019 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
13020 | "constructs.Construct"
|
13021 | ],
|
13022 | "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",
|
13023 | "syntaxKindCounter": {
|
13024 | "8": 1,
|
13025 | "10": 5,
|
13026 | "75": 16,
|
13027 | "104": 1,
|
13028 | "193": 3,
|
13029 | "194": 5,
|
13030 | "196": 2,
|
13031 | "197": 2,
|
13032 | "225": 1,
|
13033 | "226": 1,
|
13034 | "242": 1,
|
13035 | "243": 1,
|
13036 | "281": 6
|
13037 | },
|
13038 | "fqnsFingerprint": "a0eb315a4c35bbe830c09ff0c39dea0c0039a102338c33179238f0938d87f321"
|
13039 | },
|
13040 | "bb0122ad6769676caf70109677eb2757247573983626c2310515b7879502313c": {
|
13041 | "translations": {
|
13042 | "python": {
|
13043 | "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)",
|
13044 | "version": "2"
|
13045 | },
|
13046 | "csharp": {
|
13047 | "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});",
|
13048 | "version": "1"
|
13049 | },
|
13050 | "java": {
|
13051 | "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());",
|
13052 | "version": "1"
|
13053 | },
|
13054 | "go": {
|
13055 | "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})",
|
13056 | "version": "1"
|
13057 | },
|
13058 | "$": {
|
13059 | "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});",
|
13060 | "version": "0"
|
13061 | }
|
13062 | },
|
13063 | "location": {
|
13064 | "api": {
|
13065 | "api": "type",
|
13066 | "fqn": "@aws-cdk/aws-ecs.GenericLogDriverProps"
|
13067 | },
|
13068 | "field": {
|
13069 | "field": "example"
|
13070 | }
|
13071 | },
|
13072 | "didCompile": true,
|
13073 | "fqnsReferenced": [
|
13074 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
13075 | "@aws-cdk/aws-ecs.ContainerImage",
|
13076 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
13077 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
13078 | "@aws-cdk/aws-ecs.GenericLogDriver",
|
13079 | "@aws-cdk/aws-ecs.GenericLogDriverProps",
|
13080 | "@aws-cdk/aws-ecs.LogDriver",
|
13081 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
13082 | "constructs.Construct"
|
13083 | ],
|
13084 | "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",
|
13085 | "syntaxKindCounter": {
|
13086 | "8": 1,
|
13087 | "10": 5,
|
13088 | "75": 16,
|
13089 | "104": 1,
|
13090 | "193": 3,
|
13091 | "194": 5,
|
13092 | "196": 2,
|
13093 | "197": 2,
|
13094 | "225": 1,
|
13095 | "226": 1,
|
13096 | "242": 1,
|
13097 | "243": 1,
|
13098 | "281": 6
|
13099 | },
|
13100 | "fqnsFingerprint": "a0eb315a4c35bbe830c09ff0c39dea0c0039a102338c33179238f0938d87f321"
|
13101 | },
|
13102 | "948a0308a25e2eaf917dc08753bf5fafe85b362ab5fbdda293a6d0c7ed1ea423": {
|
13103 | "translations": {
|
13104 | "python": {
|
13105 | "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)",
|
13106 | "version": "2"
|
13107 | },
|
13108 | "csharp": {
|
13109 | "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});",
|
13110 | "version": "1"
|
13111 | },
|
13112 | "java": {
|
13113 | "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();",
|
13114 | "version": "1"
|
13115 | },
|
13116 | "go": {
|
13117 | "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})",
|
13118 | "version": "1"
|
13119 | },
|
13120 | "$": {
|
13121 | "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});",
|
13122 | "version": "0"
|
13123 | }
|
13124 | },
|
13125 | "location": {
|
13126 | "api": {
|
13127 | "api": "type",
|
13128 | "fqn": "@aws-cdk/aws-ecs.HealthCheck"
|
13129 | },
|
13130 | "field": {
|
13131 | "field": "example"
|
13132 | }
|
13133 | },
|
13134 | "didCompile": true,
|
13135 | "fqnsReferenced": [
|
13136 | "@aws-cdk/aws-ec2.IVpc",
|
13137 | "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateService",
|
13138 | "@aws-cdk/aws-ecs-patterns.QueueProcessingFargateServiceProps",
|
13139 | "@aws-cdk/aws-ecs.ContainerImage",
|
13140 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
13141 | "@aws-cdk/aws-ecs.HealthCheck",
|
13142 | "@aws-cdk/core.Duration",
|
13143 | "@aws-cdk/core.Duration#minutes",
|
13144 | "constructs.Construct"
|
13145 | ],
|
13146 | "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",
|
13147 | "syntaxKindCounter": {
|
13148 | "8": 5,
|
13149 | "10": 4,
|
13150 | "75": 27,
|
13151 | "104": 1,
|
13152 | "130": 2,
|
13153 | "153": 2,
|
13154 | "169": 2,
|
13155 | "192": 1,
|
13156 | "193": 2,
|
13157 | "194": 6,
|
13158 | "196": 4,
|
13159 | "197": 1,
|
13160 | "225": 3,
|
13161 | "242": 3,
|
13162 | "243": 3,
|
13163 | "281": 8,
|
13164 | "282": 1,
|
13165 | "290": 1
|
13166 | },
|
13167 | "fqnsFingerprint": "84364968643202494d2ff963ff84b126eaa509ed92fc8facd529ac4fdae253de"
|
13168 | },
|
13169 | "d230617113bb58334ad63e07f9734a5dbb483deb8515ee2a60e87b91e902374d": {
|
13170 | "translations": {
|
13171 | "python": {
|
13172 | "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)",
|
13173 | "version": "2"
|
13174 | },
|
13175 | "csharp": {
|
13176 | "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};",
|
13177 | "version": "1"
|
13178 | },
|
13179 | "java": {
|
13180 | "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();",
|
13181 | "version": "1"
|
13182 | },
|
13183 | "go": {
|
13184 | "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}",
|
13185 | "version": "1"
|
13186 | },
|
13187 | "$": {
|
13188 | "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};",
|
13189 | "version": "0"
|
13190 | }
|
13191 | },
|
13192 | "location": {
|
13193 | "api": {
|
13194 | "api": "type",
|
13195 | "fqn": "@aws-cdk/aws-ecs.Host"
|
13196 | },
|
13197 | "field": {
|
13198 | "field": "example"
|
13199 | }
|
13200 | },
|
13201 | "didCompile": true,
|
13202 | "fqnsReferenced": [
|
13203 | "@aws-cdk/aws-ecs.Host"
|
13204 | ],
|
13205 | "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} }",
|
13206 | "syntaxKindCounter": {
|
13207 | "10": 2,
|
13208 | "75": 5,
|
13209 | "153": 1,
|
13210 | "169": 1,
|
13211 | "193": 1,
|
13212 | "225": 1,
|
13213 | "242": 1,
|
13214 | "243": 1,
|
13215 | "254": 1,
|
13216 | "255": 1,
|
13217 | "256": 1,
|
13218 | "281": 1,
|
13219 | "290": 1
|
13220 | },
|
13221 | "fqnsFingerprint": "e98fdaccc8a34468e25704876b2d273d3980d667c6d6ce11245c8d5277c59e99"
|
13222 | },
|
13223 | "cb98602fcb7e6fd766004d36a16f4b3fe7e487f0c37f7f3741d0233abdbb2e94": {
|
13224 | "translations": {
|
13225 | "python": {
|
13226 | "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)",
|
13227 | "version": "2"
|
13228 | },
|
13229 | "csharp": {
|
13230 | "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};",
|
13231 | "version": "1"
|
13232 | },
|
13233 | "java": {
|
13234 | "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();",
|
13235 | "version": "1"
|
13236 | },
|
13237 | "go": {
|
13238 | "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}",
|
13239 | "version": "1"
|
13240 | },
|
13241 | "$": {
|
13242 | "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};",
|
13243 | "version": "0"
|
13244 | }
|
13245 | },
|
13246 | "location": {
|
13247 | "api": {
|
13248 | "api": "type",
|
13249 | "fqn": "@aws-cdk/aws-ecs.InferenceAccelerator"
|
13250 | },
|
13251 | "field": {
|
13252 | "field": "example"
|
13253 | }
|
13254 | },
|
13255 | "didCompile": true,
|
13256 | "fqnsReferenced": [
|
13257 | "@aws-cdk/aws-ecs.InferenceAccelerator"
|
13258 | ],
|
13259 | "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} }",
|
13260 | "syntaxKindCounter": {
|
13261 | "10": 3,
|
13262 | "75": 6,
|
13263 | "153": 1,
|
13264 | "169": 1,
|
13265 | "193": 1,
|
13266 | "225": 1,
|
13267 | "242": 1,
|
13268 | "243": 1,
|
13269 | "254": 1,
|
13270 | "255": 1,
|
13271 | "256": 1,
|
13272 | "281": 2,
|
13273 | "290": 1
|
13274 | },
|
13275 | "fqnsFingerprint": "6cbee6dc0d6196b5342b62ae2f9b754d1981ea25bc9ca7943a6e78b570b46cbb"
|
13276 | },
|
13277 | "2b4ab06529c619a61ba48d96e7efb32c611b18a728e48031280791156aeade60": {
|
13278 | "translations": {
|
13279 | "python": {
|
13280 | "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)",
|
13281 | "version": "2"
|
13282 | },
|
13283 | "csharp": {
|
13284 | "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});",
|
13285 | "version": "1"
|
13286 | },
|
13287 | "java": {
|
13288 | "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();",
|
13289 | "version": "1"
|
13290 | },
|
13291 | "go": {
|
13292 | "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})",
|
13293 | "version": "1"
|
13294 | },
|
13295 | "$": {
|
13296 | "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});",
|
13297 | "version": "0"
|
13298 | }
|
13299 | },
|
13300 | "location": {
|
13301 | "api": {
|
13302 | "api": "type",
|
13303 | "fqn": "@aws-cdk/aws-ecs.JournaldLogDriver"
|
13304 | },
|
13305 | "field": {
|
13306 | "field": "example"
|
13307 | }
|
13308 | },
|
13309 | "didCompile": true,
|
13310 | "fqnsReferenced": [
|
13311 | "@aws-cdk/aws-ecs.JournaldLogDriver",
|
13312 | "@aws-cdk/aws-ecs.JournaldLogDriverProps"
|
13313 | ],
|
13314 | "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} }",
|
13315 | "syntaxKindCounter": {
|
13316 | "10": 5,
|
13317 | "75": 8,
|
13318 | "192": 2,
|
13319 | "193": 1,
|
13320 | "194": 1,
|
13321 | "197": 1,
|
13322 | "225": 1,
|
13323 | "242": 1,
|
13324 | "243": 1,
|
13325 | "254": 1,
|
13326 | "255": 1,
|
13327 | "256": 1,
|
13328 | "281": 4,
|
13329 | "290": 1
|
13330 | },
|
13331 | "fqnsFingerprint": "8d8bd9d582ed57b8795a2fed96bfd3b457a0a0379bfe5cffbd56117eb421bffb"
|
13332 | },
|
13333 | "8052f2510fc66335f9baec986262012e28e07f0f1c710510659d632701bddb41": {
|
13334 | "translations": {
|
13335 | "python": {
|
13336 | "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)",
|
13337 | "version": "2"
|
13338 | },
|
13339 | "csharp": {
|
13340 | "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};",
|
13341 | "version": "1"
|
13342 | },
|
13343 | "java": {
|
13344 | "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();",
|
13345 | "version": "1"
|
13346 | },
|
13347 | "go": {
|
13348 | "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}",
|
13349 | "version": "1"
|
13350 | },
|
13351 | "$": {
|
13352 | "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};",
|
13353 | "version": "0"
|
13354 | }
|
13355 | },
|
13356 | "location": {
|
13357 | "api": {
|
13358 | "api": "type",
|
13359 | "fqn": "@aws-cdk/aws-ecs.JournaldLogDriverProps"
|
13360 | },
|
13361 | "field": {
|
13362 | "field": "example"
|
13363 | }
|
13364 | },
|
13365 | "didCompile": true,
|
13366 | "fqnsReferenced": [
|
13367 | "@aws-cdk/aws-ecs.JournaldLogDriverProps"
|
13368 | ],
|
13369 | "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} }",
|
13370 | "syntaxKindCounter": {
|
13371 | "10": 5,
|
13372 | "75": 8,
|
13373 | "153": 1,
|
13374 | "169": 1,
|
13375 | "192": 2,
|
13376 | "193": 1,
|
13377 | "225": 1,
|
13378 | "242": 1,
|
13379 | "243": 1,
|
13380 | "254": 1,
|
13381 | "255": 1,
|
13382 | "256": 1,
|
13383 | "281": 4,
|
13384 | "290": 1
|
13385 | },
|
13386 | "fqnsFingerprint": "055a639826112fb29463a551be5192d835f0560b50852d65ba7366f90cb682d8"
|
13387 | },
|
13388 | "cbd131f5e51118a8bce6128f62277b2f92f4ece5417876f83d50188964831c55": {
|
13389 | "translations": {
|
13390 | "python": {
|
13391 | "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)",
|
13392 | "version": "2"
|
13393 | },
|
13394 | "csharp": {
|
13395 | "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});",
|
13396 | "version": "1"
|
13397 | },
|
13398 | "java": {
|
13399 | "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();",
|
13400 | "version": "1"
|
13401 | },
|
13402 | "go": {
|
13403 | "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})",
|
13404 | "version": "1"
|
13405 | },
|
13406 | "$": {
|
13407 | "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});",
|
13408 | "version": "0"
|
13409 | }
|
13410 | },
|
13411 | "location": {
|
13412 | "api": {
|
13413 | "api": "type",
|
13414 | "fqn": "@aws-cdk/aws-ecs.JsonFileLogDriver"
|
13415 | },
|
13416 | "field": {
|
13417 | "field": "example"
|
13418 | }
|
13419 | },
|
13420 | "didCompile": true,
|
13421 | "fqnsReferenced": [
|
13422 | "@aws-cdk/aws-ecs.JsonFileLogDriver",
|
13423 | "@aws-cdk/aws-ecs.JsonFileLogDriverProps"
|
13424 | ],
|
13425 | "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} }",
|
13426 | "syntaxKindCounter": {
|
13427 | "8": 1,
|
13428 | "10": 6,
|
13429 | "75": 11,
|
13430 | "91": 1,
|
13431 | "192": 2,
|
13432 | "193": 1,
|
13433 | "194": 1,
|
13434 | "197": 1,
|
13435 | "225": 1,
|
13436 | "242": 1,
|
13437 | "243": 1,
|
13438 | "254": 1,
|
13439 | "255": 1,
|
13440 | "256": 1,
|
13441 | "281": 7,
|
13442 | "290": 1
|
13443 | },
|
13444 | "fqnsFingerprint": "aa57ffde020e11107f0e3aa7115071dbfdb0c4e7744cc53a051621b700e41e13"
|
13445 | },
|
13446 | "c8d449e0c0319739386bfb69344b1583ec87eead39fefae54575e10ec5ffc1c5": {
|
13447 | "translations": {
|
13448 | "python": {
|
13449 | "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)",
|
13450 | "version": "2"
|
13451 | },
|
13452 | "csharp": {
|
13453 | "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};",
|
13454 | "version": "1"
|
13455 | },
|
13456 | "java": {
|
13457 | "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();",
|
13458 | "version": "1"
|
13459 | },
|
13460 | "go": {
|
13461 | "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}",
|
13462 | "version": "1"
|
13463 | },
|
13464 | "$": {
|
13465 | "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};",
|
13466 | "version": "0"
|
13467 | }
|
13468 | },
|
13469 | "location": {
|
13470 | "api": {
|
13471 | "api": "type",
|
13472 | "fqn": "@aws-cdk/aws-ecs.JsonFileLogDriverProps"
|
13473 | },
|
13474 | "field": {
|
13475 | "field": "example"
|
13476 | }
|
13477 | },
|
13478 | "didCompile": true,
|
13479 | "fqnsReferenced": [
|
13480 | "@aws-cdk/aws-ecs.JsonFileLogDriverProps"
|
13481 | ],
|
13482 | "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} }",
|
13483 | "syntaxKindCounter": {
|
13484 | "8": 1,
|
13485 | "10": 6,
|
13486 | "75": 11,
|
13487 | "91": 1,
|
13488 | "153": 1,
|
13489 | "169": 1,
|
13490 | "192": 2,
|
13491 | "193": 1,
|
13492 | "225": 1,
|
13493 | "242": 1,
|
13494 | "243": 1,
|
13495 | "254": 1,
|
13496 | "255": 1,
|
13497 | "256": 1,
|
13498 | "281": 7,
|
13499 | "290": 1
|
13500 | },
|
13501 | "fqnsFingerprint": "9cabfc73bb6bce61ca77c79e95fd816e0ad4d6a4ab390321d246f4ffce78e5b7"
|
13502 | },
|
13503 | "f19eaacfbaa5e968d2bdcb6643bb59192e60bd543b6da43f6770d8c3e7e4ef68": {
|
13504 | "translations": {
|
13505 | "python": {
|
13506 | "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)",
|
13507 | "version": "2"
|
13508 | },
|
13509 | "csharp": {
|
13510 | "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});",
|
13511 | "version": "1"
|
13512 | },
|
13513 | "java": {
|
13514 | "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();",
|
13515 | "version": "1"
|
13516 | },
|
13517 | "go": {
|
13518 | "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})",
|
13519 | "version": "1"
|
13520 | },
|
13521 | "$": {
|
13522 | "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});",
|
13523 | "version": "0"
|
13524 | }
|
13525 | },
|
13526 | "location": {
|
13527 | "api": {
|
13528 | "api": "type",
|
13529 | "fqn": "@aws-cdk/aws-ecs.LinuxParameters"
|
13530 | },
|
13531 | "field": {
|
13532 | "field": "example"
|
13533 | }
|
13534 | },
|
13535 | "didCompile": true,
|
13536 | "fqnsReferenced": [
|
13537 | "@aws-cdk/aws-ecs.LinuxParameters",
|
13538 | "@aws-cdk/aws-ecs.LinuxParametersProps",
|
13539 | "constructs.Construct"
|
13540 | ],
|
13541 | "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} }",
|
13542 | "syntaxKindCounter": {
|
13543 | "8": 1,
|
13544 | "10": 2,
|
13545 | "75": 6,
|
13546 | "91": 1,
|
13547 | "104": 1,
|
13548 | "193": 1,
|
13549 | "194": 1,
|
13550 | "197": 1,
|
13551 | "225": 1,
|
13552 | "242": 1,
|
13553 | "243": 1,
|
13554 | "254": 1,
|
13555 | "255": 1,
|
13556 | "256": 1,
|
13557 | "281": 2,
|
13558 | "290": 1
|
13559 | },
|
13560 | "fqnsFingerprint": "8af0d6fa960b037ba1e7ae7a922eb92bff58243ab632ba8513c4d0460f6d0ad2"
|
13561 | },
|
13562 | "e7a07a46d8b0739f6ea571e43d76fad3eb74f1fd4019e821dded9c721272c0be": {
|
13563 | "translations": {
|
13564 | "python": {
|
13565 | "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)",
|
13566 | "version": "2"
|
13567 | },
|
13568 | "csharp": {
|
13569 | "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};",
|
13570 | "version": "1"
|
13571 | },
|
13572 | "java": {
|
13573 | "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();",
|
13574 | "version": "1"
|
13575 | },
|
13576 | "go": {
|
13577 | "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}",
|
13578 | "version": "1"
|
13579 | },
|
13580 | "$": {
|
13581 | "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};",
|
13582 | "version": "0"
|
13583 | }
|
13584 | },
|
13585 | "location": {
|
13586 | "api": {
|
13587 | "api": "type",
|
13588 | "fqn": "@aws-cdk/aws-ecs.LinuxParametersProps"
|
13589 | },
|
13590 | "field": {
|
13591 | "field": "example"
|
13592 | }
|
13593 | },
|
13594 | "didCompile": true,
|
13595 | "fqnsReferenced": [
|
13596 | "@aws-cdk/aws-ecs.LinuxParametersProps"
|
13597 | ],
|
13598 | "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} }",
|
13599 | "syntaxKindCounter": {
|
13600 | "8": 1,
|
13601 | "10": 1,
|
13602 | "75": 6,
|
13603 | "91": 1,
|
13604 | "153": 1,
|
13605 | "169": 1,
|
13606 | "193": 1,
|
13607 | "225": 1,
|
13608 | "242": 1,
|
13609 | "243": 1,
|
13610 | "254": 1,
|
13611 | "255": 1,
|
13612 | "256": 1,
|
13613 | "281": 2,
|
13614 | "290": 1
|
13615 | },
|
13616 | "fqnsFingerprint": "afdd90ba1839fb8035718aa464e4928c729327b9125dec65c35ec5f15dcba158"
|
13617 | },
|
13618 | "851eabd7aa21d46a3063bc232f859bb21d007c7776f35a6d10d45e723910e7a8": {
|
13619 | "translations": {
|
13620 | "python": {
|
13621 | "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)",
|
13622 | "version": "2"
|
13623 | },
|
13624 | "csharp": {
|
13625 | "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});",
|
13626 | "version": "1"
|
13627 | },
|
13628 | "java": {
|
13629 | "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());",
|
13630 | "version": "1"
|
13631 | },
|
13632 | "go": {
|
13633 | "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})",
|
13634 | "version": "1"
|
13635 | },
|
13636 | "$": {
|
13637 | "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);",
|
13638 | "version": "0"
|
13639 | }
|
13640 | },
|
13641 | "location": {
|
13642 | "api": {
|
13643 | "api": "type",
|
13644 | "fqn": "@aws-cdk/aws-ecs.ListenerConfig"
|
13645 | },
|
13646 | "field": {
|
13647 | "field": "example"
|
13648 | }
|
13649 | },
|
13650 | "didCompile": true,
|
13651 | "fqnsReferenced": [
|
13652 | "@aws-cdk/aws-ec2.IVpc",
|
13653 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
13654 | "@aws-cdk/aws-ecs.EcsTarget",
|
13655 | "@aws-cdk/aws-ecs.FargateService",
|
13656 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
13657 | "@aws-cdk/aws-ecs.ICluster",
|
13658 | "@aws-cdk/aws-ecs.ListenerConfig",
|
13659 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
13660 | "@aws-cdk/aws-ecs.TaskDefinition",
|
13661 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
13662 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
13663 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
13664 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
13665 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
13666 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
13667 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
|
13668 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
13669 | "constructs.Construct"
|
13670 | ],
|
13671 | "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",
|
13672 | "syntaxKindCounter": {
|
13673 | "8": 2,
|
13674 | "10": 5,
|
13675 | "75": 37,
|
13676 | "104": 2,
|
13677 | "106": 1,
|
13678 | "130": 3,
|
13679 | "153": 3,
|
13680 | "169": 3,
|
13681 | "193": 5,
|
13682 | "194": 8,
|
13683 | "196": 3,
|
13684 | "197": 2,
|
13685 | "225": 6,
|
13686 | "226": 1,
|
13687 | "242": 6,
|
13688 | "243": 6,
|
13689 | "281": 7,
|
13690 | "282": 3,
|
13691 | "290": 1
|
13692 | },
|
13693 | "fqnsFingerprint": "84e84a232d4d1659f379019316138f707df9fa005ac80fec15ca7227950a3c36"
|
13694 | },
|
13695 | "ce73e407fed0d5c5757f7a1121d1bbabe203ab543a6e33e951b10ba4a699b99e": {
|
13696 | "translations": {
|
13697 | "python": {
|
13698 | "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))",
|
13699 | "version": "2"
|
13700 | },
|
13701 | "csharp": {
|
13702 | "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}));",
|
13703 | "version": "1"
|
13704 | },
|
13705 | "java": {
|
13706 | "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()));",
|
13707 | "version": "1"
|
13708 | },
|
13709 | "go": {
|
13710 | "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}))",
|
13711 | "version": "1"
|
13712 | },
|
13713 | "$": {
|
13714 | "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}));",
|
13715 | "version": "0"
|
13716 | }
|
13717 | },
|
13718 | "location": {
|
13719 | "api": {
|
13720 | "api": "type",
|
13721 | "fqn": "@aws-cdk/aws-ecs.LoadBalancerTargetOptions"
|
13722 | },
|
13723 | "field": {
|
13724 | "field": "example"
|
13725 | }
|
13726 | },
|
13727 | "didCompile": true,
|
13728 | "fqnsReferenced": [
|
13729 | "@aws-cdk/aws-ec2.IVpc",
|
13730 | "@aws-cdk/aws-ecs.BaseService#loadBalancerTarget",
|
13731 | "@aws-cdk/aws-ecs.Ec2Service",
|
13732 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
13733 | "@aws-cdk/aws-ecs.ICluster",
|
13734 | "@aws-cdk/aws-ecs.LoadBalancerTargetOptions",
|
13735 | "@aws-cdk/aws-ecs.TaskDefinition",
|
13736 | "@aws-cdk/aws-elasticloadbalancing.ILoadBalancerTarget",
|
13737 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer",
|
13738 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addListener",
|
13739 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancer#addTarget",
|
13740 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerListener",
|
13741 | "@aws-cdk/aws-elasticloadbalancing.LoadBalancerProps",
|
13742 | "constructs.Construct"
|
13743 | ],
|
13744 | "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",
|
13745 | "syntaxKindCounter": {
|
13746 | "8": 2,
|
13747 | "10": 3,
|
13748 | "75": 27,
|
13749 | "104": 2,
|
13750 | "130": 3,
|
13751 | "153": 3,
|
13752 | "169": 3,
|
13753 | "193": 4,
|
13754 | "194": 5,
|
13755 | "196": 3,
|
13756 | "197": 2,
|
13757 | "225": 5,
|
13758 | "226": 2,
|
13759 | "242": 5,
|
13760 | "243": 5,
|
13761 | "281": 3,
|
13762 | "282": 3,
|
13763 | "290": 1
|
13764 | },
|
13765 | "fqnsFingerprint": "6bc0d017020f6665c0077063d1ff906f7a40156c62560423cc66913de5e67fc0"
|
13766 | },
|
13767 | "42b4e4c1d660edc839313dd59abfddbe44604b3fc6eb889cb498dac35c23a8e0": {
|
13768 | "translations": {
|
13769 | "python": {
|
13770 | "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)",
|
13771 | "version": "2"
|
13772 | },
|
13773 | "csharp": {
|
13774 | "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});",
|
13775 | "version": "1"
|
13776 | },
|
13777 | "java": {
|
13778 | "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());",
|
13779 | "version": "1"
|
13780 | },
|
13781 | "go": {
|
13782 | "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})",
|
13783 | "version": "1"
|
13784 | },
|
13785 | "$": {
|
13786 | "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});",
|
13787 | "version": "0"
|
13788 | }
|
13789 | },
|
13790 | "location": {
|
13791 | "api": {
|
13792 | "api": "type",
|
13793 | "fqn": "@aws-cdk/aws-ecs.LogDriver"
|
13794 | },
|
13795 | "field": {
|
13796 | "field": "example"
|
13797 | }
|
13798 | },
|
13799 | "didCompile": true,
|
13800 | "fqnsReferenced": [
|
13801 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
13802 | "@aws-cdk/aws-ecs.ContainerImage",
|
13803 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
13804 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
13805 | "@aws-cdk/aws-ecs.LogDriver",
|
13806 | "@aws-cdk/aws-ecs.LogDrivers",
|
13807 | "@aws-cdk/aws-ecs.LogDrivers#splunk",
|
13808 | "@aws-cdk/aws-ecs.SplunkLogDriverProps",
|
13809 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
13810 | "@aws-cdk/core.SecretValue",
|
13811 | "@aws-cdk/core.SecretValue#secretsManager",
|
13812 | "constructs.Construct"
|
13813 | ],
|
13814 | "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",
|
13815 | "syntaxKindCounter": {
|
13816 | "8": 1,
|
13817 | "10": 5,
|
13818 | "75": 18,
|
13819 | "104": 1,
|
13820 | "193": 2,
|
13821 | "194": 7,
|
13822 | "196": 4,
|
13823 | "197": 1,
|
13824 | "225": 1,
|
13825 | "226": 1,
|
13826 | "242": 1,
|
13827 | "243": 1,
|
13828 | "281": 5
|
13829 | },
|
13830 | "fqnsFingerprint": "cc52ba75bd1f879bd71c53c406c1153a9c413d079d8a8861c4c5a1b89e1ae96e"
|
13831 | },
|
13832 | "757e7b42b65a7bfb08a6b402d316dd6f4457e80cf8ed0b09f06efad02744c57d": {
|
13833 | "translations": {
|
13834 | "python": {
|
13835 | "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)",
|
13836 | "version": "2"
|
13837 | },
|
13838 | "csharp": {
|
13839 | "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};",
|
13840 | "version": "1"
|
13841 | },
|
13842 | "java": {
|
13843 | "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();",
|
13844 | "version": "1"
|
13845 | },
|
13846 | "go": {
|
13847 | "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}",
|
13848 | "version": "1"
|
13849 | },
|
13850 | "$": {
|
13851 | "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};",
|
13852 | "version": "0"
|
13853 | }
|
13854 | },
|
13855 | "location": {
|
13856 | "api": {
|
13857 | "api": "type",
|
13858 | "fqn": "@aws-cdk/aws-ecs.LogDriverConfig"
|
13859 | },
|
13860 | "field": {
|
13861 | "field": "example"
|
13862 | }
|
13863 | },
|
13864 | "didCompile": true,
|
13865 | "fqnsReferenced": [
|
13866 | "@aws-cdk/aws-ecs.LogDriverConfig"
|
13867 | ],
|
13868 | "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} }",
|
13869 | "syntaxKindCounter": {
|
13870 | "10": 5,
|
13871 | "75": 10,
|
13872 | "153": 1,
|
13873 | "169": 1,
|
13874 | "192": 1,
|
13875 | "193": 3,
|
13876 | "225": 1,
|
13877 | "242": 1,
|
13878 | "243": 1,
|
13879 | "254": 1,
|
13880 | "255": 1,
|
13881 | "256": 1,
|
13882 | "281": 6,
|
13883 | "290": 1
|
13884 | },
|
13885 | "fqnsFingerprint": "01de09163be162dda2c6e771f0f95eb9afff3fc6edea148aafb76e9bde6372b4"
|
13886 | },
|
13887 | "7f6d1ab20274608e5190b96e37455dd15ce27ee580582da7cc65411d270e1f1e": {
|
13888 | "translations": {
|
13889 | "python": {
|
13890 | "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)",
|
13891 | "version": "2"
|
13892 | },
|
13893 | "csharp": {
|
13894 | "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});",
|
13895 | "version": "1"
|
13896 | },
|
13897 | "java": {
|
13898 | "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());",
|
13899 | "version": "1"
|
13900 | },
|
13901 | "go": {
|
13902 | "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})",
|
13903 | "version": "1"
|
13904 | },
|
13905 | "$": {
|
13906 | "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});",
|
13907 | "version": "0"
|
13908 | }
|
13909 | },
|
13910 | "location": {
|
13911 | "api": {
|
13912 | "api": "type",
|
13913 | "fqn": "@aws-cdk/aws-ecs.LogDrivers"
|
13914 | },
|
13915 | "field": {
|
13916 | "field": "example"
|
13917 | }
|
13918 | },
|
13919 | "didCompile": true,
|
13920 | "fqnsReferenced": [
|
13921 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
13922 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
13923 | "@aws-cdk/aws-ecs.ContainerImage",
|
13924 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
13925 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
13926 | "@aws-cdk/aws-ecs.LogDriver",
|
13927 | "@aws-cdk/aws-ecs.LogDrivers",
|
13928 | "@aws-cdk/aws-ecs.LogDrivers#awsLogs",
|
13929 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
13930 | "constructs.Construct"
|
13931 | ],
|
13932 | "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",
|
13933 | "syntaxKindCounter": {
|
13934 | "8": 1,
|
13935 | "10": 4,
|
13936 | "75": 15,
|
13937 | "104": 1,
|
13938 | "193": 2,
|
13939 | "194": 6,
|
13940 | "196": 3,
|
13941 | "197": 1,
|
13942 | "225": 1,
|
13943 | "226": 1,
|
13944 | "242": 1,
|
13945 | "243": 1,
|
13946 | "281": 4
|
13947 | },
|
13948 | "fqnsFingerprint": "c256ffd66edc9eb5ce9f3b618216360b102894aa20a7cce4c3f398becc887005"
|
13949 | },
|
13950 | "91e54da8e04f45b09797eaab5495f038af58dfec1e4071dc492494895757b956": {
|
13951 | "translations": {
|
13952 | "python": {
|
13953 | "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)",
|
13954 | "version": "2"
|
13955 | },
|
13956 | "csharp": {
|
13957 | "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});",
|
13958 | "version": "1"
|
13959 | },
|
13960 | "java": {
|
13961 | "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());",
|
13962 | "version": "1"
|
13963 | },
|
13964 | "go": {
|
13965 | "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})",
|
13966 | "version": "1"
|
13967 | },
|
13968 | "$": {
|
13969 | "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});",
|
13970 | "version": "0"
|
13971 | }
|
13972 | },
|
13973 | "location": {
|
13974 | "api": {
|
13975 | "api": "type",
|
13976 | "fqn": "@aws-cdk/aws-ecs.MachineImageType"
|
13977 | },
|
13978 | "field": {
|
13979 | "field": "example"
|
13980 | }
|
13981 | },
|
13982 | "didCompile": true,
|
13983 | "fqnsReferenced": [
|
13984 | "@aws-cdk/aws-ec2.InstanceType",
|
13985 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
13986 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
13987 | "@aws-cdk/aws-ecs.MachineImageType",
|
13988 | "@aws-cdk/aws-ecs.MachineImageType#BOTTLEROCKET"
|
13989 | ],
|
13990 | "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",
|
13991 | "syntaxKindCounter": {
|
13992 | "8": 1,
|
13993 | "10": 2,
|
13994 | "75": 13,
|
13995 | "130": 1,
|
13996 | "153": 1,
|
13997 | "169": 1,
|
13998 | "193": 1,
|
13999 | "194": 4,
|
14000 | "196": 1,
|
14001 | "197": 1,
|
14002 | "225": 1,
|
14003 | "226": 1,
|
14004 | "242": 1,
|
14005 | "243": 1,
|
14006 | "281": 3,
|
14007 | "290": 1
|
14008 | },
|
14009 | "fqnsFingerprint": "d99ffcc96d4b3e0e92521d5ee475cd49febe66ecfeef321435004e8ff9ee7066"
|
14010 | },
|
14011 | "a804513d8f3d50125642a4ec22fe9dae7f9c3c098d7833b511d3718964f42205": {
|
14012 | "translations": {
|
14013 | "python": {
|
14014 | "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)",
|
14015 | "version": "2"
|
14016 | },
|
14017 | "csharp": {
|
14018 | "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});",
|
14019 | "version": "1"
|
14020 | },
|
14021 | "java": {
|
14022 | "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());",
|
14023 | "version": "1"
|
14024 | },
|
14025 | "go": {
|
14026 | "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})",
|
14027 | "version": "1"
|
14028 | },
|
14029 | "$": {
|
14030 | "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});",
|
14031 | "version": "0"
|
14032 | }
|
14033 | },
|
14034 | "location": {
|
14035 | "api": {
|
14036 | "api": "type",
|
14037 | "fqn": "@aws-cdk/aws-ecs.MemoryUtilizationScalingProps"
|
14038 | },
|
14039 | "field": {
|
14040 | "field": "example"
|
14041 | }
|
14042 | },
|
14043 | "didCompile": true,
|
14044 | "fqnsReferenced": [
|
14045 | "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
|
14046 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
|
14047 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService#service",
|
14048 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
|
14049 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
|
14050 | "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
|
14051 | "@aws-cdk/aws-ecs.ContainerImage",
|
14052 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14053 | "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
|
14054 | "@aws-cdk/aws-ecs.ICluster",
|
14055 | "@aws-cdk/aws-ecs.MemoryUtilizationScalingProps",
|
14056 | "@aws-cdk/aws-ecs.ScalableTaskCount",
|
14057 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
|
14058 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnMemoryUtilization",
|
14059 | "constructs.Construct"
|
14060 | ],
|
14061 | "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",
|
14062 | "syntaxKindCounter": {
|
14063 | "8": 7,
|
14064 | "10": 4,
|
14065 | "75": 27,
|
14066 | "104": 1,
|
14067 | "130": 1,
|
14068 | "153": 1,
|
14069 | "169": 1,
|
14070 | "193": 5,
|
14071 | "194": 7,
|
14072 | "196": 4,
|
14073 | "197": 1,
|
14074 | "225": 3,
|
14075 | "226": 2,
|
14076 | "242": 3,
|
14077 | "243": 3,
|
14078 | "281": 9,
|
14079 | "282": 1,
|
14080 | "290": 1
|
14081 | },
|
14082 | "fqnsFingerprint": "f72fa33e62cd5d5afd29a6f1caaed0852f8889d67afcad5f7092c6909b3398ac"
|
14083 | },
|
14084 | "671f4138ee0d02c7cc7fe9bb69d26a5b2e22d40e849625b0ccd5efd8fa2da0c7": {
|
14085 | "translations": {
|
14086 | "python": {
|
14087 | "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)",
|
14088 | "version": "2"
|
14089 | },
|
14090 | "csharp": {
|
14091 | "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};",
|
14092 | "version": "1"
|
14093 | },
|
14094 | "java": {
|
14095 | "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();",
|
14096 | "version": "1"
|
14097 | },
|
14098 | "go": {
|
14099 | "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}",
|
14100 | "version": "1"
|
14101 | },
|
14102 | "$": {
|
14103 | "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};",
|
14104 | "version": "0"
|
14105 | }
|
14106 | },
|
14107 | "location": {
|
14108 | "api": {
|
14109 | "api": "type",
|
14110 | "fqn": "@aws-cdk/aws-ecs.MountPoint"
|
14111 | },
|
14112 | "field": {
|
14113 | "field": "example"
|
14114 | }
|
14115 | },
|
14116 | "didCompile": true,
|
14117 | "fqnsReferenced": [
|
14118 | "@aws-cdk/aws-ecs.MountPoint"
|
14119 | ],
|
14120 | "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} }",
|
14121 | "syntaxKindCounter": {
|
14122 | "10": 3,
|
14123 | "75": 7,
|
14124 | "91": 1,
|
14125 | "153": 1,
|
14126 | "169": 1,
|
14127 | "193": 1,
|
14128 | "225": 1,
|
14129 | "242": 1,
|
14130 | "243": 1,
|
14131 | "254": 1,
|
14132 | "255": 1,
|
14133 | "256": 1,
|
14134 | "281": 3,
|
14135 | "290": 1
|
14136 | },
|
14137 | "fqnsFingerprint": "c853587d202e8f042d04b8093481fa8995cc3fb65c215f2a11ccfdcff98c4652"
|
14138 | },
|
14139 | "d2fe9772969825f45362f47d3b4b9da7a6daa4a93d7004d27c52f9230885e9b5": {
|
14140 | "translations": {
|
14141 | "python": {
|
14142 | "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)",
|
14143 | "version": "2"
|
14144 | },
|
14145 | "csharp": {
|
14146 | "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});",
|
14147 | "version": "1"
|
14148 | },
|
14149 | "java": {
|
14150 | "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());",
|
14151 | "version": "1"
|
14152 | },
|
14153 | "go": {
|
14154 | "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})",
|
14155 | "version": "1"
|
14156 | },
|
14157 | "$": {
|
14158 | "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});",
|
14159 | "version": "0"
|
14160 | }
|
14161 | },
|
14162 | "location": {
|
14163 | "api": {
|
14164 | "api": "type",
|
14165 | "fqn": "@aws-cdk/aws-ecs.NetworkMode"
|
14166 | },
|
14167 | "field": {
|
14168 | "field": "example"
|
14169 | }
|
14170 | },
|
14171 | "didCompile": true,
|
14172 | "fqnsReferenced": [
|
14173 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
14174 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
14175 | "@aws-cdk/aws-ecs.ContainerImage",
|
14176 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14177 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
14178 | "@aws-cdk/aws-ecs.Ec2TaskDefinitionProps",
|
14179 | "@aws-cdk/aws-ecs.NetworkMode",
|
14180 | "@aws-cdk/aws-ecs.NetworkMode#BRIDGE",
|
14181 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
14182 | "constructs.Construct"
|
14183 | ],
|
14184 | "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",
|
14185 | "syntaxKindCounter": {
|
14186 | "8": 1,
|
14187 | "10": 3,
|
14188 | "75": 15,
|
14189 | "104": 1,
|
14190 | "193": 2,
|
14191 | "194": 6,
|
14192 | "196": 2,
|
14193 | "197": 1,
|
14194 | "225": 2,
|
14195 | "242": 2,
|
14196 | "243": 2,
|
14197 | "281": 3
|
14198 | },
|
14199 | "fqnsFingerprint": "d71886caf7be59125886d6b28e666b9dc1ac30fcfaefd99577179d01db34235f"
|
14200 | },
|
14201 | "eb1954abb5f7ec66be17174547df7775ec32c28dc4d3d19d9583f6e66cd2a947": {
|
14202 | "translations": {
|
14203 | "python": {
|
14204 | "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)",
|
14205 | "version": "2"
|
14206 | },
|
14207 | "csharp": {
|
14208 | "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});",
|
14209 | "version": "1"
|
14210 | },
|
14211 | "java": {
|
14212 | "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());",
|
14213 | "version": "1"
|
14214 | },
|
14215 | "go": {
|
14216 | "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})",
|
14217 | "version": "1"
|
14218 | },
|
14219 | "$": {
|
14220 | "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});",
|
14221 | "version": "0"
|
14222 | }
|
14223 | },
|
14224 | "location": {
|
14225 | "api": {
|
14226 | "api": "type",
|
14227 | "fqn": "@aws-cdk/aws-ecs.OperatingSystemFamily"
|
14228 | },
|
14229 | "field": {
|
14230 | "field": "example"
|
14231 | }
|
14232 | },
|
14233 | "didCompile": true,
|
14234 | "fqnsReferenced": [
|
14235 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
14236 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
14237 | "@aws-cdk/aws-ecs.ContainerImage",
|
14238 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14239 | "@aws-cdk/aws-ecs.CpuArchitecture",
|
14240 | "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
|
14241 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
14242 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
14243 | "@aws-cdk/aws-ecs.LogDriver",
|
14244 | "@aws-cdk/aws-ecs.LogDriver#awsLogs",
|
14245 | "@aws-cdk/aws-ecs.OperatingSystemFamily",
|
14246 | "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
|
14247 | "@aws-cdk/aws-ecs.RuntimePlatform",
|
14248 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
14249 | "constructs.Construct"
|
14250 | ],
|
14251 | "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",
|
14252 | "syntaxKindCounter": {
|
14253 | "8": 3,
|
14254 | "10": 4,
|
14255 | "75": 27,
|
14256 | "104": 1,
|
14257 | "192": 1,
|
14258 | "193": 5,
|
14259 | "194": 10,
|
14260 | "196": 3,
|
14261 | "197": 1,
|
14262 | "225": 1,
|
14263 | "226": 1,
|
14264 | "242": 1,
|
14265 | "243": 1,
|
14266 | "281": 10
|
14267 | },
|
14268 | "fqnsFingerprint": "3df3a1e71685e51672ee7a5bb2dec2ef2f5eafa65ee5ae78ee18f76c30fc6c93"
|
14269 | },
|
14270 | "869883dcb9828c97eb6da6178206ef887a0852adfaf7fa79e4f1bbb1559f85a4": {
|
14271 | "translations": {
|
14272 | "python": {
|
14273 | "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)",
|
14274 | "version": "2"
|
14275 | },
|
14276 | "csharp": {
|
14277 | "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});",
|
14278 | "version": "1"
|
14279 | },
|
14280 | "java": {
|
14281 | "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();",
|
14282 | "version": "1"
|
14283 | },
|
14284 | "go": {
|
14285 | "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})",
|
14286 | "version": "1"
|
14287 | },
|
14288 | "$": {
|
14289 | "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});",
|
14290 | "version": "0"
|
14291 | }
|
14292 | },
|
14293 | "location": {
|
14294 | "api": {
|
14295 | "api": "type",
|
14296 | "fqn": "@aws-cdk/aws-ecs.PlacementConstraint"
|
14297 | },
|
14298 | "field": {
|
14299 | "field": "example"
|
14300 | }
|
14301 | },
|
14302 | "didCompile": true,
|
14303 | "fqnsReferenced": [
|
14304 | "@aws-cdk/aws-ec2.IVpc",
|
14305 | "@aws-cdk/aws-ec2.InstanceType",
|
14306 | "@aws-cdk/aws-ec2.SubnetSelection",
|
14307 | "@aws-cdk/aws-ec2.SubnetType",
|
14308 | "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
|
14309 | "@aws-cdk/aws-ec2.Vpc",
|
14310 | "@aws-cdk/aws-ec2.Vpc#fromLookup",
|
14311 | "@aws-cdk/aws-ec2.VpcLookupOptions",
|
14312 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
14313 | "@aws-cdk/aws-ecs.Cluster",
|
14314 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
14315 | "@aws-cdk/aws-ecs.ClusterProps",
|
14316 | "@aws-cdk/aws-ecs.Compatibility",
|
14317 | "@aws-cdk/aws-ecs.Compatibility#EC2",
|
14318 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
14319 | "@aws-cdk/aws-ecs.ContainerImage",
|
14320 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14321 | "@aws-cdk/aws-ecs.ICluster",
|
14322 | "@aws-cdk/aws-ecs.PlacementConstraint",
|
14323 | "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
|
14324 | "@aws-cdk/aws-ecs.PlacementStrategy",
|
14325 | "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
|
14326 | "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
|
14327 | "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
|
14328 | "@aws-cdk/aws-ecs.TaskDefinition",
|
14329 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
14330 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
14331 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
|
14332 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
|
14333 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
|
14334 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
|
14335 | "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
|
14336 | "@aws-cdk/aws-stepfunctions.IntegrationPattern",
|
14337 | "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
|
14338 | "constructs.Construct"
|
14339 | ],
|
14340 | "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",
|
14341 | "syntaxKindCounter": {
|
14342 | "8": 1,
|
14343 | "10": 9,
|
14344 | "75": 59,
|
14345 | "104": 4,
|
14346 | "106": 1,
|
14347 | "192": 2,
|
14348 | "193": 8,
|
14349 | "194": 25,
|
14350 | "196": 8,
|
14351 | "197": 5,
|
14352 | "225": 4,
|
14353 | "226": 2,
|
14354 | "242": 4,
|
14355 | "243": 4,
|
14356 | "281": 11,
|
14357 | "282": 3
|
14358 | },
|
14359 | "fqnsFingerprint": "f04254501bd105fbef26fa74f8a437e4ca808bdd379d2d939889e2d9bd8e207d"
|
14360 | },
|
14361 | "d396bbba1e5a2831295631fd34861f8e8f6cd150130f5c89fe348def479c676c": {
|
14362 | "translations": {
|
14363 | "python": {
|
14364 | "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)",
|
14365 | "version": "2"
|
14366 | },
|
14367 | "csharp": {
|
14368 | "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});",
|
14369 | "version": "1"
|
14370 | },
|
14371 | "java": {
|
14372 | "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();",
|
14373 | "version": "1"
|
14374 | },
|
14375 | "go": {
|
14376 | "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})",
|
14377 | "version": "1"
|
14378 | },
|
14379 | "$": {
|
14380 | "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});",
|
14381 | "version": "0"
|
14382 | }
|
14383 | },
|
14384 | "location": {
|
14385 | "api": {
|
14386 | "api": "type",
|
14387 | "fqn": "@aws-cdk/aws-ecs.PlacementStrategy"
|
14388 | },
|
14389 | "field": {
|
14390 | "field": "example"
|
14391 | }
|
14392 | },
|
14393 | "didCompile": true,
|
14394 | "fqnsReferenced": [
|
14395 | "@aws-cdk/aws-ec2.IVpc",
|
14396 | "@aws-cdk/aws-ec2.InstanceType",
|
14397 | "@aws-cdk/aws-ec2.SubnetSelection",
|
14398 | "@aws-cdk/aws-ec2.SubnetType",
|
14399 | "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
|
14400 | "@aws-cdk/aws-ec2.Vpc",
|
14401 | "@aws-cdk/aws-ec2.Vpc#fromLookup",
|
14402 | "@aws-cdk/aws-ec2.VpcLookupOptions",
|
14403 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
14404 | "@aws-cdk/aws-ecs.Cluster",
|
14405 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
14406 | "@aws-cdk/aws-ecs.ClusterProps",
|
14407 | "@aws-cdk/aws-ecs.Compatibility",
|
14408 | "@aws-cdk/aws-ecs.Compatibility#EC2",
|
14409 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
14410 | "@aws-cdk/aws-ecs.ContainerImage",
|
14411 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14412 | "@aws-cdk/aws-ecs.ICluster",
|
14413 | "@aws-cdk/aws-ecs.PlacementConstraint",
|
14414 | "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
|
14415 | "@aws-cdk/aws-ecs.PlacementStrategy",
|
14416 | "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
|
14417 | "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
|
14418 | "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
|
14419 | "@aws-cdk/aws-ecs.TaskDefinition",
|
14420 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
14421 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
14422 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
|
14423 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
|
14424 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
|
14425 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
|
14426 | "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
|
14427 | "@aws-cdk/aws-stepfunctions.IntegrationPattern",
|
14428 | "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
|
14429 | "constructs.Construct"
|
14430 | ],
|
14431 | "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",
|
14432 | "syntaxKindCounter": {
|
14433 | "8": 1,
|
14434 | "10": 9,
|
14435 | "75": 59,
|
14436 | "104": 4,
|
14437 | "106": 1,
|
14438 | "192": 2,
|
14439 | "193": 8,
|
14440 | "194": 25,
|
14441 | "196": 8,
|
14442 | "197": 5,
|
14443 | "225": 4,
|
14444 | "226": 2,
|
14445 | "242": 4,
|
14446 | "243": 4,
|
14447 | "281": 11,
|
14448 | "282": 3
|
14449 | },
|
14450 | "fqnsFingerprint": "f04254501bd105fbef26fa74f8a437e4ca808bdd379d2d939889e2d9bd8e207d"
|
14451 | },
|
14452 | "0e6246d6fc001f7dd4225dd025fe40e41a699223a478f08901ead30e03250092": {
|
14453 | "translations": {
|
14454 | "python": {
|
14455 | "source": "# container: ecs.ContainerDefinition\n\n\ncontainer.add_port_mappings(\n container_port=3000\n)",
|
14456 | "version": "2"
|
14457 | },
|
14458 | "csharp": {
|
14459 | "source": "ContainerDefinition container;\n\n\ncontainer.AddPortMappings(new PortMapping {\n ContainerPort = 3000\n});",
|
14460 | "version": "1"
|
14461 | },
|
14462 | "java": {
|
14463 | "source": "ContainerDefinition container;\n\n\ncontainer.addPortMappings(PortMapping.builder()\n .containerPort(3000)\n .build());",
|
14464 | "version": "1"
|
14465 | },
|
14466 | "go": {
|
14467 | "source": "var container containerDefinition\n\n\ncontainer.addPortMappings(&portMapping{\n\tcontainerPort: jsii.Number(3000),\n})",
|
14468 | "version": "1"
|
14469 | },
|
14470 | "$": {
|
14471 | "source": "declare const container: ecs.ContainerDefinition;\n\ncontainer.addPortMappings({\n containerPort: 3000,\n});",
|
14472 | "version": "0"
|
14473 | }
|
14474 | },
|
14475 | "location": {
|
14476 | "api": {
|
14477 | "api": "type",
|
14478 | "fqn": "@aws-cdk/aws-ecs.PortMapping"
|
14479 | },
|
14480 | "field": {
|
14481 | "field": "example"
|
14482 | }
|
14483 | },
|
14484 | "didCompile": true,
|
14485 | "fqnsReferenced": [
|
14486 | "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
|
14487 | "@aws-cdk/aws-ecs.PortMapping"
|
14488 | ],
|
14489 | "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",
|
14490 | "syntaxKindCounter": {
|
14491 | "8": 1,
|
14492 | "75": 6,
|
14493 | "130": 1,
|
14494 | "153": 1,
|
14495 | "169": 1,
|
14496 | "193": 1,
|
14497 | "194": 1,
|
14498 | "196": 1,
|
14499 | "225": 1,
|
14500 | "226": 1,
|
14501 | "242": 1,
|
14502 | "243": 1,
|
14503 | "281": 1,
|
14504 | "290": 1
|
14505 | },
|
14506 | "fqnsFingerprint": "2b1381460d33dca05f605d00e2868645bcb73c3bc3f5e7da230cc028b0ec8477"
|
14507 | },
|
14508 | "02f544b7881ee662f1e9d3747687d58064480e37dcbd7136b7c16ee7f5f81d15": {
|
14509 | "translations": {
|
14510 | "python": {
|
14511 | "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)",
|
14512 | "version": "2"
|
14513 | },
|
14514 | "csharp": {
|
14515 | "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});",
|
14516 | "version": "1"
|
14517 | },
|
14518 | "java": {
|
14519 | "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();",
|
14520 | "version": "1"
|
14521 | },
|
14522 | "go": {
|
14523 | "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})",
|
14524 | "version": "1"
|
14525 | },
|
14526 | "$": {
|
14527 | "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});",
|
14528 | "version": "0"
|
14529 | }
|
14530 | },
|
14531 | "location": {
|
14532 | "api": {
|
14533 | "api": "type",
|
14534 | "fqn": "@aws-cdk/aws-ecs.Protocol"
|
14535 | },
|
14536 | "field": {
|
14537 | "field": "example"
|
14538 | }
|
14539 | },
|
14540 | "didCompile": true,
|
14541 | "fqnsReferenced": [
|
14542 | "@aws-cdk/aws-ecs.CloudMapOptions",
|
14543 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
14544 | "@aws-cdk/aws-ecs.ContainerDefinition#addPortMappings",
|
14545 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
14546 | "@aws-cdk/aws-ecs.ContainerImage",
|
14547 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14548 | "@aws-cdk/aws-ecs.Ec2Service",
|
14549 | "@aws-cdk/aws-ecs.Ec2ServiceProps",
|
14550 | "@aws-cdk/aws-ecs.ICluster",
|
14551 | "@aws-cdk/aws-ecs.PortMapping",
|
14552 | "@aws-cdk/aws-ecs.Protocol",
|
14553 | "@aws-cdk/aws-ecs.Protocol#TCP",
|
14554 | "@aws-cdk/aws-ecs.TaskDefinition",
|
14555 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
14556 | "@aws-cdk/aws-servicediscovery.DnsRecordType",
|
14557 | "@aws-cdk/aws-servicediscovery.DnsRecordType#SRV",
|
14558 | "constructs.Construct"
|
14559 | ],
|
14560 | "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",
|
14561 | "syntaxKindCounter": {
|
14562 | "8": 3,
|
14563 | "10": 3,
|
14564 | "75": 33,
|
14565 | "104": 1,
|
14566 | "130": 2,
|
14567 | "153": 2,
|
14568 | "169": 2,
|
14569 | "193": 4,
|
14570 | "194": 9,
|
14571 | "196": 3,
|
14572 | "197": 1,
|
14573 | "225": 3,
|
14574 | "226": 2,
|
14575 | "242": 3,
|
14576 | "243": 3,
|
14577 | "281": 8,
|
14578 | "282": 2,
|
14579 | "290": 1
|
14580 | },
|
14581 | "fqnsFingerprint": "4f8f389b6b015497f64b9b5e88572b17edaed19cf8276005d362a4dbbb672c21"
|
14582 | },
|
14583 | "8deab92326ad20ee99af773f042921527ece895995a76f4caee475a84cb8fa1d": {
|
14584 | "translations": {
|
14585 | "python": {
|
14586 | "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()",
|
14587 | "version": "2"
|
14588 | },
|
14589 | "csharp": {
|
14590 | "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();",
|
14591 | "version": "1"
|
14592 | },
|
14593 | "java": {
|
14594 | "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();",
|
14595 | "version": "1"
|
14596 | },
|
14597 | "go": {
|
14598 | "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()",
|
14599 | "version": "1"
|
14600 | },
|
14601 | "$": {
|
14602 | "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();",
|
14603 | "version": "0"
|
14604 | }
|
14605 | },
|
14606 | "location": {
|
14607 | "api": {
|
14608 | "api": "type",
|
14609 | "fqn": "@aws-cdk/aws-ecs.ProxyConfigurations"
|
14610 | },
|
14611 | "field": {
|
14612 | "field": "example"
|
14613 | }
|
14614 | },
|
14615 | "didCompile": true,
|
14616 | "fqnsReferenced": [
|
14617 | "@aws-cdk/aws-ecs.ProxyConfigurations"
|
14618 | ],
|
14619 | "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} }",
|
14620 | "syntaxKindCounter": {
|
14621 | "10": 1,
|
14622 | "75": 4,
|
14623 | "194": 1,
|
14624 | "197": 1,
|
14625 | "225": 1,
|
14626 | "242": 1,
|
14627 | "243": 1,
|
14628 | "254": 1,
|
14629 | "255": 1,
|
14630 | "256": 1,
|
14631 | "290": 1
|
14632 | },
|
14633 | "fqnsFingerprint": "7d1487f151fa7d6468a469bea8cb02d54cdbdf7c994537ec0f8b620b2d4f97e9"
|
14634 | },
|
14635 | "cef0230d04447e16d35596f38b1ab987407fb09d8ba0537bea17e28b281ad7e8": {
|
14636 | "translations": {
|
14637 | "python": {
|
14638 | "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)",
|
14639 | "version": "2"
|
14640 | },
|
14641 | "csharp": {
|
14642 | "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);",
|
14643 | "version": "1"
|
14644 | },
|
14645 | "java": {
|
14646 | "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);",
|
14647 | "version": "1"
|
14648 | },
|
14649 | "go": {
|
14650 | "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)",
|
14651 | "version": "1"
|
14652 | },
|
14653 | "$": {
|
14654 | "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);",
|
14655 | "version": "0"
|
14656 | }
|
14657 | },
|
14658 | "location": {
|
14659 | "api": {
|
14660 | "api": "type",
|
14661 | "fqn": "@aws-cdk/aws-ecs.RepositoryImage"
|
14662 | },
|
14663 | "field": {
|
14664 | "field": "example"
|
14665 | }
|
14666 | },
|
14667 | "didCompile": true,
|
14668 | "fqnsReferenced": [
|
14669 | "@aws-cdk/aws-ecr-assets.DockerImageAsset",
|
14670 | "@aws-cdk/aws-ecs.ContainerImage",
|
14671 | "@aws-cdk/aws-ecs.ContainerImage#fromDockerImageAsset",
|
14672 | "@aws-cdk/aws-ecs.RepositoryImage"
|
14673 | ],
|
14674 | "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} }",
|
14675 | "syntaxKindCounter": {
|
14676 | "10": 2,
|
14677 | "75": 10,
|
14678 | "130": 1,
|
14679 | "153": 1,
|
14680 | "169": 1,
|
14681 | "194": 2,
|
14682 | "196": 1,
|
14683 | "225": 2,
|
14684 | "242": 2,
|
14685 | "243": 2,
|
14686 | "254": 2,
|
14687 | "255": 2,
|
14688 | "256": 2,
|
14689 | "290": 1
|
14690 | },
|
14691 | "fqnsFingerprint": "471155b3d7ae8ed8fff63fdb8f33dab66077276dc8524e2a1e28caaaa95028eb"
|
14692 | },
|
14693 | "bafc0265cb3dd66024fa85c50e4e93e9d55b55c35f7c7c99631c6aafa34216f7": {
|
14694 | "translations": {
|
14695 | "python": {
|
14696 | "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)",
|
14697 | "version": "2"
|
14698 | },
|
14699 | "csharp": {
|
14700 | "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};",
|
14701 | "version": "1"
|
14702 | },
|
14703 | "java": {
|
14704 | "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();",
|
14705 | "version": "1"
|
14706 | },
|
14707 | "go": {
|
14708 | "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}",
|
14709 | "version": "1"
|
14710 | },
|
14711 | "$": {
|
14712 | "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};",
|
14713 | "version": "0"
|
14714 | }
|
14715 | },
|
14716 | "location": {
|
14717 | "api": {
|
14718 | "api": "type",
|
14719 | "fqn": "@aws-cdk/aws-ecs.RepositoryImageProps"
|
14720 | },
|
14721 | "field": {
|
14722 | "field": "example"
|
14723 | }
|
14724 | },
|
14725 | "didCompile": true,
|
14726 | "fqnsReferenced": [
|
14727 | "@aws-cdk/aws-ecs.RepositoryImageProps",
|
14728 | "@aws-cdk/aws-secretsmanager.ISecret"
|
14729 | ],
|
14730 | "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} }",
|
14731 | "syntaxKindCounter": {
|
14732 | "10": 2,
|
14733 | "75": 10,
|
14734 | "130": 1,
|
14735 | "153": 2,
|
14736 | "169": 2,
|
14737 | "193": 1,
|
14738 | "225": 2,
|
14739 | "242": 2,
|
14740 | "243": 2,
|
14741 | "254": 2,
|
14742 | "255": 2,
|
14743 | "256": 2,
|
14744 | "281": 1,
|
14745 | "290": 1
|
14746 | },
|
14747 | "fqnsFingerprint": "379c469296dee4c7733e238ac5ce670ec4be8fc14a1f4e79db0aefa827b66e5e"
|
14748 | },
|
14749 | "6eac8eab02546b49a0db281f47a353c6206c5d7ec01894c84972815c5bed2998": {
|
14750 | "translations": {
|
14751 | "python": {
|
14752 | "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)",
|
14753 | "version": "2"
|
14754 | },
|
14755 | "csharp": {
|
14756 | "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});",
|
14757 | "version": "1"
|
14758 | },
|
14759 | "java": {
|
14760 | "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());",
|
14761 | "version": "1"
|
14762 | },
|
14763 | "go": {
|
14764 | "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})",
|
14765 | "version": "1"
|
14766 | },
|
14767 | "$": {
|
14768 | "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});",
|
14769 | "version": "0"
|
14770 | }
|
14771 | },
|
14772 | "location": {
|
14773 | "api": {
|
14774 | "api": "type",
|
14775 | "fqn": "@aws-cdk/aws-ecs.RequestCountScalingProps"
|
14776 | },
|
14777 | "field": {
|
14778 | "field": "example"
|
14779 | }
|
14780 | },
|
14781 | "didCompile": true,
|
14782 | "fqnsReferenced": [
|
14783 | "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
|
14784 | "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
|
14785 | "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
|
14786 | "@aws-cdk/aws-ecs.RequestCountScalingProps",
|
14787 | "@aws-cdk/aws-ecs.ScalableTaskCount",
|
14788 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
|
14789 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnRequestCount",
|
14790 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationTargetGroup"
|
14791 | ],
|
14792 | "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",
|
14793 | "syntaxKindCounter": {
|
14794 | "8": 3,
|
14795 | "10": 2,
|
14796 | "75": 18,
|
14797 | "130": 2,
|
14798 | "153": 2,
|
14799 | "169": 2,
|
14800 | "193": 3,
|
14801 | "194": 3,
|
14802 | "196": 3,
|
14803 | "225": 3,
|
14804 | "226": 2,
|
14805 | "242": 3,
|
14806 | "243": 3,
|
14807 | "281": 4,
|
14808 | "290": 1
|
14809 | },
|
14810 | "fqnsFingerprint": "8d4751b231da14565f67592808cf526c6f95b38b6a992d919f43df3d2428e570"
|
14811 | },
|
14812 | "df2088fb5681e6c23fee7aeaa41ac05f69bd8fee2651e13ed4179cd41936319f": {
|
14813 | "translations": {
|
14814 | "python": {
|
14815 | "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)",
|
14816 | "version": "2"
|
14817 | },
|
14818 | "csharp": {
|
14819 | "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});",
|
14820 | "version": "1"
|
14821 | },
|
14822 | "java": {
|
14823 | "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());",
|
14824 | "version": "1"
|
14825 | },
|
14826 | "go": {
|
14827 | "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})",
|
14828 | "version": "1"
|
14829 | },
|
14830 | "$": {
|
14831 | "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});",
|
14832 | "version": "0"
|
14833 | }
|
14834 | },
|
14835 | "location": {
|
14836 | "api": {
|
14837 | "api": "type",
|
14838 | "fqn": "@aws-cdk/aws-ecs.RuntimePlatform"
|
14839 | },
|
14840 | "field": {
|
14841 | "field": "example"
|
14842 | }
|
14843 | },
|
14844 | "didCompile": true,
|
14845 | "fqnsReferenced": [
|
14846 | "@aws-cdk/aws-ecs.AwsLogDriverProps",
|
14847 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
14848 | "@aws-cdk/aws-ecs.ContainerImage",
|
14849 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14850 | "@aws-cdk/aws-ecs.CpuArchitecture",
|
14851 | "@aws-cdk/aws-ecs.CpuArchitecture#X86_64",
|
14852 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
14853 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
14854 | "@aws-cdk/aws-ecs.LogDriver",
|
14855 | "@aws-cdk/aws-ecs.LogDriver#awsLogs",
|
14856 | "@aws-cdk/aws-ecs.OperatingSystemFamily",
|
14857 | "@aws-cdk/aws-ecs.OperatingSystemFamily#WINDOWS_SERVER_2019_CORE",
|
14858 | "@aws-cdk/aws-ecs.RuntimePlatform",
|
14859 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
14860 | "constructs.Construct"
|
14861 | ],
|
14862 | "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",
|
14863 | "syntaxKindCounter": {
|
14864 | "8": 3,
|
14865 | "10": 4,
|
14866 | "75": 27,
|
14867 | "104": 1,
|
14868 | "192": 1,
|
14869 | "193": 5,
|
14870 | "194": 10,
|
14871 | "196": 3,
|
14872 | "197": 1,
|
14873 | "225": 1,
|
14874 | "226": 1,
|
14875 | "242": 1,
|
14876 | "243": 1,
|
14877 | "281": 10
|
14878 | },
|
14879 | "fqnsFingerprint": "3df3a1e71685e51672ee7a5bb2dec2ef2f5eafa65ee5ae78ee18f76c30fc6c93"
|
14880 | },
|
14881 | "85b400b9ebf909e781b87040d7b18c6329d56a3f8b8abff2e8caa746c7cf1bf5": {
|
14882 | "translations": {
|
14883 | "python": {
|
14884 | "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\")",
|
14885 | "version": "2"
|
14886 | },
|
14887 | "csharp": {
|
14888 | "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\");",
|
14889 | "version": "1"
|
14890 | },
|
14891 | "java": {
|
14892 | "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\");",
|
14893 | "version": "1"
|
14894 | },
|
14895 | "go": {
|
14896 | "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\"))",
|
14897 | "version": "1"
|
14898 | },
|
14899 | "$": {
|
14900 | "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');",
|
14901 | "version": "0"
|
14902 | }
|
14903 | },
|
14904 | "location": {
|
14905 | "api": {
|
14906 | "api": "type",
|
14907 | "fqn": "@aws-cdk/aws-ecs.S3EnvironmentFile"
|
14908 | },
|
14909 | "field": {
|
14910 | "field": "example"
|
14911 | }
|
14912 | },
|
14913 | "didCompile": true,
|
14914 | "fqnsReferenced": [
|
14915 | "@aws-cdk/aws-ecs.S3EnvironmentFile",
|
14916 | "@aws-cdk/aws-s3.IBucket"
|
14917 | ],
|
14918 | "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} }",
|
14919 | "syntaxKindCounter": {
|
14920 | "10": 4,
|
14921 | "75": 9,
|
14922 | "130": 1,
|
14923 | "153": 1,
|
14924 | "169": 1,
|
14925 | "194": 1,
|
14926 | "197": 1,
|
14927 | "225": 2,
|
14928 | "242": 2,
|
14929 | "243": 2,
|
14930 | "254": 2,
|
14931 | "255": 2,
|
14932 | "256": 2,
|
14933 | "290": 1
|
14934 | },
|
14935 | "fqnsFingerprint": "29b83a89039316234eff86e9244723b87a9d058f752862059c09d6de688f4e39"
|
14936 | },
|
14937 | "8465f65ef6d73edf6a86dcd87f7fb853dc0831ad182b76f0f01f2b6cf22a4eb4": {
|
14938 | "translations": {
|
14939 | "python": {
|
14940 | "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)",
|
14941 | "version": "2"
|
14942 | },
|
14943 | "csharp": {
|
14944 | "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});",
|
14945 | "version": "1"
|
14946 | },
|
14947 | "java": {
|
14948 | "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());",
|
14949 | "version": "1"
|
14950 | },
|
14951 | "go": {
|
14952 | "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})",
|
14953 | "version": "1"
|
14954 | },
|
14955 | "$": {
|
14956 | "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});",
|
14957 | "version": "0"
|
14958 | }
|
14959 | },
|
14960 | "location": {
|
14961 | "api": {
|
14962 | "api": "type",
|
14963 | "fqn": "@aws-cdk/aws-ecs.ScalableTaskCount"
|
14964 | },
|
14965 | "field": {
|
14966 | "field": "example"
|
14967 | }
|
14968 | },
|
14969 | "didCompile": true,
|
14970 | "fqnsReferenced": [
|
14971 | "@aws-cdk/aws-applicationautoscaling.EnableScalingProps",
|
14972 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService",
|
14973 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateService#service",
|
14974 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedFargateServiceProps",
|
14975 | "@aws-cdk/aws-ecs-patterns.ApplicationLoadBalancedTaskImageOptions",
|
14976 | "@aws-cdk/aws-ecs.BaseService#autoScaleTaskCount",
|
14977 | "@aws-cdk/aws-ecs.ContainerImage",
|
14978 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
14979 | "@aws-cdk/aws-ecs.CpuUtilizationScalingProps",
|
14980 | "@aws-cdk/aws-ecs.ICluster",
|
14981 | "@aws-cdk/aws-ecs.MemoryUtilizationScalingProps",
|
14982 | "@aws-cdk/aws-ecs.ScalableTaskCount",
|
14983 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnCpuUtilization",
|
14984 | "@aws-cdk/aws-ecs.ScalableTaskCount#scaleOnMemoryUtilization",
|
14985 | "constructs.Construct"
|
14986 | ],
|
14987 | "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",
|
14988 | "syntaxKindCounter": {
|
14989 | "8": 7,
|
14990 | "10": 4,
|
14991 | "75": 27,
|
14992 | "104": 1,
|
14993 | "130": 1,
|
14994 | "153": 1,
|
14995 | "169": 1,
|
14996 | "193": 5,
|
14997 | "194": 7,
|
14998 | "196": 4,
|
14999 | "197": 1,
|
15000 | "225": 3,
|
15001 | "226": 2,
|
15002 | "242": 3,
|
15003 | "243": 3,
|
15004 | "281": 9,
|
15005 | "282": 1,
|
15006 | "290": 1
|
15007 | },
|
15008 | "fqnsFingerprint": "f72fa33e62cd5d5afd29a6f1caaed0852f8889d67afcad5f7092c6909b3398ac"
|
15009 | },
|
15010 | "e7c48c0b1d9eeb965f9e7a94702e069642aab3338a5c63a987cd2cea7daf6dcb": {
|
15011 | "translations": {
|
15012 | "python": {
|
15013 | "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)",
|
15014 | "version": "2"
|
15015 | },
|
15016 | "csharp": {
|
15017 | "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};",
|
15018 | "version": "1"
|
15019 | },
|
15020 | "java": {
|
15021 | "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();",
|
15022 | "version": "1"
|
15023 | },
|
15024 | "go": {
|
15025 | "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}",
|
15026 | "version": "1"
|
15027 | },
|
15028 | "$": {
|
15029 | "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};",
|
15030 | "version": "0"
|
15031 | }
|
15032 | },
|
15033 | "location": {
|
15034 | "api": {
|
15035 | "api": "type",
|
15036 | "fqn": "@aws-cdk/aws-ecs.ScalableTaskCountProps"
|
15037 | },
|
15038 | "field": {
|
15039 | "field": "example"
|
15040 | }
|
15041 | },
|
15042 | "didCompile": true,
|
15043 | "fqnsReferenced": [
|
15044 | "@aws-cdk/aws-applicationautoscaling.ServiceNamespace",
|
15045 | "@aws-cdk/aws-applicationautoscaling.ServiceNamespace#ECS",
|
15046 | "@aws-cdk/aws-ecs.ScalableTaskCountProps",
|
15047 | "@aws-cdk/aws-iam.IRole"
|
15048 | ],
|
15049 | "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} }",
|
15050 | "syntaxKindCounter": {
|
15051 | "8": 2,
|
15052 | "10": 5,
|
15053 | "75": 19,
|
15054 | "130": 1,
|
15055 | "153": 2,
|
15056 | "169": 2,
|
15057 | "193": 1,
|
15058 | "194": 2,
|
15059 | "225": 2,
|
15060 | "242": 2,
|
15061 | "243": 2,
|
15062 | "254": 3,
|
15063 | "255": 3,
|
15064 | "256": 3,
|
15065 | "281": 6,
|
15066 | "290": 1
|
15067 | },
|
15068 | "fqnsFingerprint": "294db693253d96020dd53d5285e908dea4f74dade3baddb6a62848e6b1eea32b"
|
15069 | },
|
15070 | "1db8c581517ce56a890f4dd3db473cf079b6fd08239d64daabbac1a7078988ab": {
|
15071 | "translations": {
|
15072 | "python": {
|
15073 | "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)",
|
15074 | "version": "2"
|
15075 | },
|
15076 | "csharp": {
|
15077 | "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};",
|
15078 | "version": "1"
|
15079 | },
|
15080 | "java": {
|
15081 | "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();",
|
15082 | "version": "1"
|
15083 | },
|
15084 | "go": {
|
15085 | "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}",
|
15086 | "version": "1"
|
15087 | },
|
15088 | "$": {
|
15089 | "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};",
|
15090 | "version": "0"
|
15091 | }
|
15092 | },
|
15093 | "location": {
|
15094 | "api": {
|
15095 | "api": "type",
|
15096 | "fqn": "@aws-cdk/aws-ecs.ScratchSpace"
|
15097 | },
|
15098 | "field": {
|
15099 | "field": "example"
|
15100 | }
|
15101 | },
|
15102 | "didCompile": true,
|
15103 | "fqnsReferenced": [
|
15104 | "@aws-cdk/aws-ecs.ScratchSpace"
|
15105 | ],
|
15106 | "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} }",
|
15107 | "syntaxKindCounter": {
|
15108 | "10": 4,
|
15109 | "75": 8,
|
15110 | "91": 1,
|
15111 | "153": 1,
|
15112 | "169": 1,
|
15113 | "193": 1,
|
15114 | "225": 1,
|
15115 | "242": 1,
|
15116 | "243": 1,
|
15117 | "254": 1,
|
15118 | "255": 1,
|
15119 | "256": 1,
|
15120 | "281": 4,
|
15121 | "290": 1
|
15122 | },
|
15123 | "fqnsFingerprint": "8a5083766fe0f11210f7da96f7c1f681254839881f6a430d4db47e7f1f00bafb"
|
15124 | },
|
15125 | "d5092c665896732f876e7db4f0fecec2a7039032593dc1052585f851398d5a2d": {
|
15126 | "translations": {
|
15127 | "python": {
|
15128 | "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\")",
|
15129 | "version": "2"
|
15130 | },
|
15131 | "csharp": {
|
15132 | "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\");",
|
15133 | "version": "1"
|
15134 | },
|
15135 | "java": {
|
15136 | "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\");",
|
15137 | "version": "1"
|
15138 | },
|
15139 | "go": {
|
15140 | "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\"))",
|
15141 | "version": "1"
|
15142 | },
|
15143 | "$": {
|
15144 | "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');",
|
15145 | "version": "0"
|
15146 | }
|
15147 | },
|
15148 | "location": {
|
15149 | "api": {
|
15150 | "api": "type",
|
15151 | "fqn": "@aws-cdk/aws-ecs.Secret"
|
15152 | },
|
15153 | "field": {
|
15154 | "field": "example"
|
15155 | }
|
15156 | },
|
15157 | "didCompile": true,
|
15158 | "fqnsReferenced": [
|
15159 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
15160 | "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
|
15161 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
15162 | "@aws-cdk/aws-ecs.ContainerImage",
|
15163 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
15164 | "@aws-cdk/aws-ecs.EnvironmentFile",
|
15165 | "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
|
15166 | "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
|
15167 | "@aws-cdk/aws-ecs.Secret",
|
15168 | "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
|
15169 | "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
|
15170 | "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
|
15171 | "@aws-cdk/aws-ecs.SecretVersionInfo",
|
15172 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
15173 | "@aws-cdk/aws-s3.IBucket",
|
15174 | "@aws-cdk/aws-secretsmanager.ISecret",
|
15175 | "@aws-cdk/aws-ssm.IParameter"
|
15176 | ],
|
15177 | "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",
|
15178 | "syntaxKindCounter": {
|
15179 | "8": 1,
|
15180 | "10": 10,
|
15181 | "75": 57,
|
15182 | "130": 5,
|
15183 | "153": 5,
|
15184 | "169": 5,
|
15185 | "192": 1,
|
15186 | "193": 4,
|
15187 | "194": 16,
|
15188 | "196": 9,
|
15189 | "225": 6,
|
15190 | "226": 1,
|
15191 | "242": 6,
|
15192 | "243": 6,
|
15193 | "281": 11,
|
15194 | "290": 1
|
15195 | },
|
15196 | "fqnsFingerprint": "d73b3221b714300d28d2955542b6f3c7767a7f5fca1e728e01dbcd444a47dda1"
|
15197 | },
|
15198 | "78a7bfede6b0a286765b7ffff8e1085fa2c963b13ebe36a8cb355378aa820a24": {
|
15199 | "translations": {
|
15200 | "python": {
|
15201 | "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\")",
|
15202 | "version": "2"
|
15203 | },
|
15204 | "csharp": {
|
15205 | "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\");",
|
15206 | "version": "1"
|
15207 | },
|
15208 | "java": {
|
15209 | "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\");",
|
15210 | "version": "1"
|
15211 | },
|
15212 | "go": {
|
15213 | "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\"))",
|
15214 | "version": "1"
|
15215 | },
|
15216 | "$": {
|
15217 | "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');",
|
15218 | "version": "0"
|
15219 | }
|
15220 | },
|
15221 | "location": {
|
15222 | "api": {
|
15223 | "api": "type",
|
15224 | "fqn": "@aws-cdk/aws-ecs.SecretVersionInfo"
|
15225 | },
|
15226 | "field": {
|
15227 | "field": "example"
|
15228 | }
|
15229 | },
|
15230 | "didCompile": true,
|
15231 | "fqnsReferenced": [
|
15232 | "@aws-cdk/aws-ecs.ContainerDefinition",
|
15233 | "@aws-cdk/aws-ecs.ContainerDefinition#addEnvironment",
|
15234 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
15235 | "@aws-cdk/aws-ecs.ContainerImage",
|
15236 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
15237 | "@aws-cdk/aws-ecs.EnvironmentFile",
|
15238 | "@aws-cdk/aws-ecs.EnvironmentFile#fromAsset",
|
15239 | "@aws-cdk/aws-ecs.EnvironmentFile#fromBucket",
|
15240 | "@aws-cdk/aws-ecs.Secret",
|
15241 | "@aws-cdk/aws-ecs.Secret#fromSecretsManager",
|
15242 | "@aws-cdk/aws-ecs.Secret#fromSecretsManagerVersion",
|
15243 | "@aws-cdk/aws-ecs.Secret#fromSsmParameter",
|
15244 | "@aws-cdk/aws-ecs.SecretVersionInfo",
|
15245 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
15246 | "@aws-cdk/aws-s3.IBucket",
|
15247 | "@aws-cdk/aws-secretsmanager.ISecret",
|
15248 | "@aws-cdk/aws-ssm.IParameter"
|
15249 | ],
|
15250 | "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",
|
15251 | "syntaxKindCounter": {
|
15252 | "8": 1,
|
15253 | "10": 10,
|
15254 | "75": 57,
|
15255 | "130": 5,
|
15256 | "153": 5,
|
15257 | "169": 5,
|
15258 | "192": 1,
|
15259 | "193": 4,
|
15260 | "194": 16,
|
15261 | "196": 9,
|
15262 | "225": 6,
|
15263 | "226": 1,
|
15264 | "242": 6,
|
15265 | "243": 6,
|
15266 | "281": 11,
|
15267 | "290": 1
|
15268 | },
|
15269 | "fqnsFingerprint": "d73b3221b714300d28d2955542b6f3c7767a7f5fca1e728e01dbcd444a47dda1"
|
15270 | },
|
15271 | "ccae9ff6b167757c776e32de2be71e67c0f57b5a5209f7cd8bb998fd3da436b0": {
|
15272 | "translations": {
|
15273 | "python": {
|
15274 | "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)",
|
15275 | "version": "2"
|
15276 | },
|
15277 | "csharp": {
|
15278 | "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});",
|
15279 | "version": "1"
|
15280 | },
|
15281 | "java": {
|
15282 | "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();",
|
15283 | "version": "1"
|
15284 | },
|
15285 | "go": {
|
15286 | "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})",
|
15287 | "version": "1"
|
15288 | },
|
15289 | "$": {
|
15290 | "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});",
|
15291 | "version": "0"
|
15292 | }
|
15293 | },
|
15294 | "location": {
|
15295 | "api": {
|
15296 | "api": "type",
|
15297 | "fqn": "@aws-cdk/aws-ecs.SplunkLogDriver"
|
15298 | },
|
15299 | "field": {
|
15300 | "field": "example"
|
15301 | }
|
15302 | },
|
15303 | "didCompile": true,
|
15304 | "fqnsReferenced": [
|
15305 | "@aws-cdk/aws-ecs.Secret",
|
15306 | "@aws-cdk/aws-ecs.SplunkLogDriver",
|
15307 | "@aws-cdk/aws-ecs.SplunkLogDriverProps",
|
15308 | "@aws-cdk/aws-ecs.SplunkLogFormat",
|
15309 | "@aws-cdk/aws-ecs.SplunkLogFormat#INLINE",
|
15310 | "@aws-cdk/core.SecretValue"
|
15311 | ],
|
15312 | "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} }",
|
15313 | "syntaxKindCounter": {
|
15314 | "8": 1,
|
15315 | "10": 13,
|
15316 | "75": 33,
|
15317 | "91": 2,
|
15318 | "130": 2,
|
15319 | "153": 2,
|
15320 | "169": 2,
|
15321 | "192": 2,
|
15322 | "193": 1,
|
15323 | "194": 3,
|
15324 | "197": 1,
|
15325 | "225": 3,
|
15326 | "242": 3,
|
15327 | "243": 3,
|
15328 | "254": 2,
|
15329 | "255": 2,
|
15330 | "256": 2,
|
15331 | "281": 17,
|
15332 | "290": 1
|
15333 | },
|
15334 | "fqnsFingerprint": "c7186507b095067787c28c540a26641316249d0b301608693b31323e76663c2f"
|
15335 | },
|
15336 | "5545335de23986c68e37bf51c62712dabbf7ae9aedc80d68f4654b8163e6127c": {
|
15337 | "translations": {
|
15338 | "python": {
|
15339 | "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)",
|
15340 | "version": "2"
|
15341 | },
|
15342 | "csharp": {
|
15343 | "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});",
|
15344 | "version": "1"
|
15345 | },
|
15346 | "java": {
|
15347 | "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());",
|
15348 | "version": "1"
|
15349 | },
|
15350 | "go": {
|
15351 | "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})",
|
15352 | "version": "1"
|
15353 | },
|
15354 | "$": {
|
15355 | "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});",
|
15356 | "version": "0"
|
15357 | }
|
15358 | },
|
15359 | "location": {
|
15360 | "api": {
|
15361 | "api": "type",
|
15362 | "fqn": "@aws-cdk/aws-ecs.SplunkLogDriverProps"
|
15363 | },
|
15364 | "field": {
|
15365 | "field": "example"
|
15366 | }
|
15367 | },
|
15368 | "didCompile": true,
|
15369 | "fqnsReferenced": [
|
15370 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
15371 | "@aws-cdk/aws-ecs.ContainerImage",
|
15372 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
15373 | "@aws-cdk/aws-ecs.Ec2TaskDefinition",
|
15374 | "@aws-cdk/aws-ecs.LogDriver",
|
15375 | "@aws-cdk/aws-ecs.LogDrivers",
|
15376 | "@aws-cdk/aws-ecs.LogDrivers#splunk",
|
15377 | "@aws-cdk/aws-ecs.SplunkLogDriverProps",
|
15378 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
15379 | "@aws-cdk/core.SecretValue",
|
15380 | "@aws-cdk/core.SecretValue#secretsManager",
|
15381 | "constructs.Construct"
|
15382 | ],
|
15383 | "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",
|
15384 | "syntaxKindCounter": {
|
15385 | "8": 1,
|
15386 | "10": 5,
|
15387 | "75": 18,
|
15388 | "104": 1,
|
15389 | "193": 2,
|
15390 | "194": 7,
|
15391 | "196": 4,
|
15392 | "197": 1,
|
15393 | "225": 1,
|
15394 | "226": 1,
|
15395 | "242": 1,
|
15396 | "243": 1,
|
15397 | "281": 5
|
15398 | },
|
15399 | "fqnsFingerprint": "cc52ba75bd1f879bd71c53c406c1153a9c413d079d8a8861c4c5a1b89e1ae96e"
|
15400 | },
|
15401 | "387f0320749094234830c38b359894bd15567dfe4259309f7deb5257e38c571d": {
|
15402 | "translations": {
|
15403 | "python": {
|
15404 | "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)",
|
15405 | "version": "2"
|
15406 | },
|
15407 | "csharp": {
|
15408 | "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});",
|
15409 | "version": "1"
|
15410 | },
|
15411 | "java": {
|
15412 | "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();",
|
15413 | "version": "1"
|
15414 | },
|
15415 | "go": {
|
15416 | "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})",
|
15417 | "version": "1"
|
15418 | },
|
15419 | "$": {
|
15420 | "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});",
|
15421 | "version": "0"
|
15422 | }
|
15423 | },
|
15424 | "location": {
|
15425 | "api": {
|
15426 | "api": "type",
|
15427 | "fqn": "@aws-cdk/aws-ecs.SyslogLogDriver"
|
15428 | },
|
15429 | "field": {
|
15430 | "field": "example"
|
15431 | }
|
15432 | },
|
15433 | "didCompile": true,
|
15434 | "fqnsReferenced": [
|
15435 | "@aws-cdk/aws-ecs.SyslogLogDriver",
|
15436 | "@aws-cdk/aws-ecs.SyslogLogDriverProps"
|
15437 | ],
|
15438 | "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} }",
|
15439 | "syntaxKindCounter": {
|
15440 | "10": 11,
|
15441 | "75": 15,
|
15442 | "91": 1,
|
15443 | "192": 2,
|
15444 | "193": 1,
|
15445 | "194": 1,
|
15446 | "197": 1,
|
15447 | "225": 1,
|
15448 | "242": 1,
|
15449 | "243": 1,
|
15450 | "254": 1,
|
15451 | "255": 1,
|
15452 | "256": 1,
|
15453 | "281": 11,
|
15454 | "290": 1
|
15455 | },
|
15456 | "fqnsFingerprint": "cf3b59a4b586505bbd864271ed90ffbd91d2d46cd9fd6e7b4986b33085c50239"
|
15457 | },
|
15458 | "74201d812f68f22213e921c185a0ec0f78fd90029df5dbf9706490820bc579e2": {
|
15459 | "translations": {
|
15460 | "python": {
|
15461 | "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)",
|
15462 | "version": "2"
|
15463 | },
|
15464 | "csharp": {
|
15465 | "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};",
|
15466 | "version": "1"
|
15467 | },
|
15468 | "java": {
|
15469 | "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();",
|
15470 | "version": "1"
|
15471 | },
|
15472 | "go": {
|
15473 | "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}",
|
15474 | "version": "1"
|
15475 | },
|
15476 | "$": {
|
15477 | "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};",
|
15478 | "version": "0"
|
15479 | }
|
15480 | },
|
15481 | "location": {
|
15482 | "api": {
|
15483 | "api": "type",
|
15484 | "fqn": "@aws-cdk/aws-ecs.SyslogLogDriverProps"
|
15485 | },
|
15486 | "field": {
|
15487 | "field": "example"
|
15488 | }
|
15489 | },
|
15490 | "didCompile": true,
|
15491 | "fqnsReferenced": [
|
15492 | "@aws-cdk/aws-ecs.SyslogLogDriverProps"
|
15493 | ],
|
15494 | "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} }",
|
15495 | "syntaxKindCounter": {
|
15496 | "10": 11,
|
15497 | "75": 15,
|
15498 | "91": 1,
|
15499 | "153": 1,
|
15500 | "169": 1,
|
15501 | "192": 2,
|
15502 | "193": 1,
|
15503 | "225": 1,
|
15504 | "242": 1,
|
15505 | "243": 1,
|
15506 | "254": 1,
|
15507 | "255": 1,
|
15508 | "256": 1,
|
15509 | "281": 11,
|
15510 | "290": 1
|
15511 | },
|
15512 | "fqnsFingerprint": "729536eb3bbcfd950aa1e6d103567d52133d15ebf2633732d0262236631231cf"
|
15513 | },
|
15514 | "4df7fa296994da2239bc24a5c5a3e1a56733309d295bacc536b2d3db6b60ba76": {
|
15515 | "translations": {
|
15516 | "python": {
|
15517 | "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)",
|
15518 | "version": "2"
|
15519 | },
|
15520 | "csharp": {
|
15521 | "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};",
|
15522 | "version": "1"
|
15523 | },
|
15524 | "java": {
|
15525 | "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();",
|
15526 | "version": "1"
|
15527 | },
|
15528 | "go": {
|
15529 | "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}",
|
15530 | "version": "1"
|
15531 | },
|
15532 | "$": {
|
15533 | "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};",
|
15534 | "version": "0"
|
15535 | }
|
15536 | },
|
15537 | "location": {
|
15538 | "api": {
|
15539 | "api": "type",
|
15540 | "fqn": "@aws-cdk/aws-ecs.SystemControl"
|
15541 | },
|
15542 | "field": {
|
15543 | "field": "example"
|
15544 | }
|
15545 | },
|
15546 | "didCompile": true,
|
15547 | "fqnsReferenced": [
|
15548 | "@aws-cdk/aws-ecs.SystemControl"
|
15549 | ],
|
15550 | "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} }",
|
15551 | "syntaxKindCounter": {
|
15552 | "10": 3,
|
15553 | "75": 6,
|
15554 | "153": 1,
|
15555 | "169": 1,
|
15556 | "193": 1,
|
15557 | "225": 1,
|
15558 | "242": 1,
|
15559 | "243": 1,
|
15560 | "254": 1,
|
15561 | "255": 1,
|
15562 | "256": 1,
|
15563 | "281": 2,
|
15564 | "290": 1
|
15565 | },
|
15566 | "fqnsFingerprint": "794069948e85ef7cf9c793ea7cb932d18b9482e4233d1898b8b9a591b5eec7b9"
|
15567 | },
|
15568 | "06dafd9e31731b892b088d0214f58a1e20b5d67a7d2cdce98ec9c9f2e517f2bf": {
|
15569 | "translations": {
|
15570 | "python": {
|
15571 | "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)",
|
15572 | "version": "2"
|
15573 | },
|
15574 | "csharp": {
|
15575 | "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});",
|
15576 | "version": "1"
|
15577 | },
|
15578 | "java": {
|
15579 | "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 );",
|
15580 | "version": "1"
|
15581 | },
|
15582 | "go": {
|
15583 | "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})",
|
15584 | "version": "1"
|
15585 | },
|
15586 | "$": {
|
15587 | "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});",
|
15588 | "version": "0"
|
15589 | }
|
15590 | },
|
15591 | "location": {
|
15592 | "api": {
|
15593 | "api": "type",
|
15594 | "fqn": "@aws-cdk/aws-ecs.TagParameterContainerImage"
|
15595 | },
|
15596 | "field": {
|
15597 | "field": "example"
|
15598 | }
|
15599 | },
|
15600 | "didCompile": true,
|
15601 | "fqnsReferenced": [
|
15602 | "@aws-cdk/aws-codebuild.BuildEnvironment",
|
15603 | "@aws-cdk/aws-codebuild.BuildEnvironmentVariable",
|
15604 | "@aws-cdk/aws-codebuild.BuildSpec",
|
15605 | "@aws-cdk/aws-codebuild.BuildSpec#fromObject",
|
15606 | "@aws-cdk/aws-codebuild.IProject",
|
15607 | "@aws-cdk/aws-codebuild.PipelineProject",
|
15608 | "@aws-cdk/aws-codebuild.PipelineProjectProps",
|
15609 | "@aws-cdk/aws-codecommit.IRepository",
|
15610 | "@aws-cdk/aws-codecommit.Repository",
|
15611 | "@aws-cdk/aws-codecommit.RepositoryProps",
|
15612 | "@aws-cdk/aws-codepipeline-actions.CloudFormationCreateUpdateStackAction",
|
15613 | "@aws-cdk/aws-codepipeline-actions.CloudFormationCreateUpdateStackActionProps",
|
15614 | "@aws-cdk/aws-codepipeline-actions.CodeBuildAction",
|
15615 | "@aws-cdk/aws-codepipeline-actions.CodeBuildAction#variable",
|
15616 | "@aws-cdk/aws-codepipeline-actions.CodeBuildActionProps",
|
15617 | "@aws-cdk/aws-codepipeline-actions.CodeCommitSourceAction",
|
15618 | "@aws-cdk/aws-codepipeline-actions.CodeCommitSourceActionProps",
|
15619 | "@aws-cdk/aws-codepipeline.Artifact",
|
15620 | "@aws-cdk/aws-codepipeline.Artifact#atPath",
|
15621 | "@aws-cdk/aws-codepipeline.ArtifactPath",
|
15622 | "@aws-cdk/aws-codepipeline.Pipeline",
|
15623 | "@aws-cdk/aws-codepipeline.PipelineProps",
|
15624 | "@aws-cdk/aws-ec2.IVpc",
|
15625 | "@aws-cdk/aws-ec2.Vpc",
|
15626 | "@aws-cdk/aws-ec2.VpcProps",
|
15627 | "@aws-cdk/aws-ecr.IRepository",
|
15628 | "@aws-cdk/aws-ecr.Repository",
|
15629 | "@aws-cdk/aws-ecr.RepositoryBase#grantPullPush",
|
15630 | "@aws-cdk/aws-ecs.Cluster",
|
15631 | "@aws-cdk/aws-ecs.ClusterProps",
|
15632 | "@aws-cdk/aws-ecs.Compatibility",
|
15633 | "@aws-cdk/aws-ecs.Compatibility#FARGATE",
|
15634 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
15635 | "@aws-cdk/aws-ecs.ContainerImage",
|
15636 | "@aws-cdk/aws-ecs.FargateService",
|
15637 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
15638 | "@aws-cdk/aws-ecs.ICluster",
|
15639 | "@aws-cdk/aws-ecs.TagParameterContainerImage",
|
15640 | "@aws-cdk/aws-ecs.TaskDefinition",
|
15641 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
15642 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
15643 | "@aws-cdk/aws-iam.IGrantable",
|
15644 | "@aws-cdk/aws-s3.Bucket",
|
15645 | "@aws-cdk/aws-s3.BucketProps",
|
15646 | "@aws-cdk/aws-s3.IBucket",
|
15647 | "@aws-cdk/core.App",
|
15648 | "@aws-cdk/core.RemovalPolicy",
|
15649 | "@aws-cdk/core.RemovalPolicy#DESTROY",
|
15650 | "@aws-cdk/core.Stack",
|
15651 | "@aws-cdk/core.StackProps",
|
15652 | "constructs.Construct"
|
15653 | ],
|
15654 | "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",
|
15655 | "syntaxKindCounter": {
|
15656 | "8": 1,
|
15657 | "10": 43,
|
15658 | "57": 1,
|
15659 | "62": 1,
|
15660 | "75": 186,
|
15661 | "89": 3,
|
15662 | "102": 2,
|
15663 | "104": 13,
|
15664 | "106": 2,
|
15665 | "119": 1,
|
15666 | "138": 2,
|
15667 | "143": 2,
|
15668 | "153": 3,
|
15669 | "154": 1,
|
15670 | "156": 6,
|
15671 | "158": 1,
|
15672 | "159": 1,
|
15673 | "162": 2,
|
15674 | "169": 6,
|
15675 | "192": 10,
|
15676 | "193": 34,
|
15677 | "194": 42,
|
15678 | "196": 8,
|
15679 | "197": 23,
|
15680 | "209": 1,
|
15681 | "216": 3,
|
15682 | "223": 2,
|
15683 | "225": 10,
|
15684 | "226": 8,
|
15685 | "242": 10,
|
15686 | "243": 10,
|
15687 | "245": 2,
|
15688 | "246": 1,
|
15689 | "279": 3,
|
15690 | "281": 62,
|
15691 | "282": 1
|
15692 | },
|
15693 | "fqnsFingerprint": "e70e9865cdab2492d33dda3b33826915978e264377d56d9f349bba527f9d6892"
|
15694 | },
|
15695 | "7512f9b8a303c34ad44e16122038d8994d69941d9b00c0478adbdeccc4f4de0e": {
|
15696 | "translations": {
|
15697 | "python": {
|
15698 | "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)",
|
15699 | "version": "2"
|
15700 | },
|
15701 | "csharp": {
|
15702 | "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});",
|
15703 | "version": "1"
|
15704 | },
|
15705 | "java": {
|
15706 | "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());",
|
15707 | "version": "1"
|
15708 | },
|
15709 | "go": {
|
15710 | "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})",
|
15711 | "version": "1"
|
15712 | },
|
15713 | "$": {
|
15714 | "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);",
|
15715 | "version": "0"
|
15716 | }
|
15717 | },
|
15718 | "location": {
|
15719 | "api": {
|
15720 | "api": "type",
|
15721 | "fqn": "@aws-cdk/aws-ecs.TaskDefinition"
|
15722 | },
|
15723 | "field": {
|
15724 | "field": "example"
|
15725 | }
|
15726 | },
|
15727 | "didCompile": true,
|
15728 | "fqnsReferenced": [
|
15729 | "@aws-cdk/aws-ec2.IVpc",
|
15730 | "@aws-cdk/aws-ecs.BaseService#registerLoadBalancerTargets",
|
15731 | "@aws-cdk/aws-ecs.EcsTarget",
|
15732 | "@aws-cdk/aws-ecs.FargateService",
|
15733 | "@aws-cdk/aws-ecs.FargateServiceProps",
|
15734 | "@aws-cdk/aws-ecs.ICluster",
|
15735 | "@aws-cdk/aws-ecs.ListenerConfig",
|
15736 | "@aws-cdk/aws-ecs.ListenerConfig#applicationListener",
|
15737 | "@aws-cdk/aws-ecs.TaskDefinition",
|
15738 | "@aws-cdk/aws-elasticloadbalancingv2.AddApplicationTargetsProps",
|
15739 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationListener",
|
15740 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
|
15741 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer#addListener",
|
15742 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
|
15743 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol",
|
15744 | "@aws-cdk/aws-elasticloadbalancingv2.ApplicationProtocol#HTTPS",
|
15745 | "@aws-cdk/aws-elasticloadbalancingv2.BaseApplicationListenerProps",
|
15746 | "constructs.Construct"
|
15747 | ],
|
15748 | "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",
|
15749 | "syntaxKindCounter": {
|
15750 | "8": 2,
|
15751 | "10": 5,
|
15752 | "75": 37,
|
15753 | "104": 2,
|
15754 | "106": 1,
|
15755 | "130": 3,
|
15756 | "153": 3,
|
15757 | "169": 3,
|
15758 | "193": 5,
|
15759 | "194": 8,
|
15760 | "196": 3,
|
15761 | "197": 2,
|
15762 | "225": 6,
|
15763 | "226": 1,
|
15764 | "242": 6,
|
15765 | "243": 6,
|
15766 | "281": 7,
|
15767 | "282": 3,
|
15768 | "290": 1
|
15769 | },
|
15770 | "fqnsFingerprint": "84e84a232d4d1659f379019316138f707df9fa005ac80fec15ca7227950a3c36"
|
15771 | },
|
15772 | "13e1719a8b22581f71017a9677040ef9059a296781dae519e8ef778f1cbd9340": {
|
15773 | "translations": {
|
15774 | "python": {
|
15775 | "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)",
|
15776 | "version": "2"
|
15777 | },
|
15778 | "csharp": {
|
15779 | "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};",
|
15780 | "version": "1"
|
15781 | },
|
15782 | "java": {
|
15783 | "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();",
|
15784 | "version": "1"
|
15785 | },
|
15786 | "go": {
|
15787 | "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}",
|
15788 | "version": "1"
|
15789 | },
|
15790 | "$": {
|
15791 | "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};",
|
15792 | "version": "0"
|
15793 | }
|
15794 | },
|
15795 | "location": {
|
15796 | "api": {
|
15797 | "api": "type",
|
15798 | "fqn": "@aws-cdk/aws-ecs.TaskDefinitionAttributes"
|
15799 | },
|
15800 | "field": {
|
15801 | "field": "example"
|
15802 | }
|
15803 | },
|
15804 | "didCompile": true,
|
15805 | "fqnsReferenced": [
|
15806 | "@aws-cdk/aws-ecs.Compatibility",
|
15807 | "@aws-cdk/aws-ecs.Compatibility#EC2",
|
15808 | "@aws-cdk/aws-ecs.NetworkMode",
|
15809 | "@aws-cdk/aws-ecs.NetworkMode#NONE",
|
15810 | "@aws-cdk/aws-ecs.TaskDefinitionAttributes",
|
15811 | "@aws-cdk/aws-iam.IRole"
|
15812 | ],
|
15813 | "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} }",
|
15814 | "syntaxKindCounter": {
|
15815 | "10": 3,
|
15816 | "75": 19,
|
15817 | "130": 1,
|
15818 | "153": 2,
|
15819 | "169": 2,
|
15820 | "193": 1,
|
15821 | "194": 4,
|
15822 | "225": 2,
|
15823 | "242": 2,
|
15824 | "243": 2,
|
15825 | "254": 2,
|
15826 | "255": 2,
|
15827 | "256": 2,
|
15828 | "281": 4,
|
15829 | "290": 1
|
15830 | },
|
15831 | "fqnsFingerprint": "b544112e358f62bac346248ecbc10583a25f3991658c2b104c747970324431f5"
|
15832 | },
|
15833 | "7861e0ebb2bb496e6597655448a35c1b418d2821e9a07c681ef7c45e08f244ee": {
|
15834 | "translations": {
|
15835 | "python": {
|
15836 | "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)",
|
15837 | "version": "2"
|
15838 | },
|
15839 | "csharp": {
|
15840 | "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});",
|
15841 | "version": "1"
|
15842 | },
|
15843 | "java": {
|
15844 | "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();",
|
15845 | "version": "1"
|
15846 | },
|
15847 | "go": {
|
15848 | "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})",
|
15849 | "version": "1"
|
15850 | },
|
15851 | "$": {
|
15852 | "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});",
|
15853 | "version": "0"
|
15854 | }
|
15855 | },
|
15856 | "location": {
|
15857 | "api": {
|
15858 | "api": "type",
|
15859 | "fqn": "@aws-cdk/aws-ecs.TaskDefinitionProps"
|
15860 | },
|
15861 | "field": {
|
15862 | "field": "example"
|
15863 | }
|
15864 | },
|
15865 | "didCompile": true,
|
15866 | "fqnsReferenced": [
|
15867 | "@aws-cdk/aws-ec2.IVpc",
|
15868 | "@aws-cdk/aws-ec2.InstanceType",
|
15869 | "@aws-cdk/aws-ec2.SubnetSelection",
|
15870 | "@aws-cdk/aws-ec2.SubnetType",
|
15871 | "@aws-cdk/aws-ec2.SubnetType#PUBLIC",
|
15872 | "@aws-cdk/aws-ec2.Vpc",
|
15873 | "@aws-cdk/aws-ec2.Vpc#fromLookup",
|
15874 | "@aws-cdk/aws-ec2.VpcLookupOptions",
|
15875 | "@aws-cdk/aws-ecs.AddCapacityOptions",
|
15876 | "@aws-cdk/aws-ecs.Cluster",
|
15877 | "@aws-cdk/aws-ecs.Cluster#addCapacity",
|
15878 | "@aws-cdk/aws-ecs.ClusterProps",
|
15879 | "@aws-cdk/aws-ecs.Compatibility",
|
15880 | "@aws-cdk/aws-ecs.Compatibility#EC2",
|
15881 | "@aws-cdk/aws-ecs.ContainerDefinitionOptions",
|
15882 | "@aws-cdk/aws-ecs.ContainerImage",
|
15883 | "@aws-cdk/aws-ecs.ContainerImage#fromRegistry",
|
15884 | "@aws-cdk/aws-ecs.ICluster",
|
15885 | "@aws-cdk/aws-ecs.PlacementConstraint",
|
15886 | "@aws-cdk/aws-ecs.PlacementConstraint#memberOf",
|
15887 | "@aws-cdk/aws-ecs.PlacementStrategy",
|
15888 | "@aws-cdk/aws-ecs.PlacementStrategy#packedByCpu",
|
15889 | "@aws-cdk/aws-ecs.PlacementStrategy#randomly",
|
15890 | "@aws-cdk/aws-ecs.PlacementStrategy#spreadAcrossInstances",
|
15891 | "@aws-cdk/aws-ecs.TaskDefinition",
|
15892 | "@aws-cdk/aws-ecs.TaskDefinition#addContainer",
|
15893 | "@aws-cdk/aws-ecs.TaskDefinitionProps",
|
15894 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTarget",
|
15895 | "@aws-cdk/aws-stepfunctions-tasks.EcsEc2LaunchTargetOptions",
|
15896 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTask",
|
15897 | "@aws-cdk/aws-stepfunctions-tasks.EcsRunTaskProps",
|
15898 | "@aws-cdk/aws-stepfunctions-tasks.IEcsLaunchTarget",
|
15899 | "@aws-cdk/aws-stepfunctions.IntegrationPattern",
|
15900 | "@aws-cdk/aws-stepfunctions.IntegrationPattern#RUN_JOB",
|
15901 | "constructs.Construct"
|
15902 | ],
|
15903 | "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",
|
15904 | "syntaxKindCounter": {
|
15905 | "8": 1,
|
15906 | "10": 9,
|
15907 | "75": 59,
|
15908 | "104": 4,
|
15909 | "106": 1,
|
15910 | "192": 2,
|
15911 | "193": 8,
|
15912 | "194": 25,
|
15913 | "196": 8,
|
15914 | "197": 5,
|
15915 | "225": 4,
|
15916 | "226": 2,
|
15917 | "242": 4,
|
15918 | "243": 4,
|
15919 | "281": 11,
|
15920 | "282": 3
|
15921 | },
|
15922 | "fqnsFingerprint": "f04254501bd105fbef26fa74f8a437e4ca808bdd379d2d939889e2d9bd8e207d"
|
15923 | },
|
15924 | "77c1ab7cdc4052250cd617cecbf933cecd8a995e2613927b4469a0e6f474ea2e": {
|
15925 | "translations": {
|
15926 | "python": {
|
15927 | "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)",
|
15928 | "version": "2"
|
15929 | },
|
15930 | "csharp": {
|
15931 | "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};",
|
15932 | "version": "1"
|
15933 | },
|
15934 | "java": {
|
15935 | "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();",
|
15936 | "version": "1"
|
15937 | },
|
15938 | "go": {
|
15939 | "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}",
|
15940 | "version": "1"
|
15941 | },
|
15942 | "$": {
|
15943 | "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};",
|
15944 | "version": "0"
|
15945 | }
|
15946 | },
|
15947 | "location": {
|
15948 | "api": {
|
15949 | "api": "type",
|
15950 | "fqn": "@aws-cdk/aws-ecs.Tmpfs"
|
15951 | },
|
15952 | "field": {
|
15953 | "field": "example"
|
15954 | }
|
15955 | },
|
15956 | "didCompile": true,
|
15957 | "fqnsReferenced": [
|
15958 | "@aws-cdk/aws-ecs.Tmpfs",
|
15959 | "@aws-cdk/aws-ecs.TmpfsMountOption",
|
15960 | "@aws-cdk/aws-ecs.TmpfsMountOption#DEFAULTS"
|
15961 | ],
|
15962 | "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} }",
|
15963 | "syntaxKindCounter": {
|
15964 | "8": 1,
|
15965 | "10": 2,
|
15966 | "75": 10,
|
15967 | "153": 1,
|
15968 | "169": 1,
|
15969 | "192": 1,
|
15970 | "193": 1,
|
15971 | "194": 2,
|
15972 | "225": 1,
|
15973 | "242": 1,
|
15974 | "243": 1,
|
15975 | "254": 1,
|
15976 | "255": 1,
|
15977 | "256": 1,
|
15978 | "281": 3,
|
15979 | "290": 1
|
15980 | },
|
15981 | "fqnsFingerprint": "7e10be199a65956f63aae3b4f8a97950e7e7d8f9942113cdf3902d36fb3c1163"
|
15982 | },
|
15983 | "a6b26ec544c07593da7e5b83405210b2df983b3a898fff406491ef791a19f676": {
|
15984 | "translations": {
|
15985 | "python": {
|
15986 | "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)",
|
15987 | "version": "2"
|
15988 | },
|
15989 | "csharp": {
|
15990 | "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};",
|
15991 | "version": "1"
|
15992 | },
|
15993 | "java": {
|
15994 | "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();",
|
15995 | "version": "1"
|
15996 | },
|
15997 | "go": {
|
15998 | "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}",
|
15999 | "version": "1"
|
16000 | },
|
16001 | "$": {
|
16002 | "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};",
|
16003 | "version": "0"
|
16004 | }
|
16005 | },
|
16006 | "location": {
|
16007 | "api": {
|
16008 | "api": "type",
|
16009 | "fqn": "@aws-cdk/aws-ecs.TrackCustomMetricProps"
|
16010 | },
|
16011 | "field": {
|
16012 | "field": "example"
|
16013 | }
|
16014 | },
|
16015 | "didCompile": true,
|
16016 | "fqnsReferenced": [
|
16017 | "@aws-cdk/aws-cloudwatch.IMetric",
|
16018 | "@aws-cdk/aws-ecs.TrackCustomMetricProps",
|
16019 | "@aws-cdk/core.Duration",
|
16020 | "@aws-cdk/core.Duration#minutes"
|
16021 | ],
|
16022 | "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} }",
|
16023 | "syntaxKindCounter": {
|
16024 | "8": 3,
|
16025 | "10": 4,
|
16026 | "75": 22,
|
16027 | "91": 1,
|
16028 | "130": 1,
|
16029 | "153": 2,
|
16030 | "169": 2,
|
16031 | "193": 1,
|
16032 | "194": 4,
|
16033 | "196": 2,
|
16034 | "225": 2,
|
16035 | "242": 2,
|
16036 | "243": 2,
|
16037 | "254": 3,
|
16038 | "255": 3,
|
16039 | "256": 3,
|
16040 | "281": 6,
|
16041 | "290": 1
|
16042 | },
|
16043 | "fqnsFingerprint": "92c5e1647f54af8edcbff451db680a6e6f5a513a0427e5674353cd5d01d898e1"
|
16044 | },
|
16045 | "2240bd65deb49e34b31608bea0122912b62a3819a01aa4e1b7d77aa92105b21e": {
|
16046 | "translations": {
|
16047 | "python": {
|
16048 | "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)",
|
16049 | "version": "2"
|
16050 | },
|
16051 | "csharp": {
|
16052 | "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};",
|
16053 | "version": "1"
|
16054 | },
|
16055 | "java": {
|
16056 | "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();",
|
16057 | "version": "1"
|
16058 | },
|
16059 | "go": {
|
16060 | "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}",
|
16061 | "version": "1"
|
16062 | },
|
16063 | "$": {
|
16064 | "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};",
|
16065 | "version": "0"
|
16066 | }
|
16067 | },
|
16068 | "location": {
|
16069 | "api": {
|
16070 | "api": "type",
|
16071 | "fqn": "@aws-cdk/aws-ecs.Ulimit"
|
16072 | },
|
16073 | "field": {
|
16074 | "field": "example"
|
16075 | }
|
16076 | },
|
16077 | "didCompile": true,
|
16078 | "fqnsReferenced": [
|
16079 | "@aws-cdk/aws-ecs.Ulimit",
|
16080 | "@aws-cdk/aws-ecs.UlimitName",
|
16081 | "@aws-cdk/aws-ecs.UlimitName#CORE"
|
16082 | ],
|
16083 | "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} }",
|
16084 | "syntaxKindCounter": {
|
16085 | "8": 2,
|
16086 | "10": 1,
|
16087 | "75": 10,
|
16088 | "153": 1,
|
16089 | "169": 1,
|
16090 | "193": 1,
|
16091 | "194": 2,
|
16092 | "225": 1,
|
16093 | "242": 1,
|
16094 | "243": 1,
|
16095 | "254": 1,
|
16096 | "255": 1,
|
16097 | "256": 1,
|
16098 | "281": 3,
|
16099 | "290": 1
|
16100 | },
|
16101 | "fqnsFingerprint": "3e8eb111f4d966ed7a05b88f774d484d3cd6fbaa1230ab0c8ce38b9aaf904ac3"
|
16102 | },
|
16103 | "1a347d12ea4f4b2bee314bdc87d7eaed9307c6c094d8b7731827846e357d98f3": {
|
16104 | "translations": {
|
16105 | "python": {
|
16106 | "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)",
|
16107 | "version": "2"
|
16108 | },
|
16109 | "csharp": {
|
16110 | "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);",
|
16111 | "version": "1"
|
16112 | },
|
16113 | "java": {
|
16114 | "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);",
|
16115 | "version": "1"
|
16116 | },
|
16117 | "go": {
|
16118 | "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)",
|
16119 | "version": "1"
|
16120 | },
|
16121 | "$": {
|
16122 | "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);",
|
16123 | "version": "0"
|
16124 | }
|
16125 | },
|
16126 | "location": {
|
16127 | "api": {
|
16128 | "api": "type",
|
16129 | "fqn": "@aws-cdk/aws-ecs.Volume"
|
16130 | },
|
16131 | "field": {
|
16132 | "field": "example"
|
16133 | }
|
16134 | },
|
16135 | "didCompile": true,
|
16136 | "fqnsReferenced": [
|
16137 | "@aws-cdk/aws-ecs.FargateTaskDefinition",
|
16138 | "@aws-cdk/aws-ecs.FargateTaskDefinitionProps",
|
16139 | "@aws-cdk/aws-ecs.TaskDefinition#addVolume",
|
16140 | "@aws-cdk/aws-ecs.Volume",
|
16141 | "constructs.Construct"
|
16142 | ],
|
16143 | "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",
|
16144 | "syntaxKindCounter": {
|
16145 | "8": 2,
|
16146 | "10": 3,
|
16147 | "75": 13,
|
16148 | "104": 1,
|
16149 | "193": 3,
|
16150 | "194": 2,
|
16151 | "196": 1,
|
16152 | "197": 1,
|
16153 | "225": 3,
|
16154 | "242": 3,
|
16155 | "243": 3,
|
16156 | "281": 5
|
16157 | },
|
16158 | "fqnsFingerprint": "8b25c26e9cf64ecc5b32921af7a9de69f4d8ff2c2636aed544240d9fbda393db"
|
16159 | },
|
16160 | "1a082d0a39ae3bc2b08c7a57ae274363b5ae32a12be52b8ad0fa01e0a91750bd": {
|
16161 | "translations": {
|
16162 | "python": {
|
16163 | "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)",
|
16164 | "version": "2"
|
16165 | },
|
16166 | "csharp": {
|
16167 | "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};",
|
16168 | "version": "1"
|
16169 | },
|
16170 | "java": {
|
16171 | "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();",
|
16172 | "version": "1"
|
16173 | },
|
16174 | "go": {
|
16175 | "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}",
|
16176 | "version": "1"
|
16177 | },
|
16178 | "$": {
|
16179 | "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};",
|
16180 | "version": "0"
|
16181 | }
|
16182 | },
|
16183 | "location": {
|
16184 | "api": {
|
16185 | "api": "type",
|
16186 | "fqn": "@aws-cdk/aws-ecs.VolumeFrom"
|
16187 | },
|
16188 | "field": {
|
16189 | "field": "example"
|
16190 | }
|
16191 | },
|
16192 | "didCompile": true,
|
16193 | "fqnsReferenced": [
|
16194 | "@aws-cdk/aws-ecs.VolumeFrom"
|
16195 | ],
|
16196 | "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} }",
|
16197 | "syntaxKindCounter": {
|
16198 | "10": 2,
|
16199 | "75": 6,
|
16200 | "91": 1,
|
16201 | "153": 1,
|
16202 | "169": 1,
|
16203 | "193": 1,
|
16204 | "225": 1,
|
16205 | "242": 1,
|
16206 | "243": 1,
|
16207 | "254": 1,
|
16208 | "255": 1,
|
16209 | "256": 1,
|
16210 | "281": 2,
|
16211 | "290": 1
|
16212 | },
|
16213 | "fqnsFingerprint": "b0510c1314f3bd4fdabeadf69bdf6d93f8499e5257bce505e099886c357d21da"
|
16214 | }
|
16215 | }
|
16216 | }
|