1 | {
|
2 | "version": "2",
|
3 | "toolVersion": "1.57.0",
|
4 | "snippets": {
|
5 | "7cf49f40f663c44c6234d9e5bf65b18c13a6e7329610df601d01a65a8bccd5d7": {
|
6 | "translations": {
|
7 | "python": {
|
8 | "source": "# repo: codecommit.Repository\n# project: codebuild.Project\n\n\non_commit_rule = repo.on_commit(\"OnCommit\",\n target=targets.CodeBuildProject(project),\n branches=[\"master\"]\n)",
|
9 | "version": "2"
|
10 | },
|
11 | "csharp": {
|
12 | "source": "Repository repo;\nProject project;\n\n\nRule onCommitRule = repo.OnCommit(\"OnCommit\", new OnCommitOptions {\n Target = new CodeBuildProject(project),\n Branches = new [] { \"master\" }\n});",
|
13 | "version": "1"
|
14 | },
|
15 | "java": {
|
16 | "source": "Repository repo;\nProject project;\n\n\nRule onCommitRule = repo.onCommit(\"OnCommit\", OnCommitOptions.builder()\n .target(new CodeBuildProject(project))\n .branches(List.of(\"master\"))\n .build());",
|
17 | "version": "1"
|
18 | },
|
19 | "go": {
|
20 | "source": "var repo repository\nvar project project\n\nonCommitRule := repo.onCommit(jsii.String(\"OnCommit\"), &onCommitOptions{\n\ttarget: targets.NewCodeBuildProject(project),\n\tbranches: []*string{\n\t\tjsii.String(\"master\"),\n\t},\n})",
|
21 | "version": "1"
|
22 | },
|
23 | "$": {
|
24 | "source": "declare const repo: codecommit.Repository;\ndeclare const project: codebuild.Project;\n\nconst onCommitRule = repo.onCommit('OnCommit', {\n target: new targets.CodeBuildProject(project),\n branches: ['master']\n});",
|
25 | "version": "0"
|
26 | }
|
27 | },
|
28 | "location": {
|
29 | "api": {
|
30 | "api": "moduleReadme",
|
31 | "moduleFqn": "@aws-cdk/aws-events"
|
32 | },
|
33 | "field": {
|
34 | "field": "markdown",
|
35 | "line": 61
|
36 | }
|
37 | },
|
38 | "didCompile": true,
|
39 | "fqnsReferenced": [
|
40 | "@aws-cdk/aws-codebuild.IProject",
|
41 | "@aws-cdk/aws-codecommit.OnCommitOptions",
|
42 | "@aws-cdk/aws-events-targets.CodeBuildProject",
|
43 | "@aws-cdk/aws-events.IRuleTarget",
|
44 | "@aws-cdk/aws-events.Rule"
|
45 | ],
|
46 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const repo: codecommit.Repository;\ndeclare const project: codebuild.Project;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 onCommitRule = repo.onCommit('OnCommit', {\n target: new targets.CodeBuildProject(project),\n branches: ['master']\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
47 | "syntaxKindCounter": {
|
48 | "10": 2,
|
49 | "75": 14,
|
50 | "130": 2,
|
51 | "153": 2,
|
52 | "169": 2,
|
53 | "192": 1,
|
54 | "193": 1,
|
55 | "194": 2,
|
56 | "196": 1,
|
57 | "197": 1,
|
58 | "225": 3,
|
59 | "242": 3,
|
60 | "243": 3,
|
61 | "281": 2,
|
62 | "290": 1
|
63 | },
|
64 | "fqnsFingerprint": "17d9c68eb4fac1cbff55367b87d7eb6c7a573c4011e1f272ac93eda10fc8620d"
|
65 | },
|
66 | "0ff6e72a22dbd36dacd690373116c162c1bd2b4ff43d7d01218d1ac6811c0ab7": {
|
67 | "translations": {
|
68 | "python": {
|
69 | "source": "# on_commit_rule: events.Rule\n# topic: sns.Topic\n\n\non_commit_rule.add_target(targets.SnsTopic(topic,\n message=events.RuleTargetInput.from_text(f\"A commit was pushed to the repository {codecommit.ReferenceEvent.repositoryName} on branch {codecommit.ReferenceEvent.referenceName}\")\n))",
|
70 | "version": "2"
|
71 | },
|
72 | "csharp": {
|
73 | "source": "Rule onCommitRule;\nTopic topic;\n\n\nonCommitRule.AddTarget(new SnsTopic(topic, new SnsTopicProps {\n Message = RuleTargetInput.FromText($\"A commit was pushed to the repository {codecommit.ReferenceEvent.repositoryName} on branch {codecommit.ReferenceEvent.referenceName}\")\n}));",
|
74 | "version": "1"
|
75 | },
|
76 | "java": {
|
77 | "source": "Rule onCommitRule;\nTopic topic;\n\n\nonCommitRule.addTarget(SnsTopic.Builder.create(topic)\n .message(RuleTargetInput.fromText(String.format(\"A commit was pushed to the repository %s on branch %s\", ReferenceEvent.getRepositoryName(), ReferenceEvent.getReferenceName())))\n .build());",
|
78 | "version": "1"
|
79 | },
|
80 | "go": {
|
81 | "source": "var onCommitRule rule\nvar topic topic\n\nonCommitRule.addTarget(targets.NewSnsTopic(topic, &snsTopicProps{\n\tmessage: events.ruleTargetInput.fromText(\n\tfmt.Sprintf(\"A commit was pushed to the repository %v on branch %v\", codecommit.referenceEvent.repositoryName, codecommit.*referenceEvent.referenceName)),\n}))",
|
82 | "version": "1"
|
83 | },
|
84 | "$": {
|
85 | "source": "declare const onCommitRule: events.Rule;\ndeclare const topic: sns.Topic;\n\nonCommitRule.addTarget(new targets.SnsTopic(topic, {\n message: events.RuleTargetInput.fromText(\n `A commit was pushed to the repository ${codecommit.ReferenceEvent.repositoryName} on branch ${codecommit.ReferenceEvent.referenceName}`\n )\n}));",
|
86 | "version": "0"
|
87 | }
|
88 | },
|
89 | "location": {
|
90 | "api": {
|
91 | "api": "moduleReadme",
|
92 | "moduleFqn": "@aws-cdk/aws-events"
|
93 | },
|
94 | "field": {
|
95 | "field": "markdown",
|
96 | "line": 78
|
97 | }
|
98 | },
|
99 | "didCompile": true,
|
100 | "fqnsReferenced": [
|
101 | "@aws-cdk/aws-events-targets.SnsTopic",
|
102 | "@aws-cdk/aws-events-targets.SnsTopicProps",
|
103 | "@aws-cdk/aws-events.IRuleTarget",
|
104 | "@aws-cdk/aws-events.Rule#addTarget",
|
105 | "@aws-cdk/aws-events.RuleTargetInput",
|
106 | "@aws-cdk/aws-events.RuleTargetInput#fromText",
|
107 | "@aws-cdk/aws-sns.ITopic"
|
108 | ],
|
109 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const onCommitRule: events.Rule;\ndeclare const topic: sns.Topic;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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\nonCommitRule.addTarget(new targets.SnsTopic(topic, {\n message: events.RuleTargetInput.fromText(\n `A commit was pushed to the repository ${codecommit.ReferenceEvent.repositoryName} on branch ${codecommit.ReferenceEvent.referenceName}`\n )\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
110 | "syntaxKindCounter": {
|
111 | "15": 1,
|
112 | "16": 1,
|
113 | "17": 1,
|
114 | "75": 21,
|
115 | "130": 2,
|
116 | "153": 2,
|
117 | "169": 2,
|
118 | "193": 1,
|
119 | "194": 8,
|
120 | "196": 2,
|
121 | "197": 1,
|
122 | "211": 1,
|
123 | "221": 2,
|
124 | "225": 2,
|
125 | "226": 1,
|
126 | "242": 2,
|
127 | "243": 2,
|
128 | "281": 1,
|
129 | "290": 1
|
130 | },
|
131 | "fqnsFingerprint": "f145cbc85542cf87295364cac1028907524b57d1a5ffe8cc47bd11ee09edfd08"
|
132 | },
|
133 | "8acd9a78f8d185adde2917387febff93e5528fbbc486f4e4718724eadc295dca": {
|
134 | "translations": {
|
135 | "python": {
|
136 | "source": "# on_commit_rule: events.Rule\n# topic: sns.Topic\n\n\non_commit_rule.add_target(targets.SnsTopic(topic,\n message=events.RuleTargetInput.from_object({\n \"DataType\": f\"custom_{events.EventField.fromPath('$.detail-type')}\"\n })\n))",
|
137 | "version": "2"
|
138 | },
|
139 | "csharp": {
|
140 | "source": "Rule onCommitRule;\nTopic topic;\n\n\nonCommitRule.AddTarget(new SnsTopic(topic, new SnsTopicProps {\n Message = RuleTargetInput.FromObject(new Dictionary<string, string> {\n { \"DataType\", $\"custom_{events.EventField.fromPath('$.detail-type')}\" }\n })\n}));",
|
141 | "version": "1"
|
142 | },
|
143 | "java": {
|
144 | "source": "Rule onCommitRule;\nTopic topic;\n\n\nonCommitRule.addTarget(SnsTopic.Builder.create(topic)\n .message(RuleTargetInput.fromObject(Map.of(\n \"DataType\", String.format(\"custom_%s\", EventField.fromPath(\"$.detail-type\")))))\n .build());",
|
145 | "version": "1"
|
146 | },
|
147 | "go": {
|
148 | "source": "var onCommitRule rule\nvar topic topic\n\nonCommitRule.addTarget(targets.NewSnsTopic(topic, &snsTopicProps{\n\tmessage: events.ruleTargetInput.fromObject(map[string]*string{\n\t\t\"DataType\": fmt.Sprintf(\"custom_%v\", events.EventField.fromPath(jsii.String(\"$.detail-type\"))),\n\t}),\n}))",
|
149 | "version": "1"
|
150 | },
|
151 | "$": {
|
152 | "source": "declare const onCommitRule: events.Rule;\ndeclare const topic: sns.Topic;\n\nonCommitRule.addTarget(new targets.SnsTopic(topic, {\n message: events.RuleTargetInput.fromObject(\n {\n DataType: `custom_${events.EventField.fromPath('$.detail-type')}`\n }\n )\n}));",
|
153 | "version": "0"
|
154 | }
|
155 | },
|
156 | "location": {
|
157 | "api": {
|
158 | "api": "moduleReadme",
|
159 | "moduleFqn": "@aws-cdk/aws-events"
|
160 | },
|
161 | "field": {
|
162 | "field": "markdown",
|
163 | "line": 91
|
164 | }
|
165 | },
|
166 | "didCompile": true,
|
167 | "fqnsReferenced": [
|
168 | "@aws-cdk/aws-events-targets.SnsTopic",
|
169 | "@aws-cdk/aws-events-targets.SnsTopicProps",
|
170 | "@aws-cdk/aws-events.IRuleTarget",
|
171 | "@aws-cdk/aws-events.Rule#addTarget",
|
172 | "@aws-cdk/aws-events.RuleTargetInput",
|
173 | "@aws-cdk/aws-events.RuleTargetInput#fromObject",
|
174 | "@aws-cdk/aws-sns.ITopic"
|
175 | ],
|
176 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const onCommitRule: events.Rule;\ndeclare const topic: sns.Topic;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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\nonCommitRule.addTarget(new targets.SnsTopic(topic, {\n message: events.RuleTargetInput.fromObject(\n {\n DataType: `custom_${events.EventField.fromPath('$.detail-type')}`\n }\n )\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
177 | "syntaxKindCounter": {
|
178 | "10": 1,
|
179 | "15": 1,
|
180 | "17": 1,
|
181 | "75": 19,
|
182 | "130": 2,
|
183 | "153": 2,
|
184 | "169": 2,
|
185 | "193": 2,
|
186 | "194": 6,
|
187 | "196": 3,
|
188 | "197": 1,
|
189 | "211": 1,
|
190 | "221": 1,
|
191 | "225": 2,
|
192 | "226": 1,
|
193 | "242": 2,
|
194 | "243": 2,
|
195 | "281": 2,
|
196 | "290": 1
|
197 | },
|
198 | "fqnsFingerprint": "1cf19a7a748d1239f6b47dca9cd1884215f3a44d1bb074e996a16d0cb7489b02"
|
199 | },
|
200 | "eccf9afcaf8de6691b31152d3661bc14dc7cee02f8010f72354b48b5fa5ed3d8": {
|
201 | "translations": {
|
202 | "python": {
|
203 | "source": "from aws_cdk.aws_events import Rule, Schedule\nfrom aws_cdk.aws_events_targets import EcsTask\nfrom aws_cdk.aws_ecs import Cluster, TaskDefinition\nfrom aws_cdk.aws_iam import Role\n\n# cluster: Cluster\n# task_definition: TaskDefinition\n# role: Role\n\n\necs_task_target = EcsTask(cluster=cluster, task_definition=task_definition, role=role)\n\nRule(self, \"ScheduleRule\",\n schedule=Schedule.cron(minute=\"0\", hour=\"4\"),\n targets=[ecs_task_target]\n)",
|
204 | "version": "2"
|
205 | },
|
206 | "csharp": {
|
207 | "source": "using Amazon.CDK.AWS.Events;\nusing Amazon.CDK.AWS.Events.Targets;\nusing Amazon.CDK.AWS.ECS;\nusing Amazon.CDK.AWS.IAM;\n\nCluster cluster;\nTaskDefinition taskDefinition;\nRole role;\n\n\nEcsTask ecsTaskTarget = new EcsTask(new EcsTaskProps { Cluster = cluster, TaskDefinition = taskDefinition, Role = role });\n\nnew Rule(this, \"ScheduleRule\", new RuleProps {\n Schedule = Schedule.Cron(new CronOptions { Minute = \"0\", Hour = \"4\" }),\n Targets = new [] { ecsTaskTarget }\n});",
|
208 | "version": "1"
|
209 | },
|
210 | "java": {
|
211 | "source": "import software.amazon.awscdk.services.events.Rule;\nimport software.amazon.awscdk.services.events.Schedule;\nimport software.amazon.awscdk.services.events.targets.EcsTask;\nimport software.amazon.awscdk.services.ecs.Cluster;\nimport software.amazon.awscdk.services.ecs.TaskDefinition;\nimport software.amazon.awscdk.services.iam.Role;\n\nCluster cluster;\nTaskDefinition taskDefinition;\nRole role;\n\n\nEcsTask ecsTaskTarget = EcsTask.Builder.create().cluster(cluster).taskDefinition(taskDefinition).role(role).build();\n\nRule.Builder.create(this, \"ScheduleRule\")\n .schedule(Schedule.cron(CronOptions.builder().minute(\"0\").hour(\"4\").build()))\n .targets(List.of(ecsTaskTarget))\n .build();",
|
212 | "version": "1"
|
213 | },
|
214 | "go": {
|
215 | "source": "import awscdkawsevents \"github.com/aws-samples/dummy/awscdkawsevents\"type Rule awscdkawsevents.Rule\ntype Schedule awscdkawsevents.Scheduleimport awscdkawseventstargets \"github.com/aws-samples/dummy/awscdkawseventstargets\"type EcsTask awscdkawseventstargets.EcsTaskimport awscdkawsecs \"github.com/aws-samples/dummy/awscdkawsecs\"type Cluster awscdkawsecs.Cluster\ntype TaskDefinition awscdkawsecs.TaskDefinitionimport awscdkawsiam \"github.com/aws-samples/dummy/awscdkawsiam\"type Role awscdkawsiam.Role\n\nvar cluster cluster\nvar taskDefinition taskDefinition\nvar role role\n\necsTaskTarget := NewEcsTask(&ecsTaskProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\trole: role,\n})\n\nNewRule(this, jsii.String(\"ScheduleRule\"), &ruleProps{\n\tschedule: schedule.cron(&cronOptions{\n\t\tminute: jsii.String(\"0\"),\n\t\thour: jsii.String(\"4\"),\n\t}),\n\ttargets: []iRuleTarget{\n\t\tecsTaskTarget,\n\t},\n})",
|
216 | "version": "1"
|
217 | },
|
218 | "$": {
|
219 | "source": "import { Rule, Schedule } from '@aws-cdk/aws-events';\nimport { EcsTask } from '@aws-cdk/aws-events-targets';\nimport { Cluster, TaskDefinition } from '@aws-cdk/aws-ecs';\nimport { Role } from '@aws-cdk/aws-iam';\n\ndeclare const cluster: Cluster;\ndeclare const taskDefinition: TaskDefinition;\ndeclare const role: Role;\n\nconst ecsTaskTarget = new EcsTask({ cluster, taskDefinition, role });\n\nnew Rule(this, 'ScheduleRule', {\n schedule: Schedule.cron({ minute: '0', hour: '4' }),\n targets: [ecsTaskTarget],\n});",
|
220 | "version": "0"
|
221 | }
|
222 | },
|
223 | "location": {
|
224 | "api": {
|
225 | "api": "moduleReadme",
|
226 | "moduleFqn": "@aws-cdk/aws-events"
|
227 | },
|
228 | "field": {
|
229 | "field": "markdown",
|
230 | "line": 111
|
231 | }
|
232 | },
|
233 | "didCompile": true,
|
234 | "fqnsReferenced": [
|
235 | "@aws-cdk/aws-ecs.ICluster",
|
236 | "@aws-cdk/aws-ecs.ITaskDefinition",
|
237 | "@aws-cdk/aws-events-targets.EcsTask",
|
238 | "@aws-cdk/aws-events-targets.EcsTaskProps",
|
239 | "@aws-cdk/aws-events.CronOptions",
|
240 | "@aws-cdk/aws-events.Rule",
|
241 | "@aws-cdk/aws-events.RuleProps",
|
242 | "@aws-cdk/aws-events.Schedule",
|
243 | "@aws-cdk/aws-events.Schedule#cron",
|
244 | "@aws-cdk/aws-iam.IRole",
|
245 | "constructs.Construct"
|
246 | ],
|
247 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport { Rule, Schedule } from '@aws-cdk/aws-events';\nimport { EcsTask } from '@aws-cdk/aws-events-targets';\nimport { Cluster, TaskDefinition } from '@aws-cdk/aws-ecs';\nimport { Role } from '@aws-cdk/aws-iam';\n\ndeclare const cluster: Cluster;\ndeclare const taskDefinition: TaskDefinition;\ndeclare const role: Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\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 ecsTaskTarget = new EcsTask({ cluster, taskDefinition, role });\n\nnew Rule(this, 'ScheduleRule', {\n schedule: Schedule.cron({ minute: '0', hour: '4' }),\n targets: [ecsTaskTarget],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
248 | "syntaxKindCounter": {
|
249 | "10": 7,
|
250 | "75": 25,
|
251 | "104": 1,
|
252 | "130": 3,
|
253 | "169": 3,
|
254 | "192": 1,
|
255 | "193": 3,
|
256 | "194": 1,
|
257 | "196": 1,
|
258 | "197": 2,
|
259 | "225": 4,
|
260 | "226": 1,
|
261 | "242": 4,
|
262 | "243": 4,
|
263 | "254": 4,
|
264 | "255": 4,
|
265 | "257": 4,
|
266 | "258": 6,
|
267 | "281": 4,
|
268 | "282": 3,
|
269 | "290": 1
|
270 | },
|
271 | "fqnsFingerprint": "d475f9c9575b8eb66617076935580c307d039f547f8303425190b74f03e85bd9"
|
272 | },
|
273 | "fc9533bb39108e00dfa980b5b1c40dfe71ad2e992477c5bac2208bf6ca78c9d5": {
|
274 | "translations": {
|
275 | "python": {
|
276 | "source": "# cluster: ecs.Cluster\n# task_definition: ecs.TaskDefinition\n# role: iam.Role\n\n\nplatform_version = ecs.FargatePlatformVersion.VERSION1_4\necs_task_target = targets.EcsTask(cluster=cluster, task_definition=task_definition, role=role, platform_version=platform_version)",
|
277 | "version": "2"
|
278 | },
|
279 | "csharp": {
|
280 | "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nRole role;\n\n\nFargatePlatformVersion platformVersion = FargatePlatformVersion.VERSION1_4;\nEcsTask ecsTaskTarget = new EcsTask(new EcsTaskProps { Cluster = cluster, TaskDefinition = taskDefinition, Role = role, PlatformVersion = platformVersion });",
|
281 | "version": "1"
|
282 | },
|
283 | "java": {
|
284 | "source": "Cluster cluster;\nTaskDefinition taskDefinition;\nRole role;\n\n\nFargatePlatformVersion platformVersion = FargatePlatformVersion.VERSION1_4;\nEcsTask ecsTaskTarget = EcsTask.Builder.create().cluster(cluster).taskDefinition(taskDefinition).role(role).platformVersion(platformVersion).build();",
|
285 | "version": "1"
|
286 | },
|
287 | "go": {
|
288 | "source": "var cluster cluster\nvar taskDefinition taskDefinition\nvar role role\n\nplatformVersion := ecs.fargatePlatformVersion_VERSION1_4\necsTaskTarget := targets.NewEcsTask(&ecsTaskProps{\n\tcluster: cluster,\n\ttaskDefinition: taskDefinition,\n\trole: role,\n\tplatformVersion: platformVersion,\n})",
|
289 | "version": "1"
|
290 | },
|
291 | "$": {
|
292 | "source": "declare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const role: iam.Role;\n\nconst platformVersion = ecs.FargatePlatformVersion.VERSION1_4;\nconst ecsTaskTarget = new targets.EcsTask({ cluster, taskDefinition, role, platformVersion });",
|
293 | "version": "0"
|
294 | }
|
295 | },
|
296 | "location": {
|
297 | "api": {
|
298 | "api": "moduleReadme",
|
299 | "moduleFqn": "@aws-cdk/aws-events"
|
300 | },
|
301 | "field": {
|
302 | "field": "markdown",
|
303 | "line": 131
|
304 | }
|
305 | },
|
306 | "didCompile": true,
|
307 | "fqnsReferenced": [
|
308 | "@aws-cdk/aws-ecs.FargatePlatformVersion",
|
309 | "@aws-cdk/aws-ecs.FargatePlatformVersion#VERSION1_4",
|
310 | "@aws-cdk/aws-ecs.ICluster",
|
311 | "@aws-cdk/aws-ecs.ITaskDefinition",
|
312 | "@aws-cdk/aws-events-targets.EcsTask",
|
313 | "@aws-cdk/aws-events-targets.EcsTaskProps",
|
314 | "@aws-cdk/aws-iam.IRole"
|
315 | ],
|
316 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const cluster: ecs.Cluster;\ndeclare const taskDefinition: ecs.TaskDefinition;\ndeclare const role: iam.Role;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 platformVersion = ecs.FargatePlatformVersion.VERSION1_4;\nconst ecsTaskTarget = new targets.EcsTask({ cluster, taskDefinition, role, platformVersion });\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
317 | "syntaxKindCounter": {
|
318 | "75": 20,
|
319 | "130": 3,
|
320 | "153": 3,
|
321 | "169": 3,
|
322 | "193": 1,
|
323 | "194": 3,
|
324 | "197": 1,
|
325 | "225": 5,
|
326 | "242": 5,
|
327 | "243": 5,
|
328 | "282": 4,
|
329 | "290": 1
|
330 | },
|
331 | "fqnsFingerprint": "b5f36e86592cf98fd11b0a24c9b4b5f810db015b7b3a187466993616d3f2fec3"
|
332 | },
|
333 | "cb3ed42d1e89aa602607c9052cd892132b3e488d3a8a51142ae4d813b3e1bcc7": {
|
334 | "translations": {
|
335 | "python": {
|
336 | "source": "from aws_cdk.core import Environment, Environment\nfrom aws_cdk.core import App, Stack\nimport aws_cdk.aws_codebuild as codebuild\nimport aws_cdk.aws_codecommit as codecommit\nimport aws_cdk.aws_events_targets as targets\n\napp = App()\n\naccount1 = \"11111111111\"\naccount2 = \"22222222222\"\n\nstack1 = Stack(app, \"Stack1\", env=Environment(account=account1, region=\"us-west-1\"))\nrepo = codecommit.Repository(stack1, \"Repository\",\n repository_name=\"myrepository\"\n)\n\nstack2 = Stack(app, \"Stack2\", env=Environment(account=account2, region=\"us-east-1\"))\nproject = codebuild.Project(stack2, \"Project\")\n\nrepo.on_commit(\"OnCommit\",\n target=targets.CodeBuildProject(project)\n)",
|
337 | "version": "2"
|
338 | },
|
339 | "csharp": {
|
340 | "source": "using Amazon.CDK;\nusing Amazon.CDK.AWS.CodeBuild;\nusing Amazon.CDK.AWS.CodeCommit;\nusing Amazon.CDK.AWS.Events.Targets;\n\nApp app = new App();\n\nstring account1 = \"11111111111\";\nstring account2 = \"22222222222\";\n\nStack stack1 = new Stack(app, \"Stack1\", new StackProps { Env = new Environment { Account = account1, Region = \"us-west-1\" } });\nRepository repo = new Repository(stack1, \"Repository\", new RepositoryProps {\n RepositoryName = \"myrepository\"\n});\n\nStack stack2 = new Stack(app, \"Stack2\", new StackProps { Env = new Environment { Account = account2, Region = \"us-east-1\" } });\nProject project = new Project(stack2, \"Project\", new ProjectProps { });\n\nrepo.OnCommit(\"OnCommit\", new OnCommitOptions {\n Target = new CodeBuildProject(project)\n});",
|
341 | "version": "1"
|
342 | },
|
343 | "java": {
|
344 | "source": "import software.amazon.awscdk.core.App;\nimport software.amazon.awscdk.core.Stack;\nimport software.amazon.awscdk.services.codebuild.*;\nimport software.amazon.awscdk.services.codecommit.*;\nimport software.amazon.awscdk.services.events.targets.*;\n\nApp app = new App();\n\nString account1 = \"11111111111\";\nString account2 = \"22222222222\";\n\nStack stack1 = Stack.Builder.create(app, \"Stack1\").env(Environment.builder().account(account1).region(\"us-west-1\").build()).build();\nRepository repo = Repository.Builder.create(stack1, \"Repository\")\n .repositoryName(\"myrepository\")\n .build();\n\nStack stack2 = Stack.Builder.create(app, \"Stack2\").env(Environment.builder().account(account2).region(\"us-east-1\").build()).build();\nProject project = Project.Builder.create(stack2, \"Project\").build();\n\nrepo.onCommit(\"OnCommit\", OnCommitOptions.builder()\n .target(new CodeBuildProject(project))\n .build());",
|
345 | "version": "1"
|
346 | },
|
347 | "go": {
|
348 | "source": "import awscdkcore \"github.com/aws-samples/dummy/awscdkcore\"type App awscdkcore.App\ntype Stack awscdkcore.Stackimport codebuild \"github.com/aws-samples/dummy/awscdkawscodebuild\"import codecommit \"github.com/aws-samples/dummy/awscdkawscodecommit\"import targets \"github.com/aws-samples/dummy/awscdkawseventstargets\"\n\napp := NewApp()\n\naccount1 := \"11111111111\"\naccount2 := \"22222222222\"\n\nstack1 := NewStack(app, jsii.String(\"Stack1\"), &stackProps{\n\tenv: &environment{\n\t\taccount: account1,\n\t\tregion: jsii.String(\"us-west-1\"),\n\t},\n})\nrepo := codecommit.NewRepository(stack1, jsii.String(\"Repository\"), &repositoryProps{\n\trepositoryName: jsii.String(\"myrepository\"),\n})\n\nstack2 := NewStack(app, jsii.String(\"Stack2\"), &stackProps{\n\tenv: &environment{\n\t\taccount: account2,\n\t\tregion: jsii.String(\"us-east-1\"),\n\t},\n})\nproject := codebuild.NewProject(stack2, jsii.String(\"Project\"), &projectProps{\n})\n\nrepo.onCommit(jsii.String(\"OnCommit\"), &onCommitOptions{\n\ttarget: targets.NewCodeBuildProject(project),\n})",
|
349 | "version": "1"
|
350 | },
|
351 | "$": {
|
352 | "source": "import { App, Stack } from '@aws-cdk/core';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as targets from '@aws-cdk/aws-events-targets';\n\nconst app = new App();\n\nconst account1 = '11111111111';\nconst account2 = '22222222222';\n\nconst stack1 = new Stack(app, 'Stack1', { env: { account: account1, region: 'us-west-1' } });\nconst repo = new codecommit.Repository(stack1, 'Repository', {\n repositoryName: 'myrepository',\n});\n\nconst stack2 = new Stack(app, 'Stack2', { env: { account: account2, region: 'us-east-1' } });\nconst project = new codebuild.Project(stack2, 'Project', {\n // ...\n});\n\nrepo.onCommit('OnCommit', {\n target: new targets.CodeBuildProject(project),\n});",
|
353 | "version": "0"
|
354 | }
|
355 | },
|
356 | "location": {
|
357 | "api": {
|
358 | "api": "moduleReadme",
|
359 | "moduleFqn": "@aws-cdk/aws-events"
|
360 | },
|
361 | "field": {
|
362 | "field": "markdown",
|
363 | "line": 163
|
364 | }
|
365 | },
|
366 | "didCompile": true,
|
367 | "fqnsReferenced": [
|
368 | "@aws-cdk/aws-codebuild.IProject",
|
369 | "@aws-cdk/aws-codebuild.Project",
|
370 | "@aws-cdk/aws-codebuild.ProjectProps",
|
371 | "@aws-cdk/aws-codecommit.OnCommitOptions",
|
372 | "@aws-cdk/aws-codecommit.Repository",
|
373 | "@aws-cdk/aws-codecommit.RepositoryProps",
|
374 | "@aws-cdk/aws-events-targets.CodeBuildProject",
|
375 | "@aws-cdk/aws-events.IRuleTarget",
|
376 | "@aws-cdk/core.App",
|
377 | "@aws-cdk/core.Environment",
|
378 | "@aws-cdk/core.Stack",
|
379 | "@aws-cdk/core.StackProps",
|
380 | "constructs.Construct"
|
381 | ],
|
382 | "fullSource": "import { App, Stack } from '@aws-cdk/core';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as targets from '@aws-cdk/aws-events-targets';\n\nconst app = new App();\n\nconst account1 = '11111111111';\nconst account2 = '22222222222';\n\nconst stack1 = new Stack(app, 'Stack1', { env: { account: account1, region: 'us-west-1' } });\nconst repo = new codecommit.Repository(stack1, 'Repository', {\n repositoryName: 'myrepository',\n});\n\nconst stack2 = new Stack(app, 'Stack2', { env: { account: account2, region: 'us-east-1' } });\nconst project = new codebuild.Project(stack2, 'Project', {\n // ...\n});\n\nrepo.onCommit('OnCommit', {\n target: new targets.CodeBuildProject(project),\n});",
|
383 | "syntaxKindCounter": {
|
384 | "10": 14,
|
385 | "75": 38,
|
386 | "193": 7,
|
387 | "194": 4,
|
388 | "196": 1,
|
389 | "197": 6,
|
390 | "225": 7,
|
391 | "226": 1,
|
392 | "242": 7,
|
393 | "243": 7,
|
394 | "254": 4,
|
395 | "255": 4,
|
396 | "256": 3,
|
397 | "257": 1,
|
398 | "258": 2,
|
399 | "281": 8,
|
400 | "290": 1
|
401 | },
|
402 | "fqnsFingerprint": "601170eb478d69cbb6fd1e1ef2a27a061091c3c48d95368858a17b59f2ad584b"
|
403 | },
|
404 | "9b906e679698ac5a36a82dbffb362b7397ae5c64753e3a4b41310b70c1be19a7": {
|
405 | "translations": {
|
406 | "python": {
|
407 | "source": "bus = events.EventBus(self, \"bus\",\n event_bus_name=\"MyCustomEventBus\"\n)\n\nbus.archive(\"MyArchive\",\n archive_name=\"MyCustomEventBusArchive\",\n description=\"MyCustomerEventBus Archive\",\n event_pattern=events.EventPattern(\n account=[Stack.of(self).account]\n ),\n retention=Duration.days(365)\n)",
|
408 | "version": "2"
|
409 | },
|
410 | "csharp": {
|
411 | "source": "EventBus bus = new EventBus(this, \"bus\", new EventBusProps {\n EventBusName = \"MyCustomEventBus\"\n});\n\nbus.Archive(\"MyArchive\", new BaseArchiveProps {\n ArchiveName = \"MyCustomEventBusArchive\",\n Description = \"MyCustomerEventBus Archive\",\n EventPattern = new EventPattern {\n Account = new [] { Stack.Of(this).Account }\n },\n Retention = Duration.Days(365)\n});",
|
412 | "version": "1"
|
413 | },
|
414 | "java": {
|
415 | "source": "EventBus bus = EventBus.Builder.create(this, \"bus\")\n .eventBusName(\"MyCustomEventBus\")\n .build();\n\nbus.archive(\"MyArchive\", BaseArchiveProps.builder()\n .archiveName(\"MyCustomEventBusArchive\")\n .description(\"MyCustomerEventBus Archive\")\n .eventPattern(EventPattern.builder()\n .account(List.of(Stack.of(this).getAccount()))\n .build())\n .retention(Duration.days(365))\n .build());",
|
416 | "version": "1"
|
417 | },
|
418 | "go": {
|
419 | "source": "bus := events.NewEventBus(this, jsii.String(\"bus\"), &eventBusProps{\n\teventBusName: jsii.String(\"MyCustomEventBus\"),\n})\n\nbus.archive(jsii.String(\"MyArchive\"), &baseArchiveProps{\n\tarchiveName: jsii.String(\"MyCustomEventBusArchive\"),\n\tdescription: jsii.String(\"MyCustomerEventBus Archive\"),\n\teventPattern: &eventPattern{\n\t\taccount: []*string{\n\t\t\t*stack.of(this).account,\n\t\t},\n\t},\n\tretention: duration.days(jsii.Number(365)),\n})",
|
420 | "version": "1"
|
421 | },
|
422 | "$": {
|
423 | "source": "const bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});",
|
424 | "version": "0"
|
425 | }
|
426 | },
|
427 | "location": {
|
428 | "api": {
|
429 | "api": "moduleReadme",
|
430 | "moduleFqn": "@aws-cdk/aws-events"
|
431 | },
|
432 | "field": {
|
433 | "field": "markdown",
|
434 | "line": 204
|
435 | }
|
436 | },
|
437 | "didCompile": true,
|
438 | "fqnsReferenced": [
|
439 | "@aws-cdk/aws-events.BaseArchiveProps",
|
440 | "@aws-cdk/aws-events.EventBus",
|
441 | "@aws-cdk/aws-events.EventBusProps",
|
442 | "@aws-cdk/aws-events.EventPattern",
|
443 | "@aws-cdk/core.Duration",
|
444 | "@aws-cdk/core.Duration#days",
|
445 | "@aws-cdk/core.Stack#account",
|
446 | "@aws-cdk/core.Stack#of",
|
447 | "constructs.Construct",
|
448 | "constructs.IConstruct"
|
449 | ],
|
450 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
451 | "syntaxKindCounter": {
|
452 | "8": 1,
|
453 | "10": 5,
|
454 | "75": 16,
|
455 | "104": 2,
|
456 | "192": 1,
|
457 | "193": 3,
|
458 | "194": 5,
|
459 | "196": 3,
|
460 | "197": 1,
|
461 | "225": 1,
|
462 | "226": 1,
|
463 | "242": 1,
|
464 | "243": 1,
|
465 | "281": 6
|
466 | },
|
467 | "fqnsFingerprint": "8a370448c8850f9d3bf4b97e19e578ded327b3a3770acbff3aee6834ce814a3f"
|
468 | },
|
469 | "8b5cf83c5bb4b90175ce2c38aaa59de642928ef4d0c277ccebc7f0e17d8196fa": {
|
470 | "translations": {
|
471 | "python": {
|
472 | "source": "# lambda_function: lambda.Function\n\n\nevent_bus = events.EventBus.from_event_bus_arn(self, \"ImportedEventBus\", \"arn:aws:events:us-east-1:111111111:event-bus/my-event-bus\")\n\n# now you can just call methods on the eventbus\nevent_bus.grant_put_events_to(lambda_function)",
|
473 | "version": "2"
|
474 | },
|
475 | "csharp": {
|
476 | "source": "Function lambdaFunction;\n\n\nIEventBus eventBus = EventBus.FromEventBusArn(this, \"ImportedEventBus\", \"arn:aws:events:us-east-1:111111111:event-bus/my-event-bus\");\n\n// now you can just call methods on the eventbus\neventBus.GrantPutEventsTo(lambdaFunction);",
|
477 | "version": "1"
|
478 | },
|
479 | "java": {
|
480 | "source": "Function lambdaFunction;\n\n\nIEventBus eventBus = EventBus.fromEventBusArn(this, \"ImportedEventBus\", \"arn:aws:events:us-east-1:111111111:event-bus/my-event-bus\");\n\n// now you can just call methods on the eventbus\neventBus.grantPutEventsTo(lambdaFunction);",
|
481 | "version": "1"
|
482 | },
|
483 | "go": {
|
484 | "source": "var lambdaFunction function\n\neventBus := events.eventBus.fromEventBusArn(this, jsii.String(\"ImportedEventBus\"), jsii.String(\"arn:aws:events:us-east-1:111111111:event-bus/my-event-bus\"))\n\n// now you can just call methods on the eventbus\neventBus.grantPutEventsTo(lambdaFunction)",
|
485 | "version": "1"
|
486 | },
|
487 | "$": {
|
488 | "source": "declare const lambdaFunction: lambda.Function;\n\nconst eventBus = events.EventBus.fromEventBusArn(this, 'ImportedEventBus', 'arn:aws:events:us-east-1:111111111:event-bus/my-event-bus');\n\n// now you can just call methods on the eventbus\neventBus.grantPutEventsTo(lambdaFunction);",
|
489 | "version": "0"
|
490 | }
|
491 | },
|
492 | "location": {
|
493 | "api": {
|
494 | "api": "moduleReadme",
|
495 | "moduleFqn": "@aws-cdk/aws-events"
|
496 | },
|
497 | "field": {
|
498 | "field": "markdown",
|
499 | "line": 226
|
500 | }
|
501 | },
|
502 | "didCompile": true,
|
503 | "fqnsReferenced": [
|
504 | "@aws-cdk/aws-events.EventBus",
|
505 | "@aws-cdk/aws-events.EventBus#fromEventBusArn",
|
506 | "@aws-cdk/aws-events.IEventBus",
|
507 | "@aws-cdk/aws-events.IEventBus#grantPutEventsTo",
|
508 | "@aws-cdk/aws-iam.IGrantable",
|
509 | "constructs.Construct"
|
510 | ],
|
511 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const lambdaFunction: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 eventBus = events.EventBus.fromEventBusArn(this, 'ImportedEventBus', 'arn:aws:events:us-east-1:111111111:event-bus/my-event-bus');\n\n// now you can just call methods on the eventbus\neventBus.grantPutEventsTo(lambdaFunction);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
512 | "syntaxKindCounter": {
|
513 | "10": 2,
|
514 | "75": 10,
|
515 | "104": 1,
|
516 | "130": 1,
|
517 | "153": 1,
|
518 | "169": 1,
|
519 | "194": 3,
|
520 | "196": 2,
|
521 | "225": 2,
|
522 | "226": 1,
|
523 | "242": 2,
|
524 | "243": 2,
|
525 | "290": 1
|
526 | },
|
527 | "fqnsFingerprint": "cc068bc2c924b1e141e3c013b86be098f8cac5d226af8bee597d203bbf2dbea1"
|
528 | },
|
529 | "a4827dbeee1582d0bb87d1ecadcb5b55214df35b9893403fde11829245c840cb": {
|
530 | "translations": {
|
531 | "python": {
|
532 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
533 | "version": "2"
|
534 | },
|
535 | "csharp": {
|
536 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
537 | "version": "1"
|
538 | },
|
539 | "java": {
|
540 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
541 | "version": "1"
|
542 | },
|
543 | "go": {
|
544 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
545 | "version": "1"
|
546 | },
|
547 | "$": {
|
548 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
549 | "version": "0"
|
550 | }
|
551 | },
|
552 | "location": {
|
553 | "api": {
|
554 | "api": "type",
|
555 | "fqn": "@aws-cdk/aws-events.ApiDestination"
|
556 | },
|
557 | "field": {
|
558 | "field": "example"
|
559 | }
|
560 | },
|
561 | "didCompile": true,
|
562 | "fqnsReferenced": [
|
563 | "@aws-cdk/aws-events-targets.ApiDestination",
|
564 | "@aws-cdk/aws-events.ApiDestination",
|
565 | "@aws-cdk/aws-events.ApiDestinationProps",
|
566 | "@aws-cdk/aws-events.Authorization",
|
567 | "@aws-cdk/aws-events.Authorization#apiKey",
|
568 | "@aws-cdk/aws-events.Connection",
|
569 | "@aws-cdk/aws-events.ConnectionProps",
|
570 | "@aws-cdk/aws-events.IApiDestination",
|
571 | "@aws-cdk/aws-events.IConnection",
|
572 | "@aws-cdk/aws-events.Rule",
|
573 | "@aws-cdk/aws-events.RuleProps",
|
574 | "@aws-cdk/aws-events.Schedule",
|
575 | "@aws-cdk/aws-events.Schedule#rate",
|
576 | "@aws-cdk/core.Duration",
|
577 | "@aws-cdk/core.Duration#minutes",
|
578 | "@aws-cdk/core.SecretValue",
|
579 | "@aws-cdk/core.SecretValue#secretsManager",
|
580 | "constructs.Construct"
|
581 | ],
|
582 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
583 | "syntaxKindCounter": {
|
584 | "8": 1,
|
585 | "10": 8,
|
586 | "75": 30,
|
587 | "104": 3,
|
588 | "192": 1,
|
589 | "193": 3,
|
590 | "194": 11,
|
591 | "196": 4,
|
592 | "197": 4,
|
593 | "225": 3,
|
594 | "242": 3,
|
595 | "243": 3,
|
596 | "281": 6,
|
597 | "282": 1
|
598 | },
|
599 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
600 | },
|
601 | "c8275deddeed5cd49edb8c21a818c2b3d1bd40389befb97dd8166e2ccb80f9f4": {
|
602 | "translations": {
|
603 | "python": {
|
604 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
605 | "version": "2"
|
606 | },
|
607 | "csharp": {
|
608 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
609 | "version": "1"
|
610 | },
|
611 | "java": {
|
612 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
613 | "version": "1"
|
614 | },
|
615 | "go": {
|
616 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
617 | "version": "1"
|
618 | },
|
619 | "$": {
|
620 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
621 | "version": "0"
|
622 | }
|
623 | },
|
624 | "location": {
|
625 | "api": {
|
626 | "api": "type",
|
627 | "fqn": "@aws-cdk/aws-events.ApiDestinationProps"
|
628 | },
|
629 | "field": {
|
630 | "field": "example"
|
631 | }
|
632 | },
|
633 | "didCompile": true,
|
634 | "fqnsReferenced": [
|
635 | "@aws-cdk/aws-events-targets.ApiDestination",
|
636 | "@aws-cdk/aws-events.ApiDestination",
|
637 | "@aws-cdk/aws-events.ApiDestinationProps",
|
638 | "@aws-cdk/aws-events.Authorization",
|
639 | "@aws-cdk/aws-events.Authorization#apiKey",
|
640 | "@aws-cdk/aws-events.Connection",
|
641 | "@aws-cdk/aws-events.ConnectionProps",
|
642 | "@aws-cdk/aws-events.IApiDestination",
|
643 | "@aws-cdk/aws-events.IConnection",
|
644 | "@aws-cdk/aws-events.Rule",
|
645 | "@aws-cdk/aws-events.RuleProps",
|
646 | "@aws-cdk/aws-events.Schedule",
|
647 | "@aws-cdk/aws-events.Schedule#rate",
|
648 | "@aws-cdk/core.Duration",
|
649 | "@aws-cdk/core.Duration#minutes",
|
650 | "@aws-cdk/core.SecretValue",
|
651 | "@aws-cdk/core.SecretValue#secretsManager",
|
652 | "constructs.Construct"
|
653 | ],
|
654 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
655 | "syntaxKindCounter": {
|
656 | "8": 1,
|
657 | "10": 8,
|
658 | "75": 30,
|
659 | "104": 3,
|
660 | "192": 1,
|
661 | "193": 3,
|
662 | "194": 11,
|
663 | "196": 4,
|
664 | "197": 4,
|
665 | "225": 3,
|
666 | "242": 3,
|
667 | "243": 3,
|
668 | "281": 6,
|
669 | "282": 1
|
670 | },
|
671 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
672 | },
|
673 | "3bfa4880a9c7066e6c40c8a52777eb616b63d2a331c6d5960ae5081f2f8d43af": {
|
674 | "translations": {
|
675 | "python": {
|
676 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\nimport aws_cdk.core as cdk\n\n# detail: Any\n# event_bus: events.EventBus\n\narchive = events.Archive(self, \"MyArchive\",\n event_pattern=events.EventPattern(\n account=[\"account\"],\n detail={\n \"detail_key\": detail\n },\n detail_type=[\"detailType\"],\n id=[\"id\"],\n region=[\"region\"],\n resources=[\"resources\"],\n source=[\"source\"],\n time=[\"time\"],\n version=[\"version\"]\n ),\n source_event_bus=event_bus,\n\n # the properties below are optional\n archive_name=\"archiveName\",\n description=\"description\",\n retention=cdk.Duration.minutes(30)\n)",
|
677 | "version": "2"
|
678 | },
|
679 | "csharp": {
|
680 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\nusing Amazon.CDK;\n\nvar detail;\nEventBus eventBus;\nArchive archive = new Archive(this, \"MyArchive\", new ArchiveProps {\n EventPattern = new EventPattern {\n Account = new [] { \"account\" },\n Detail = new Dictionary<string, object> {\n { \"detailKey\", detail }\n },\n DetailType = new [] { \"detailType\" },\n Id = new [] { \"id\" },\n Region = new [] { \"region\" },\n Resources = new [] { \"resources\" },\n Source = new [] { \"source\" },\n Time = new [] { \"time\" },\n Version = new [] { \"version\" }\n },\n SourceEventBus = eventBus,\n\n // the properties below are optional\n ArchiveName = \"archiveName\",\n Description = \"description\",\n Retention = Duration.Minutes(30)\n});",
|
681 | "version": "1"
|
682 | },
|
683 | "java": {
|
684 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.core.*;\n\nObject detail;\nEventBus eventBus;\n\nArchive archive = Archive.Builder.create(this, \"MyArchive\")\n .eventPattern(EventPattern.builder()\n .account(List.of(\"account\"))\n .detail(Map.of(\n \"detailKey\", detail))\n .detailType(List.of(\"detailType\"))\n .id(List.of(\"id\"))\n .region(List.of(\"region\"))\n .resources(List.of(\"resources\"))\n .source(List.of(\"source\"))\n .time(List.of(\"time\"))\n .version(List.of(\"version\"))\n .build())\n .sourceEventBus(eventBus)\n\n // the properties below are optional\n .archiveName(\"archiveName\")\n .description(\"description\")\n .retention(Duration.minutes(30))\n .build();",
|
685 | "version": "1"
|
686 | },
|
687 | "go": {
|
688 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"import cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar detail interface{}\nvar eventBus eventBus\narchive := events.NewArchive(this, jsii.String(\"MyArchive\"), &archiveProps{\n\teventPattern: &eventPattern{\n\t\taccount: []*string{\n\t\t\tjsii.String(\"account\"),\n\t\t},\n\t\tdetail: map[string]interface{}{\n\t\t\t\"detailKey\": detail,\n\t\t},\n\t\tdetailType: []*string{\n\t\t\tjsii.String(\"detailType\"),\n\t\t},\n\t\tid: []*string{\n\t\t\tjsii.String(\"id\"),\n\t\t},\n\t\tregion: []*string{\n\t\t\tjsii.String(\"region\"),\n\t\t},\n\t\tresources: []*string{\n\t\t\tjsii.String(\"resources\"),\n\t\t},\n\t\tsource: []*string{\n\t\t\tjsii.String(\"source\"),\n\t\t},\n\t\ttime: []*string{\n\t\t\tjsii.String(\"time\"),\n\t\t},\n\t\tversion: []*string{\n\t\t\tjsii.String(\"version\"),\n\t\t},\n\t},\n\tsourceEventBus: eventBus,\n\n\t// the properties below are optional\n\tarchiveName: jsii.String(\"archiveName\"),\n\tdescription: jsii.String(\"description\"),\n\tretention: cdk.duration.minutes(jsii.Number(30)),\n})",
|
689 | "version": "1"
|
690 | },
|
691 | "$": {
|
692 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const detail: any;\ndeclare const eventBus: events.EventBus;\nconst archive = new events.Archive(this, 'MyArchive', {\n eventPattern: {\n account: ['account'],\n detail: {\n detailKey: detail,\n },\n detailType: ['detailType'],\n id: ['id'],\n region: ['region'],\n resources: ['resources'],\n source: ['source'],\n time: ['time'],\n version: ['version'],\n },\n sourceEventBus: eventBus,\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n retention: cdk.Duration.minutes(30),\n});",
|
693 | "version": "0"
|
694 | }
|
695 | },
|
696 | "location": {
|
697 | "api": {
|
698 | "api": "type",
|
699 | "fqn": "@aws-cdk/aws-events.Archive"
|
700 | },
|
701 | "field": {
|
702 | "field": "example"
|
703 | }
|
704 | },
|
705 | "didCompile": true,
|
706 | "fqnsReferenced": [
|
707 | "@aws-cdk/aws-events.Archive",
|
708 | "@aws-cdk/aws-events.ArchiveProps",
|
709 | "@aws-cdk/aws-events.EventPattern",
|
710 | "@aws-cdk/aws-events.IEventBus",
|
711 | "@aws-cdk/core.Duration",
|
712 | "@aws-cdk/core.Duration#minutes",
|
713 | "constructs.Construct"
|
714 | ],
|
715 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const detail: any;\ndeclare const eventBus: events.EventBus;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst archive = new events.Archive(this, 'MyArchive', {\n eventPattern: {\n account: ['account'],\n detail: {\n detailKey: detail,\n },\n detailType: ['detailType'],\n id: ['id'],\n region: ['region'],\n resources: ['resources'],\n source: ['source'],\n time: ['time'],\n version: ['version'],\n },\n sourceEventBus: eventBus,\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n retention: cdk.Duration.minutes(30),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
716 | "syntaxKindCounter": {
|
717 | "8": 1,
|
718 | "10": 13,
|
719 | "75": 29,
|
720 | "104": 1,
|
721 | "125": 1,
|
722 | "130": 2,
|
723 | "153": 1,
|
724 | "169": 1,
|
725 | "192": 8,
|
726 | "193": 3,
|
727 | "194": 3,
|
728 | "196": 1,
|
729 | "197": 1,
|
730 | "225": 3,
|
731 | "242": 3,
|
732 | "243": 3,
|
733 | "254": 2,
|
734 | "255": 2,
|
735 | "256": 2,
|
736 | "281": 15,
|
737 | "290": 1
|
738 | },
|
739 | "fqnsFingerprint": "9e5d7d2ecf1da652d5cfd80939e175c3e06664bc53dde30279901cafda14007c"
|
740 | },
|
741 | "a0af5e04f438e5dd410292fb3f633daa1025f388fadc456653778cda58bc8174": {
|
742 | "translations": {
|
743 | "python": {
|
744 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\nimport aws_cdk.core as cdk\n\n# detail: Any\n# event_bus: events.EventBus\n\narchive_props = events.ArchiveProps(\n event_pattern=events.EventPattern(\n account=[\"account\"],\n detail={\n \"detail_key\": detail\n },\n detail_type=[\"detailType\"],\n id=[\"id\"],\n region=[\"region\"],\n resources=[\"resources\"],\n source=[\"source\"],\n time=[\"time\"],\n version=[\"version\"]\n ),\n source_event_bus=event_bus,\n\n # the properties below are optional\n archive_name=\"archiveName\",\n description=\"description\",\n retention=cdk.Duration.minutes(30)\n)",
|
745 | "version": "2"
|
746 | },
|
747 | "csharp": {
|
748 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\nusing Amazon.CDK;\n\nvar detail;\nEventBus eventBus;\nArchiveProps archiveProps = new ArchiveProps {\n EventPattern = new EventPattern {\n Account = new [] { \"account\" },\n Detail = new Dictionary<string, object> {\n { \"detailKey\", detail }\n },\n DetailType = new [] { \"detailType\" },\n Id = new [] { \"id\" },\n Region = new [] { \"region\" },\n Resources = new [] { \"resources\" },\n Source = new [] { \"source\" },\n Time = new [] { \"time\" },\n Version = new [] { \"version\" }\n },\n SourceEventBus = eventBus,\n\n // the properties below are optional\n ArchiveName = \"archiveName\",\n Description = \"description\",\n Retention = Duration.Minutes(30)\n};",
|
749 | "version": "1"
|
750 | },
|
751 | "java": {
|
752 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.core.*;\n\nObject detail;\nEventBus eventBus;\n\nArchiveProps archiveProps = ArchiveProps.builder()\n .eventPattern(EventPattern.builder()\n .account(List.of(\"account\"))\n .detail(Map.of(\n \"detailKey\", detail))\n .detailType(List.of(\"detailType\"))\n .id(List.of(\"id\"))\n .region(List.of(\"region\"))\n .resources(List.of(\"resources\"))\n .source(List.of(\"source\"))\n .time(List.of(\"time\"))\n .version(List.of(\"version\"))\n .build())\n .sourceEventBus(eventBus)\n\n // the properties below are optional\n .archiveName(\"archiveName\")\n .description(\"description\")\n .retention(Duration.minutes(30))\n .build();",
|
753 | "version": "1"
|
754 | },
|
755 | "go": {
|
756 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"import cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar detail interface{}\nvar eventBus eventBus\narchiveProps := &archiveProps{\n\teventPattern: &eventPattern{\n\t\taccount: []*string{\n\t\t\tjsii.String(\"account\"),\n\t\t},\n\t\tdetail: map[string]interface{}{\n\t\t\t\"detailKey\": detail,\n\t\t},\n\t\tdetailType: []*string{\n\t\t\tjsii.String(\"detailType\"),\n\t\t},\n\t\tid: []*string{\n\t\t\tjsii.String(\"id\"),\n\t\t},\n\t\tregion: []*string{\n\t\t\tjsii.String(\"region\"),\n\t\t},\n\t\tresources: []*string{\n\t\t\tjsii.String(\"resources\"),\n\t\t},\n\t\tsource: []*string{\n\t\t\tjsii.String(\"source\"),\n\t\t},\n\t\ttime: []*string{\n\t\t\tjsii.String(\"time\"),\n\t\t},\n\t\tversion: []*string{\n\t\t\tjsii.String(\"version\"),\n\t\t},\n\t},\n\tsourceEventBus: eventBus,\n\n\t// the properties below are optional\n\tarchiveName: jsii.String(\"archiveName\"),\n\tdescription: jsii.String(\"description\"),\n\tretention: cdk.duration.minutes(jsii.Number(30)),\n}",
|
757 | "version": "1"
|
758 | },
|
759 | "$": {
|
760 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const detail: any;\ndeclare const eventBus: events.EventBus;\nconst archiveProps: events.ArchiveProps = {\n eventPattern: {\n account: ['account'],\n detail: {\n detailKey: detail,\n },\n detailType: ['detailType'],\n id: ['id'],\n region: ['region'],\n resources: ['resources'],\n source: ['source'],\n time: ['time'],\n version: ['version'],\n },\n sourceEventBus: eventBus,\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n retention: cdk.Duration.minutes(30),\n};",
|
761 | "version": "0"
|
762 | }
|
763 | },
|
764 | "location": {
|
765 | "api": {
|
766 | "api": "type",
|
767 | "fqn": "@aws-cdk/aws-events.ArchiveProps"
|
768 | },
|
769 | "field": {
|
770 | "field": "example"
|
771 | }
|
772 | },
|
773 | "didCompile": true,
|
774 | "fqnsReferenced": [
|
775 | "@aws-cdk/aws-events.ArchiveProps",
|
776 | "@aws-cdk/aws-events.EventPattern",
|
777 | "@aws-cdk/aws-events.IEventBus",
|
778 | "@aws-cdk/core.Duration",
|
779 | "@aws-cdk/core.Duration#minutes"
|
780 | ],
|
781 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const detail: any;\ndeclare const eventBus: events.EventBus;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst archiveProps: events.ArchiveProps = {\n eventPattern: {\n account: ['account'],\n detail: {\n detailKey: detail,\n },\n detailType: ['detailType'],\n id: ['id'],\n region: ['region'],\n resources: ['resources'],\n source: ['source'],\n time: ['time'],\n version: ['version'],\n },\n sourceEventBus: eventBus,\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n retention: cdk.Duration.minutes(30),\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
782 | "syntaxKindCounter": {
|
783 | "8": 1,
|
784 | "10": 12,
|
785 | "75": 29,
|
786 | "125": 1,
|
787 | "130": 2,
|
788 | "153": 2,
|
789 | "169": 2,
|
790 | "192": 8,
|
791 | "193": 3,
|
792 | "194": 2,
|
793 | "196": 1,
|
794 | "225": 3,
|
795 | "242": 3,
|
796 | "243": 3,
|
797 | "254": 2,
|
798 | "255": 2,
|
799 | "256": 2,
|
800 | "281": 15,
|
801 | "290": 1
|
802 | },
|
803 | "fqnsFingerprint": "6d7d1962a881d005a96fce23cdf32f8163f1c3345e88378d8242f6d5007e5be0"
|
804 | },
|
805 | "ce2adb2aa227db55bb22760520af285c5cfdb3c16bc6680748537d660d8ec485": {
|
806 | "translations": {
|
807 | "python": {
|
808 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
809 | "version": "2"
|
810 | },
|
811 | "csharp": {
|
812 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
813 | "version": "1"
|
814 | },
|
815 | "java": {
|
816 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
817 | "version": "1"
|
818 | },
|
819 | "go": {
|
820 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
821 | "version": "1"
|
822 | },
|
823 | "$": {
|
824 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
825 | "version": "0"
|
826 | }
|
827 | },
|
828 | "location": {
|
829 | "api": {
|
830 | "api": "type",
|
831 | "fqn": "@aws-cdk/aws-events.Authorization"
|
832 | },
|
833 | "field": {
|
834 | "field": "example"
|
835 | }
|
836 | },
|
837 | "didCompile": true,
|
838 | "fqnsReferenced": [
|
839 | "@aws-cdk/aws-events-targets.ApiDestination",
|
840 | "@aws-cdk/aws-events.ApiDestination",
|
841 | "@aws-cdk/aws-events.ApiDestinationProps",
|
842 | "@aws-cdk/aws-events.Authorization",
|
843 | "@aws-cdk/aws-events.Authorization#apiKey",
|
844 | "@aws-cdk/aws-events.Connection",
|
845 | "@aws-cdk/aws-events.ConnectionProps",
|
846 | "@aws-cdk/aws-events.IApiDestination",
|
847 | "@aws-cdk/aws-events.IConnection",
|
848 | "@aws-cdk/aws-events.Rule",
|
849 | "@aws-cdk/aws-events.RuleProps",
|
850 | "@aws-cdk/aws-events.Schedule",
|
851 | "@aws-cdk/aws-events.Schedule#rate",
|
852 | "@aws-cdk/core.Duration",
|
853 | "@aws-cdk/core.Duration#minutes",
|
854 | "@aws-cdk/core.SecretValue",
|
855 | "@aws-cdk/core.SecretValue#secretsManager",
|
856 | "constructs.Construct"
|
857 | ],
|
858 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
859 | "syntaxKindCounter": {
|
860 | "8": 1,
|
861 | "10": 8,
|
862 | "75": 30,
|
863 | "104": 3,
|
864 | "192": 1,
|
865 | "193": 3,
|
866 | "194": 11,
|
867 | "196": 4,
|
868 | "197": 4,
|
869 | "225": 3,
|
870 | "242": 3,
|
871 | "243": 3,
|
872 | "281": 6,
|
873 | "282": 1
|
874 | },
|
875 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
876 | },
|
877 | "4b70a6d11a76731ce19aaf470539ae2cc2512ff10d725afd93db88294d7b4694": {
|
878 | "translations": {
|
879 | "python": {
|
880 | "source": "bus = events.EventBus(self, \"bus\",\n event_bus_name=\"MyCustomEventBus\"\n)\n\nbus.archive(\"MyArchive\",\n archive_name=\"MyCustomEventBusArchive\",\n description=\"MyCustomerEventBus Archive\",\n event_pattern=events.EventPattern(\n account=[Stack.of(self).account]\n ),\n retention=Duration.days(365)\n)",
|
881 | "version": "2"
|
882 | },
|
883 | "csharp": {
|
884 | "source": "EventBus bus = new EventBus(this, \"bus\", new EventBusProps {\n EventBusName = \"MyCustomEventBus\"\n});\n\nbus.Archive(\"MyArchive\", new BaseArchiveProps {\n ArchiveName = \"MyCustomEventBusArchive\",\n Description = \"MyCustomerEventBus Archive\",\n EventPattern = new EventPattern {\n Account = new [] { Stack.Of(this).Account }\n },\n Retention = Duration.Days(365)\n});",
|
885 | "version": "1"
|
886 | },
|
887 | "java": {
|
888 | "source": "EventBus bus = EventBus.Builder.create(this, \"bus\")\n .eventBusName(\"MyCustomEventBus\")\n .build();\n\nbus.archive(\"MyArchive\", BaseArchiveProps.builder()\n .archiveName(\"MyCustomEventBusArchive\")\n .description(\"MyCustomerEventBus Archive\")\n .eventPattern(EventPattern.builder()\n .account(List.of(Stack.of(this).getAccount()))\n .build())\n .retention(Duration.days(365))\n .build());",
|
889 | "version": "1"
|
890 | },
|
891 | "go": {
|
892 | "source": "bus := events.NewEventBus(this, jsii.String(\"bus\"), &eventBusProps{\n\teventBusName: jsii.String(\"MyCustomEventBus\"),\n})\n\nbus.archive(jsii.String(\"MyArchive\"), &baseArchiveProps{\n\tarchiveName: jsii.String(\"MyCustomEventBusArchive\"),\n\tdescription: jsii.String(\"MyCustomerEventBus Archive\"),\n\teventPattern: &eventPattern{\n\t\taccount: []*string{\n\t\t\t*stack.of(this).account,\n\t\t},\n\t},\n\tretention: duration.days(jsii.Number(365)),\n})",
|
893 | "version": "1"
|
894 | },
|
895 | "$": {
|
896 | "source": "const bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});",
|
897 | "version": "0"
|
898 | }
|
899 | },
|
900 | "location": {
|
901 | "api": {
|
902 | "api": "type",
|
903 | "fqn": "@aws-cdk/aws-events.BaseArchiveProps"
|
904 | },
|
905 | "field": {
|
906 | "field": "example"
|
907 | }
|
908 | },
|
909 | "didCompile": true,
|
910 | "fqnsReferenced": [
|
911 | "@aws-cdk/aws-events.BaseArchiveProps",
|
912 | "@aws-cdk/aws-events.EventBus",
|
913 | "@aws-cdk/aws-events.EventBusProps",
|
914 | "@aws-cdk/aws-events.EventPattern",
|
915 | "@aws-cdk/core.Duration",
|
916 | "@aws-cdk/core.Duration#days",
|
917 | "@aws-cdk/core.Stack#account",
|
918 | "@aws-cdk/core.Stack#of",
|
919 | "constructs.Construct",
|
920 | "constructs.IConstruct"
|
921 | ],
|
922 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
923 | "syntaxKindCounter": {
|
924 | "8": 1,
|
925 | "10": 5,
|
926 | "75": 16,
|
927 | "104": 2,
|
928 | "192": 1,
|
929 | "193": 3,
|
930 | "194": 5,
|
931 | "196": 3,
|
932 | "197": 1,
|
933 | "225": 1,
|
934 | "226": 1,
|
935 | "242": 1,
|
936 | "243": 1,
|
937 | "281": 6
|
938 | },
|
939 | "fqnsFingerprint": "8a370448c8850f9d3bf4b97e19e578ded327b3a3770acbff3aee6834ce814a3f"
|
940 | },
|
941 | "755a55b11e05b3fd795c0f9254821138adba078aa0fb1beda431140c5c52b70a": {
|
942 | "translations": {
|
943 | "python": {
|
944 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_api_destination = events.CfnApiDestination(self, \"MyCfnApiDestination\",\n connection_arn=\"connectionArn\",\n http_method=\"httpMethod\",\n invocation_endpoint=\"invocationEndpoint\",\n\n # the properties below are optional\n description=\"description\",\n invocation_rate_limit_per_second=123,\n name=\"name\"\n)",
|
945 | "version": "2"
|
946 | },
|
947 | "csharp": {
|
948 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnApiDestination cfnApiDestination = new CfnApiDestination(this, \"MyCfnApiDestination\", new CfnApiDestinationProps {\n ConnectionArn = \"connectionArn\",\n HttpMethod = \"httpMethod\",\n InvocationEndpoint = \"invocationEndpoint\",\n\n // the properties below are optional\n Description = \"description\",\n InvocationRateLimitPerSecond = 123,\n Name = \"name\"\n});",
|
949 | "version": "1"
|
950 | },
|
951 | "java": {
|
952 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnApiDestination cfnApiDestination = CfnApiDestination.Builder.create(this, \"MyCfnApiDestination\")\n .connectionArn(\"connectionArn\")\n .httpMethod(\"httpMethod\")\n .invocationEndpoint(\"invocationEndpoint\")\n\n // the properties below are optional\n .description(\"description\")\n .invocationRateLimitPerSecond(123)\n .name(\"name\")\n .build();",
|
953 | "version": "1"
|
954 | },
|
955 | "go": {
|
956 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnApiDestination := events.NewCfnApiDestination(this, jsii.String(\"MyCfnApiDestination\"), &cfnApiDestinationProps{\n\tconnectionArn: jsii.String(\"connectionArn\"),\n\thttpMethod: jsii.String(\"httpMethod\"),\n\tinvocationEndpoint: jsii.String(\"invocationEndpoint\"),\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tinvocationRateLimitPerSecond: jsii.Number(123),\n\tname: jsii.String(\"name\"),\n})",
|
957 | "version": "1"
|
958 | },
|
959 | "$": {
|
960 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnApiDestination = new events.CfnApiDestination(this, 'MyCfnApiDestination', {\n connectionArn: 'connectionArn',\n httpMethod: 'httpMethod',\n invocationEndpoint: 'invocationEndpoint',\n\n // the properties below are optional\n description: 'description',\n invocationRateLimitPerSecond: 123,\n name: 'name',\n});",
|
961 | "version": "0"
|
962 | }
|
963 | },
|
964 | "location": {
|
965 | "api": {
|
966 | "api": "type",
|
967 | "fqn": "@aws-cdk/aws-events.CfnApiDestination"
|
968 | },
|
969 | "field": {
|
970 | "field": "example"
|
971 | }
|
972 | },
|
973 | "didCompile": true,
|
974 | "fqnsReferenced": [
|
975 | "@aws-cdk/aws-events.CfnApiDestination",
|
976 | "@aws-cdk/aws-events.CfnApiDestinationProps",
|
977 | "@aws-cdk/core.Construct"
|
978 | ],
|
979 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnApiDestination = new events.CfnApiDestination(this, 'MyCfnApiDestination', {\n connectionArn: 'connectionArn',\n httpMethod: 'httpMethod',\n invocationEndpoint: 'invocationEndpoint',\n\n // the properties below are optional\n description: 'description',\n invocationRateLimitPerSecond: 123,\n name: 'name',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
980 | "syntaxKindCounter": {
|
981 | "8": 1,
|
982 | "10": 7,
|
983 | "75": 10,
|
984 | "104": 1,
|
985 | "193": 1,
|
986 | "194": 1,
|
987 | "197": 1,
|
988 | "225": 1,
|
989 | "242": 1,
|
990 | "243": 1,
|
991 | "254": 1,
|
992 | "255": 1,
|
993 | "256": 1,
|
994 | "281": 6,
|
995 | "290": 1
|
996 | },
|
997 | "fqnsFingerprint": "8eb4042bded4633e36fe924e0c8adb3644e37f12a00abb04eacd3440e1233acb"
|
998 | },
|
999 | "e51bc3c6e5f0aa4c4dbc28d2a6207fcf07bbdcca70e721f3b5098c99284c0d2e": {
|
1000 | "translations": {
|
1001 | "python": {
|
1002 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_api_destination_props = events.CfnApiDestinationProps(\n connection_arn=\"connectionArn\",\n http_method=\"httpMethod\",\n invocation_endpoint=\"invocationEndpoint\",\n\n # the properties below are optional\n description=\"description\",\n invocation_rate_limit_per_second=123,\n name=\"name\"\n)",
|
1003 | "version": "2"
|
1004 | },
|
1005 | "csharp": {
|
1006 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnApiDestinationProps cfnApiDestinationProps = new CfnApiDestinationProps {\n ConnectionArn = \"connectionArn\",\n HttpMethod = \"httpMethod\",\n InvocationEndpoint = \"invocationEndpoint\",\n\n // the properties below are optional\n Description = \"description\",\n InvocationRateLimitPerSecond = 123,\n Name = \"name\"\n};",
|
1007 | "version": "1"
|
1008 | },
|
1009 | "java": {
|
1010 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnApiDestinationProps cfnApiDestinationProps = CfnApiDestinationProps.builder()\n .connectionArn(\"connectionArn\")\n .httpMethod(\"httpMethod\")\n .invocationEndpoint(\"invocationEndpoint\")\n\n // the properties below are optional\n .description(\"description\")\n .invocationRateLimitPerSecond(123)\n .name(\"name\")\n .build();",
|
1011 | "version": "1"
|
1012 | },
|
1013 | "go": {
|
1014 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnApiDestinationProps := &cfnApiDestinationProps{\n\tconnectionArn: jsii.String(\"connectionArn\"),\n\thttpMethod: jsii.String(\"httpMethod\"),\n\tinvocationEndpoint: jsii.String(\"invocationEndpoint\"),\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tinvocationRateLimitPerSecond: jsii.Number(123),\n\tname: jsii.String(\"name\"),\n}",
|
1015 | "version": "1"
|
1016 | },
|
1017 | "$": {
|
1018 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnApiDestinationProps: events.CfnApiDestinationProps = {\n connectionArn: 'connectionArn',\n httpMethod: 'httpMethod',\n invocationEndpoint: 'invocationEndpoint',\n\n // the properties below are optional\n description: 'description',\n invocationRateLimitPerSecond: 123,\n name: 'name',\n};",
|
1019 | "version": "0"
|
1020 | }
|
1021 | },
|
1022 | "location": {
|
1023 | "api": {
|
1024 | "api": "type",
|
1025 | "fqn": "@aws-cdk/aws-events.CfnApiDestinationProps"
|
1026 | },
|
1027 | "field": {
|
1028 | "field": "example"
|
1029 | }
|
1030 | },
|
1031 | "didCompile": true,
|
1032 | "fqnsReferenced": [
|
1033 | "@aws-cdk/aws-events.CfnApiDestinationProps"
|
1034 | ],
|
1035 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnApiDestinationProps: events.CfnApiDestinationProps = {\n connectionArn: 'connectionArn',\n httpMethod: 'httpMethod',\n invocationEndpoint: 'invocationEndpoint',\n\n // the properties below are optional\n description: 'description',\n invocationRateLimitPerSecond: 123,\n name: 'name',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1036 | "syntaxKindCounter": {
|
1037 | "8": 1,
|
1038 | "10": 6,
|
1039 | "75": 10,
|
1040 | "153": 1,
|
1041 | "169": 1,
|
1042 | "193": 1,
|
1043 | "225": 1,
|
1044 | "242": 1,
|
1045 | "243": 1,
|
1046 | "254": 1,
|
1047 | "255": 1,
|
1048 | "256": 1,
|
1049 | "281": 6,
|
1050 | "290": 1
|
1051 | },
|
1052 | "fqnsFingerprint": "e4e357dc207ba75b9d2edbade6f5bf492ba50f83f34b32fa2173ed006d749e0a"
|
1053 | },
|
1054 | "711c505aad29e4f8c48878e8b39077bb796edde6fc77c098332957578d8427ea": {
|
1055 | "translations": {
|
1056 | "python": {
|
1057 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\n# event_pattern: Any\n\ncfn_archive = events.CfnArchive(self, \"MyCfnArchive\",\n source_arn=\"sourceArn\",\n\n # the properties below are optional\n archive_name=\"archiveName\",\n description=\"description\",\n event_pattern=event_pattern,\n retention_days=123\n)",
|
1058 | "version": "2"
|
1059 | },
|
1060 | "csharp": {
|
1061 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nvar eventPattern;\n\nCfnArchive cfnArchive = new CfnArchive(this, \"MyCfnArchive\", new CfnArchiveProps {\n SourceArn = \"sourceArn\",\n\n // the properties below are optional\n ArchiveName = \"archiveName\",\n Description = \"description\",\n EventPattern = eventPattern,\n RetentionDays = 123\n});",
|
1062 | "version": "1"
|
1063 | },
|
1064 | "java": {
|
1065 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nObject eventPattern;\n\nCfnArchive cfnArchive = CfnArchive.Builder.create(this, \"MyCfnArchive\")\n .sourceArn(\"sourceArn\")\n\n // the properties below are optional\n .archiveName(\"archiveName\")\n .description(\"description\")\n .eventPattern(eventPattern)\n .retentionDays(123)\n .build();",
|
1066 | "version": "1"
|
1067 | },
|
1068 | "go": {
|
1069 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\n\nvar eventPattern interface{}\ncfnArchive := events.NewCfnArchive(this, jsii.String(\"MyCfnArchive\"), &cfnArchiveProps{\n\tsourceArn: jsii.String(\"sourceArn\"),\n\n\t// the properties below are optional\n\tarchiveName: jsii.String(\"archiveName\"),\n\tdescription: jsii.String(\"description\"),\n\teventPattern: eventPattern,\n\tretentionDays: jsii.Number(123),\n})",
|
1070 | "version": "1"
|
1071 | },
|
1072 | "$": {
|
1073 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\nconst cfnArchive = new events.CfnArchive(this, 'MyCfnArchive', {\n sourceArn: 'sourceArn',\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n eventPattern: eventPattern,\n retentionDays: 123,\n});",
|
1074 | "version": "0"
|
1075 | }
|
1076 | },
|
1077 | "location": {
|
1078 | "api": {
|
1079 | "api": "type",
|
1080 | "fqn": "@aws-cdk/aws-events.CfnArchive"
|
1081 | },
|
1082 | "field": {
|
1083 | "field": "example"
|
1084 | }
|
1085 | },
|
1086 | "didCompile": true,
|
1087 | "fqnsReferenced": [
|
1088 | "@aws-cdk/aws-events.CfnArchive",
|
1089 | "@aws-cdk/aws-events.CfnArchiveProps",
|
1090 | "@aws-cdk/core.Construct"
|
1091 | ],
|
1092 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnArchive = new events.CfnArchive(this, 'MyCfnArchive', {\n sourceArn: 'sourceArn',\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n eventPattern: eventPattern,\n retentionDays: 123,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1093 | "syntaxKindCounter": {
|
1094 | "8": 1,
|
1095 | "10": 5,
|
1096 | "75": 11,
|
1097 | "104": 1,
|
1098 | "125": 1,
|
1099 | "130": 1,
|
1100 | "193": 1,
|
1101 | "194": 1,
|
1102 | "197": 1,
|
1103 | "225": 2,
|
1104 | "242": 2,
|
1105 | "243": 2,
|
1106 | "254": 1,
|
1107 | "255": 1,
|
1108 | "256": 1,
|
1109 | "281": 5,
|
1110 | "290": 1
|
1111 | },
|
1112 | "fqnsFingerprint": "7b28b6900d640825c7c8b47c16a432bbefb1d334170351773d2c6db8b934f558"
|
1113 | },
|
1114 | "e9167a0af828ef8734b239443436453c4b05fee992c4eb65960757eff93dd2e4": {
|
1115 | "translations": {
|
1116 | "python": {
|
1117 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\n# event_pattern: Any\n\ncfn_archive_props = events.CfnArchiveProps(\n source_arn=\"sourceArn\",\n\n # the properties below are optional\n archive_name=\"archiveName\",\n description=\"description\",\n event_pattern=event_pattern,\n retention_days=123\n)",
|
1118 | "version": "2"
|
1119 | },
|
1120 | "csharp": {
|
1121 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nvar eventPattern;\n\nCfnArchiveProps cfnArchiveProps = new CfnArchiveProps {\n SourceArn = \"sourceArn\",\n\n // the properties below are optional\n ArchiveName = \"archiveName\",\n Description = \"description\",\n EventPattern = eventPattern,\n RetentionDays = 123\n};",
|
1122 | "version": "1"
|
1123 | },
|
1124 | "java": {
|
1125 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nObject eventPattern;\n\nCfnArchiveProps cfnArchiveProps = CfnArchiveProps.builder()\n .sourceArn(\"sourceArn\")\n\n // the properties below are optional\n .archiveName(\"archiveName\")\n .description(\"description\")\n .eventPattern(eventPattern)\n .retentionDays(123)\n .build();",
|
1126 | "version": "1"
|
1127 | },
|
1128 | "go": {
|
1129 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\n\nvar eventPattern interface{}\ncfnArchiveProps := &cfnArchiveProps{\n\tsourceArn: jsii.String(\"sourceArn\"),\n\n\t// the properties below are optional\n\tarchiveName: jsii.String(\"archiveName\"),\n\tdescription: jsii.String(\"description\"),\n\teventPattern: eventPattern,\n\tretentionDays: jsii.Number(123),\n}",
|
1130 | "version": "1"
|
1131 | },
|
1132 | "$": {
|
1133 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\nconst cfnArchiveProps: events.CfnArchiveProps = {\n sourceArn: 'sourceArn',\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n eventPattern: eventPattern,\n retentionDays: 123,\n};",
|
1134 | "version": "0"
|
1135 | }
|
1136 | },
|
1137 | "location": {
|
1138 | "api": {
|
1139 | "api": "type",
|
1140 | "fqn": "@aws-cdk/aws-events.CfnArchiveProps"
|
1141 | },
|
1142 | "field": {
|
1143 | "field": "example"
|
1144 | }
|
1145 | },
|
1146 | "didCompile": true,
|
1147 | "fqnsReferenced": [
|
1148 | "@aws-cdk/aws-events.CfnArchiveProps"
|
1149 | ],
|
1150 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnArchiveProps: events.CfnArchiveProps = {\n sourceArn: 'sourceArn',\n\n // the properties below are optional\n archiveName: 'archiveName',\n description: 'description',\n eventPattern: eventPattern,\n retentionDays: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1151 | "syntaxKindCounter": {
|
1152 | "8": 1,
|
1153 | "10": 4,
|
1154 | "75": 11,
|
1155 | "125": 1,
|
1156 | "130": 1,
|
1157 | "153": 1,
|
1158 | "169": 1,
|
1159 | "193": 1,
|
1160 | "225": 2,
|
1161 | "242": 2,
|
1162 | "243": 2,
|
1163 | "254": 1,
|
1164 | "255": 1,
|
1165 | "256": 1,
|
1166 | "281": 5,
|
1167 | "290": 1
|
1168 | },
|
1169 | "fqnsFingerprint": "69d4acd83113ffc69ea74447eb39373b01fe726d3365f0cb62c0c9239ebfa784"
|
1170 | },
|
1171 | "0330601f839157799161519177e7445e0d4bd84d37c15ae40a55c81ffacd075a": {
|
1172 | "translations": {
|
1173 | "python": {
|
1174 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_connection = events.CfnConnection(self, \"MyCfnConnection\",\n authorization_type=\"authorizationType\",\n auth_parameters=events.CfnConnection.AuthParametersProperty(\n api_key_auth_parameters=events.CfnConnection.ApiKeyAuthParametersProperty(\n api_key_name=\"apiKeyName\",\n api_key_value=\"apiKeyValue\"\n ),\n basic_auth_parameters=events.CfnConnection.BasicAuthParametersProperty(\n password=\"password\",\n username=\"username\"\n ),\n invocation_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n ),\n o_auth_parameters=events.CfnConnection.OAuthParametersProperty(\n authorization_endpoint=\"authorizationEndpoint\",\n client_parameters=events.CfnConnection.ClientParametersProperty(\n client_id=\"clientId\",\n client_secret=\"clientSecret\"\n ),\n http_method=\"httpMethod\",\n\n # the properties below are optional\n o_auth_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n )\n )\n ),\n\n # the properties below are optional\n description=\"description\",\n name=\"name\"\n)",
|
1175 | "version": "2"
|
1176 | },
|
1177 | "csharp": {
|
1178 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnConnection cfnConnection = new CfnConnection(this, \"MyCfnConnection\", new CfnConnectionProps {\n AuthorizationType = \"authorizationType\",\n AuthParameters = new AuthParametersProperty {\n ApiKeyAuthParameters = new ApiKeyAuthParametersProperty {\n ApiKeyName = \"apiKeyName\",\n ApiKeyValue = \"apiKeyValue\"\n },\n BasicAuthParameters = new BasicAuthParametersProperty {\n Password = \"password\",\n Username = \"username\"\n },\n InvocationHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n },\n OAuthParameters = new OAuthParametersProperty {\n AuthorizationEndpoint = \"authorizationEndpoint\",\n ClientParameters = new ClientParametersProperty {\n ClientId = \"clientId\",\n ClientSecret = \"clientSecret\"\n },\n HttpMethod = \"httpMethod\",\n\n // the properties below are optional\n OAuthHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n }\n }\n },\n\n // the properties below are optional\n Description = \"description\",\n Name = \"name\"\n});",
|
1179 | "version": "1"
|
1180 | },
|
1181 | "java": {
|
1182 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnConnection cfnConnection = CfnConnection.Builder.create(this, \"MyCfnConnection\")\n .authorizationType(\"authorizationType\")\n .authParameters(AuthParametersProperty.builder()\n .apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()\n .apiKeyName(\"apiKeyName\")\n .apiKeyValue(\"apiKeyValue\")\n .build())\n .basicAuthParameters(BasicAuthParametersProperty.builder()\n .password(\"password\")\n .username(\"username\")\n .build())\n .invocationHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .oAuthParameters(OAuthParametersProperty.builder()\n .authorizationEndpoint(\"authorizationEndpoint\")\n .clientParameters(ClientParametersProperty.builder()\n .clientId(\"clientId\")\n .clientSecret(\"clientSecret\")\n .build())\n .httpMethod(\"httpMethod\")\n\n // the properties below are optional\n .oAuthHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .build())\n .build())\n\n // the properties below are optional\n .description(\"description\")\n .name(\"name\")\n .build();",
|
1183 | "version": "1"
|
1184 | },
|
1185 | "go": {
|
1186 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnConnection := events.NewCfnConnection(this, jsii.String(\"MyCfnConnection\"), &cfnConnectionProps{\n\tauthorizationType: jsii.String(\"authorizationType\"),\n\tauthParameters: &authParametersProperty{\n\t\tapiKeyAuthParameters: &apiKeyAuthParametersProperty{\n\t\t\tapiKeyName: jsii.String(\"apiKeyName\"),\n\t\t\tapiKeyValue: jsii.String(\"apiKeyValue\"),\n\t\t},\n\t\tbasicAuthParameters: &basicAuthParametersProperty{\n\t\t\tpassword: jsii.String(\"password\"),\n\t\t\tusername: jsii.String(\"username\"),\n\t\t},\n\t\tinvocationHttpParameters: &connectionHttpParametersProperty{\n\t\t\tbodyParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\theaderParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tqueryStringParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\toAuthParameters: &oAuthParametersProperty{\n\t\t\tauthorizationEndpoint: jsii.String(\"authorizationEndpoint\"),\n\t\t\tclientParameters: &clientParametersProperty{\n\t\t\t\tclientId: jsii.String(\"clientId\"),\n\t\t\t\tclientSecret: jsii.String(\"clientSecret\"),\n\t\t\t},\n\t\t\thttpMethod: jsii.String(\"httpMethod\"),\n\n\t\t\t// the properties below are optional\n\t\t\toAuthHttpParameters: &connectionHttpParametersProperty{\n\t\t\t\tbodyParameters: []interface{}{\n\t\t\t\t\t¶meterProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\theaderParameters: []interface{}{\n\t\t\t\t\t¶meterProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tqueryStringParameters: []interface{}{\n\t\t\t\t\t¶meterProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tname: jsii.String(\"name\"),\n})",
|
1187 | "version": "1"
|
1188 | },
|
1189 | "$": {
|
1190 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnConnection = new events.CfnConnection(this, 'MyCfnConnection', {\n authorizationType: 'authorizationType',\n authParameters: {\n apiKeyAuthParameters: {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n },\n basicAuthParameters: {\n password: 'password',\n username: 'username',\n },\n invocationHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n oAuthParameters: {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n});",
|
1191 | "version": "0"
|
1192 | }
|
1193 | },
|
1194 | "location": {
|
1195 | "api": {
|
1196 | "api": "type",
|
1197 | "fqn": "@aws-cdk/aws-events.CfnConnection"
|
1198 | },
|
1199 | "field": {
|
1200 | "field": "example"
|
1201 | }
|
1202 | },
|
1203 | "didCompile": true,
|
1204 | "fqnsReferenced": [
|
1205 | "@aws-cdk/aws-events.CfnConnection",
|
1206 | "@aws-cdk/aws-events.CfnConnectionProps",
|
1207 | "@aws-cdk/core.Construct"
|
1208 | ],
|
1209 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnConnection = new events.CfnConnection(this, 'MyCfnConnection', {\n authorizationType: 'authorizationType',\n authParameters: {\n apiKeyAuthParameters: {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n },\n basicAuthParameters: {\n password: 'password',\n username: 'username',\n },\n invocationHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n oAuthParameters: {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1210 | "syntaxKindCounter": {
|
1211 | "10": 25,
|
1212 | "75": 46,
|
1213 | "91": 6,
|
1214 | "104": 1,
|
1215 | "192": 6,
|
1216 | "193": 14,
|
1217 | "194": 1,
|
1218 | "197": 1,
|
1219 | "225": 1,
|
1220 | "242": 1,
|
1221 | "243": 1,
|
1222 | "254": 1,
|
1223 | "255": 1,
|
1224 | "256": 1,
|
1225 | "281": 42,
|
1226 | "290": 1
|
1227 | },
|
1228 | "fqnsFingerprint": "39d8bbbdca48e9c85321b9a1c91d0b6110ec0c6249ed200e31c2f6ad1054de90"
|
1229 | },
|
1230 | "975d72c867f4038d1c07c66d4b816c7933d495ad100a3da5325d7a0dbfbbc633": {
|
1231 | "translations": {
|
1232 | "python": {
|
1233 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\napi_key_auth_parameters_property = events.CfnConnection.ApiKeyAuthParametersProperty(\n api_key_name=\"apiKeyName\",\n api_key_value=\"apiKeyValue\"\n)",
|
1234 | "version": "2"
|
1235 | },
|
1236 | "csharp": {
|
1237 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nApiKeyAuthParametersProperty apiKeyAuthParametersProperty = new ApiKeyAuthParametersProperty {\n ApiKeyName = \"apiKeyName\",\n ApiKeyValue = \"apiKeyValue\"\n};",
|
1238 | "version": "1"
|
1239 | },
|
1240 | "java": {
|
1241 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nApiKeyAuthParametersProperty apiKeyAuthParametersProperty = ApiKeyAuthParametersProperty.builder()\n .apiKeyName(\"apiKeyName\")\n .apiKeyValue(\"apiKeyValue\")\n .build();",
|
1242 | "version": "1"
|
1243 | },
|
1244 | "go": {
|
1245 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\napiKeyAuthParametersProperty := &apiKeyAuthParametersProperty{\n\tapiKeyName: jsii.String(\"apiKeyName\"),\n\tapiKeyValue: jsii.String(\"apiKeyValue\"),\n}",
|
1246 | "version": "1"
|
1247 | },
|
1248 | "$": {
|
1249 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst apiKeyAuthParametersProperty: events.CfnConnection.ApiKeyAuthParametersProperty = {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n};",
|
1250 | "version": "0"
|
1251 | }
|
1252 | },
|
1253 | "location": {
|
1254 | "api": {
|
1255 | "api": "type",
|
1256 | "fqn": "@aws-cdk/aws-events.CfnConnection.ApiKeyAuthParametersProperty"
|
1257 | },
|
1258 | "field": {
|
1259 | "field": "example"
|
1260 | }
|
1261 | },
|
1262 | "didCompile": true,
|
1263 | "fqnsReferenced": [
|
1264 | "@aws-cdk/aws-events.CfnConnection.ApiKeyAuthParametersProperty"
|
1265 | ],
|
1266 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst apiKeyAuthParametersProperty: events.CfnConnection.ApiKeyAuthParametersProperty = {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1267 | "syntaxKindCounter": {
|
1268 | "10": 3,
|
1269 | "75": 7,
|
1270 | "153": 2,
|
1271 | "169": 1,
|
1272 | "193": 1,
|
1273 | "225": 1,
|
1274 | "242": 1,
|
1275 | "243": 1,
|
1276 | "254": 1,
|
1277 | "255": 1,
|
1278 | "256": 1,
|
1279 | "281": 2,
|
1280 | "290": 1
|
1281 | },
|
1282 | "fqnsFingerprint": "861523e86a83d11976e82678a4ffd971a36c12ccfafc4c2cd02b98a223c8808b"
|
1283 | },
|
1284 | "0e4e843261714c41234343a6936a12a4811c07f8a497ac8abfba06780c76bf1b": {
|
1285 | "translations": {
|
1286 | "python": {
|
1287 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nauth_parameters_property = events.CfnConnection.AuthParametersProperty(\n api_key_auth_parameters=events.CfnConnection.ApiKeyAuthParametersProperty(\n api_key_name=\"apiKeyName\",\n api_key_value=\"apiKeyValue\"\n ),\n basic_auth_parameters=events.CfnConnection.BasicAuthParametersProperty(\n password=\"password\",\n username=\"username\"\n ),\n invocation_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n ),\n o_auth_parameters=events.CfnConnection.OAuthParametersProperty(\n authorization_endpoint=\"authorizationEndpoint\",\n client_parameters=events.CfnConnection.ClientParametersProperty(\n client_id=\"clientId\",\n client_secret=\"clientSecret\"\n ),\n http_method=\"httpMethod\",\n\n # the properties below are optional\n o_auth_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n )\n )\n)",
|
1288 | "version": "2"
|
1289 | },
|
1290 | "csharp": {
|
1291 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nAuthParametersProperty authParametersProperty = new AuthParametersProperty {\n ApiKeyAuthParameters = new ApiKeyAuthParametersProperty {\n ApiKeyName = \"apiKeyName\",\n ApiKeyValue = \"apiKeyValue\"\n },\n BasicAuthParameters = new BasicAuthParametersProperty {\n Password = \"password\",\n Username = \"username\"\n },\n InvocationHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n },\n OAuthParameters = new OAuthParametersProperty {\n AuthorizationEndpoint = \"authorizationEndpoint\",\n ClientParameters = new ClientParametersProperty {\n ClientId = \"clientId\",\n ClientSecret = \"clientSecret\"\n },\n HttpMethod = \"httpMethod\",\n\n // the properties below are optional\n OAuthHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n }\n }\n};",
|
1292 | "version": "1"
|
1293 | },
|
1294 | "java": {
|
1295 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nAuthParametersProperty authParametersProperty = AuthParametersProperty.builder()\n .apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()\n .apiKeyName(\"apiKeyName\")\n .apiKeyValue(\"apiKeyValue\")\n .build())\n .basicAuthParameters(BasicAuthParametersProperty.builder()\n .password(\"password\")\n .username(\"username\")\n .build())\n .invocationHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .oAuthParameters(OAuthParametersProperty.builder()\n .authorizationEndpoint(\"authorizationEndpoint\")\n .clientParameters(ClientParametersProperty.builder()\n .clientId(\"clientId\")\n .clientSecret(\"clientSecret\")\n .build())\n .httpMethod(\"httpMethod\")\n\n // the properties below are optional\n .oAuthHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .build())\n .build();",
|
1296 | "version": "1"
|
1297 | },
|
1298 | "go": {
|
1299 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nauthParametersProperty := &authParametersProperty{\n\tapiKeyAuthParameters: &apiKeyAuthParametersProperty{\n\t\tapiKeyName: jsii.String(\"apiKeyName\"),\n\t\tapiKeyValue: jsii.String(\"apiKeyValue\"),\n\t},\n\tbasicAuthParameters: &basicAuthParametersProperty{\n\t\tpassword: jsii.String(\"password\"),\n\t\tusername: jsii.String(\"username\"),\n\t},\n\tinvocationHttpParameters: &connectionHttpParametersProperty{\n\t\tbodyParameters: []interface{}{\n\t\t\t¶meterProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t\theaderParameters: []interface{}{\n\t\t\t¶meterProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t\tqueryStringParameters: []interface{}{\n\t\t\t¶meterProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\toAuthParameters: &oAuthParametersProperty{\n\t\tauthorizationEndpoint: jsii.String(\"authorizationEndpoint\"),\n\t\tclientParameters: &clientParametersProperty{\n\t\t\tclientId: jsii.String(\"clientId\"),\n\t\t\tclientSecret: jsii.String(\"clientSecret\"),\n\t\t},\n\t\thttpMethod: jsii.String(\"httpMethod\"),\n\n\t\t// the properties below are optional\n\t\toAuthHttpParameters: &connectionHttpParametersProperty{\n\t\t\tbodyParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\theaderParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tqueryStringParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n}",
|
1300 | "version": "1"
|
1301 | },
|
1302 | "$": {
|
1303 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst authParametersProperty: events.CfnConnection.AuthParametersProperty = {\n apiKeyAuthParameters: {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n },\n basicAuthParameters: {\n password: 'password',\n username: 'username',\n },\n invocationHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n oAuthParameters: {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n },\n};",
|
1304 | "version": "0"
|
1305 | }
|
1306 | },
|
1307 | "location": {
|
1308 | "api": {
|
1309 | "api": "type",
|
1310 | "fqn": "@aws-cdk/aws-events.CfnConnection.AuthParametersProperty"
|
1311 | },
|
1312 | "field": {
|
1313 | "field": "example"
|
1314 | }
|
1315 | },
|
1316 | "didCompile": true,
|
1317 | "fqnsReferenced": [
|
1318 | "@aws-cdk/aws-events.CfnConnection.AuthParametersProperty"
|
1319 | ],
|
1320 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst authParametersProperty: events.CfnConnection.AuthParametersProperty = {\n apiKeyAuthParameters: {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n },\n basicAuthParameters: {\n password: 'password',\n username: 'username',\n },\n invocationHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n oAuthParameters: {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1321 | "syntaxKindCounter": {
|
1322 | "10": 21,
|
1323 | "75": 43,
|
1324 | "91": 6,
|
1325 | "153": 2,
|
1326 | "169": 1,
|
1327 | "192": 6,
|
1328 | "193": 13,
|
1329 | "225": 1,
|
1330 | "242": 1,
|
1331 | "243": 1,
|
1332 | "254": 1,
|
1333 | "255": 1,
|
1334 | "256": 1,
|
1335 | "281": 38,
|
1336 | "290": 1
|
1337 | },
|
1338 | "fqnsFingerprint": "a82413e78f993226793a8e29e65560720611263d4c8eee108794f39a6e1dce5e"
|
1339 | },
|
1340 | "f08ee3adf520462185b21ed705ea0673c8331f2186f919ab4b813abd1d79ccdb": {
|
1341 | "translations": {
|
1342 | "python": {
|
1343 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nbasic_auth_parameters_property = events.CfnConnection.BasicAuthParametersProperty(\n password=\"password\",\n username=\"username\"\n)",
|
1344 | "version": "2"
|
1345 | },
|
1346 | "csharp": {
|
1347 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nBasicAuthParametersProperty basicAuthParametersProperty = new BasicAuthParametersProperty {\n Password = \"password\",\n Username = \"username\"\n};",
|
1348 | "version": "1"
|
1349 | },
|
1350 | "java": {
|
1351 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nBasicAuthParametersProperty basicAuthParametersProperty = BasicAuthParametersProperty.builder()\n .password(\"password\")\n .username(\"username\")\n .build();",
|
1352 | "version": "1"
|
1353 | },
|
1354 | "go": {
|
1355 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nbasicAuthParametersProperty := &basicAuthParametersProperty{\n\tpassword: jsii.String(\"password\"),\n\tusername: jsii.String(\"username\"),\n}",
|
1356 | "version": "1"
|
1357 | },
|
1358 | "$": {
|
1359 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst basicAuthParametersProperty: events.CfnConnection.BasicAuthParametersProperty = {\n password: 'password',\n username: 'username',\n};",
|
1360 | "version": "0"
|
1361 | }
|
1362 | },
|
1363 | "location": {
|
1364 | "api": {
|
1365 | "api": "type",
|
1366 | "fqn": "@aws-cdk/aws-events.CfnConnection.BasicAuthParametersProperty"
|
1367 | },
|
1368 | "field": {
|
1369 | "field": "example"
|
1370 | }
|
1371 | },
|
1372 | "didCompile": true,
|
1373 | "fqnsReferenced": [
|
1374 | "@aws-cdk/aws-events.CfnConnection.BasicAuthParametersProperty"
|
1375 | ],
|
1376 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst basicAuthParametersProperty: events.CfnConnection.BasicAuthParametersProperty = {\n password: 'password',\n username: 'username',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1377 | "syntaxKindCounter": {
|
1378 | "10": 3,
|
1379 | "75": 7,
|
1380 | "153": 2,
|
1381 | "169": 1,
|
1382 | "193": 1,
|
1383 | "225": 1,
|
1384 | "242": 1,
|
1385 | "243": 1,
|
1386 | "254": 1,
|
1387 | "255": 1,
|
1388 | "256": 1,
|
1389 | "281": 2,
|
1390 | "290": 1
|
1391 | },
|
1392 | "fqnsFingerprint": "889b7a574fb26556100ac69c8d6c1cc16de29d72a0caf50ddb760ebc0a1219c8"
|
1393 | },
|
1394 | "9729227c1fb0b4f00147498ad77f54bb9346a4ff39797bed0af8faa0fe8dbb5c": {
|
1395 | "translations": {
|
1396 | "python": {
|
1397 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nclient_parameters_property = events.CfnConnection.ClientParametersProperty(\n client_id=\"clientId\",\n client_secret=\"clientSecret\"\n)",
|
1398 | "version": "2"
|
1399 | },
|
1400 | "csharp": {
|
1401 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nClientParametersProperty clientParametersProperty = new ClientParametersProperty {\n ClientId = \"clientId\",\n ClientSecret = \"clientSecret\"\n};",
|
1402 | "version": "1"
|
1403 | },
|
1404 | "java": {
|
1405 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nClientParametersProperty clientParametersProperty = ClientParametersProperty.builder()\n .clientId(\"clientId\")\n .clientSecret(\"clientSecret\")\n .build();",
|
1406 | "version": "1"
|
1407 | },
|
1408 | "go": {
|
1409 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nclientParametersProperty := &clientParametersProperty{\n\tclientId: jsii.String(\"clientId\"),\n\tclientSecret: jsii.String(\"clientSecret\"),\n}",
|
1410 | "version": "1"
|
1411 | },
|
1412 | "$": {
|
1413 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst clientParametersProperty: events.CfnConnection.ClientParametersProperty = {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n};",
|
1414 | "version": "0"
|
1415 | }
|
1416 | },
|
1417 | "location": {
|
1418 | "api": {
|
1419 | "api": "type",
|
1420 | "fqn": "@aws-cdk/aws-events.CfnConnection.ClientParametersProperty"
|
1421 | },
|
1422 | "field": {
|
1423 | "field": "example"
|
1424 | }
|
1425 | },
|
1426 | "didCompile": true,
|
1427 | "fqnsReferenced": [
|
1428 | "@aws-cdk/aws-events.CfnConnection.ClientParametersProperty"
|
1429 | ],
|
1430 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clientParametersProperty: events.CfnConnection.ClientParametersProperty = {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1431 | "syntaxKindCounter": {
|
1432 | "10": 3,
|
1433 | "75": 7,
|
1434 | "153": 2,
|
1435 | "169": 1,
|
1436 | "193": 1,
|
1437 | "225": 1,
|
1438 | "242": 1,
|
1439 | "243": 1,
|
1440 | "254": 1,
|
1441 | "255": 1,
|
1442 | "256": 1,
|
1443 | "281": 2,
|
1444 | "290": 1
|
1445 | },
|
1446 | "fqnsFingerprint": "ce9899bebc24cc5762cd37903f4b94e9565c6fd507da2d728dbadb585a114632"
|
1447 | },
|
1448 | "d0436624d6a597257affa80625c56d51c88d1edabb35e4ce3df5d02baac2d9ae": {
|
1449 | "translations": {
|
1450 | "python": {
|
1451 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nconnection_http_parameters_property = events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n)",
|
1452 | "version": "2"
|
1453 | },
|
1454 | "csharp": {
|
1455 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nConnectionHttpParametersProperty connectionHttpParametersProperty = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n};",
|
1456 | "version": "1"
|
1457 | },
|
1458 | "java": {
|
1459 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nConnectionHttpParametersProperty connectionHttpParametersProperty = ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build();",
|
1460 | "version": "1"
|
1461 | },
|
1462 | "go": {
|
1463 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nconnectionHttpParametersProperty := &connectionHttpParametersProperty{\n\tbodyParameters: []interface{}{\n\t\t¶meterProperty{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t// the properties below are optional\n\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t},\n\t},\n\theaderParameters: []interface{}{\n\t\t¶meterProperty{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t// the properties below are optional\n\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t},\n\t},\n\tqueryStringParameters: []interface{}{\n\t\t¶meterProperty{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t// the properties below are optional\n\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t},\n\t},\n}",
|
1464 | "version": "1"
|
1465 | },
|
1466 | "$": {
|
1467 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst connectionHttpParametersProperty: events.CfnConnection.ConnectionHttpParametersProperty = {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n};",
|
1468 | "version": "0"
|
1469 | }
|
1470 | },
|
1471 | "location": {
|
1472 | "api": {
|
1473 | "api": "type",
|
1474 | "fqn": "@aws-cdk/aws-events.CfnConnection.ConnectionHttpParametersProperty"
|
1475 | },
|
1476 | "field": {
|
1477 | "field": "example"
|
1478 | }
|
1479 | },
|
1480 | "didCompile": true,
|
1481 | "fqnsReferenced": [
|
1482 | "@aws-cdk/aws-events.CfnConnection.ConnectionHttpParametersProperty"
|
1483 | ],
|
1484 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst connectionHttpParametersProperty: events.CfnConnection.ConnectionHttpParametersProperty = {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1485 | "syntaxKindCounter": {
|
1486 | "10": 7,
|
1487 | "75": 17,
|
1488 | "91": 3,
|
1489 | "153": 2,
|
1490 | "169": 1,
|
1491 | "192": 3,
|
1492 | "193": 4,
|
1493 | "225": 1,
|
1494 | "242": 1,
|
1495 | "243": 1,
|
1496 | "254": 1,
|
1497 | "255": 1,
|
1498 | "256": 1,
|
1499 | "281": 12,
|
1500 | "290": 1
|
1501 | },
|
1502 | "fqnsFingerprint": "87c33e7b4c262fd60b3a5b1b50927cab1ef59403fdb4c08ec38e8b5089334209"
|
1503 | },
|
1504 | "94e459033768af776cf8a5655d2e3ac980e5e6a2670e48c4d4916d223c947bad": {
|
1505 | "translations": {
|
1506 | "python": {
|
1507 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\no_auth_parameters_property = events.CfnConnection.OAuthParametersProperty(\n authorization_endpoint=\"authorizationEndpoint\",\n client_parameters=events.CfnConnection.ClientParametersProperty(\n client_id=\"clientId\",\n client_secret=\"clientSecret\"\n ),\n http_method=\"httpMethod\",\n\n # the properties below are optional\n o_auth_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n )\n)",
|
1508 | "version": "2"
|
1509 | },
|
1510 | "csharp": {
|
1511 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nOAuthParametersProperty oAuthParametersProperty = new OAuthParametersProperty {\n AuthorizationEndpoint = \"authorizationEndpoint\",\n ClientParameters = new ClientParametersProperty {\n ClientId = \"clientId\",\n ClientSecret = \"clientSecret\"\n },\n HttpMethod = \"httpMethod\",\n\n // the properties below are optional\n OAuthHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n }\n};",
|
1512 | "version": "1"
|
1513 | },
|
1514 | "java": {
|
1515 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nOAuthParametersProperty oAuthParametersProperty = OAuthParametersProperty.builder()\n .authorizationEndpoint(\"authorizationEndpoint\")\n .clientParameters(ClientParametersProperty.builder()\n .clientId(\"clientId\")\n .clientSecret(\"clientSecret\")\n .build())\n .httpMethod(\"httpMethod\")\n\n // the properties below are optional\n .oAuthHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .build();",
|
1516 | "version": "1"
|
1517 | },
|
1518 | "go": {
|
1519 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\noAuthParametersProperty := &oAuthParametersProperty{\n\tauthorizationEndpoint: jsii.String(\"authorizationEndpoint\"),\n\tclientParameters: &clientParametersProperty{\n\t\tclientId: jsii.String(\"clientId\"),\n\t\tclientSecret: jsii.String(\"clientSecret\"),\n\t},\n\thttpMethod: jsii.String(\"httpMethod\"),\n\n\t// the properties below are optional\n\toAuthHttpParameters: &connectionHttpParametersProperty{\n\t\tbodyParameters: []interface{}{\n\t\t\t¶meterProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t\theaderParameters: []interface{}{\n\t\t\t¶meterProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t\tqueryStringParameters: []interface{}{\n\t\t\t¶meterProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n}",
|
1520 | "version": "1"
|
1521 | },
|
1522 | "$": {
|
1523 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst oAuthParametersProperty: events.CfnConnection.OAuthParametersProperty = {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n};",
|
1524 | "version": "0"
|
1525 | }
|
1526 | },
|
1527 | "location": {
|
1528 | "api": {
|
1529 | "api": "type",
|
1530 | "fqn": "@aws-cdk/aws-events.CfnConnection.OAuthParametersProperty"
|
1531 | },
|
1532 | "field": {
|
1533 | "field": "example"
|
1534 | }
|
1535 | },
|
1536 | "didCompile": true,
|
1537 | "fqnsReferenced": [
|
1538 | "@aws-cdk/aws-events.CfnConnection.OAuthParametersProperty"
|
1539 | ],
|
1540 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst oAuthParametersProperty: events.CfnConnection.OAuthParametersProperty = {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1541 | "syntaxKindCounter": {
|
1542 | "10": 11,
|
1543 | "75": 23,
|
1544 | "91": 3,
|
1545 | "153": 2,
|
1546 | "169": 1,
|
1547 | "192": 3,
|
1548 | "193": 6,
|
1549 | "225": 1,
|
1550 | "242": 1,
|
1551 | "243": 1,
|
1552 | "254": 1,
|
1553 | "255": 1,
|
1554 | "256": 1,
|
1555 | "281": 18,
|
1556 | "290": 1
|
1557 | },
|
1558 | "fqnsFingerprint": "c6aff6df31168eccdcb27526c507a36628140e9993471a47f8e44ff1d604644f"
|
1559 | },
|
1560 | "f6bd57eb6cb7fb40d871f180c0df1b23f078b6d4c5332f14d1d74219236e4ca3": {
|
1561 | "translations": {
|
1562 | "python": {
|
1563 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nparameter_property = events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n)",
|
1564 | "version": "2"
|
1565 | },
|
1566 | "csharp": {
|
1567 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nParameterProperty parameterProperty = new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n};",
|
1568 | "version": "1"
|
1569 | },
|
1570 | "java": {
|
1571 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nParameterProperty parameterProperty = ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build();",
|
1572 | "version": "1"
|
1573 | },
|
1574 | "go": {
|
1575 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nparameterProperty := ¶meterProperty{\n\tkey: jsii.String(\"key\"),\n\tvalue: jsii.String(\"value\"),\n\n\t// the properties below are optional\n\tisValueSecret: jsii.Boolean(false),\n}",
|
1576 | "version": "1"
|
1577 | },
|
1578 | "$": {
|
1579 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst parameterProperty: events.CfnConnection.ParameterProperty = {\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n};",
|
1580 | "version": "0"
|
1581 | }
|
1582 | },
|
1583 | "location": {
|
1584 | "api": {
|
1585 | "api": "type",
|
1586 | "fqn": "@aws-cdk/aws-events.CfnConnection.ParameterProperty"
|
1587 | },
|
1588 | "field": {
|
1589 | "field": "example"
|
1590 | }
|
1591 | },
|
1592 | "didCompile": true,
|
1593 | "fqnsReferenced": [
|
1594 | "@aws-cdk/aws-events.CfnConnection.ParameterProperty"
|
1595 | ],
|
1596 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst parameterProperty: events.CfnConnection.ParameterProperty = {\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1597 | "syntaxKindCounter": {
|
1598 | "10": 3,
|
1599 | "75": 8,
|
1600 | "91": 1,
|
1601 | "153": 2,
|
1602 | "169": 1,
|
1603 | "193": 1,
|
1604 | "225": 1,
|
1605 | "242": 1,
|
1606 | "243": 1,
|
1607 | "254": 1,
|
1608 | "255": 1,
|
1609 | "256": 1,
|
1610 | "281": 3,
|
1611 | "290": 1
|
1612 | },
|
1613 | "fqnsFingerprint": "699e1c47d2b9079669b76fe5558a6f5fd29e3f00ed8e40980f64c73179fdd5b6"
|
1614 | },
|
1615 | "c33e356018de931f479719d86aa2979f647378f465b9a9bf08f6c7d82544666b": {
|
1616 | "translations": {
|
1617 | "python": {
|
1618 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_connection_props = events.CfnConnectionProps(\n authorization_type=\"authorizationType\",\n auth_parameters=events.CfnConnection.AuthParametersProperty(\n api_key_auth_parameters=events.CfnConnection.ApiKeyAuthParametersProperty(\n api_key_name=\"apiKeyName\",\n api_key_value=\"apiKeyValue\"\n ),\n basic_auth_parameters=events.CfnConnection.BasicAuthParametersProperty(\n password=\"password\",\n username=\"username\"\n ),\n invocation_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n ),\n o_auth_parameters=events.CfnConnection.OAuthParametersProperty(\n authorization_endpoint=\"authorizationEndpoint\",\n client_parameters=events.CfnConnection.ClientParametersProperty(\n client_id=\"clientId\",\n client_secret=\"clientSecret\"\n ),\n http_method=\"httpMethod\",\n\n # the properties below are optional\n o_auth_http_parameters=events.CfnConnection.ConnectionHttpParametersProperty(\n body_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n header_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )],\n query_string_parameters=[events.CfnConnection.ParameterProperty(\n key=\"key\",\n value=\"value\",\n\n # the properties below are optional\n is_value_secret=False\n )]\n )\n )\n ),\n\n # the properties below are optional\n description=\"description\",\n name=\"name\"\n)",
|
1619 | "version": "2"
|
1620 | },
|
1621 | "csharp": {
|
1622 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnConnectionProps cfnConnectionProps = new CfnConnectionProps {\n AuthorizationType = \"authorizationType\",\n AuthParameters = new AuthParametersProperty {\n ApiKeyAuthParameters = new ApiKeyAuthParametersProperty {\n ApiKeyName = \"apiKeyName\",\n ApiKeyValue = \"apiKeyValue\"\n },\n BasicAuthParameters = new BasicAuthParametersProperty {\n Password = \"password\",\n Username = \"username\"\n },\n InvocationHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n },\n OAuthParameters = new OAuthParametersProperty {\n AuthorizationEndpoint = \"authorizationEndpoint\",\n ClientParameters = new ClientParametersProperty {\n ClientId = \"clientId\",\n ClientSecret = \"clientSecret\"\n },\n HttpMethod = \"httpMethod\",\n\n // the properties below are optional\n OAuthHttpParameters = new ConnectionHttpParametersProperty {\n BodyParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n HeaderParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } },\n QueryStringParameters = new [] { new ParameterProperty {\n Key = \"key\",\n Value = \"value\",\n\n // the properties below are optional\n IsValueSecret = false\n } }\n }\n }\n },\n\n // the properties below are optional\n Description = \"description\",\n Name = \"name\"\n};",
|
1623 | "version": "1"
|
1624 | },
|
1625 | "java": {
|
1626 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnConnectionProps cfnConnectionProps = CfnConnectionProps.builder()\n .authorizationType(\"authorizationType\")\n .authParameters(AuthParametersProperty.builder()\n .apiKeyAuthParameters(ApiKeyAuthParametersProperty.builder()\n .apiKeyName(\"apiKeyName\")\n .apiKeyValue(\"apiKeyValue\")\n .build())\n .basicAuthParameters(BasicAuthParametersProperty.builder()\n .password(\"password\")\n .username(\"username\")\n .build())\n .invocationHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .oAuthParameters(OAuthParametersProperty.builder()\n .authorizationEndpoint(\"authorizationEndpoint\")\n .clientParameters(ClientParametersProperty.builder()\n .clientId(\"clientId\")\n .clientSecret(\"clientSecret\")\n .build())\n .httpMethod(\"httpMethod\")\n\n // the properties below are optional\n .oAuthHttpParameters(ConnectionHttpParametersProperty.builder()\n .bodyParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .headerParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .queryStringParameters(List.of(ParameterProperty.builder()\n .key(\"key\")\n .value(\"value\")\n\n // the properties below are optional\n .isValueSecret(false)\n .build()))\n .build())\n .build())\n .build())\n\n // the properties below are optional\n .description(\"description\")\n .name(\"name\")\n .build();",
|
1627 | "version": "1"
|
1628 | },
|
1629 | "go": {
|
1630 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnConnectionProps := &cfnConnectionProps{\n\tauthorizationType: jsii.String(\"authorizationType\"),\n\tauthParameters: &authParametersProperty{\n\t\tapiKeyAuthParameters: &apiKeyAuthParametersProperty{\n\t\t\tapiKeyName: jsii.String(\"apiKeyName\"),\n\t\t\tapiKeyValue: jsii.String(\"apiKeyValue\"),\n\t\t},\n\t\tbasicAuthParameters: &basicAuthParametersProperty{\n\t\t\tpassword: jsii.String(\"password\"),\n\t\t\tusername: jsii.String(\"username\"),\n\t\t},\n\t\tinvocationHttpParameters: &connectionHttpParametersProperty{\n\t\t\tbodyParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\theaderParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tqueryStringParameters: []interface{}{\n\t\t\t\t¶meterProperty{\n\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\toAuthParameters: &oAuthParametersProperty{\n\t\t\tauthorizationEndpoint: jsii.String(\"authorizationEndpoint\"),\n\t\t\tclientParameters: &clientParametersProperty{\n\t\t\t\tclientId: jsii.String(\"clientId\"),\n\t\t\t\tclientSecret: jsii.String(\"clientSecret\"),\n\t\t\t},\n\t\t\thttpMethod: jsii.String(\"httpMethod\"),\n\n\t\t\t// the properties below are optional\n\t\t\toAuthHttpParameters: &connectionHttpParametersProperty{\n\t\t\t\tbodyParameters: []interface{}{\n\t\t\t\t\t¶meterProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\theaderParameters: []interface{}{\n\t\t\t\t\t¶meterProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tqueryStringParameters: []interface{}{\n\t\t\t\t\t¶meterProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tisValueSecret: jsii.Boolean(false),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\tname: jsii.String(\"name\"),\n}",
|
1631 | "version": "1"
|
1632 | },
|
1633 | "$": {
|
1634 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnConnectionProps: events.CfnConnectionProps = {\n authorizationType: 'authorizationType',\n authParameters: {\n apiKeyAuthParameters: {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n },\n basicAuthParameters: {\n password: 'password',\n username: 'username',\n },\n invocationHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n oAuthParameters: {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n};",
|
1635 | "version": "0"
|
1636 | }
|
1637 | },
|
1638 | "location": {
|
1639 | "api": {
|
1640 | "api": "type",
|
1641 | "fqn": "@aws-cdk/aws-events.CfnConnectionProps"
|
1642 | },
|
1643 | "field": {
|
1644 | "field": "example"
|
1645 | }
|
1646 | },
|
1647 | "didCompile": true,
|
1648 | "fqnsReferenced": [
|
1649 | "@aws-cdk/aws-events.CfnConnectionProps"
|
1650 | ],
|
1651 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnConnectionProps: events.CfnConnectionProps = {\n authorizationType: 'authorizationType',\n authParameters: {\n apiKeyAuthParameters: {\n apiKeyName: 'apiKeyName',\n apiKeyValue: 'apiKeyValue',\n },\n basicAuthParameters: {\n password: 'password',\n username: 'username',\n },\n invocationHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n oAuthParameters: {\n authorizationEndpoint: 'authorizationEndpoint',\n clientParameters: {\n clientId: 'clientId',\n clientSecret: 'clientSecret',\n },\n httpMethod: 'httpMethod',\n\n // the properties below are optional\n oAuthHttpParameters: {\n bodyParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n headerParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n queryStringParameters: [{\n key: 'key',\n value: 'value',\n\n // the properties below are optional\n isValueSecret: false,\n }],\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1652 | "syntaxKindCounter": {
|
1653 | "10": 24,
|
1654 | "75": 46,
|
1655 | "91": 6,
|
1656 | "153": 1,
|
1657 | "169": 1,
|
1658 | "192": 6,
|
1659 | "193": 14,
|
1660 | "225": 1,
|
1661 | "242": 1,
|
1662 | "243": 1,
|
1663 | "254": 1,
|
1664 | "255": 1,
|
1665 | "256": 1,
|
1666 | "281": 42,
|
1667 | "290": 1
|
1668 | },
|
1669 | "fqnsFingerprint": "83a36c864c5ba6b00771254d85bf76a798ec6a7f453b41f2030d748f0913eb4a"
|
1670 | },
|
1671 | "f87ef226c1e2fe10d291009a070f43eab84eaf40ca66d99ebec91d42a14505fa": {
|
1672 | "translations": {
|
1673 | "python": {
|
1674 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_endpoint = events.CfnEndpoint(self, \"MyCfnEndpoint\",\n event_buses=[events.CfnEndpoint.EndpointEventBusProperty(\n event_bus_arn=\"eventBusArn\"\n )],\n name=\"name\",\n routing_config=events.CfnEndpoint.RoutingConfigProperty(\n failover_config=events.CfnEndpoint.FailoverConfigProperty(\n primary=events.CfnEndpoint.PrimaryProperty(\n health_check=\"healthCheck\"\n ),\n secondary=events.CfnEndpoint.SecondaryProperty(\n route=\"route\"\n )\n )\n ),\n\n # the properties below are optional\n description=\"description\",\n replication_config=events.CfnEndpoint.ReplicationConfigProperty(\n state=\"state\"\n ),\n role_arn=\"roleArn\"\n)",
|
1675 | "version": "2"
|
1676 | },
|
1677 | "csharp": {
|
1678 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnEndpoint cfnEndpoint = new CfnEndpoint(this, \"MyCfnEndpoint\", new CfnEndpointProps {\n EventBuses = new [] { new EndpointEventBusProperty {\n EventBusArn = \"eventBusArn\"\n } },\n Name = \"name\",\n RoutingConfig = new RoutingConfigProperty {\n FailoverConfig = new FailoverConfigProperty {\n Primary = new PrimaryProperty {\n HealthCheck = \"healthCheck\"\n },\n Secondary = new SecondaryProperty {\n Route = \"route\"\n }\n }\n },\n\n // the properties below are optional\n Description = \"description\",\n ReplicationConfig = new ReplicationConfigProperty {\n State = \"state\"\n },\n RoleArn = \"roleArn\"\n});",
|
1679 | "version": "1"
|
1680 | },
|
1681 | "java": {
|
1682 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnEndpoint cfnEndpoint = CfnEndpoint.Builder.create(this, \"MyCfnEndpoint\")\n .eventBuses(List.of(EndpointEventBusProperty.builder()\n .eventBusArn(\"eventBusArn\")\n .build()))\n .name(\"name\")\n .routingConfig(RoutingConfigProperty.builder()\n .failoverConfig(FailoverConfigProperty.builder()\n .primary(PrimaryProperty.builder()\n .healthCheck(\"healthCheck\")\n .build())\n .secondary(SecondaryProperty.builder()\n .route(\"route\")\n .build())\n .build())\n .build())\n\n // the properties below are optional\n .description(\"description\")\n .replicationConfig(ReplicationConfigProperty.builder()\n .state(\"state\")\n .build())\n .roleArn(\"roleArn\")\n .build();",
|
1683 | "version": "1"
|
1684 | },
|
1685 | "go": {
|
1686 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnEndpoint := events.NewCfnEndpoint(this, jsii.String(\"MyCfnEndpoint\"), &cfnEndpointProps{\n\teventBuses: []interface{}{\n\t\t&endpointEventBusProperty{\n\t\t\teventBusArn: jsii.String(\"eventBusArn\"),\n\t\t},\n\t},\n\tname: jsii.String(\"name\"),\n\troutingConfig: &routingConfigProperty{\n\t\tfailoverConfig: &failoverConfigProperty{\n\t\t\tprimary: &primaryProperty{\n\t\t\t\thealthCheck: jsii.String(\"healthCheck\"),\n\t\t\t},\n\t\t\tsecondary: &secondaryProperty{\n\t\t\t\troute: jsii.String(\"route\"),\n\t\t\t},\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\treplicationConfig: &replicationConfigProperty{\n\t\tstate: jsii.String(\"state\"),\n\t},\n\troleArn: jsii.String(\"roleArn\"),\n})",
|
1687 | "version": "1"
|
1688 | },
|
1689 | "$": {
|
1690 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnEndpoint = new events.CfnEndpoint(this, 'MyCfnEndpoint', {\n eventBuses: [{\n eventBusArn: 'eventBusArn',\n }],\n name: 'name',\n routingConfig: {\n failoverConfig: {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n replicationConfig: {\n state: 'state',\n },\n roleArn: 'roleArn',\n});",
|
1691 | "version": "0"
|
1692 | }
|
1693 | },
|
1694 | "location": {
|
1695 | "api": {
|
1696 | "api": "type",
|
1697 | "fqn": "@aws-cdk/aws-events.CfnEndpoint"
|
1698 | },
|
1699 | "field": {
|
1700 | "field": "example"
|
1701 | }
|
1702 | },
|
1703 | "didCompile": true,
|
1704 | "fqnsReferenced": [
|
1705 | "@aws-cdk/aws-events.CfnEndpoint",
|
1706 | "@aws-cdk/aws-events.CfnEndpointProps",
|
1707 | "@aws-cdk/core.Construct"
|
1708 | ],
|
1709 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnEndpoint = new events.CfnEndpoint(this, 'MyCfnEndpoint', {\n eventBuses: [{\n eventBusArn: 'eventBusArn',\n }],\n name: 'name',\n routingConfig: {\n failoverConfig: {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n replicationConfig: {\n state: 'state',\n },\n roleArn: 'roleArn',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1710 | "syntaxKindCounter": {
|
1711 | "10": 9,
|
1712 | "75": 17,
|
1713 | "104": 1,
|
1714 | "192": 1,
|
1715 | "193": 7,
|
1716 | "194": 1,
|
1717 | "197": 1,
|
1718 | "225": 1,
|
1719 | "242": 1,
|
1720 | "243": 1,
|
1721 | "254": 1,
|
1722 | "255": 1,
|
1723 | "256": 1,
|
1724 | "281": 13,
|
1725 | "290": 1
|
1726 | },
|
1727 | "fqnsFingerprint": "eddee9fc094166305422192de1185075c1c45011fc274fb1a2e2dec763bb7596"
|
1728 | },
|
1729 | "a2d184668032f75a658ce618f22173f9010edc7195d8eec3804afe7c8ae2a077": {
|
1730 | "translations": {
|
1731 | "python": {
|
1732 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nendpoint_event_bus_property = events.CfnEndpoint.EndpointEventBusProperty(\n event_bus_arn=\"eventBusArn\"\n)",
|
1733 | "version": "2"
|
1734 | },
|
1735 | "csharp": {
|
1736 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nEndpointEventBusProperty endpointEventBusProperty = new EndpointEventBusProperty {\n EventBusArn = \"eventBusArn\"\n};",
|
1737 | "version": "1"
|
1738 | },
|
1739 | "java": {
|
1740 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nEndpointEventBusProperty endpointEventBusProperty = EndpointEventBusProperty.builder()\n .eventBusArn(\"eventBusArn\")\n .build();",
|
1741 | "version": "1"
|
1742 | },
|
1743 | "go": {
|
1744 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nendpointEventBusProperty := &endpointEventBusProperty{\n\teventBusArn: jsii.String(\"eventBusArn\"),\n}",
|
1745 | "version": "1"
|
1746 | },
|
1747 | "$": {
|
1748 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst endpointEventBusProperty: events.CfnEndpoint.EndpointEventBusProperty = {\n eventBusArn: 'eventBusArn',\n};",
|
1749 | "version": "0"
|
1750 | }
|
1751 | },
|
1752 | "location": {
|
1753 | "api": {
|
1754 | "api": "type",
|
1755 | "fqn": "@aws-cdk/aws-events.CfnEndpoint.EndpointEventBusProperty"
|
1756 | },
|
1757 | "field": {
|
1758 | "field": "example"
|
1759 | }
|
1760 | },
|
1761 | "didCompile": true,
|
1762 | "fqnsReferenced": [
|
1763 | "@aws-cdk/aws-events.CfnEndpoint.EndpointEventBusProperty"
|
1764 | ],
|
1765 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst endpointEventBusProperty: events.CfnEndpoint.EndpointEventBusProperty = {\n eventBusArn: 'eventBusArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1766 | "syntaxKindCounter": {
|
1767 | "10": 2,
|
1768 | "75": 6,
|
1769 | "153": 2,
|
1770 | "169": 1,
|
1771 | "193": 1,
|
1772 | "225": 1,
|
1773 | "242": 1,
|
1774 | "243": 1,
|
1775 | "254": 1,
|
1776 | "255": 1,
|
1777 | "256": 1,
|
1778 | "281": 1,
|
1779 | "290": 1
|
1780 | },
|
1781 | "fqnsFingerprint": "ae5f54520ad60d0d17b8fdad1759280b1d02182d38d4d6fe6bdbe26e39e88159"
|
1782 | },
|
1783 | "5e7eae649bcc77c989173d27556ece4dae86c8c54842d253c18c1b51d1834a34": {
|
1784 | "translations": {
|
1785 | "python": {
|
1786 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nfailover_config_property = events.CfnEndpoint.FailoverConfigProperty(\n primary=events.CfnEndpoint.PrimaryProperty(\n health_check=\"healthCheck\"\n ),\n secondary=events.CfnEndpoint.SecondaryProperty(\n route=\"route\"\n )\n)",
|
1787 | "version": "2"
|
1788 | },
|
1789 | "csharp": {
|
1790 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nFailoverConfigProperty failoverConfigProperty = new FailoverConfigProperty {\n Primary = new PrimaryProperty {\n HealthCheck = \"healthCheck\"\n },\n Secondary = new SecondaryProperty {\n Route = \"route\"\n }\n};",
|
1791 | "version": "1"
|
1792 | },
|
1793 | "java": {
|
1794 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nFailoverConfigProperty failoverConfigProperty = FailoverConfigProperty.builder()\n .primary(PrimaryProperty.builder()\n .healthCheck(\"healthCheck\")\n .build())\n .secondary(SecondaryProperty.builder()\n .route(\"route\")\n .build())\n .build();",
|
1795 | "version": "1"
|
1796 | },
|
1797 | "go": {
|
1798 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nfailoverConfigProperty := &failoverConfigProperty{\n\tprimary: &primaryProperty{\n\t\thealthCheck: jsii.String(\"healthCheck\"),\n\t},\n\tsecondary: &secondaryProperty{\n\t\troute: jsii.String(\"route\"),\n\t},\n}",
|
1799 | "version": "1"
|
1800 | },
|
1801 | "$": {
|
1802 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst failoverConfigProperty: events.CfnEndpoint.FailoverConfigProperty = {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n};",
|
1803 | "version": "0"
|
1804 | }
|
1805 | },
|
1806 | "location": {
|
1807 | "api": {
|
1808 | "api": "type",
|
1809 | "fqn": "@aws-cdk/aws-events.CfnEndpoint.FailoverConfigProperty"
|
1810 | },
|
1811 | "field": {
|
1812 | "field": "example"
|
1813 | }
|
1814 | },
|
1815 | "didCompile": true,
|
1816 | "fqnsReferenced": [
|
1817 | "@aws-cdk/aws-events.CfnEndpoint.FailoverConfigProperty"
|
1818 | ],
|
1819 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst failoverConfigProperty: events.CfnEndpoint.FailoverConfigProperty = {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1820 | "syntaxKindCounter": {
|
1821 | "10": 3,
|
1822 | "75": 9,
|
1823 | "153": 2,
|
1824 | "169": 1,
|
1825 | "193": 3,
|
1826 | "225": 1,
|
1827 | "242": 1,
|
1828 | "243": 1,
|
1829 | "254": 1,
|
1830 | "255": 1,
|
1831 | "256": 1,
|
1832 | "281": 4,
|
1833 | "290": 1
|
1834 | },
|
1835 | "fqnsFingerprint": "e317541f6c5400402eedf0f77d1256cf3fc9690d8c7c8b12ac7e40bd0ac260af"
|
1836 | },
|
1837 | "6f8c6718a2a0c153f2d8e2b8be14b79c096d0ddc4ca4a6c7dfd56b9e9165b66d": {
|
1838 | "translations": {
|
1839 | "python": {
|
1840 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nprimary_property = events.CfnEndpoint.PrimaryProperty(\n health_check=\"healthCheck\"\n)",
|
1841 | "version": "2"
|
1842 | },
|
1843 | "csharp": {
|
1844 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nPrimaryProperty primaryProperty = new PrimaryProperty {\n HealthCheck = \"healthCheck\"\n};",
|
1845 | "version": "1"
|
1846 | },
|
1847 | "java": {
|
1848 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nPrimaryProperty primaryProperty = PrimaryProperty.builder()\n .healthCheck(\"healthCheck\")\n .build();",
|
1849 | "version": "1"
|
1850 | },
|
1851 | "go": {
|
1852 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nprimaryProperty := &primaryProperty{\n\thealthCheck: jsii.String(\"healthCheck\"),\n}",
|
1853 | "version": "1"
|
1854 | },
|
1855 | "$": {
|
1856 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst primaryProperty: events.CfnEndpoint.PrimaryProperty = {\n healthCheck: 'healthCheck',\n};",
|
1857 | "version": "0"
|
1858 | }
|
1859 | },
|
1860 | "location": {
|
1861 | "api": {
|
1862 | "api": "type",
|
1863 | "fqn": "@aws-cdk/aws-events.CfnEndpoint.PrimaryProperty"
|
1864 | },
|
1865 | "field": {
|
1866 | "field": "example"
|
1867 | }
|
1868 | },
|
1869 | "didCompile": true,
|
1870 | "fqnsReferenced": [
|
1871 | "@aws-cdk/aws-events.CfnEndpoint.PrimaryProperty"
|
1872 | ],
|
1873 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst primaryProperty: events.CfnEndpoint.PrimaryProperty = {\n healthCheck: 'healthCheck',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1874 | "syntaxKindCounter": {
|
1875 | "10": 2,
|
1876 | "75": 6,
|
1877 | "153": 2,
|
1878 | "169": 1,
|
1879 | "193": 1,
|
1880 | "225": 1,
|
1881 | "242": 1,
|
1882 | "243": 1,
|
1883 | "254": 1,
|
1884 | "255": 1,
|
1885 | "256": 1,
|
1886 | "281": 1,
|
1887 | "290": 1
|
1888 | },
|
1889 | "fqnsFingerprint": "85176a42fc19e6ad9010f5bcf7002f67e327eb5256083dd8b2314550fb8d6050"
|
1890 | },
|
1891 | "6b810f4792fab8bdeb1ff93661a05f2be3599de8cd86033e6a6b754831d3c8cd": {
|
1892 | "translations": {
|
1893 | "python": {
|
1894 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nreplication_config_property = events.CfnEndpoint.ReplicationConfigProperty(\n state=\"state\"\n)",
|
1895 | "version": "2"
|
1896 | },
|
1897 | "csharp": {
|
1898 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nReplicationConfigProperty replicationConfigProperty = new ReplicationConfigProperty {\n State = \"state\"\n};",
|
1899 | "version": "1"
|
1900 | },
|
1901 | "java": {
|
1902 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nReplicationConfigProperty replicationConfigProperty = ReplicationConfigProperty.builder()\n .state(\"state\")\n .build();",
|
1903 | "version": "1"
|
1904 | },
|
1905 | "go": {
|
1906 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nreplicationConfigProperty := &replicationConfigProperty{\n\tstate: jsii.String(\"state\"),\n}",
|
1907 | "version": "1"
|
1908 | },
|
1909 | "$": {
|
1910 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst replicationConfigProperty: events.CfnEndpoint.ReplicationConfigProperty = {\n state: 'state',\n};",
|
1911 | "version": "0"
|
1912 | }
|
1913 | },
|
1914 | "location": {
|
1915 | "api": {
|
1916 | "api": "type",
|
1917 | "fqn": "@aws-cdk/aws-events.CfnEndpoint.ReplicationConfigProperty"
|
1918 | },
|
1919 | "field": {
|
1920 | "field": "example"
|
1921 | }
|
1922 | },
|
1923 | "didCompile": true,
|
1924 | "fqnsReferenced": [
|
1925 | "@aws-cdk/aws-events.CfnEndpoint.ReplicationConfigProperty"
|
1926 | ],
|
1927 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst replicationConfigProperty: events.CfnEndpoint.ReplicationConfigProperty = {\n state: 'state',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1928 | "syntaxKindCounter": {
|
1929 | "10": 2,
|
1930 | "75": 6,
|
1931 | "153": 2,
|
1932 | "169": 1,
|
1933 | "193": 1,
|
1934 | "225": 1,
|
1935 | "242": 1,
|
1936 | "243": 1,
|
1937 | "254": 1,
|
1938 | "255": 1,
|
1939 | "256": 1,
|
1940 | "281": 1,
|
1941 | "290": 1
|
1942 | },
|
1943 | "fqnsFingerprint": "c5d25dc4ffa2909eb31c060bdf97416462474a6a66e6d94e69993ca2c184c898"
|
1944 | },
|
1945 | "09a03aa6fdd601c60c8a6e595cb143e1aa94d6ec9341d8a2798232a4c987aa45": {
|
1946 | "translations": {
|
1947 | "python": {
|
1948 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nrouting_config_property = events.CfnEndpoint.RoutingConfigProperty(\n failover_config=events.CfnEndpoint.FailoverConfigProperty(\n primary=events.CfnEndpoint.PrimaryProperty(\n health_check=\"healthCheck\"\n ),\n secondary=events.CfnEndpoint.SecondaryProperty(\n route=\"route\"\n )\n )\n)",
|
1949 | "version": "2"
|
1950 | },
|
1951 | "csharp": {
|
1952 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nRoutingConfigProperty routingConfigProperty = new RoutingConfigProperty {\n FailoverConfig = new FailoverConfigProperty {\n Primary = new PrimaryProperty {\n HealthCheck = \"healthCheck\"\n },\n Secondary = new SecondaryProperty {\n Route = \"route\"\n }\n }\n};",
|
1953 | "version": "1"
|
1954 | },
|
1955 | "java": {
|
1956 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nRoutingConfigProperty routingConfigProperty = RoutingConfigProperty.builder()\n .failoverConfig(FailoverConfigProperty.builder()\n .primary(PrimaryProperty.builder()\n .healthCheck(\"healthCheck\")\n .build())\n .secondary(SecondaryProperty.builder()\n .route(\"route\")\n .build())\n .build())\n .build();",
|
1957 | "version": "1"
|
1958 | },
|
1959 | "go": {
|
1960 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nroutingConfigProperty := &routingConfigProperty{\n\tfailoverConfig: &failoverConfigProperty{\n\t\tprimary: &primaryProperty{\n\t\t\thealthCheck: jsii.String(\"healthCheck\"),\n\t\t},\n\t\tsecondary: &secondaryProperty{\n\t\t\troute: jsii.String(\"route\"),\n\t\t},\n\t},\n}",
|
1961 | "version": "1"
|
1962 | },
|
1963 | "$": {
|
1964 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst routingConfigProperty: events.CfnEndpoint.RoutingConfigProperty = {\n failoverConfig: {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n },\n};",
|
1965 | "version": "0"
|
1966 | }
|
1967 | },
|
1968 | "location": {
|
1969 | "api": {
|
1970 | "api": "type",
|
1971 | "fqn": "@aws-cdk/aws-events.CfnEndpoint.RoutingConfigProperty"
|
1972 | },
|
1973 | "field": {
|
1974 | "field": "example"
|
1975 | }
|
1976 | },
|
1977 | "didCompile": true,
|
1978 | "fqnsReferenced": [
|
1979 | "@aws-cdk/aws-events.CfnEndpoint.RoutingConfigProperty"
|
1980 | ],
|
1981 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst routingConfigProperty: events.CfnEndpoint.RoutingConfigProperty = {\n failoverConfig: {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
1982 | "syntaxKindCounter": {
|
1983 | "10": 3,
|
1984 | "75": 10,
|
1985 | "153": 2,
|
1986 | "169": 1,
|
1987 | "193": 4,
|
1988 | "225": 1,
|
1989 | "242": 1,
|
1990 | "243": 1,
|
1991 | "254": 1,
|
1992 | "255": 1,
|
1993 | "256": 1,
|
1994 | "281": 5,
|
1995 | "290": 1
|
1996 | },
|
1997 | "fqnsFingerprint": "16fe1f700205cbeea8fa6d7ae9514096a53932caa7cc0b97e66040052d1cf6ca"
|
1998 | },
|
1999 | "0cc20095df78c00d5301ee899025aa7f03825e1be11ee25cf8a7a05d96a932fd": {
|
2000 | "translations": {
|
2001 | "python": {
|
2002 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nsecondary_property = events.CfnEndpoint.SecondaryProperty(\n route=\"route\"\n)",
|
2003 | "version": "2"
|
2004 | },
|
2005 | "csharp": {
|
2006 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nSecondaryProperty secondaryProperty = new SecondaryProperty {\n Route = \"route\"\n};",
|
2007 | "version": "1"
|
2008 | },
|
2009 | "java": {
|
2010 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nSecondaryProperty secondaryProperty = SecondaryProperty.builder()\n .route(\"route\")\n .build();",
|
2011 | "version": "1"
|
2012 | },
|
2013 | "go": {
|
2014 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nsecondaryProperty := &secondaryProperty{\n\troute: jsii.String(\"route\"),\n}",
|
2015 | "version": "1"
|
2016 | },
|
2017 | "$": {
|
2018 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst secondaryProperty: events.CfnEndpoint.SecondaryProperty = {\n route: 'route',\n};",
|
2019 | "version": "0"
|
2020 | }
|
2021 | },
|
2022 | "location": {
|
2023 | "api": {
|
2024 | "api": "type",
|
2025 | "fqn": "@aws-cdk/aws-events.CfnEndpoint.SecondaryProperty"
|
2026 | },
|
2027 | "field": {
|
2028 | "field": "example"
|
2029 | }
|
2030 | },
|
2031 | "didCompile": true,
|
2032 | "fqnsReferenced": [
|
2033 | "@aws-cdk/aws-events.CfnEndpoint.SecondaryProperty"
|
2034 | ],
|
2035 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst secondaryProperty: events.CfnEndpoint.SecondaryProperty = {\n route: 'route',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2036 | "syntaxKindCounter": {
|
2037 | "10": 2,
|
2038 | "75": 6,
|
2039 | "153": 2,
|
2040 | "169": 1,
|
2041 | "193": 1,
|
2042 | "225": 1,
|
2043 | "242": 1,
|
2044 | "243": 1,
|
2045 | "254": 1,
|
2046 | "255": 1,
|
2047 | "256": 1,
|
2048 | "281": 1,
|
2049 | "290": 1
|
2050 | },
|
2051 | "fqnsFingerprint": "36e4a7dfc522f029ccfe405c865db70307a866582240de4add009fb0ab0d61d5"
|
2052 | },
|
2053 | "1509e34ba6a6cbf0090d9e30489a8d5526c9cc8967ca8dae8837d4509ebf3bc7": {
|
2054 | "translations": {
|
2055 | "python": {
|
2056 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_endpoint_props = events.CfnEndpointProps(\n event_buses=[events.CfnEndpoint.EndpointEventBusProperty(\n event_bus_arn=\"eventBusArn\"\n )],\n name=\"name\",\n routing_config=events.CfnEndpoint.RoutingConfigProperty(\n failover_config=events.CfnEndpoint.FailoverConfigProperty(\n primary=events.CfnEndpoint.PrimaryProperty(\n health_check=\"healthCheck\"\n ),\n secondary=events.CfnEndpoint.SecondaryProperty(\n route=\"route\"\n )\n )\n ),\n\n # the properties below are optional\n description=\"description\",\n replication_config=events.CfnEndpoint.ReplicationConfigProperty(\n state=\"state\"\n ),\n role_arn=\"roleArn\"\n)",
|
2057 | "version": "2"
|
2058 | },
|
2059 | "csharp": {
|
2060 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnEndpointProps cfnEndpointProps = new CfnEndpointProps {\n EventBuses = new [] { new EndpointEventBusProperty {\n EventBusArn = \"eventBusArn\"\n } },\n Name = \"name\",\n RoutingConfig = new RoutingConfigProperty {\n FailoverConfig = new FailoverConfigProperty {\n Primary = new PrimaryProperty {\n HealthCheck = \"healthCheck\"\n },\n Secondary = new SecondaryProperty {\n Route = \"route\"\n }\n }\n },\n\n // the properties below are optional\n Description = \"description\",\n ReplicationConfig = new ReplicationConfigProperty {\n State = \"state\"\n },\n RoleArn = \"roleArn\"\n};",
|
2061 | "version": "1"
|
2062 | },
|
2063 | "java": {
|
2064 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnEndpointProps cfnEndpointProps = CfnEndpointProps.builder()\n .eventBuses(List.of(EndpointEventBusProperty.builder()\n .eventBusArn(\"eventBusArn\")\n .build()))\n .name(\"name\")\n .routingConfig(RoutingConfigProperty.builder()\n .failoverConfig(FailoverConfigProperty.builder()\n .primary(PrimaryProperty.builder()\n .healthCheck(\"healthCheck\")\n .build())\n .secondary(SecondaryProperty.builder()\n .route(\"route\")\n .build())\n .build())\n .build())\n\n // the properties below are optional\n .description(\"description\")\n .replicationConfig(ReplicationConfigProperty.builder()\n .state(\"state\")\n .build())\n .roleArn(\"roleArn\")\n .build();",
|
2065 | "version": "1"
|
2066 | },
|
2067 | "go": {
|
2068 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnEndpointProps := &cfnEndpointProps{\n\teventBuses: []interface{}{\n\t\t&endpointEventBusProperty{\n\t\t\teventBusArn: jsii.String(\"eventBusArn\"),\n\t\t},\n\t},\n\tname: jsii.String(\"name\"),\n\troutingConfig: &routingConfigProperty{\n\t\tfailoverConfig: &failoverConfigProperty{\n\t\t\tprimary: &primaryProperty{\n\t\t\t\thealthCheck: jsii.String(\"healthCheck\"),\n\t\t\t},\n\t\t\tsecondary: &secondaryProperty{\n\t\t\t\troute: jsii.String(\"route\"),\n\t\t\t},\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n\treplicationConfig: &replicationConfigProperty{\n\t\tstate: jsii.String(\"state\"),\n\t},\n\troleArn: jsii.String(\"roleArn\"),\n}",
|
2069 | "version": "1"
|
2070 | },
|
2071 | "$": {
|
2072 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnEndpointProps: events.CfnEndpointProps = {\n eventBuses: [{\n eventBusArn: 'eventBusArn',\n }],\n name: 'name',\n routingConfig: {\n failoverConfig: {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n replicationConfig: {\n state: 'state',\n },\n roleArn: 'roleArn',\n};",
|
2073 | "version": "0"
|
2074 | }
|
2075 | },
|
2076 | "location": {
|
2077 | "api": {
|
2078 | "api": "type",
|
2079 | "fqn": "@aws-cdk/aws-events.CfnEndpointProps"
|
2080 | },
|
2081 | "field": {
|
2082 | "field": "example"
|
2083 | }
|
2084 | },
|
2085 | "didCompile": true,
|
2086 | "fqnsReferenced": [
|
2087 | "@aws-cdk/aws-events.CfnEndpointProps"
|
2088 | ],
|
2089 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnEndpointProps: events.CfnEndpointProps = {\n eventBuses: [{\n eventBusArn: 'eventBusArn',\n }],\n name: 'name',\n routingConfig: {\n failoverConfig: {\n primary: {\n healthCheck: 'healthCheck',\n },\n secondary: {\n route: 'route',\n },\n },\n },\n\n // the properties below are optional\n description: 'description',\n replicationConfig: {\n state: 'state',\n },\n roleArn: 'roleArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2090 | "syntaxKindCounter": {
|
2091 | "10": 8,
|
2092 | "75": 17,
|
2093 | "153": 1,
|
2094 | "169": 1,
|
2095 | "192": 1,
|
2096 | "193": 7,
|
2097 | "225": 1,
|
2098 | "242": 1,
|
2099 | "243": 1,
|
2100 | "254": 1,
|
2101 | "255": 1,
|
2102 | "256": 1,
|
2103 | "281": 13,
|
2104 | "290": 1
|
2105 | },
|
2106 | "fqnsFingerprint": "44ec874d7dc7ed09eaa3a73ff54e9225036c9bcb7a8380c5608cadc8a10d644f"
|
2107 | },
|
2108 | "0ebe28c91dae161ee654b3938d0809829bd795e59c454f688c89bc6263782d6c": {
|
2109 | "translations": {
|
2110 | "python": {
|
2111 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_event_bus = events.CfnEventBus(self, \"MyCfnEventBus\",\n name=\"name\",\n\n # the properties below are optional\n event_source_name=\"eventSourceName\",\n tags=[events.CfnEventBus.TagEntryProperty(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
2112 | "version": "2"
|
2113 | },
|
2114 | "csharp": {
|
2115 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnEventBus cfnEventBus = new CfnEventBus(this, \"MyCfnEventBus\", new CfnEventBusProps {\n Name = \"name\",\n\n // the properties below are optional\n EventSourceName = \"eventSourceName\",\n Tags = new [] { new TagEntryProperty {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
|
2116 | "version": "1"
|
2117 | },
|
2118 | "java": {
|
2119 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnEventBus cfnEventBus = CfnEventBus.Builder.create(this, \"MyCfnEventBus\")\n .name(\"name\")\n\n // the properties below are optional\n .eventSourceName(\"eventSourceName\")\n .tags(List.of(TagEntryProperty.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
2120 | "version": "1"
|
2121 | },
|
2122 | "go": {
|
2123 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnEventBus := events.NewCfnEventBus(this, jsii.String(\"MyCfnEventBus\"), &cfnEventBusProps{\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\teventSourceName: jsii.String(\"eventSourceName\"),\n\ttags: []tagEntryProperty{\n\t\t&tagEntryProperty{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
|
2124 | "version": "1"
|
2125 | },
|
2126 | "$": {
|
2127 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnEventBus = new events.CfnEventBus(this, 'MyCfnEventBus', {\n name: 'name',\n\n // the properties below are optional\n eventSourceName: 'eventSourceName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
|
2128 | "version": "0"
|
2129 | }
|
2130 | },
|
2131 | "location": {
|
2132 | "api": {
|
2133 | "api": "type",
|
2134 | "fqn": "@aws-cdk/aws-events.CfnEventBus"
|
2135 | },
|
2136 | "field": {
|
2137 | "field": "example"
|
2138 | }
|
2139 | },
|
2140 | "didCompile": true,
|
2141 | "fqnsReferenced": [
|
2142 | "@aws-cdk/aws-events.CfnEventBus",
|
2143 | "@aws-cdk/aws-events.CfnEventBusProps",
|
2144 | "@aws-cdk/core.Construct"
|
2145 | ],
|
2146 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnEventBus = new events.CfnEventBus(this, 'MyCfnEventBus', {\n name: 'name',\n\n // the properties below are optional\n eventSourceName: 'eventSourceName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2147 | "syntaxKindCounter": {
|
2148 | "10": 6,
|
2149 | "75": 9,
|
2150 | "104": 1,
|
2151 | "192": 1,
|
2152 | "193": 2,
|
2153 | "194": 1,
|
2154 | "197": 1,
|
2155 | "225": 1,
|
2156 | "242": 1,
|
2157 | "243": 1,
|
2158 | "254": 1,
|
2159 | "255": 1,
|
2160 | "256": 1,
|
2161 | "281": 5,
|
2162 | "290": 1
|
2163 | },
|
2164 | "fqnsFingerprint": "d9dbcec0b6072b33e9de9f4a79c7a8261fa65110813795abf4c9e23ad267b8e9"
|
2165 | },
|
2166 | "8eb5213aa7faa444ed87276f1b8fcd023f3d823ddafb0fc4543c5780c69e2634": {
|
2167 | "translations": {
|
2168 | "python": {
|
2169 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ntag_entry_property = events.CfnEventBus.TagEntryProperty(\n key=\"key\",\n value=\"value\"\n)",
|
2170 | "version": "2"
|
2171 | },
|
2172 | "csharp": {
|
2173 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nTagEntryProperty tagEntryProperty = new TagEntryProperty {\n Key = \"key\",\n Value = \"value\"\n};",
|
2174 | "version": "1"
|
2175 | },
|
2176 | "java": {
|
2177 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nTagEntryProperty tagEntryProperty = TagEntryProperty.builder()\n .key(\"key\")\n .value(\"value\")\n .build();",
|
2178 | "version": "1"
|
2179 | },
|
2180 | "go": {
|
2181 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ntagEntryProperty := &tagEntryProperty{\n\tkey: jsii.String(\"key\"),\n\tvalue: jsii.String(\"value\"),\n}",
|
2182 | "version": "1"
|
2183 | },
|
2184 | "$": {
|
2185 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst tagEntryProperty: events.CfnEventBus.TagEntryProperty = {\n key: 'key',\n value: 'value',\n};",
|
2186 | "version": "0"
|
2187 | }
|
2188 | },
|
2189 | "location": {
|
2190 | "api": {
|
2191 | "api": "type",
|
2192 | "fqn": "@aws-cdk/aws-events.CfnEventBus.TagEntryProperty"
|
2193 | },
|
2194 | "field": {
|
2195 | "field": "example"
|
2196 | }
|
2197 | },
|
2198 | "didCompile": true,
|
2199 | "fqnsReferenced": [
|
2200 | "@aws-cdk/aws-events.CfnEventBus.TagEntryProperty"
|
2201 | ],
|
2202 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst tagEntryProperty: events.CfnEventBus.TagEntryProperty = {\n key: 'key',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2203 | "syntaxKindCounter": {
|
2204 | "10": 3,
|
2205 | "75": 7,
|
2206 | "153": 2,
|
2207 | "169": 1,
|
2208 | "193": 1,
|
2209 | "225": 1,
|
2210 | "242": 1,
|
2211 | "243": 1,
|
2212 | "254": 1,
|
2213 | "255": 1,
|
2214 | "256": 1,
|
2215 | "281": 2,
|
2216 | "290": 1
|
2217 | },
|
2218 | "fqnsFingerprint": "68920f3ac218f7c2113f8bf0c71f392b595a20ff6b1768e2106bdfd53a86e1bd"
|
2219 | },
|
2220 | "cda30237377301510f3f46d675f354fa4758f2f5a009f9626b1db98186a42cfb": {
|
2221 | "translations": {
|
2222 | "python": {
|
2223 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\n# statement: Any\n\ncfn_event_bus_policy = events.CfnEventBusPolicy(self, \"MyCfnEventBusPolicy\",\n statement_id=\"statementId\",\n\n # the properties below are optional\n action=\"action\",\n condition=events.CfnEventBusPolicy.ConditionProperty(\n key=\"key\",\n type=\"type\",\n value=\"value\"\n ),\n event_bus_name=\"eventBusName\",\n principal=\"principal\",\n statement=statement\n)",
|
2224 | "version": "2"
|
2225 | },
|
2226 | "csharp": {
|
2227 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nvar statement;\n\nCfnEventBusPolicy cfnEventBusPolicy = new CfnEventBusPolicy(this, \"MyCfnEventBusPolicy\", new CfnEventBusPolicyProps {\n StatementId = \"statementId\",\n\n // the properties below are optional\n Action = \"action\",\n Condition = new ConditionProperty {\n Key = \"key\",\n Type = \"type\",\n Value = \"value\"\n },\n EventBusName = \"eventBusName\",\n Principal = \"principal\",\n Statement = statement\n});",
|
2228 | "version": "1"
|
2229 | },
|
2230 | "java": {
|
2231 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nObject statement;\n\nCfnEventBusPolicy cfnEventBusPolicy = CfnEventBusPolicy.Builder.create(this, \"MyCfnEventBusPolicy\")\n .statementId(\"statementId\")\n\n // the properties below are optional\n .action(\"action\")\n .condition(ConditionProperty.builder()\n .key(\"key\")\n .type(\"type\")\n .value(\"value\")\n .build())\n .eventBusName(\"eventBusName\")\n .principal(\"principal\")\n .statement(statement)\n .build();",
|
2232 | "version": "1"
|
2233 | },
|
2234 | "go": {
|
2235 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\n\nvar statement interface{}\ncfnEventBusPolicy := events.NewCfnEventBusPolicy(this, jsii.String(\"MyCfnEventBusPolicy\"), &cfnEventBusPolicyProps{\n\tstatementId: jsii.String(\"statementId\"),\n\n\t// the properties below are optional\n\taction: jsii.String(\"action\"),\n\tcondition: &conditionProperty{\n\t\tkey: jsii.String(\"key\"),\n\t\ttype: jsii.String(\"type\"),\n\t\tvalue: jsii.String(\"value\"),\n\t},\n\teventBusName: jsii.String(\"eventBusName\"),\n\tprincipal: jsii.String(\"principal\"),\n\tstatement: statement,\n})",
|
2236 | "version": "1"
|
2237 | },
|
2238 | "$": {
|
2239 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const statement: any;\nconst cfnEventBusPolicy = new events.CfnEventBusPolicy(this, 'MyCfnEventBusPolicy', {\n statementId: 'statementId',\n\n // the properties below are optional\n action: 'action',\n condition: {\n key: 'key',\n type: 'type',\n value: 'value',\n },\n eventBusName: 'eventBusName',\n principal: 'principal',\n statement: statement,\n});",
|
2240 | "version": "0"
|
2241 | }
|
2242 | },
|
2243 | "location": {
|
2244 | "api": {
|
2245 | "api": "type",
|
2246 | "fqn": "@aws-cdk/aws-events.CfnEventBusPolicy"
|
2247 | },
|
2248 | "field": {
|
2249 | "field": "example"
|
2250 | }
|
2251 | },
|
2252 | "didCompile": true,
|
2253 | "fqnsReferenced": [
|
2254 | "@aws-cdk/aws-events.CfnEventBusPolicy",
|
2255 | "@aws-cdk/aws-events.CfnEventBusPolicyProps",
|
2256 | "@aws-cdk/core.Construct"
|
2257 | ],
|
2258 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const statement: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnEventBusPolicy = new events.CfnEventBusPolicy(this, 'MyCfnEventBusPolicy', {\n statementId: 'statementId',\n\n // the properties below are optional\n action: 'action',\n condition: {\n key: 'key',\n type: 'type',\n value: 'value',\n },\n eventBusName: 'eventBusName',\n principal: 'principal',\n statement: statement,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2259 | "syntaxKindCounter": {
|
2260 | "10": 9,
|
2261 | "75": 15,
|
2262 | "104": 1,
|
2263 | "125": 1,
|
2264 | "130": 1,
|
2265 | "193": 2,
|
2266 | "194": 1,
|
2267 | "197": 1,
|
2268 | "225": 2,
|
2269 | "242": 2,
|
2270 | "243": 2,
|
2271 | "254": 1,
|
2272 | "255": 1,
|
2273 | "256": 1,
|
2274 | "281": 9,
|
2275 | "290": 1
|
2276 | },
|
2277 | "fqnsFingerprint": "b6b74dc88185fb9b544acd422cc5f24aa5a87435274d8b42705da90961737fcb"
|
2278 | },
|
2279 | "efdef4980c791b63d6dd9bcd3da7640e6020421c4db20c93662a6bce316469d5": {
|
2280 | "translations": {
|
2281 | "python": {
|
2282 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncondition_property = events.CfnEventBusPolicy.ConditionProperty(\n key=\"key\",\n type=\"type\",\n value=\"value\"\n)",
|
2283 | "version": "2"
|
2284 | },
|
2285 | "csharp": {
|
2286 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nConditionProperty conditionProperty = new ConditionProperty {\n Key = \"key\",\n Type = \"type\",\n Value = \"value\"\n};",
|
2287 | "version": "1"
|
2288 | },
|
2289 | "java": {
|
2290 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nConditionProperty conditionProperty = ConditionProperty.builder()\n .key(\"key\")\n .type(\"type\")\n .value(\"value\")\n .build();",
|
2291 | "version": "1"
|
2292 | },
|
2293 | "go": {
|
2294 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nconditionProperty := &conditionProperty{\n\tkey: jsii.String(\"key\"),\n\ttype: jsii.String(\"type\"),\n\tvalue: jsii.String(\"value\"),\n}",
|
2295 | "version": "1"
|
2296 | },
|
2297 | "$": {
|
2298 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst conditionProperty: events.CfnEventBusPolicy.ConditionProperty = {\n key: 'key',\n type: 'type',\n value: 'value',\n};",
|
2299 | "version": "0"
|
2300 | }
|
2301 | },
|
2302 | "location": {
|
2303 | "api": {
|
2304 | "api": "type",
|
2305 | "fqn": "@aws-cdk/aws-events.CfnEventBusPolicy.ConditionProperty"
|
2306 | },
|
2307 | "field": {
|
2308 | "field": "example"
|
2309 | }
|
2310 | },
|
2311 | "didCompile": true,
|
2312 | "fqnsReferenced": [
|
2313 | "@aws-cdk/aws-events.CfnEventBusPolicy.ConditionProperty"
|
2314 | ],
|
2315 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst conditionProperty: events.CfnEventBusPolicy.ConditionProperty = {\n key: 'key',\n type: 'type',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2316 | "syntaxKindCounter": {
|
2317 | "10": 4,
|
2318 | "75": 8,
|
2319 | "153": 2,
|
2320 | "169": 1,
|
2321 | "193": 1,
|
2322 | "225": 1,
|
2323 | "242": 1,
|
2324 | "243": 1,
|
2325 | "254": 1,
|
2326 | "255": 1,
|
2327 | "256": 1,
|
2328 | "281": 3,
|
2329 | "290": 1
|
2330 | },
|
2331 | "fqnsFingerprint": "5d83ba383057cf0c78af2ce44639a294bd4a7f01dbf3eb1f047c243764650707"
|
2332 | },
|
2333 | "d7f4eba2c6079cbf693fbeeea45396dbd8970daa7e555305dd26ceee8efe409d": {
|
2334 | "translations": {
|
2335 | "python": {
|
2336 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\n# statement: Any\n\ncfn_event_bus_policy_props = events.CfnEventBusPolicyProps(\n statement_id=\"statementId\",\n\n # the properties below are optional\n action=\"action\",\n condition=events.CfnEventBusPolicy.ConditionProperty(\n key=\"key\",\n type=\"type\",\n value=\"value\"\n ),\n event_bus_name=\"eventBusName\",\n principal=\"principal\",\n statement=statement\n)",
|
2337 | "version": "2"
|
2338 | },
|
2339 | "csharp": {
|
2340 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nvar statement;\n\nCfnEventBusPolicyProps cfnEventBusPolicyProps = new CfnEventBusPolicyProps {\n StatementId = \"statementId\",\n\n // the properties below are optional\n Action = \"action\",\n Condition = new ConditionProperty {\n Key = \"key\",\n Type = \"type\",\n Value = \"value\"\n },\n EventBusName = \"eventBusName\",\n Principal = \"principal\",\n Statement = statement\n};",
|
2341 | "version": "1"
|
2342 | },
|
2343 | "java": {
|
2344 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nObject statement;\n\nCfnEventBusPolicyProps cfnEventBusPolicyProps = CfnEventBusPolicyProps.builder()\n .statementId(\"statementId\")\n\n // the properties below are optional\n .action(\"action\")\n .condition(ConditionProperty.builder()\n .key(\"key\")\n .type(\"type\")\n .value(\"value\")\n .build())\n .eventBusName(\"eventBusName\")\n .principal(\"principal\")\n .statement(statement)\n .build();",
|
2345 | "version": "1"
|
2346 | },
|
2347 | "go": {
|
2348 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\n\nvar statement interface{}\ncfnEventBusPolicyProps := &cfnEventBusPolicyProps{\n\tstatementId: jsii.String(\"statementId\"),\n\n\t// the properties below are optional\n\taction: jsii.String(\"action\"),\n\tcondition: &conditionProperty{\n\t\tkey: jsii.String(\"key\"),\n\t\ttype: jsii.String(\"type\"),\n\t\tvalue: jsii.String(\"value\"),\n\t},\n\teventBusName: jsii.String(\"eventBusName\"),\n\tprincipal: jsii.String(\"principal\"),\n\tstatement: statement,\n}",
|
2349 | "version": "1"
|
2350 | },
|
2351 | "$": {
|
2352 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const statement: any;\nconst cfnEventBusPolicyProps: events.CfnEventBusPolicyProps = {\n statementId: 'statementId',\n\n // the properties below are optional\n action: 'action',\n condition: {\n key: 'key',\n type: 'type',\n value: 'value',\n },\n eventBusName: 'eventBusName',\n principal: 'principal',\n statement: statement,\n};",
|
2353 | "version": "0"
|
2354 | }
|
2355 | },
|
2356 | "location": {
|
2357 | "api": {
|
2358 | "api": "type",
|
2359 | "fqn": "@aws-cdk/aws-events.CfnEventBusPolicyProps"
|
2360 | },
|
2361 | "field": {
|
2362 | "field": "example"
|
2363 | }
|
2364 | },
|
2365 | "didCompile": true,
|
2366 | "fqnsReferenced": [
|
2367 | "@aws-cdk/aws-events.CfnEventBusPolicyProps"
|
2368 | ],
|
2369 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const statement: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnEventBusPolicyProps: events.CfnEventBusPolicyProps = {\n statementId: 'statementId',\n\n // the properties below are optional\n action: 'action',\n condition: {\n key: 'key',\n type: 'type',\n value: 'value',\n },\n eventBusName: 'eventBusName',\n principal: 'principal',\n statement: statement,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2370 | "syntaxKindCounter": {
|
2371 | "10": 8,
|
2372 | "75": 15,
|
2373 | "125": 1,
|
2374 | "130": 1,
|
2375 | "153": 1,
|
2376 | "169": 1,
|
2377 | "193": 2,
|
2378 | "225": 2,
|
2379 | "242": 2,
|
2380 | "243": 2,
|
2381 | "254": 1,
|
2382 | "255": 1,
|
2383 | "256": 1,
|
2384 | "281": 9,
|
2385 | "290": 1
|
2386 | },
|
2387 | "fqnsFingerprint": "b125f8e8c224ebecaaa92d7297488c27f1c941b0676c558c73fc64c30279201a"
|
2388 | },
|
2389 | "bc03dcebf3afdb15f2522fc929bb42cc51816dae4dfe2e4b82ed6b2b0207d9a6": {
|
2390 | "translations": {
|
2391 | "python": {
|
2392 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncfn_event_bus_props = events.CfnEventBusProps(\n name=\"name\",\n\n # the properties below are optional\n event_source_name=\"eventSourceName\",\n tags=[events.CfnEventBus.TagEntryProperty(\n key=\"key\",\n value=\"value\"\n )]\n)",
|
2393 | "version": "2"
|
2394 | },
|
2395 | "csharp": {
|
2396 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCfnEventBusProps cfnEventBusProps = new CfnEventBusProps {\n Name = \"name\",\n\n // the properties below are optional\n EventSourceName = \"eventSourceName\",\n Tags = new [] { new TagEntryProperty {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
|
2397 | "version": "1"
|
2398 | },
|
2399 | "java": {
|
2400 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCfnEventBusProps cfnEventBusProps = CfnEventBusProps.builder()\n .name(\"name\")\n\n // the properties below are optional\n .eventSourceName(\"eventSourceName\")\n .tags(List.of(TagEntryProperty.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
|
2401 | "version": "1"
|
2402 | },
|
2403 | "go": {
|
2404 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncfnEventBusProps := &cfnEventBusProps{\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\teventSourceName: jsii.String(\"eventSourceName\"),\n\ttags: []tagEntryProperty{\n\t\t&tagEntryProperty{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
|
2405 | "version": "1"
|
2406 | },
|
2407 | "$": {
|
2408 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst cfnEventBusProps: events.CfnEventBusProps = {\n name: 'name',\n\n // the properties below are optional\n eventSourceName: 'eventSourceName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
|
2409 | "version": "0"
|
2410 | }
|
2411 | },
|
2412 | "location": {
|
2413 | "api": {
|
2414 | "api": "type",
|
2415 | "fqn": "@aws-cdk/aws-events.CfnEventBusProps"
|
2416 | },
|
2417 | "field": {
|
2418 | "field": "example"
|
2419 | }
|
2420 | },
|
2421 | "didCompile": true,
|
2422 | "fqnsReferenced": [
|
2423 | "@aws-cdk/aws-events.CfnEventBusProps"
|
2424 | ],
|
2425 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnEventBusProps: events.CfnEventBusProps = {\n name: 'name',\n\n // the properties below are optional\n eventSourceName: 'eventSourceName',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2426 | "syntaxKindCounter": {
|
2427 | "10": 5,
|
2428 | "75": 9,
|
2429 | "153": 1,
|
2430 | "169": 1,
|
2431 | "192": 1,
|
2432 | "193": 2,
|
2433 | "225": 1,
|
2434 | "242": 1,
|
2435 | "243": 1,
|
2436 | "254": 1,
|
2437 | "255": 1,
|
2438 | "256": 1,
|
2439 | "281": 5,
|
2440 | "290": 1
|
2441 | },
|
2442 | "fqnsFingerprint": "f39ef84f2f1cf1128222999e5caa833fbdcc285f160865cf6a8d364143e6d366"
|
2443 | },
|
2444 | "2fb7c2a561cf252638050f3b61988aaa25d6f08b2c222dd6ccb0e466c8ca5fba": {
|
2445 | "translations": {
|
2446 | "python": {
|
2447 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\n# event_pattern: Any\n\ncfn_rule = events.CfnRule(self, \"MyCfnRule\",\n description=\"description\",\n event_bus_name=\"eventBusName\",\n event_pattern=event_pattern,\n name=\"name\",\n role_arn=\"roleArn\",\n schedule_expression=\"scheduleExpression\",\n state=\"state\",\n targets=[events.CfnRule.TargetProperty(\n arn=\"arn\",\n id=\"id\",\n\n # the properties below are optional\n batch_parameters=events.CfnRule.BatchParametersProperty(\n job_definition=\"jobDefinition\",\n job_name=\"jobName\",\n\n # the properties below are optional\n array_properties=events.CfnRule.BatchArrayPropertiesProperty(\n size=123\n ),\n retry_strategy=events.CfnRule.BatchRetryStrategyProperty(\n attempts=123\n )\n ),\n dead_letter_config=events.CfnRule.DeadLetterConfigProperty(\n arn=\"arn\"\n ),\n ecs_parameters=events.CfnRule.EcsParametersProperty(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n capacity_provider_strategy=[events.CfnRule.CapacityProviderStrategyItemProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n group=\"group\",\n launch_type=\"launchType\",\n network_configuration=events.CfnRule.NetworkConfigurationProperty(\n aws_vpc_configuration=events.CfnRule.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=[events.CfnRule.PlacementConstraintProperty(\n expression=\"expression\",\n type=\"type\"\n )],\n placement_strategies=[events.CfnRule.PlacementStrategyProperty(\n field=\"field\",\n type=\"type\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n reference_id=\"referenceId\",\n tag_list=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_count=123\n ),\n http_parameters=events.CfnRule.HttpParametersProperty(\n header_parameters={\n \"header_parameters_key\": \"headerParameters\"\n },\n path_parameter_values=[\"pathParameterValues\"],\n query_string_parameters={\n \"query_string_parameters_key\": \"queryStringParameters\"\n }\n ),\n input=\"input\",\n input_path=\"inputPath\",\n input_transformer=events.CfnRule.InputTransformerProperty(\n input_template=\"inputTemplate\",\n\n # the properties below are optional\n input_paths_map={\n \"input_paths_map_key\": \"inputPathsMap\"\n }\n ),\n kinesis_parameters=events.CfnRule.KinesisParametersProperty(\n partition_key_path=\"partitionKeyPath\"\n ),\n redshift_data_parameters=events.CfnRule.RedshiftDataParametersProperty(\n database=\"database\",\n sql=\"sql\",\n\n # the properties below are optional\n db_user=\"dbUser\",\n secret_manager_arn=\"secretManagerArn\",\n statement_name=\"statementName\",\n with_event=False\n ),\n retry_policy=events.CfnRule.RetryPolicyProperty(\n maximum_event_age_in_seconds=123,\n maximum_retry_attempts=123\n ),\n role_arn=\"roleArn\",\n run_command_parameters=events.CfnRule.RunCommandParametersProperty(\n run_command_targets=[events.CfnRule.RunCommandTargetProperty(\n key=\"key\",\n values=[\"values\"]\n )]\n ),\n sage_maker_pipeline_parameters=events.CfnRule.SageMakerPipelineParametersProperty(\n pipeline_parameter_list=[events.CfnRule.SageMakerPipelineParameterProperty(\n name=\"name\",\n value=\"value\"\n )]\n ),\n sqs_parameters=events.CfnRule.SqsParametersProperty(\n message_group_id=\"messageGroupId\"\n )\n )]\n)",
|
2448 | "version": "2"
|
2449 | },
|
2450 | "csharp": {
|
2451 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nvar eventPattern;\n\nCfnRule cfnRule = new CfnRule(this, \"MyCfnRule\", new CfnRuleProps {\n Description = \"description\",\n EventBusName = \"eventBusName\",\n EventPattern = eventPattern,\n Name = \"name\",\n RoleArn = \"roleArn\",\n ScheduleExpression = \"scheduleExpression\",\n State = \"state\",\n Targets = new [] { new TargetProperty {\n Arn = \"arn\",\n Id = \"id\",\n\n // the properties below are optional\n BatchParameters = new BatchParametersProperty {\n JobDefinition = \"jobDefinition\",\n JobName = \"jobName\",\n\n // the properties below are optional\n ArrayProperties = new BatchArrayPropertiesProperty {\n Size = 123\n },\n RetryStrategy = new BatchRetryStrategyProperty {\n Attempts = 123\n }\n },\n DeadLetterConfig = new DeadLetterConfigProperty {\n Arn = \"arn\"\n },\n EcsParameters = new EcsParametersProperty {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n Group = \"group\",\n LaunchType = \"launchType\",\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 Expression = \"expression\",\n Type = \"type\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Field = \"field\",\n Type = \"type\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n ReferenceId = \"referenceId\",\n TagList = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskCount = 123\n },\n HttpParameters = new HttpParametersProperty {\n HeaderParameters = new Dictionary<string, string> {\n { \"headerParametersKey\", \"headerParameters\" }\n },\n PathParameterValues = new [] { \"pathParameterValues\" },\n QueryStringParameters = new Dictionary<string, string> {\n { \"queryStringParametersKey\", \"queryStringParameters\" }\n }\n },\n Input = \"input\",\n InputPath = \"inputPath\",\n InputTransformer = new InputTransformerProperty {\n InputTemplate = \"inputTemplate\",\n\n // the properties below are optional\n InputPathsMap = new Dictionary<string, string> {\n { \"inputPathsMapKey\", \"inputPathsMap\" }\n }\n },\n KinesisParameters = new KinesisParametersProperty {\n PartitionKeyPath = \"partitionKeyPath\"\n },\n RedshiftDataParameters = new RedshiftDataParametersProperty {\n Database = \"database\",\n Sql = \"sql\",\n\n // the properties below are optional\n DbUser = \"dbUser\",\n SecretManagerArn = \"secretManagerArn\",\n StatementName = \"statementName\",\n WithEvent = false\n },\n RetryPolicy = new RetryPolicyProperty {\n MaximumEventAgeInSeconds = 123,\n MaximumRetryAttempts = 123\n },\n RoleArn = \"roleArn\",\n RunCommandParameters = new RunCommandParametersProperty {\n RunCommandTargets = new [] { new RunCommandTargetProperty {\n Key = \"key\",\n Values = new [] { \"values\" }\n } }\n },\n SageMakerPipelineParameters = new SageMakerPipelineParametersProperty {\n PipelineParameterList = new [] { new SageMakerPipelineParameterProperty {\n Name = \"name\",\n Value = \"value\"\n } }\n },\n SqsParameters = new SqsParametersProperty {\n MessageGroupId = \"messageGroupId\"\n }\n } }\n});",
|
2452 | "version": "1"
|
2453 | },
|
2454 | "java": {
|
2455 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nObject eventPattern;\n\nCfnRule cfnRule = CfnRule.Builder.create(this, \"MyCfnRule\")\n .description(\"description\")\n .eventBusName(\"eventBusName\")\n .eventPattern(eventPattern)\n .name(\"name\")\n .roleArn(\"roleArn\")\n .scheduleExpression(\"scheduleExpression\")\n .state(\"state\")\n .targets(List.of(TargetProperty.builder()\n .arn(\"arn\")\n .id(\"id\")\n\n // the properties below are optional\n .batchParameters(BatchParametersProperty.builder()\n .jobDefinition(\"jobDefinition\")\n .jobName(\"jobName\")\n\n // the properties below are optional\n .arrayProperties(BatchArrayPropertiesProperty.builder()\n .size(123)\n .build())\n .retryStrategy(BatchRetryStrategyProperty.builder()\n .attempts(123)\n .build())\n .build())\n .deadLetterConfig(DeadLetterConfigProperty.builder()\n .arn(\"arn\")\n .build())\n .ecsParameters(EcsParametersProperty.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .group(\"group\")\n .launchType(\"launchType\")\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 .expression(\"expression\")\n .type(\"type\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .field(\"field\")\n .type(\"type\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .referenceId(\"referenceId\")\n .tagList(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskCount(123)\n .build())\n .httpParameters(HttpParametersProperty.builder()\n .headerParameters(Map.of(\n \"headerParametersKey\", \"headerParameters\"))\n .pathParameterValues(List.of(\"pathParameterValues\"))\n .queryStringParameters(Map.of(\n \"queryStringParametersKey\", \"queryStringParameters\"))\n .build())\n .input(\"input\")\n .inputPath(\"inputPath\")\n .inputTransformer(InputTransformerProperty.builder()\n .inputTemplate(\"inputTemplate\")\n\n // the properties below are optional\n .inputPathsMap(Map.of(\n \"inputPathsMapKey\", \"inputPathsMap\"))\n .build())\n .kinesisParameters(KinesisParametersProperty.builder()\n .partitionKeyPath(\"partitionKeyPath\")\n .build())\n .redshiftDataParameters(RedshiftDataParametersProperty.builder()\n .database(\"database\")\n .sql(\"sql\")\n\n // the properties below are optional\n .dbUser(\"dbUser\")\n .secretManagerArn(\"secretManagerArn\")\n .statementName(\"statementName\")\n .withEvent(false)\n .build())\n .retryPolicy(RetryPolicyProperty.builder()\n .maximumEventAgeInSeconds(123)\n .maximumRetryAttempts(123)\n .build())\n .roleArn(\"roleArn\")\n .runCommandParameters(RunCommandParametersProperty.builder()\n .runCommandTargets(List.of(RunCommandTargetProperty.builder()\n .key(\"key\")\n .values(List.of(\"values\"))\n .build()))\n .build())\n .sageMakerPipelineParameters(SageMakerPipelineParametersProperty.builder()\n .pipelineParameterList(List.of(SageMakerPipelineParameterProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .build())\n .sqsParameters(SqsParametersProperty.builder()\n .messageGroupId(\"messageGroupId\")\n .build())\n .build()))\n .build();",
|
2456 | "version": "1"
|
2457 | },
|
2458 | "go": {
|
2459 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\n\nvar eventPattern interface{}\ncfnRule := events.NewCfnRule(this, jsii.String(\"MyCfnRule\"), &cfnRuleProps{\n\tdescription: jsii.String(\"description\"),\n\teventBusName: jsii.String(\"eventBusName\"),\n\teventPattern: eventPattern,\n\tname: jsii.String(\"name\"),\n\troleArn: jsii.String(\"roleArn\"),\n\tscheduleExpression: jsii.String(\"scheduleExpression\"),\n\tstate: jsii.String(\"state\"),\n\ttargets: []interface{}{\n\t\t&targetProperty{\n\t\t\tarn: jsii.String(\"arn\"),\n\t\t\tid: jsii.String(\"id\"),\n\n\t\t\t// the properties below are optional\n\t\t\tbatchParameters: &batchParametersProperty{\n\t\t\t\tjobDefinition: jsii.String(\"jobDefinition\"),\n\t\t\t\tjobName: jsii.String(\"jobName\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tarrayProperties: &batchArrayPropertiesProperty{\n\t\t\t\t\tsize: jsii.Number(123),\n\t\t\t\t},\n\t\t\t\tretryStrategy: &batchRetryStrategyProperty{\n\t\t\t\t\tattempts: jsii.Number(123),\n\t\t\t\t},\n\t\t\t},\n\t\t\tdeadLetterConfig: &deadLetterConfigProperty{\n\t\t\t\tarn: jsii.String(\"arn\"),\n\t\t\t},\n\t\t\tecsParameters: &ecsParametersProperty{\n\t\t\t\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcapacityProviderStrategy: []interface{}{\n\t\t\t\t\t&capacityProviderStrategyItemProperty{\n\t\t\t\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tbase: jsii.Number(123),\n\t\t\t\t\t\tweight: jsii.Number(123),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tenableEcsManagedTags: jsii.Boolean(false),\n\t\t\t\tenableExecuteCommand: jsii.Boolean(false),\n\t\t\t\tgroup: jsii.String(\"group\"),\n\t\t\t\tlaunchType: jsii.String(\"launchType\"),\n\t\t\t\tnetworkConfiguration: &networkConfigurationProperty{\n\t\t\t\t\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\t\t\t\tsubnets: []*string{\n\t\t\t\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t\t\t\t},\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\t\t\t\tsecurityGroups: []*string{\n\t\t\t\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tplacementConstraints: []interface{}{\n\t\t\t\t\t&placementConstraintProperty{\n\t\t\t\t\t\texpression: jsii.String(\"expression\"),\n\t\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tplacementStrategies: []interface{}{\n\t\t\t\t\t&placementStrategyProperty{\n\t\t\t\t\t\tfield: jsii.String(\"field\"),\n\t\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tplatformVersion: jsii.String(\"platformVersion\"),\n\t\t\t\tpropagateTags: jsii.String(\"propagateTags\"),\n\t\t\t\treferenceId: jsii.String(\"referenceId\"),\n\t\t\t\ttagList: []interface{}{\n\t\t\t\t\t&cfnTag{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttaskCount: jsii.Number(123),\n\t\t\t},\n\t\t\thttpParameters: &httpParametersProperty{\n\t\t\t\theaderParameters: map[string]*string{\n\t\t\t\t\t\"headerParametersKey\": jsii.String(\"headerParameters\"),\n\t\t\t\t},\n\t\t\t\tpathParameterValues: []*string{\n\t\t\t\t\tjsii.String(\"pathParameterValues\"),\n\t\t\t\t},\n\t\t\t\tqueryStringParameters: map[string]*string{\n\t\t\t\t\t\"queryStringParametersKey\": jsii.String(\"queryStringParameters\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tinput: jsii.String(\"input\"),\n\t\t\tinputPath: jsii.String(\"inputPath\"),\n\t\t\tinputTransformer: &inputTransformerProperty{\n\t\t\t\tinputTemplate: jsii.String(\"inputTemplate\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tinputPathsMap: map[string]*string{\n\t\t\t\t\t\"inputPathsMapKey\": jsii.String(\"inputPathsMap\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tkinesisParameters: &kinesisParametersProperty{\n\t\t\t\tpartitionKeyPath: jsii.String(\"partitionKeyPath\"),\n\t\t\t},\n\t\t\tredshiftDataParameters: &redshiftDataParametersProperty{\n\t\t\t\tdatabase: jsii.String(\"database\"),\n\t\t\t\tsql: jsii.String(\"sql\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tdbUser: jsii.String(\"dbUser\"),\n\t\t\t\tsecretManagerArn: jsii.String(\"secretManagerArn\"),\n\t\t\t\tstatementName: jsii.String(\"statementName\"),\n\t\t\t\twithEvent: jsii.Boolean(false),\n\t\t\t},\n\t\t\tretryPolicy: &retryPolicyProperty{\n\t\t\t\tmaximumEventAgeInSeconds: jsii.Number(123),\n\t\t\t\tmaximumRetryAttempts: jsii.Number(123),\n\t\t\t},\n\t\t\troleArn: jsii.String(\"roleArn\"),\n\t\t\trunCommandParameters: &runCommandParametersProperty{\n\t\t\t\trunCommandTargets: []interface{}{\n\t\t\t\t\t&runCommandTargetProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalues: []*string{\n\t\t\t\t\t\t\tjsii.String(\"values\"),\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\tsageMakerPipelineParameters: &sageMakerPipelineParametersProperty{\n\t\t\t\tpipelineParameterList: []interface{}{\n\t\t\t\t\t&sageMakerPipelineParameterProperty{\n\t\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tsqsParameters: &sqsParametersProperty{\n\t\t\t\tmessageGroupId: jsii.String(\"messageGroupId\"),\n\t\t\t},\n\t\t},\n\t},\n})",
|
2460 | "version": "1"
|
2461 | },
|
2462 | "$": {
|
2463 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\nconst cfnRule = new events.CfnRule(this, 'MyCfnRule', /* all optional props */ {\n description: 'description',\n eventBusName: 'eventBusName',\n eventPattern: eventPattern,\n name: 'name',\n roleArn: 'roleArn',\n scheduleExpression: 'scheduleExpression',\n state: 'state',\n targets: [{\n arn: 'arn',\n id: 'id',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n input: 'input',\n inputPath: 'inputPath',\n inputTransformer: {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n },\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n redshiftDataParameters: {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n roleArn: 'roleArn',\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sageMakerPipelineParameters: {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n }],\n});",
|
2464 | "version": "0"
|
2465 | }
|
2466 | },
|
2467 | "location": {
|
2468 | "api": {
|
2469 | "api": "type",
|
2470 | "fqn": "@aws-cdk/aws-events.CfnRule"
|
2471 | },
|
2472 | "field": {
|
2473 | "field": "example"
|
2474 | }
|
2475 | },
|
2476 | "didCompile": true,
|
2477 | "fqnsReferenced": [
|
2478 | "@aws-cdk/aws-events.CfnRule",
|
2479 | "@aws-cdk/aws-events.CfnRuleProps",
|
2480 | "@aws-cdk/core.Construct"
|
2481 | ],
|
2482 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnRule = new events.CfnRule(this, 'MyCfnRule', /* all optional props */ {\n description: 'description',\n eventBusName: 'eventBusName',\n eventPattern: eventPattern,\n name: 'name',\n roleArn: 'roleArn',\n scheduleExpression: 'scheduleExpression',\n state: 'state',\n targets: [{\n arn: 'arn',\n id: 'id',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n input: 'input',\n inputPath: 'inputPath',\n inputTransformer: {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n },\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n redshiftDataParameters: {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n roleArn: 'roleArn',\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sageMakerPipelineParameters: {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2483 | "syntaxKindCounter": {
|
2484 | "8": 7,
|
2485 | "10": 48,
|
2486 | "75": 88,
|
2487 | "91": 3,
|
2488 | "104": 1,
|
2489 | "125": 1,
|
2490 | "130": 1,
|
2491 | "192": 11,
|
2492 | "193": 26,
|
2493 | "194": 1,
|
2494 | "197": 1,
|
2495 | "225": 2,
|
2496 | "242": 2,
|
2497 | "243": 2,
|
2498 | "254": 1,
|
2499 | "255": 1,
|
2500 | "256": 1,
|
2501 | "281": 82,
|
2502 | "290": 1
|
2503 | },
|
2504 | "fqnsFingerprint": "debdf76ee7bdbaffe93f1f06d532cec84a5e6b575565a49479ec1fcacbb9760c"
|
2505 | },
|
2506 | "e3128fd5f141996e40ca51a07fa517c302351a8b641ef3329a1e718df8d5b21b": {
|
2507 | "translations": {
|
2508 | "python": {
|
2509 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\naws_vpc_configuration_property = events.CfnRule.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n)",
|
2510 | "version": "2"
|
2511 | },
|
2512 | "csharp": {
|
2513 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nAwsVpcConfigurationProperty awsVpcConfigurationProperty = new AwsVpcConfigurationProperty {\n Subnets = new [] { \"subnets\" },\n\n // the properties below are optional\n AssignPublicIp = \"assignPublicIp\",\n SecurityGroups = new [] { \"securityGroups\" }\n};",
|
2514 | "version": "1"
|
2515 | },
|
2516 | "java": {
|
2517 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\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();",
|
2518 | "version": "1"
|
2519 | },
|
2520 | "go": {
|
2521 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\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}",
|
2522 | "version": "1"
|
2523 | },
|
2524 | "$": {
|
2525 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst awsVpcConfigurationProperty: events.CfnRule.AwsVpcConfigurationProperty = {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n};",
|
2526 | "version": "0"
|
2527 | }
|
2528 | },
|
2529 | "location": {
|
2530 | "api": {
|
2531 | "api": "type",
|
2532 | "fqn": "@aws-cdk/aws-events.CfnRule.AwsVpcConfigurationProperty"
|
2533 | },
|
2534 | "field": {
|
2535 | "field": "example"
|
2536 | }
|
2537 | },
|
2538 | "didCompile": true,
|
2539 | "fqnsReferenced": [
|
2540 | "@aws-cdk/aws-events.CfnRule.AwsVpcConfigurationProperty"
|
2541 | ],
|
2542 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\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: events.CfnRule.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} }",
|
2543 | "syntaxKindCounter": {
|
2544 | "10": 4,
|
2545 | "75": 8,
|
2546 | "153": 2,
|
2547 | "169": 1,
|
2548 | "192": 2,
|
2549 | "193": 1,
|
2550 | "225": 1,
|
2551 | "242": 1,
|
2552 | "243": 1,
|
2553 | "254": 1,
|
2554 | "255": 1,
|
2555 | "256": 1,
|
2556 | "281": 3,
|
2557 | "290": 1
|
2558 | },
|
2559 | "fqnsFingerprint": "26314cc4533925e7e7514544a9177c4ebe1c03447c923d0379a968846b4eb4f2"
|
2560 | },
|
2561 | "919a8dbeec790f1ae74157bdc0a3d93a6a6ebfc287831684d7fa07d521123132": {
|
2562 | "translations": {
|
2563 | "python": {
|
2564 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nbatch_array_properties_property = events.CfnRule.BatchArrayPropertiesProperty(\n size=123\n)",
|
2565 | "version": "2"
|
2566 | },
|
2567 | "csharp": {
|
2568 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nBatchArrayPropertiesProperty batchArrayPropertiesProperty = new BatchArrayPropertiesProperty {\n Size = 123\n};",
|
2569 | "version": "1"
|
2570 | },
|
2571 | "java": {
|
2572 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nBatchArrayPropertiesProperty batchArrayPropertiesProperty = BatchArrayPropertiesProperty.builder()\n .size(123)\n .build();",
|
2573 | "version": "1"
|
2574 | },
|
2575 | "go": {
|
2576 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nbatchArrayPropertiesProperty := &batchArrayPropertiesProperty{\n\tsize: jsii.Number(123),\n}",
|
2577 | "version": "1"
|
2578 | },
|
2579 | "$": {
|
2580 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst batchArrayPropertiesProperty: events.CfnRule.BatchArrayPropertiesProperty = {\n size: 123,\n};",
|
2581 | "version": "0"
|
2582 | }
|
2583 | },
|
2584 | "location": {
|
2585 | "api": {
|
2586 | "api": "type",
|
2587 | "fqn": "@aws-cdk/aws-events.CfnRule.BatchArrayPropertiesProperty"
|
2588 | },
|
2589 | "field": {
|
2590 | "field": "example"
|
2591 | }
|
2592 | },
|
2593 | "didCompile": true,
|
2594 | "fqnsReferenced": [
|
2595 | "@aws-cdk/aws-events.CfnRule.BatchArrayPropertiesProperty"
|
2596 | ],
|
2597 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst batchArrayPropertiesProperty: events.CfnRule.BatchArrayPropertiesProperty = {\n size: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2598 | "syntaxKindCounter": {
|
2599 | "8": 1,
|
2600 | "10": 1,
|
2601 | "75": 6,
|
2602 | "153": 2,
|
2603 | "169": 1,
|
2604 | "193": 1,
|
2605 | "225": 1,
|
2606 | "242": 1,
|
2607 | "243": 1,
|
2608 | "254": 1,
|
2609 | "255": 1,
|
2610 | "256": 1,
|
2611 | "281": 1,
|
2612 | "290": 1
|
2613 | },
|
2614 | "fqnsFingerprint": "87b47a361cfa9a0e55c35dabd50b6d75a5e4d93dfaadd53e490a6bcbf9ce71f1"
|
2615 | },
|
2616 | "4018f6a6536a94c4f62b1f271e1065a9ed3fff73fac291bec88b47a8d59003dc": {
|
2617 | "translations": {
|
2618 | "python": {
|
2619 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nbatch_parameters_property = events.CfnRule.BatchParametersProperty(\n job_definition=\"jobDefinition\",\n job_name=\"jobName\",\n\n # the properties below are optional\n array_properties=events.CfnRule.BatchArrayPropertiesProperty(\n size=123\n ),\n retry_strategy=events.CfnRule.BatchRetryStrategyProperty(\n attempts=123\n )\n)",
|
2620 | "version": "2"
|
2621 | },
|
2622 | "csharp": {
|
2623 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nBatchParametersProperty batchParametersProperty = new BatchParametersProperty {\n JobDefinition = \"jobDefinition\",\n JobName = \"jobName\",\n\n // the properties below are optional\n ArrayProperties = new BatchArrayPropertiesProperty {\n Size = 123\n },\n RetryStrategy = new BatchRetryStrategyProperty {\n Attempts = 123\n }\n};",
|
2624 | "version": "1"
|
2625 | },
|
2626 | "java": {
|
2627 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nBatchParametersProperty batchParametersProperty = BatchParametersProperty.builder()\n .jobDefinition(\"jobDefinition\")\n .jobName(\"jobName\")\n\n // the properties below are optional\n .arrayProperties(BatchArrayPropertiesProperty.builder()\n .size(123)\n .build())\n .retryStrategy(BatchRetryStrategyProperty.builder()\n .attempts(123)\n .build())\n .build();",
|
2628 | "version": "1"
|
2629 | },
|
2630 | "go": {
|
2631 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nbatchParametersProperty := &batchParametersProperty{\n\tjobDefinition: jsii.String(\"jobDefinition\"),\n\tjobName: jsii.String(\"jobName\"),\n\n\t// the properties below are optional\n\tarrayProperties: &batchArrayPropertiesProperty{\n\t\tsize: jsii.Number(123),\n\t},\n\tretryStrategy: &batchRetryStrategyProperty{\n\t\tattempts: jsii.Number(123),\n\t},\n}",
|
2632 | "version": "1"
|
2633 | },
|
2634 | "$": {
|
2635 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst batchParametersProperty: events.CfnRule.BatchParametersProperty = {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n};",
|
2636 | "version": "0"
|
2637 | }
|
2638 | },
|
2639 | "location": {
|
2640 | "api": {
|
2641 | "api": "type",
|
2642 | "fqn": "@aws-cdk/aws-events.CfnRule.BatchParametersProperty"
|
2643 | },
|
2644 | "field": {
|
2645 | "field": "example"
|
2646 | }
|
2647 | },
|
2648 | "didCompile": true,
|
2649 | "fqnsReferenced": [
|
2650 | "@aws-cdk/aws-events.CfnRule.BatchParametersProperty"
|
2651 | ],
|
2652 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst batchParametersProperty: events.CfnRule.BatchParametersProperty = {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2653 | "syntaxKindCounter": {
|
2654 | "8": 2,
|
2655 | "10": 3,
|
2656 | "75": 11,
|
2657 | "153": 2,
|
2658 | "169": 1,
|
2659 | "193": 3,
|
2660 | "225": 1,
|
2661 | "242": 1,
|
2662 | "243": 1,
|
2663 | "254": 1,
|
2664 | "255": 1,
|
2665 | "256": 1,
|
2666 | "281": 6,
|
2667 | "290": 1
|
2668 | },
|
2669 | "fqnsFingerprint": "3d9ca04d654572cabb591ad436a08f3181146d4abe8572dc180bb0d98f7dcf35"
|
2670 | },
|
2671 | "5d73e2f0df262b2093529fc88492023bbc9a2a3c1c7713577e7d9c4df690e7bb": {
|
2672 | "translations": {
|
2673 | "python": {
|
2674 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nbatch_retry_strategy_property = events.CfnRule.BatchRetryStrategyProperty(\n attempts=123\n)",
|
2675 | "version": "2"
|
2676 | },
|
2677 | "csharp": {
|
2678 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nBatchRetryStrategyProperty batchRetryStrategyProperty = new BatchRetryStrategyProperty {\n Attempts = 123\n};",
|
2679 | "version": "1"
|
2680 | },
|
2681 | "java": {
|
2682 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nBatchRetryStrategyProperty batchRetryStrategyProperty = BatchRetryStrategyProperty.builder()\n .attempts(123)\n .build();",
|
2683 | "version": "1"
|
2684 | },
|
2685 | "go": {
|
2686 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nbatchRetryStrategyProperty := &batchRetryStrategyProperty{\n\tattempts: jsii.Number(123),\n}",
|
2687 | "version": "1"
|
2688 | },
|
2689 | "$": {
|
2690 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst batchRetryStrategyProperty: events.CfnRule.BatchRetryStrategyProperty = {\n attempts: 123,\n};",
|
2691 | "version": "0"
|
2692 | }
|
2693 | },
|
2694 | "location": {
|
2695 | "api": {
|
2696 | "api": "type",
|
2697 | "fqn": "@aws-cdk/aws-events.CfnRule.BatchRetryStrategyProperty"
|
2698 | },
|
2699 | "field": {
|
2700 | "field": "example"
|
2701 | }
|
2702 | },
|
2703 | "didCompile": true,
|
2704 | "fqnsReferenced": [
|
2705 | "@aws-cdk/aws-events.CfnRule.BatchRetryStrategyProperty"
|
2706 | ],
|
2707 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst batchRetryStrategyProperty: events.CfnRule.BatchRetryStrategyProperty = {\n attempts: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2708 | "syntaxKindCounter": {
|
2709 | "8": 1,
|
2710 | "10": 1,
|
2711 | "75": 6,
|
2712 | "153": 2,
|
2713 | "169": 1,
|
2714 | "193": 1,
|
2715 | "225": 1,
|
2716 | "242": 1,
|
2717 | "243": 1,
|
2718 | "254": 1,
|
2719 | "255": 1,
|
2720 | "256": 1,
|
2721 | "281": 1,
|
2722 | "290": 1
|
2723 | },
|
2724 | "fqnsFingerprint": "35cf2bbac247d4b61786318ec73a4eb08809c701ef0f5ee0d02ea45965cedcf5"
|
2725 | },
|
2726 | "55bfdd587aaaa49e61541603553ce56b45bca85d50b086466fedbd2738a37d03": {
|
2727 | "translations": {
|
2728 | "python": {
|
2729 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ncapacity_provider_strategy_item_property = events.CfnRule.CapacityProviderStrategyItemProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n)",
|
2730 | "version": "2"
|
2731 | },
|
2732 | "csharp": {
|
2733 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nCapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = new CapacityProviderStrategyItemProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n};",
|
2734 | "version": "1"
|
2735 | },
|
2736 | "java": {
|
2737 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nCapacityProviderStrategyItemProperty capacityProviderStrategyItemProperty = CapacityProviderStrategyItemProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build();",
|
2738 | "version": "1"
|
2739 | },
|
2740 | "go": {
|
2741 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ncapacityProviderStrategyItemProperty := &capacityProviderStrategyItemProperty{\n\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t// the properties below are optional\n\tbase: jsii.Number(123),\n\tweight: jsii.Number(123),\n}",
|
2742 | "version": "1"
|
2743 | },
|
2744 | "$": {
|
2745 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst capacityProviderStrategyItemProperty: events.CfnRule.CapacityProviderStrategyItemProperty = {\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n};",
|
2746 | "version": "0"
|
2747 | }
|
2748 | },
|
2749 | "location": {
|
2750 | "api": {
|
2751 | "api": "type",
|
2752 | "fqn": "@aws-cdk/aws-events.CfnRule.CapacityProviderStrategyItemProperty"
|
2753 | },
|
2754 | "field": {
|
2755 | "field": "example"
|
2756 | }
|
2757 | },
|
2758 | "didCompile": true,
|
2759 | "fqnsReferenced": [
|
2760 | "@aws-cdk/aws-events.CfnRule.CapacityProviderStrategyItemProperty"
|
2761 | ],
|
2762 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\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: events.CfnRule.CapacityProviderStrategyItemProperty = {\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} }",
|
2763 | "syntaxKindCounter": {
|
2764 | "8": 2,
|
2765 | "10": 2,
|
2766 | "75": 8,
|
2767 | "153": 2,
|
2768 | "169": 1,
|
2769 | "193": 1,
|
2770 | "225": 1,
|
2771 | "242": 1,
|
2772 | "243": 1,
|
2773 | "254": 1,
|
2774 | "255": 1,
|
2775 | "256": 1,
|
2776 | "281": 3,
|
2777 | "290": 1
|
2778 | },
|
2779 | "fqnsFingerprint": "685db41f3e2ac051a870236172ebe44beabc42ba0f1cbd9e8b2dee1d97f5fbd2"
|
2780 | },
|
2781 | "4f460617442b24704a8bfdffce0052075b71b24b20a49de52589a300a2449891": {
|
2782 | "translations": {
|
2783 | "python": {
|
2784 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ndead_letter_config_property = events.CfnRule.DeadLetterConfigProperty(\n arn=\"arn\"\n)",
|
2785 | "version": "2"
|
2786 | },
|
2787 | "csharp": {
|
2788 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nDeadLetterConfigProperty deadLetterConfigProperty = new DeadLetterConfigProperty {\n Arn = \"arn\"\n};",
|
2789 | "version": "1"
|
2790 | },
|
2791 | "java": {
|
2792 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nDeadLetterConfigProperty deadLetterConfigProperty = DeadLetterConfigProperty.builder()\n .arn(\"arn\")\n .build();",
|
2793 | "version": "1"
|
2794 | },
|
2795 | "go": {
|
2796 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ndeadLetterConfigProperty := &deadLetterConfigProperty{\n\tarn: jsii.String(\"arn\"),\n}",
|
2797 | "version": "1"
|
2798 | },
|
2799 | "$": {
|
2800 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst deadLetterConfigProperty: events.CfnRule.DeadLetterConfigProperty = {\n arn: 'arn',\n};",
|
2801 | "version": "0"
|
2802 | }
|
2803 | },
|
2804 | "location": {
|
2805 | "api": {
|
2806 | "api": "type",
|
2807 | "fqn": "@aws-cdk/aws-events.CfnRule.DeadLetterConfigProperty"
|
2808 | },
|
2809 | "field": {
|
2810 | "field": "example"
|
2811 | }
|
2812 | },
|
2813 | "didCompile": true,
|
2814 | "fqnsReferenced": [
|
2815 | "@aws-cdk/aws-events.CfnRule.DeadLetterConfigProperty"
|
2816 | ],
|
2817 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst deadLetterConfigProperty: events.CfnRule.DeadLetterConfigProperty = {\n arn: 'arn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2818 | "syntaxKindCounter": {
|
2819 | "10": 2,
|
2820 | "75": 6,
|
2821 | "153": 2,
|
2822 | "169": 1,
|
2823 | "193": 1,
|
2824 | "225": 1,
|
2825 | "242": 1,
|
2826 | "243": 1,
|
2827 | "254": 1,
|
2828 | "255": 1,
|
2829 | "256": 1,
|
2830 | "281": 1,
|
2831 | "290": 1
|
2832 | },
|
2833 | "fqnsFingerprint": "c409d38644ecce9bc13c25944fdac8a61d5aecb7d78a3f3e15fa015bb2ec3376"
|
2834 | },
|
2835 | "ee6880b87e0c05cdcc895901f48f665c5c74e98312da23adc1abb1c49f95678a": {
|
2836 | "translations": {
|
2837 | "python": {
|
2838 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\necs_parameters_property = events.CfnRule.EcsParametersProperty(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n capacity_provider_strategy=[events.CfnRule.CapacityProviderStrategyItemProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n group=\"group\",\n launch_type=\"launchType\",\n network_configuration=events.CfnRule.NetworkConfigurationProperty(\n aws_vpc_configuration=events.CfnRule.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=[events.CfnRule.PlacementConstraintProperty(\n expression=\"expression\",\n type=\"type\"\n )],\n placement_strategies=[events.CfnRule.PlacementStrategyProperty(\n field=\"field\",\n type=\"type\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n reference_id=\"referenceId\",\n tag_list=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_count=123\n)",
|
2839 | "version": "2"
|
2840 | },
|
2841 | "csharp": {
|
2842 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nEcsParametersProperty ecsParametersProperty = new EcsParametersProperty {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n Group = \"group\",\n LaunchType = \"launchType\",\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 Expression = \"expression\",\n Type = \"type\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Field = \"field\",\n Type = \"type\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n ReferenceId = \"referenceId\",\n TagList = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskCount = 123\n};",
|
2843 | "version": "1"
|
2844 | },
|
2845 | "java": {
|
2846 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nEcsParametersProperty ecsParametersProperty = EcsParametersProperty.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .group(\"group\")\n .launchType(\"launchType\")\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 .expression(\"expression\")\n .type(\"type\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .field(\"field\")\n .type(\"type\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .referenceId(\"referenceId\")\n .tagList(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskCount(123)\n .build();",
|
2847 | "version": "1"
|
2848 | },
|
2849 | "go": {
|
2850 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\necsParametersProperty := &ecsParametersProperty{\n\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t// the properties below are optional\n\tcapacityProviderStrategy: []interface{}{\n\t\t&capacityProviderStrategyItemProperty{\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\tenableEcsManagedTags: jsii.Boolean(false),\n\tenableExecuteCommand: jsii.Boolean(false),\n\tgroup: jsii.String(\"group\"),\n\tlaunchType: jsii.String(\"launchType\"),\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\texpression: jsii.String(\"expression\"),\n\t\t\ttype: jsii.String(\"type\"),\n\t\t},\n\t},\n\tplacementStrategies: []interface{}{\n\t\t&placementStrategyProperty{\n\t\t\tfield: jsii.String(\"field\"),\n\t\t\ttype: jsii.String(\"type\"),\n\t\t},\n\t},\n\tplatformVersion: jsii.String(\"platformVersion\"),\n\tpropagateTags: jsii.String(\"propagateTags\"),\n\treferenceId: jsii.String(\"referenceId\"),\n\ttagList: []interface{}{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n\ttaskCount: jsii.Number(123),\n}",
|
2851 | "version": "1"
|
2852 | },
|
2853 | "$": {
|
2854 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst ecsParametersProperty: events.CfnRule.EcsParametersProperty = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n};",
|
2855 | "version": "0"
|
2856 | }
|
2857 | },
|
2858 | "location": {
|
2859 | "api": {
|
2860 | "api": "type",
|
2861 | "fqn": "@aws-cdk/aws-events.CfnRule.EcsParametersProperty"
|
2862 | },
|
2863 | "field": {
|
2864 | "field": "example"
|
2865 | }
|
2866 | },
|
2867 | "didCompile": true,
|
2868 | "fqnsReferenced": [
|
2869 | "@aws-cdk/aws-events.CfnRule.EcsParametersProperty"
|
2870 | ],
|
2871 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ecsParametersProperty: events.CfnRule.EcsParametersProperty = {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2872 | "syntaxKindCounter": {
|
2873 | "8": 3,
|
2874 | "10": 17,
|
2875 | "75": 32,
|
2876 | "91": 2,
|
2877 | "153": 2,
|
2878 | "169": 1,
|
2879 | "192": 6,
|
2880 | "193": 7,
|
2881 | "225": 1,
|
2882 | "242": 1,
|
2883 | "243": 1,
|
2884 | "254": 1,
|
2885 | "255": 1,
|
2886 | "256": 1,
|
2887 | "281": 27,
|
2888 | "290": 1
|
2889 | },
|
2890 | "fqnsFingerprint": "af6b1c0fa5175366b0d41558b7c3dbe56119abb1c0792f60b6d261ab7384cb76"
|
2891 | },
|
2892 | "da368c0b8a94543a9311744185d938fb6e0468f23f35550b2abca77855e92b5f": {
|
2893 | "translations": {
|
2894 | "python": {
|
2895 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nhttp_parameters_property = events.CfnRule.HttpParametersProperty(\n header_parameters={\n \"header_parameters_key\": \"headerParameters\"\n },\n path_parameter_values=[\"pathParameterValues\"],\n query_string_parameters={\n \"query_string_parameters_key\": \"queryStringParameters\"\n }\n)",
|
2896 | "version": "2"
|
2897 | },
|
2898 | "csharp": {
|
2899 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nHttpParametersProperty httpParametersProperty = new HttpParametersProperty {\n HeaderParameters = new Dictionary<string, string> {\n { \"headerParametersKey\", \"headerParameters\" }\n },\n PathParameterValues = new [] { \"pathParameterValues\" },\n QueryStringParameters = new Dictionary<string, string> {\n { \"queryStringParametersKey\", \"queryStringParameters\" }\n }\n};",
|
2900 | "version": "1"
|
2901 | },
|
2902 | "java": {
|
2903 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nHttpParametersProperty httpParametersProperty = HttpParametersProperty.builder()\n .headerParameters(Map.of(\n \"headerParametersKey\", \"headerParameters\"))\n .pathParameterValues(List.of(\"pathParameterValues\"))\n .queryStringParameters(Map.of(\n \"queryStringParametersKey\", \"queryStringParameters\"))\n .build();",
|
2904 | "version": "1"
|
2905 | },
|
2906 | "go": {
|
2907 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nhttpParametersProperty := &httpParametersProperty{\n\theaderParameters: map[string]*string{\n\t\t\"headerParametersKey\": jsii.String(\"headerParameters\"),\n\t},\n\tpathParameterValues: []*string{\n\t\tjsii.String(\"pathParameterValues\"),\n\t},\n\tqueryStringParameters: map[string]*string{\n\t\t\"queryStringParametersKey\": jsii.String(\"queryStringParameters\"),\n\t},\n}",
|
2908 | "version": "1"
|
2909 | },
|
2910 | "$": {
|
2911 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst httpParametersProperty: events.CfnRule.HttpParametersProperty = {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n};",
|
2912 | "version": "0"
|
2913 | }
|
2914 | },
|
2915 | "location": {
|
2916 | "api": {
|
2917 | "api": "type",
|
2918 | "fqn": "@aws-cdk/aws-events.CfnRule.HttpParametersProperty"
|
2919 | },
|
2920 | "field": {
|
2921 | "field": "example"
|
2922 | }
|
2923 | },
|
2924 | "didCompile": true,
|
2925 | "fqnsReferenced": [
|
2926 | "@aws-cdk/aws-events.CfnRule.HttpParametersProperty"
|
2927 | ],
|
2928 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst httpParametersProperty: events.CfnRule.HttpParametersProperty = {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2929 | "syntaxKindCounter": {
|
2930 | "10": 4,
|
2931 | "75": 10,
|
2932 | "153": 2,
|
2933 | "169": 1,
|
2934 | "192": 1,
|
2935 | "193": 3,
|
2936 | "225": 1,
|
2937 | "242": 1,
|
2938 | "243": 1,
|
2939 | "254": 1,
|
2940 | "255": 1,
|
2941 | "256": 1,
|
2942 | "281": 5,
|
2943 | "290": 1
|
2944 | },
|
2945 | "fqnsFingerprint": "c9968566254671e593ecc66f06283ffe36dbcaaba4c422171f6edb105ac2f0f7"
|
2946 | },
|
2947 | "1d0c10c3b3e56ab719fe41f0b60506dfff3235f404df5dc597f0d786bd9ed203": {
|
2948 | "translations": {
|
2949 | "python": {
|
2950 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ninput_transformer_property = events.CfnRule.InputTransformerProperty(\n input_template=\"inputTemplate\",\n\n # the properties below are optional\n input_paths_map={\n \"input_paths_map_key\": \"inputPathsMap\"\n }\n)",
|
2951 | "version": "2"
|
2952 | },
|
2953 | "csharp": {
|
2954 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nInputTransformerProperty inputTransformerProperty = new InputTransformerProperty {\n InputTemplate = \"inputTemplate\",\n\n // the properties below are optional\n InputPathsMap = new Dictionary<string, string> {\n { \"inputPathsMapKey\", \"inputPathsMap\" }\n }\n};",
|
2955 | "version": "1"
|
2956 | },
|
2957 | "java": {
|
2958 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nInputTransformerProperty inputTransformerProperty = InputTransformerProperty.builder()\n .inputTemplate(\"inputTemplate\")\n\n // the properties below are optional\n .inputPathsMap(Map.of(\n \"inputPathsMapKey\", \"inputPathsMap\"))\n .build();",
|
2959 | "version": "1"
|
2960 | },
|
2961 | "go": {
|
2962 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ninputTransformerProperty := &inputTransformerProperty{\n\tinputTemplate: jsii.String(\"inputTemplate\"),\n\n\t// the properties below are optional\n\tinputPathsMap: map[string]*string{\n\t\t\"inputPathsMapKey\": jsii.String(\"inputPathsMap\"),\n\t},\n}",
|
2963 | "version": "1"
|
2964 | },
|
2965 | "$": {
|
2966 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst inputTransformerProperty: events.CfnRule.InputTransformerProperty = {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n};",
|
2967 | "version": "0"
|
2968 | }
|
2969 | },
|
2970 | "location": {
|
2971 | "api": {
|
2972 | "api": "type",
|
2973 | "fqn": "@aws-cdk/aws-events.CfnRule.InputTransformerProperty"
|
2974 | },
|
2975 | "field": {
|
2976 | "field": "example"
|
2977 | }
|
2978 | },
|
2979 | "didCompile": true,
|
2980 | "fqnsReferenced": [
|
2981 | "@aws-cdk/aws-events.CfnRule.InputTransformerProperty"
|
2982 | ],
|
2983 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst inputTransformerProperty: events.CfnRule.InputTransformerProperty = {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
2984 | "syntaxKindCounter": {
|
2985 | "10": 3,
|
2986 | "75": 8,
|
2987 | "153": 2,
|
2988 | "169": 1,
|
2989 | "193": 2,
|
2990 | "225": 1,
|
2991 | "242": 1,
|
2992 | "243": 1,
|
2993 | "254": 1,
|
2994 | "255": 1,
|
2995 | "256": 1,
|
2996 | "281": 3,
|
2997 | "290": 1
|
2998 | },
|
2999 | "fqnsFingerprint": "615603f1001fc0b5a3e30e90fd28f311f41a28c27c1abd739fa9f2ac07fb8887"
|
3000 | },
|
3001 | "1edbaf5bc87becaff42e23fd2b0316bd6c2afd02e62e9b6c13bf6b2b87b48d26": {
|
3002 | "translations": {
|
3003 | "python": {
|
3004 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nkinesis_parameters_property = events.CfnRule.KinesisParametersProperty(\n partition_key_path=\"partitionKeyPath\"\n)",
|
3005 | "version": "2"
|
3006 | },
|
3007 | "csharp": {
|
3008 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nKinesisParametersProperty kinesisParametersProperty = new KinesisParametersProperty {\n PartitionKeyPath = \"partitionKeyPath\"\n};",
|
3009 | "version": "1"
|
3010 | },
|
3011 | "java": {
|
3012 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nKinesisParametersProperty kinesisParametersProperty = KinesisParametersProperty.builder()\n .partitionKeyPath(\"partitionKeyPath\")\n .build();",
|
3013 | "version": "1"
|
3014 | },
|
3015 | "go": {
|
3016 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nkinesisParametersProperty := &kinesisParametersProperty{\n\tpartitionKeyPath: jsii.String(\"partitionKeyPath\"),\n}",
|
3017 | "version": "1"
|
3018 | },
|
3019 | "$": {
|
3020 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst kinesisParametersProperty: events.CfnRule.KinesisParametersProperty = {\n partitionKeyPath: 'partitionKeyPath',\n};",
|
3021 | "version": "0"
|
3022 | }
|
3023 | },
|
3024 | "location": {
|
3025 | "api": {
|
3026 | "api": "type",
|
3027 | "fqn": "@aws-cdk/aws-events.CfnRule.KinesisParametersProperty"
|
3028 | },
|
3029 | "field": {
|
3030 | "field": "example"
|
3031 | }
|
3032 | },
|
3033 | "didCompile": true,
|
3034 | "fqnsReferenced": [
|
3035 | "@aws-cdk/aws-events.CfnRule.KinesisParametersProperty"
|
3036 | ],
|
3037 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst kinesisParametersProperty: events.CfnRule.KinesisParametersProperty = {\n partitionKeyPath: 'partitionKeyPath',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3038 | "syntaxKindCounter": {
|
3039 | "10": 2,
|
3040 | "75": 6,
|
3041 | "153": 2,
|
3042 | "169": 1,
|
3043 | "193": 1,
|
3044 | "225": 1,
|
3045 | "242": 1,
|
3046 | "243": 1,
|
3047 | "254": 1,
|
3048 | "255": 1,
|
3049 | "256": 1,
|
3050 | "281": 1,
|
3051 | "290": 1
|
3052 | },
|
3053 | "fqnsFingerprint": "e19fc29be2432cae693858af092c81beaf97f03c8ef2f315ec078a5fb7d83ade"
|
3054 | },
|
3055 | "e8878852cfd075c4534f5eef9a5dc6bd8962240ae9f7210e088097c0a48eb51b": {
|
3056 | "translations": {
|
3057 | "python": {
|
3058 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nnetwork_configuration_property = events.CfnRule.NetworkConfigurationProperty(\n aws_vpc_configuration=events.CfnRule.AwsVpcConfigurationProperty(\n subnets=[\"subnets\"],\n\n # the properties below are optional\n assign_public_ip=\"assignPublicIp\",\n security_groups=[\"securityGroups\"]\n )\n)",
|
3059 | "version": "2"
|
3060 | },
|
3061 | "csharp": {
|
3062 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\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};",
|
3063 | "version": "1"
|
3064 | },
|
3065 | "java": {
|
3066 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\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();",
|
3067 | "version": "1"
|
3068 | },
|
3069 | "go": {
|
3070 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\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}",
|
3071 | "version": "1"
|
3072 | },
|
3073 | "$": {
|
3074 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst networkConfigurationProperty: events.CfnRule.NetworkConfigurationProperty = {\n awsVpcConfiguration: {\n subnets: ['subnets'],\n\n // the properties below are optional\n assignPublicIp: 'assignPublicIp',\n securityGroups: ['securityGroups'],\n },\n};",
|
3075 | "version": "0"
|
3076 | }
|
3077 | },
|
3078 | "location": {
|
3079 | "api": {
|
3080 | "api": "type",
|
3081 | "fqn": "@aws-cdk/aws-events.CfnRule.NetworkConfigurationProperty"
|
3082 | },
|
3083 | "field": {
|
3084 | "field": "example"
|
3085 | }
|
3086 | },
|
3087 | "didCompile": true,
|
3088 | "fqnsReferenced": [
|
3089 | "@aws-cdk/aws-events.CfnRule.NetworkConfigurationProperty"
|
3090 | ],
|
3091 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\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: events.CfnRule.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} }",
|
3092 | "syntaxKindCounter": {
|
3093 | "10": 4,
|
3094 | "75": 9,
|
3095 | "153": 2,
|
3096 | "169": 1,
|
3097 | "192": 2,
|
3098 | "193": 2,
|
3099 | "225": 1,
|
3100 | "242": 1,
|
3101 | "243": 1,
|
3102 | "254": 1,
|
3103 | "255": 1,
|
3104 | "256": 1,
|
3105 | "281": 4,
|
3106 | "290": 1
|
3107 | },
|
3108 | "fqnsFingerprint": "d127cf656b9c8d970ad3444191e9cc7069beec362a8b219e5805bf04dc97bf9c"
|
3109 | },
|
3110 | "dad3018920909856bfd72e3bcd81b25639987d3696d43a01f90b9b90707efa90": {
|
3111 | "translations": {
|
3112 | "python": {
|
3113 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nplacement_constraint_property = events.CfnRule.PlacementConstraintProperty(\n expression=\"expression\",\n type=\"type\"\n)",
|
3114 | "version": "2"
|
3115 | },
|
3116 | "csharp": {
|
3117 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nPlacementConstraintProperty placementConstraintProperty = new PlacementConstraintProperty {\n Expression = \"expression\",\n Type = \"type\"\n};",
|
3118 | "version": "1"
|
3119 | },
|
3120 | "java": {
|
3121 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nPlacementConstraintProperty placementConstraintProperty = PlacementConstraintProperty.builder()\n .expression(\"expression\")\n .type(\"type\")\n .build();",
|
3122 | "version": "1"
|
3123 | },
|
3124 | "go": {
|
3125 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nplacementConstraintProperty := &placementConstraintProperty{\n\texpression: jsii.String(\"expression\"),\n\ttype: jsii.String(\"type\"),\n}",
|
3126 | "version": "1"
|
3127 | },
|
3128 | "$": {
|
3129 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst placementConstraintProperty: events.CfnRule.PlacementConstraintProperty = {\n expression: 'expression',\n type: 'type',\n};",
|
3130 | "version": "0"
|
3131 | }
|
3132 | },
|
3133 | "location": {
|
3134 | "api": {
|
3135 | "api": "type",
|
3136 | "fqn": "@aws-cdk/aws-events.CfnRule.PlacementConstraintProperty"
|
3137 | },
|
3138 | "field": {
|
3139 | "field": "example"
|
3140 | }
|
3141 | },
|
3142 | "didCompile": true,
|
3143 | "fqnsReferenced": [
|
3144 | "@aws-cdk/aws-events.CfnRule.PlacementConstraintProperty"
|
3145 | ],
|
3146 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\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: events.CfnRule.PlacementConstraintProperty = {\n expression: 'expression',\n type: 'type',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3147 | "syntaxKindCounter": {
|
3148 | "10": 3,
|
3149 | "75": 7,
|
3150 | "153": 2,
|
3151 | "169": 1,
|
3152 | "193": 1,
|
3153 | "225": 1,
|
3154 | "242": 1,
|
3155 | "243": 1,
|
3156 | "254": 1,
|
3157 | "255": 1,
|
3158 | "256": 1,
|
3159 | "281": 2,
|
3160 | "290": 1
|
3161 | },
|
3162 | "fqnsFingerprint": "2c8c711f8a56208473ba247b5a8ac98853e5280320ad10bf7811edb7d4c1da5d"
|
3163 | },
|
3164 | "bc315f786413cd604f5e4a75566d2247ed89b55fd631b801db5657054173d610": {
|
3165 | "translations": {
|
3166 | "python": {
|
3167 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nplacement_strategy_property = events.CfnRule.PlacementStrategyProperty(\n field=\"field\",\n type=\"type\"\n)",
|
3168 | "version": "2"
|
3169 | },
|
3170 | "csharp": {
|
3171 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nPlacementStrategyProperty placementStrategyProperty = new PlacementStrategyProperty {\n Field = \"field\",\n Type = \"type\"\n};",
|
3172 | "version": "1"
|
3173 | },
|
3174 | "java": {
|
3175 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nPlacementStrategyProperty placementStrategyProperty = PlacementStrategyProperty.builder()\n .field(\"field\")\n .type(\"type\")\n .build();",
|
3176 | "version": "1"
|
3177 | },
|
3178 | "go": {
|
3179 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nplacementStrategyProperty := &placementStrategyProperty{\n\tfield: jsii.String(\"field\"),\n\ttype: jsii.String(\"type\"),\n}",
|
3180 | "version": "1"
|
3181 | },
|
3182 | "$": {
|
3183 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst placementStrategyProperty: events.CfnRule.PlacementStrategyProperty = {\n field: 'field',\n type: 'type',\n};",
|
3184 | "version": "0"
|
3185 | }
|
3186 | },
|
3187 | "location": {
|
3188 | "api": {
|
3189 | "api": "type",
|
3190 | "fqn": "@aws-cdk/aws-events.CfnRule.PlacementStrategyProperty"
|
3191 | },
|
3192 | "field": {
|
3193 | "field": "example"
|
3194 | }
|
3195 | },
|
3196 | "didCompile": true,
|
3197 | "fqnsReferenced": [
|
3198 | "@aws-cdk/aws-events.CfnRule.PlacementStrategyProperty"
|
3199 | ],
|
3200 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\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: events.CfnRule.PlacementStrategyProperty = {\n field: 'field',\n type: 'type',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3201 | "syntaxKindCounter": {
|
3202 | "10": 3,
|
3203 | "75": 7,
|
3204 | "153": 2,
|
3205 | "169": 1,
|
3206 | "193": 1,
|
3207 | "225": 1,
|
3208 | "242": 1,
|
3209 | "243": 1,
|
3210 | "254": 1,
|
3211 | "255": 1,
|
3212 | "256": 1,
|
3213 | "281": 2,
|
3214 | "290": 1
|
3215 | },
|
3216 | "fqnsFingerprint": "84c8365f5cce97f0b97282e3633f83e8125937323708508750ac856494775735"
|
3217 | },
|
3218 | "ee33e3a8185606180b8533055f6b984ec3c60668f63f2d741c65872567766a58": {
|
3219 | "translations": {
|
3220 | "python": {
|
3221 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nredshift_data_parameters_property = events.CfnRule.RedshiftDataParametersProperty(\n database=\"database\",\n sql=\"sql\",\n\n # the properties below are optional\n db_user=\"dbUser\",\n secret_manager_arn=\"secretManagerArn\",\n statement_name=\"statementName\",\n with_event=False\n)",
|
3222 | "version": "2"
|
3223 | },
|
3224 | "csharp": {
|
3225 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nRedshiftDataParametersProperty redshiftDataParametersProperty = new RedshiftDataParametersProperty {\n Database = \"database\",\n Sql = \"sql\",\n\n // the properties below are optional\n DbUser = \"dbUser\",\n SecretManagerArn = \"secretManagerArn\",\n StatementName = \"statementName\",\n WithEvent = false\n};",
|
3226 | "version": "1"
|
3227 | },
|
3228 | "java": {
|
3229 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nRedshiftDataParametersProperty redshiftDataParametersProperty = RedshiftDataParametersProperty.builder()\n .database(\"database\")\n .sql(\"sql\")\n\n // the properties below are optional\n .dbUser(\"dbUser\")\n .secretManagerArn(\"secretManagerArn\")\n .statementName(\"statementName\")\n .withEvent(false)\n .build();",
|
3230 | "version": "1"
|
3231 | },
|
3232 | "go": {
|
3233 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nredshiftDataParametersProperty := &redshiftDataParametersProperty{\n\tdatabase: jsii.String(\"database\"),\n\tsql: jsii.String(\"sql\"),\n\n\t// the properties below are optional\n\tdbUser: jsii.String(\"dbUser\"),\n\tsecretManagerArn: jsii.String(\"secretManagerArn\"),\n\tstatementName: jsii.String(\"statementName\"),\n\twithEvent: jsii.Boolean(false),\n}",
|
3234 | "version": "1"
|
3235 | },
|
3236 | "$": {
|
3237 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst redshiftDataParametersProperty: events.CfnRule.RedshiftDataParametersProperty = {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n};",
|
3238 | "version": "0"
|
3239 | }
|
3240 | },
|
3241 | "location": {
|
3242 | "api": {
|
3243 | "api": "type",
|
3244 | "fqn": "@aws-cdk/aws-events.CfnRule.RedshiftDataParametersProperty"
|
3245 | },
|
3246 | "field": {
|
3247 | "field": "example"
|
3248 | }
|
3249 | },
|
3250 | "didCompile": true,
|
3251 | "fqnsReferenced": [
|
3252 | "@aws-cdk/aws-events.CfnRule.RedshiftDataParametersProperty"
|
3253 | ],
|
3254 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst redshiftDataParametersProperty: events.CfnRule.RedshiftDataParametersProperty = {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3255 | "syntaxKindCounter": {
|
3256 | "10": 6,
|
3257 | "75": 11,
|
3258 | "91": 1,
|
3259 | "153": 2,
|
3260 | "169": 1,
|
3261 | "193": 1,
|
3262 | "225": 1,
|
3263 | "242": 1,
|
3264 | "243": 1,
|
3265 | "254": 1,
|
3266 | "255": 1,
|
3267 | "256": 1,
|
3268 | "281": 6,
|
3269 | "290": 1
|
3270 | },
|
3271 | "fqnsFingerprint": "7ead48560ca0da19c4d8826108ac8b64b1ea2d334200e6fefe9e84649beb4220"
|
3272 | },
|
3273 | "68942c9ac332601802eb86aed113507729417887c72e8098929f6ed7453d02c9": {
|
3274 | "translations": {
|
3275 | "python": {
|
3276 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nretry_policy_property = events.CfnRule.RetryPolicyProperty(\n maximum_event_age_in_seconds=123,\n maximum_retry_attempts=123\n)",
|
3277 | "version": "2"
|
3278 | },
|
3279 | "csharp": {
|
3280 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nRetryPolicyProperty retryPolicyProperty = new RetryPolicyProperty {\n MaximumEventAgeInSeconds = 123,\n MaximumRetryAttempts = 123\n};",
|
3281 | "version": "1"
|
3282 | },
|
3283 | "java": {
|
3284 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nRetryPolicyProperty retryPolicyProperty = RetryPolicyProperty.builder()\n .maximumEventAgeInSeconds(123)\n .maximumRetryAttempts(123)\n .build();",
|
3285 | "version": "1"
|
3286 | },
|
3287 | "go": {
|
3288 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nretryPolicyProperty := &retryPolicyProperty{\n\tmaximumEventAgeInSeconds: jsii.Number(123),\n\tmaximumRetryAttempts: jsii.Number(123),\n}",
|
3289 | "version": "1"
|
3290 | },
|
3291 | "$": {
|
3292 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst retryPolicyProperty: events.CfnRule.RetryPolicyProperty = {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n};",
|
3293 | "version": "0"
|
3294 | }
|
3295 | },
|
3296 | "location": {
|
3297 | "api": {
|
3298 | "api": "type",
|
3299 | "fqn": "@aws-cdk/aws-events.CfnRule.RetryPolicyProperty"
|
3300 | },
|
3301 | "field": {
|
3302 | "field": "example"
|
3303 | }
|
3304 | },
|
3305 | "didCompile": true,
|
3306 | "fqnsReferenced": [
|
3307 | "@aws-cdk/aws-events.CfnRule.RetryPolicyProperty"
|
3308 | ],
|
3309 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst retryPolicyProperty: events.CfnRule.RetryPolicyProperty = {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3310 | "syntaxKindCounter": {
|
3311 | "8": 2,
|
3312 | "10": 1,
|
3313 | "75": 7,
|
3314 | "153": 2,
|
3315 | "169": 1,
|
3316 | "193": 1,
|
3317 | "225": 1,
|
3318 | "242": 1,
|
3319 | "243": 1,
|
3320 | "254": 1,
|
3321 | "255": 1,
|
3322 | "256": 1,
|
3323 | "281": 2,
|
3324 | "290": 1
|
3325 | },
|
3326 | "fqnsFingerprint": "781457f0d69fe30ad674ae37c7928004d137e605b8282e171efaf22a9150572e"
|
3327 | },
|
3328 | "efedeb2eaafa01829963a1a9a26eeb95cab95cb30589160be373bee78a6233ee": {
|
3329 | "translations": {
|
3330 | "python": {
|
3331 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nrun_command_parameters_property = events.CfnRule.RunCommandParametersProperty(\n run_command_targets=[events.CfnRule.RunCommandTargetProperty(\n key=\"key\",\n values=[\"values\"]\n )]\n)",
|
3332 | "version": "2"
|
3333 | },
|
3334 | "csharp": {
|
3335 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nRunCommandParametersProperty runCommandParametersProperty = new RunCommandParametersProperty {\n RunCommandTargets = new [] { new RunCommandTargetProperty {\n Key = \"key\",\n Values = new [] { \"values\" }\n } }\n};",
|
3336 | "version": "1"
|
3337 | },
|
3338 | "java": {
|
3339 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nRunCommandParametersProperty runCommandParametersProperty = RunCommandParametersProperty.builder()\n .runCommandTargets(List.of(RunCommandTargetProperty.builder()\n .key(\"key\")\n .values(List.of(\"values\"))\n .build()))\n .build();",
|
3340 | "version": "1"
|
3341 | },
|
3342 | "go": {
|
3343 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nrunCommandParametersProperty := &runCommandParametersProperty{\n\trunCommandTargets: []interface{}{\n\t\t&runCommandTargetProperty{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalues: []*string{\n\t\t\t\tjsii.String(\"values\"),\n\t\t\t},\n\t\t},\n\t},\n}",
|
3344 | "version": "1"
|
3345 | },
|
3346 | "$": {
|
3347 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst runCommandParametersProperty: events.CfnRule.RunCommandParametersProperty = {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n};",
|
3348 | "version": "0"
|
3349 | }
|
3350 | },
|
3351 | "location": {
|
3352 | "api": {
|
3353 | "api": "type",
|
3354 | "fqn": "@aws-cdk/aws-events.CfnRule.RunCommandParametersProperty"
|
3355 | },
|
3356 | "field": {
|
3357 | "field": "example"
|
3358 | }
|
3359 | },
|
3360 | "didCompile": true,
|
3361 | "fqnsReferenced": [
|
3362 | "@aws-cdk/aws-events.CfnRule.RunCommandParametersProperty"
|
3363 | ],
|
3364 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst runCommandParametersProperty: events.CfnRule.RunCommandParametersProperty = {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3365 | "syntaxKindCounter": {
|
3366 | "10": 3,
|
3367 | "75": 8,
|
3368 | "153": 2,
|
3369 | "169": 1,
|
3370 | "192": 2,
|
3371 | "193": 2,
|
3372 | "225": 1,
|
3373 | "242": 1,
|
3374 | "243": 1,
|
3375 | "254": 1,
|
3376 | "255": 1,
|
3377 | "256": 1,
|
3378 | "281": 3,
|
3379 | "290": 1
|
3380 | },
|
3381 | "fqnsFingerprint": "6cc04d2969a6d9ca05cc758ceb2aa39e35f6a87418fcd8c604c841f874e755d0"
|
3382 | },
|
3383 | "b8eb8c49d93018bac2027a82c51698007335c276b26a9f70288c967509312c34": {
|
3384 | "translations": {
|
3385 | "python": {
|
3386 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nrun_command_target_property = events.CfnRule.RunCommandTargetProperty(\n key=\"key\",\n values=[\"values\"]\n)",
|
3387 | "version": "2"
|
3388 | },
|
3389 | "csharp": {
|
3390 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nRunCommandTargetProperty runCommandTargetProperty = new RunCommandTargetProperty {\n Key = \"key\",\n Values = new [] { \"values\" }\n};",
|
3391 | "version": "1"
|
3392 | },
|
3393 | "java": {
|
3394 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nRunCommandTargetProperty runCommandTargetProperty = RunCommandTargetProperty.builder()\n .key(\"key\")\n .values(List.of(\"values\"))\n .build();",
|
3395 | "version": "1"
|
3396 | },
|
3397 | "go": {
|
3398 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nrunCommandTargetProperty := &runCommandTargetProperty{\n\tkey: jsii.String(\"key\"),\n\tvalues: []*string{\n\t\tjsii.String(\"values\"),\n\t},\n}",
|
3399 | "version": "1"
|
3400 | },
|
3401 | "$": {
|
3402 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst runCommandTargetProperty: events.CfnRule.RunCommandTargetProperty = {\n key: 'key',\n values: ['values'],\n};",
|
3403 | "version": "0"
|
3404 | }
|
3405 | },
|
3406 | "location": {
|
3407 | "api": {
|
3408 | "api": "type",
|
3409 | "fqn": "@aws-cdk/aws-events.CfnRule.RunCommandTargetProperty"
|
3410 | },
|
3411 | "field": {
|
3412 | "field": "example"
|
3413 | }
|
3414 | },
|
3415 | "didCompile": true,
|
3416 | "fqnsReferenced": [
|
3417 | "@aws-cdk/aws-events.CfnRule.RunCommandTargetProperty"
|
3418 | ],
|
3419 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst runCommandTargetProperty: events.CfnRule.RunCommandTargetProperty = {\n key: 'key',\n values: ['values'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3420 | "syntaxKindCounter": {
|
3421 | "10": 3,
|
3422 | "75": 7,
|
3423 | "153": 2,
|
3424 | "169": 1,
|
3425 | "192": 1,
|
3426 | "193": 1,
|
3427 | "225": 1,
|
3428 | "242": 1,
|
3429 | "243": 1,
|
3430 | "254": 1,
|
3431 | "255": 1,
|
3432 | "256": 1,
|
3433 | "281": 2,
|
3434 | "290": 1
|
3435 | },
|
3436 | "fqnsFingerprint": "1fc4e2c25eddc251fe9f0644bdbb5de0bc7337e9867396b408ccd7b30caa35b0"
|
3437 | },
|
3438 | "940ebba9b6125fe2f60d9f1dbc882908da92052b3131b803fc736f0d9ed7b499": {
|
3439 | "translations": {
|
3440 | "python": {
|
3441 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nsage_maker_pipeline_parameter_property = events.CfnRule.SageMakerPipelineParameterProperty(\n name=\"name\",\n value=\"value\"\n)",
|
3442 | "version": "2"
|
3443 | },
|
3444 | "csharp": {
|
3445 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nSageMakerPipelineParameterProperty sageMakerPipelineParameterProperty = new SageMakerPipelineParameterProperty {\n Name = \"name\",\n Value = \"value\"\n};",
|
3446 | "version": "1"
|
3447 | },
|
3448 | "java": {
|
3449 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nSageMakerPipelineParameterProperty sageMakerPipelineParameterProperty = SageMakerPipelineParameterProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build();",
|
3450 | "version": "1"
|
3451 | },
|
3452 | "go": {
|
3453 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nsageMakerPipelineParameterProperty := &sageMakerPipelineParameterProperty{\n\tname: jsii.String(\"name\"),\n\tvalue: jsii.String(\"value\"),\n}",
|
3454 | "version": "1"
|
3455 | },
|
3456 | "$": {
|
3457 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst sageMakerPipelineParameterProperty: events.CfnRule.SageMakerPipelineParameterProperty = {\n name: 'name',\n value: 'value',\n};",
|
3458 | "version": "0"
|
3459 | }
|
3460 | },
|
3461 | "location": {
|
3462 | "api": {
|
3463 | "api": "type",
|
3464 | "fqn": "@aws-cdk/aws-events.CfnRule.SageMakerPipelineParameterProperty"
|
3465 | },
|
3466 | "field": {
|
3467 | "field": "example"
|
3468 | }
|
3469 | },
|
3470 | "didCompile": true,
|
3471 | "fqnsReferenced": [
|
3472 | "@aws-cdk/aws-events.CfnRule.SageMakerPipelineParameterProperty"
|
3473 | ],
|
3474 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst sageMakerPipelineParameterProperty: events.CfnRule.SageMakerPipelineParameterProperty = {\n name: 'name',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3475 | "syntaxKindCounter": {
|
3476 | "10": 3,
|
3477 | "75": 7,
|
3478 | "153": 2,
|
3479 | "169": 1,
|
3480 | "193": 1,
|
3481 | "225": 1,
|
3482 | "242": 1,
|
3483 | "243": 1,
|
3484 | "254": 1,
|
3485 | "255": 1,
|
3486 | "256": 1,
|
3487 | "281": 2,
|
3488 | "290": 1
|
3489 | },
|
3490 | "fqnsFingerprint": "d54675ccd6445383261953a499f76acfa64555c03959d00f9cdbcfc47a1f70d0"
|
3491 | },
|
3492 | "ca63fea9ee5c20fefa1d7b1fcea89fe10052f430bbeb1753f933f8e3c40423e2": {
|
3493 | "translations": {
|
3494 | "python": {
|
3495 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nsage_maker_pipeline_parameters_property = events.CfnRule.SageMakerPipelineParametersProperty(\n pipeline_parameter_list=[events.CfnRule.SageMakerPipelineParameterProperty(\n name=\"name\",\n value=\"value\"\n )]\n)",
|
3496 | "version": "2"
|
3497 | },
|
3498 | "csharp": {
|
3499 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nSageMakerPipelineParametersProperty sageMakerPipelineParametersProperty = new SageMakerPipelineParametersProperty {\n PipelineParameterList = new [] { new SageMakerPipelineParameterProperty {\n Name = \"name\",\n Value = \"value\"\n } }\n};",
|
3500 | "version": "1"
|
3501 | },
|
3502 | "java": {
|
3503 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nSageMakerPipelineParametersProperty sageMakerPipelineParametersProperty = SageMakerPipelineParametersProperty.builder()\n .pipelineParameterList(List.of(SageMakerPipelineParameterProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .build();",
|
3504 | "version": "1"
|
3505 | },
|
3506 | "go": {
|
3507 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nsageMakerPipelineParametersProperty := &sageMakerPipelineParametersProperty{\n\tpipelineParameterList: []interface{}{\n\t\t&sageMakerPipelineParameterProperty{\n\t\t\tname: jsii.String(\"name\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
|
3508 | "version": "1"
|
3509 | },
|
3510 | "$": {
|
3511 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst sageMakerPipelineParametersProperty: events.CfnRule.SageMakerPipelineParametersProperty = {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n};",
|
3512 | "version": "0"
|
3513 | }
|
3514 | },
|
3515 | "location": {
|
3516 | "api": {
|
3517 | "api": "type",
|
3518 | "fqn": "@aws-cdk/aws-events.CfnRule.SageMakerPipelineParametersProperty"
|
3519 | },
|
3520 | "field": {
|
3521 | "field": "example"
|
3522 | }
|
3523 | },
|
3524 | "didCompile": true,
|
3525 | "fqnsReferenced": [
|
3526 | "@aws-cdk/aws-events.CfnRule.SageMakerPipelineParametersProperty"
|
3527 | ],
|
3528 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst sageMakerPipelineParametersProperty: events.CfnRule.SageMakerPipelineParametersProperty = {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3529 | "syntaxKindCounter": {
|
3530 | "10": 3,
|
3531 | "75": 8,
|
3532 | "153": 2,
|
3533 | "169": 1,
|
3534 | "192": 1,
|
3535 | "193": 2,
|
3536 | "225": 1,
|
3537 | "242": 1,
|
3538 | "243": 1,
|
3539 | "254": 1,
|
3540 | "255": 1,
|
3541 | "256": 1,
|
3542 | "281": 3,
|
3543 | "290": 1
|
3544 | },
|
3545 | "fqnsFingerprint": "10946d30d1fb7d983f2c8ef23de4c65fe371bb4ea0ef93d887cc25720cdc8869"
|
3546 | },
|
3547 | "335a2d5dcbe0a6c662b5fba35eb79c659229604702c88bc81063e275ff3f9457": {
|
3548 | "translations": {
|
3549 | "python": {
|
3550 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nsqs_parameters_property = events.CfnRule.SqsParametersProperty(\n message_group_id=\"messageGroupId\"\n)",
|
3551 | "version": "2"
|
3552 | },
|
3553 | "csharp": {
|
3554 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nSqsParametersProperty sqsParametersProperty = new SqsParametersProperty {\n MessageGroupId = \"messageGroupId\"\n};",
|
3555 | "version": "1"
|
3556 | },
|
3557 | "java": {
|
3558 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nSqsParametersProperty sqsParametersProperty = SqsParametersProperty.builder()\n .messageGroupId(\"messageGroupId\")\n .build();",
|
3559 | "version": "1"
|
3560 | },
|
3561 | "go": {
|
3562 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nsqsParametersProperty := &sqsParametersProperty{\n\tmessageGroupId: jsii.String(\"messageGroupId\"),\n}",
|
3563 | "version": "1"
|
3564 | },
|
3565 | "$": {
|
3566 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst sqsParametersProperty: events.CfnRule.SqsParametersProperty = {\n messageGroupId: 'messageGroupId',\n};",
|
3567 | "version": "0"
|
3568 | }
|
3569 | },
|
3570 | "location": {
|
3571 | "api": {
|
3572 | "api": "type",
|
3573 | "fqn": "@aws-cdk/aws-events.CfnRule.SqsParametersProperty"
|
3574 | },
|
3575 | "field": {
|
3576 | "field": "example"
|
3577 | }
|
3578 | },
|
3579 | "didCompile": true,
|
3580 | "fqnsReferenced": [
|
3581 | "@aws-cdk/aws-events.CfnRule.SqsParametersProperty"
|
3582 | ],
|
3583 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst sqsParametersProperty: events.CfnRule.SqsParametersProperty = {\n messageGroupId: 'messageGroupId',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3584 | "syntaxKindCounter": {
|
3585 | "10": 2,
|
3586 | "75": 6,
|
3587 | "153": 2,
|
3588 | "169": 1,
|
3589 | "193": 1,
|
3590 | "225": 1,
|
3591 | "242": 1,
|
3592 | "243": 1,
|
3593 | "254": 1,
|
3594 | "255": 1,
|
3595 | "256": 1,
|
3596 | "281": 1,
|
3597 | "290": 1
|
3598 | },
|
3599 | "fqnsFingerprint": "7952bcba111ccc2d9da758060a9386b7270b0a4c77874360f28a423cb52351c6"
|
3600 | },
|
3601 | "da759f37fa42cfcd57db58c86966ef730eaa29447ceb69b83590493659ebb72f": {
|
3602 | "translations": {
|
3603 | "python": {
|
3604 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ntag_property = events.CfnRule.TagProperty(\n key=\"key\",\n value=\"value\"\n)",
|
3605 | "version": "2"
|
3606 | },
|
3607 | "csharp": {
|
3608 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nTagProperty tagProperty = new TagProperty {\n Key = \"key\",\n Value = \"value\"\n};",
|
3609 | "version": "1"
|
3610 | },
|
3611 | "java": {
|
3612 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nTagProperty tagProperty = TagProperty.builder()\n .key(\"key\")\n .value(\"value\")\n .build();",
|
3613 | "version": "1"
|
3614 | },
|
3615 | "go": {
|
3616 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ntagProperty := &tagProperty{\n\tkey: jsii.String(\"key\"),\n\tvalue: jsii.String(\"value\"),\n}",
|
3617 | "version": "1"
|
3618 | },
|
3619 | "$": {
|
3620 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst tagProperty: events.CfnRule.TagProperty = {\n key: 'key',\n value: 'value',\n};",
|
3621 | "version": "0"
|
3622 | }
|
3623 | },
|
3624 | "location": {
|
3625 | "api": {
|
3626 | "api": "type",
|
3627 | "fqn": "@aws-cdk/aws-events.CfnRule.TagProperty"
|
3628 | },
|
3629 | "field": {
|
3630 | "field": "example"
|
3631 | }
|
3632 | },
|
3633 | "didCompile": true,
|
3634 | "fqnsReferenced": [
|
3635 | "@aws-cdk/aws-events.CfnRule.TagProperty"
|
3636 | ],
|
3637 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst tagProperty: events.CfnRule.TagProperty = {\n key: 'key',\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3638 | "syntaxKindCounter": {
|
3639 | "10": 3,
|
3640 | "75": 7,
|
3641 | "153": 2,
|
3642 | "169": 1,
|
3643 | "193": 1,
|
3644 | "225": 1,
|
3645 | "242": 1,
|
3646 | "243": 1,
|
3647 | "254": 1,
|
3648 | "255": 1,
|
3649 | "256": 1,
|
3650 | "281": 2,
|
3651 | "290": 1
|
3652 | },
|
3653 | "fqnsFingerprint": "87d2d5a8f236a7c2a75a71cd6568d319b052635a018263d16c26ca3cdee46d2d"
|
3654 | },
|
3655 | "6029741b8b2a7d76298957de97ae390f9ac8d1065f28bbd3a9647a4ee78d4fd1": {
|
3656 | "translations": {
|
3657 | "python": {
|
3658 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\ntarget_property = events.CfnRule.TargetProperty(\n arn=\"arn\",\n id=\"id\",\n\n # the properties below are optional\n batch_parameters=events.CfnRule.BatchParametersProperty(\n job_definition=\"jobDefinition\",\n job_name=\"jobName\",\n\n # the properties below are optional\n array_properties=events.CfnRule.BatchArrayPropertiesProperty(\n size=123\n ),\n retry_strategy=events.CfnRule.BatchRetryStrategyProperty(\n attempts=123\n )\n ),\n dead_letter_config=events.CfnRule.DeadLetterConfigProperty(\n arn=\"arn\"\n ),\n ecs_parameters=events.CfnRule.EcsParametersProperty(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n capacity_provider_strategy=[events.CfnRule.CapacityProviderStrategyItemProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n group=\"group\",\n launch_type=\"launchType\",\n network_configuration=events.CfnRule.NetworkConfigurationProperty(\n aws_vpc_configuration=events.CfnRule.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=[events.CfnRule.PlacementConstraintProperty(\n expression=\"expression\",\n type=\"type\"\n )],\n placement_strategies=[events.CfnRule.PlacementStrategyProperty(\n field=\"field\",\n type=\"type\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n reference_id=\"referenceId\",\n tag_list=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_count=123\n ),\n http_parameters=events.CfnRule.HttpParametersProperty(\n header_parameters={\n \"header_parameters_key\": \"headerParameters\"\n },\n path_parameter_values=[\"pathParameterValues\"],\n query_string_parameters={\n \"query_string_parameters_key\": \"queryStringParameters\"\n }\n ),\n input=\"input\",\n input_path=\"inputPath\",\n input_transformer=events.CfnRule.InputTransformerProperty(\n input_template=\"inputTemplate\",\n\n # the properties below are optional\n input_paths_map={\n \"input_paths_map_key\": \"inputPathsMap\"\n }\n ),\n kinesis_parameters=events.CfnRule.KinesisParametersProperty(\n partition_key_path=\"partitionKeyPath\"\n ),\n redshift_data_parameters=events.CfnRule.RedshiftDataParametersProperty(\n database=\"database\",\n sql=\"sql\",\n\n # the properties below are optional\n db_user=\"dbUser\",\n secret_manager_arn=\"secretManagerArn\",\n statement_name=\"statementName\",\n with_event=False\n ),\n retry_policy=events.CfnRule.RetryPolicyProperty(\n maximum_event_age_in_seconds=123,\n maximum_retry_attempts=123\n ),\n role_arn=\"roleArn\",\n run_command_parameters=events.CfnRule.RunCommandParametersProperty(\n run_command_targets=[events.CfnRule.RunCommandTargetProperty(\n key=\"key\",\n values=[\"values\"]\n )]\n ),\n sage_maker_pipeline_parameters=events.CfnRule.SageMakerPipelineParametersProperty(\n pipeline_parameter_list=[events.CfnRule.SageMakerPipelineParameterProperty(\n name=\"name\",\n value=\"value\"\n )]\n ),\n sqs_parameters=events.CfnRule.SqsParametersProperty(\n message_group_id=\"messageGroupId\"\n )\n)",
|
3659 | "version": "2"
|
3660 | },
|
3661 | "csharp": {
|
3662 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nTargetProperty targetProperty = new TargetProperty {\n Arn = \"arn\",\n Id = \"id\",\n\n // the properties below are optional\n BatchParameters = new BatchParametersProperty {\n JobDefinition = \"jobDefinition\",\n JobName = \"jobName\",\n\n // the properties below are optional\n ArrayProperties = new BatchArrayPropertiesProperty {\n Size = 123\n },\n RetryStrategy = new BatchRetryStrategyProperty {\n Attempts = 123\n }\n },\n DeadLetterConfig = new DeadLetterConfigProperty {\n Arn = \"arn\"\n },\n EcsParameters = new EcsParametersProperty {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n Group = \"group\",\n LaunchType = \"launchType\",\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 Expression = \"expression\",\n Type = \"type\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Field = \"field\",\n Type = \"type\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n ReferenceId = \"referenceId\",\n TagList = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskCount = 123\n },\n HttpParameters = new HttpParametersProperty {\n HeaderParameters = new Dictionary<string, string> {\n { \"headerParametersKey\", \"headerParameters\" }\n },\n PathParameterValues = new [] { \"pathParameterValues\" },\n QueryStringParameters = new Dictionary<string, string> {\n { \"queryStringParametersKey\", \"queryStringParameters\" }\n }\n },\n Input = \"input\",\n InputPath = \"inputPath\",\n InputTransformer = new InputTransformerProperty {\n InputTemplate = \"inputTemplate\",\n\n // the properties below are optional\n InputPathsMap = new Dictionary<string, string> {\n { \"inputPathsMapKey\", \"inputPathsMap\" }\n }\n },\n KinesisParameters = new KinesisParametersProperty {\n PartitionKeyPath = \"partitionKeyPath\"\n },\n RedshiftDataParameters = new RedshiftDataParametersProperty {\n Database = \"database\",\n Sql = \"sql\",\n\n // the properties below are optional\n DbUser = \"dbUser\",\n SecretManagerArn = \"secretManagerArn\",\n StatementName = \"statementName\",\n WithEvent = false\n },\n RetryPolicy = new RetryPolicyProperty {\n MaximumEventAgeInSeconds = 123,\n MaximumRetryAttempts = 123\n },\n RoleArn = \"roleArn\",\n RunCommandParameters = new RunCommandParametersProperty {\n RunCommandTargets = new [] { new RunCommandTargetProperty {\n Key = \"key\",\n Values = new [] { \"values\" }\n } }\n },\n SageMakerPipelineParameters = new SageMakerPipelineParametersProperty {\n PipelineParameterList = new [] { new SageMakerPipelineParameterProperty {\n Name = \"name\",\n Value = \"value\"\n } }\n },\n SqsParameters = new SqsParametersProperty {\n MessageGroupId = \"messageGroupId\"\n }\n};",
|
3663 | "version": "1"
|
3664 | },
|
3665 | "java": {
|
3666 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nTargetProperty targetProperty = TargetProperty.builder()\n .arn(\"arn\")\n .id(\"id\")\n\n // the properties below are optional\n .batchParameters(BatchParametersProperty.builder()\n .jobDefinition(\"jobDefinition\")\n .jobName(\"jobName\")\n\n // the properties below are optional\n .arrayProperties(BatchArrayPropertiesProperty.builder()\n .size(123)\n .build())\n .retryStrategy(BatchRetryStrategyProperty.builder()\n .attempts(123)\n .build())\n .build())\n .deadLetterConfig(DeadLetterConfigProperty.builder()\n .arn(\"arn\")\n .build())\n .ecsParameters(EcsParametersProperty.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .group(\"group\")\n .launchType(\"launchType\")\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 .expression(\"expression\")\n .type(\"type\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .field(\"field\")\n .type(\"type\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .referenceId(\"referenceId\")\n .tagList(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskCount(123)\n .build())\n .httpParameters(HttpParametersProperty.builder()\n .headerParameters(Map.of(\n \"headerParametersKey\", \"headerParameters\"))\n .pathParameterValues(List.of(\"pathParameterValues\"))\n .queryStringParameters(Map.of(\n \"queryStringParametersKey\", \"queryStringParameters\"))\n .build())\n .input(\"input\")\n .inputPath(\"inputPath\")\n .inputTransformer(InputTransformerProperty.builder()\n .inputTemplate(\"inputTemplate\")\n\n // the properties below are optional\n .inputPathsMap(Map.of(\n \"inputPathsMapKey\", \"inputPathsMap\"))\n .build())\n .kinesisParameters(KinesisParametersProperty.builder()\n .partitionKeyPath(\"partitionKeyPath\")\n .build())\n .redshiftDataParameters(RedshiftDataParametersProperty.builder()\n .database(\"database\")\n .sql(\"sql\")\n\n // the properties below are optional\n .dbUser(\"dbUser\")\n .secretManagerArn(\"secretManagerArn\")\n .statementName(\"statementName\")\n .withEvent(false)\n .build())\n .retryPolicy(RetryPolicyProperty.builder()\n .maximumEventAgeInSeconds(123)\n .maximumRetryAttempts(123)\n .build())\n .roleArn(\"roleArn\")\n .runCommandParameters(RunCommandParametersProperty.builder()\n .runCommandTargets(List.of(RunCommandTargetProperty.builder()\n .key(\"key\")\n .values(List.of(\"values\"))\n .build()))\n .build())\n .sageMakerPipelineParameters(SageMakerPipelineParametersProperty.builder()\n .pipelineParameterList(List.of(SageMakerPipelineParameterProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .build())\n .sqsParameters(SqsParametersProperty.builder()\n .messageGroupId(\"messageGroupId\")\n .build())\n .build();",
|
3667 | "version": "1"
|
3668 | },
|
3669 | "go": {
|
3670 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\ntargetProperty := &targetProperty{\n\tarn: jsii.String(\"arn\"),\n\tid: jsii.String(\"id\"),\n\n\t// the properties below are optional\n\tbatchParameters: &batchParametersProperty{\n\t\tjobDefinition: jsii.String(\"jobDefinition\"),\n\t\tjobName: jsii.String(\"jobName\"),\n\n\t\t// the properties below are optional\n\t\tarrayProperties: &batchArrayPropertiesProperty{\n\t\t\tsize: jsii.Number(123),\n\t\t},\n\t\tretryStrategy: &batchRetryStrategyProperty{\n\t\t\tattempts: jsii.Number(123),\n\t\t},\n\t},\n\tdeadLetterConfig: &deadLetterConfigProperty{\n\t\tarn: jsii.String(\"arn\"),\n\t},\n\tecsParameters: &ecsParametersProperty{\n\t\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t\t// the properties below are optional\n\t\tcapacityProviderStrategy: []interface{}{\n\t\t\t&capacityProviderStrategyItemProperty{\n\t\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tbase: jsii.Number(123),\n\t\t\t\tweight: jsii.Number(123),\n\t\t\t},\n\t\t},\n\t\tenableEcsManagedTags: jsii.Boolean(false),\n\t\tenableExecuteCommand: jsii.Boolean(false),\n\t\tgroup: jsii.String(\"group\"),\n\t\tlaunchType: jsii.String(\"launchType\"),\n\t\tnetworkConfiguration: &networkConfigurationProperty{\n\t\t\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\t\tsubnets: []*string{\n\t\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t\t},\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\t\tsecurityGroups: []*string{\n\t\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tplacementConstraints: []interface{}{\n\t\t\t&placementConstraintProperty{\n\t\t\t\texpression: jsii.String(\"expression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tplacementStrategies: []interface{}{\n\t\t\t&placementStrategyProperty{\n\t\t\t\tfield: jsii.String(\"field\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tplatformVersion: jsii.String(\"platformVersion\"),\n\t\tpropagateTags: jsii.String(\"propagateTags\"),\n\t\treferenceId: jsii.String(\"referenceId\"),\n\t\ttagList: []interface{}{\n\t\t\t&cfnTag{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t},\n\t\t},\n\t\ttaskCount: jsii.Number(123),\n\t},\n\thttpParameters: &httpParametersProperty{\n\t\theaderParameters: map[string]*string{\n\t\t\t\"headerParametersKey\": jsii.String(\"headerParameters\"),\n\t\t},\n\t\tpathParameterValues: []*string{\n\t\t\tjsii.String(\"pathParameterValues\"),\n\t\t},\n\t\tqueryStringParameters: map[string]*string{\n\t\t\t\"queryStringParametersKey\": jsii.String(\"queryStringParameters\"),\n\t\t},\n\t},\n\tinput: jsii.String(\"input\"),\n\tinputPath: jsii.String(\"inputPath\"),\n\tinputTransformer: &inputTransformerProperty{\n\t\tinputTemplate: jsii.String(\"inputTemplate\"),\n\n\t\t// the properties below are optional\n\t\tinputPathsMap: map[string]*string{\n\t\t\t\"inputPathsMapKey\": jsii.String(\"inputPathsMap\"),\n\t\t},\n\t},\n\tkinesisParameters: &kinesisParametersProperty{\n\t\tpartitionKeyPath: jsii.String(\"partitionKeyPath\"),\n\t},\n\tredshiftDataParameters: &redshiftDataParametersProperty{\n\t\tdatabase: jsii.String(\"database\"),\n\t\tsql: jsii.String(\"sql\"),\n\n\t\t// the properties below are optional\n\t\tdbUser: jsii.String(\"dbUser\"),\n\t\tsecretManagerArn: jsii.String(\"secretManagerArn\"),\n\t\tstatementName: jsii.String(\"statementName\"),\n\t\twithEvent: jsii.Boolean(false),\n\t},\n\tretryPolicy: &retryPolicyProperty{\n\t\tmaximumEventAgeInSeconds: jsii.Number(123),\n\t\tmaximumRetryAttempts: jsii.Number(123),\n\t},\n\troleArn: jsii.String(\"roleArn\"),\n\trunCommandParameters: &runCommandParametersProperty{\n\t\trunCommandTargets: []interface{}{\n\t\t\t&runCommandTargetProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalues: []*string{\n\t\t\t\t\tjsii.String(\"values\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tsageMakerPipelineParameters: &sageMakerPipelineParametersProperty{\n\t\tpipelineParameterList: []interface{}{\n\t\t\t&sageMakerPipelineParameterProperty{\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},\n\tsqsParameters: &sqsParametersProperty{\n\t\tmessageGroupId: jsii.String(\"messageGroupId\"),\n\t},\n}",
|
3671 | "version": "1"
|
3672 | },
|
3673 | "$": {
|
3674 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst targetProperty: events.CfnRule.TargetProperty = {\n arn: 'arn',\n id: 'id',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n input: 'input',\n inputPath: 'inputPath',\n inputTransformer: {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n },\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n redshiftDataParameters: {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n roleArn: 'roleArn',\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sageMakerPipelineParameters: {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n};",
|
3675 | "version": "0"
|
3676 | }
|
3677 | },
|
3678 | "location": {
|
3679 | "api": {
|
3680 | "api": "type",
|
3681 | "fqn": "@aws-cdk/aws-events.CfnRule.TargetProperty"
|
3682 | },
|
3683 | "field": {
|
3684 | "field": "example"
|
3685 | }
|
3686 | },
|
3687 | "didCompile": true,
|
3688 | "fqnsReferenced": [
|
3689 | "@aws-cdk/aws-events.CfnRule.TargetProperty"
|
3690 | ],
|
3691 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst targetProperty: events.CfnRule.TargetProperty = {\n arn: 'arn',\n id: 'id',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n input: 'input',\n inputPath: 'inputPath',\n inputTransformer: {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n },\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n redshiftDataParameters: {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n roleArn: 'roleArn',\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sageMakerPipelineParameters: {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3692 | "syntaxKindCounter": {
|
3693 | "8": 7,
|
3694 | "10": 41,
|
3695 | "75": 79,
|
3696 | "91": 3,
|
3697 | "153": 2,
|
3698 | "169": 1,
|
3699 | "192": 10,
|
3700 | "193": 25,
|
3701 | "225": 1,
|
3702 | "242": 1,
|
3703 | "243": 1,
|
3704 | "254": 1,
|
3705 | "255": 1,
|
3706 | "256": 1,
|
3707 | "281": 74,
|
3708 | "290": 1
|
3709 | },
|
3710 | "fqnsFingerprint": "cfab75c9ff752b47d8ac201ef7fbc160911d96c7fbf6fceb7765b333788dc156"
|
3711 | },
|
3712 | "e551228d068937c0c51fb43012e81f1f15b95bb8533ce66bf98ae2ff14ee5d95": {
|
3713 | "translations": {
|
3714 | "python": {
|
3715 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\n# event_pattern: Any\n\ncfn_rule_props = events.CfnRuleProps(\n description=\"description\",\n event_bus_name=\"eventBusName\",\n event_pattern=event_pattern,\n name=\"name\",\n role_arn=\"roleArn\",\n schedule_expression=\"scheduleExpression\",\n state=\"state\",\n targets=[events.CfnRule.TargetProperty(\n arn=\"arn\",\n id=\"id\",\n\n # the properties below are optional\n batch_parameters=events.CfnRule.BatchParametersProperty(\n job_definition=\"jobDefinition\",\n job_name=\"jobName\",\n\n # the properties below are optional\n array_properties=events.CfnRule.BatchArrayPropertiesProperty(\n size=123\n ),\n retry_strategy=events.CfnRule.BatchRetryStrategyProperty(\n attempts=123\n )\n ),\n dead_letter_config=events.CfnRule.DeadLetterConfigProperty(\n arn=\"arn\"\n ),\n ecs_parameters=events.CfnRule.EcsParametersProperty(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n capacity_provider_strategy=[events.CfnRule.CapacityProviderStrategyItemProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n group=\"group\",\n launch_type=\"launchType\",\n network_configuration=events.CfnRule.NetworkConfigurationProperty(\n aws_vpc_configuration=events.CfnRule.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=[events.CfnRule.PlacementConstraintProperty(\n expression=\"expression\",\n type=\"type\"\n )],\n placement_strategies=[events.CfnRule.PlacementStrategyProperty(\n field=\"field\",\n type=\"type\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n reference_id=\"referenceId\",\n tag_list=[CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_count=123\n ),\n http_parameters=events.CfnRule.HttpParametersProperty(\n header_parameters={\n \"header_parameters_key\": \"headerParameters\"\n },\n path_parameter_values=[\"pathParameterValues\"],\n query_string_parameters={\n \"query_string_parameters_key\": \"queryStringParameters\"\n }\n ),\n input=\"input\",\n input_path=\"inputPath\",\n input_transformer=events.CfnRule.InputTransformerProperty(\n input_template=\"inputTemplate\",\n\n # the properties below are optional\n input_paths_map={\n \"input_paths_map_key\": \"inputPathsMap\"\n }\n ),\n kinesis_parameters=events.CfnRule.KinesisParametersProperty(\n partition_key_path=\"partitionKeyPath\"\n ),\n redshift_data_parameters=events.CfnRule.RedshiftDataParametersProperty(\n database=\"database\",\n sql=\"sql\",\n\n # the properties below are optional\n db_user=\"dbUser\",\n secret_manager_arn=\"secretManagerArn\",\n statement_name=\"statementName\",\n with_event=False\n ),\n retry_policy=events.CfnRule.RetryPolicyProperty(\n maximum_event_age_in_seconds=123,\n maximum_retry_attempts=123\n ),\n role_arn=\"roleArn\",\n run_command_parameters=events.CfnRule.RunCommandParametersProperty(\n run_command_targets=[events.CfnRule.RunCommandTargetProperty(\n key=\"key\",\n values=[\"values\"]\n )]\n ),\n sage_maker_pipeline_parameters=events.CfnRule.SageMakerPipelineParametersProperty(\n pipeline_parameter_list=[events.CfnRule.SageMakerPipelineParameterProperty(\n name=\"name\",\n value=\"value\"\n )]\n ),\n sqs_parameters=events.CfnRule.SqsParametersProperty(\n message_group_id=\"messageGroupId\"\n )\n )]\n)",
|
3716 | "version": "2"
|
3717 | },
|
3718 | "csharp": {
|
3719 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nvar eventPattern;\n\nCfnRuleProps cfnRuleProps = new CfnRuleProps {\n Description = \"description\",\n EventBusName = \"eventBusName\",\n EventPattern = eventPattern,\n Name = \"name\",\n RoleArn = \"roleArn\",\n ScheduleExpression = \"scheduleExpression\",\n State = \"state\",\n Targets = new [] { new TargetProperty {\n Arn = \"arn\",\n Id = \"id\",\n\n // the properties below are optional\n BatchParameters = new BatchParametersProperty {\n JobDefinition = \"jobDefinition\",\n JobName = \"jobName\",\n\n // the properties below are optional\n ArrayProperties = new BatchArrayPropertiesProperty {\n Size = 123\n },\n RetryStrategy = new BatchRetryStrategyProperty {\n Attempts = 123\n }\n },\n DeadLetterConfig = new DeadLetterConfigProperty {\n Arn = \"arn\"\n },\n EcsParameters = new EcsParametersProperty {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n Group = \"group\",\n LaunchType = \"launchType\",\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 Expression = \"expression\",\n Type = \"type\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Field = \"field\",\n Type = \"type\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n ReferenceId = \"referenceId\",\n TagList = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskCount = 123\n },\n HttpParameters = new HttpParametersProperty {\n HeaderParameters = new Dictionary<string, string> {\n { \"headerParametersKey\", \"headerParameters\" }\n },\n PathParameterValues = new [] { \"pathParameterValues\" },\n QueryStringParameters = new Dictionary<string, string> {\n { \"queryStringParametersKey\", \"queryStringParameters\" }\n }\n },\n Input = \"input\",\n InputPath = \"inputPath\",\n InputTransformer = new InputTransformerProperty {\n InputTemplate = \"inputTemplate\",\n\n // the properties below are optional\n InputPathsMap = new Dictionary<string, string> {\n { \"inputPathsMapKey\", \"inputPathsMap\" }\n }\n },\n KinesisParameters = new KinesisParametersProperty {\n PartitionKeyPath = \"partitionKeyPath\"\n },\n RedshiftDataParameters = new RedshiftDataParametersProperty {\n Database = \"database\",\n Sql = \"sql\",\n\n // the properties below are optional\n DbUser = \"dbUser\",\n SecretManagerArn = \"secretManagerArn\",\n StatementName = \"statementName\",\n WithEvent = false\n },\n RetryPolicy = new RetryPolicyProperty {\n MaximumEventAgeInSeconds = 123,\n MaximumRetryAttempts = 123\n },\n RoleArn = \"roleArn\",\n RunCommandParameters = new RunCommandParametersProperty {\n RunCommandTargets = new [] { new RunCommandTargetProperty {\n Key = \"key\",\n Values = new [] { \"values\" }\n } }\n },\n SageMakerPipelineParameters = new SageMakerPipelineParametersProperty {\n PipelineParameterList = new [] { new SageMakerPipelineParameterProperty {\n Name = \"name\",\n Value = \"value\"\n } }\n },\n SqsParameters = new SqsParametersProperty {\n MessageGroupId = \"messageGroupId\"\n }\n } }\n};",
|
3720 | "version": "1"
|
3721 | },
|
3722 | "java": {
|
3723 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nObject eventPattern;\n\nCfnRuleProps cfnRuleProps = CfnRuleProps.builder()\n .description(\"description\")\n .eventBusName(\"eventBusName\")\n .eventPattern(eventPattern)\n .name(\"name\")\n .roleArn(\"roleArn\")\n .scheduleExpression(\"scheduleExpression\")\n .state(\"state\")\n .targets(List.of(TargetProperty.builder()\n .arn(\"arn\")\n .id(\"id\")\n\n // the properties below are optional\n .batchParameters(BatchParametersProperty.builder()\n .jobDefinition(\"jobDefinition\")\n .jobName(\"jobName\")\n\n // the properties below are optional\n .arrayProperties(BatchArrayPropertiesProperty.builder()\n .size(123)\n .build())\n .retryStrategy(BatchRetryStrategyProperty.builder()\n .attempts(123)\n .build())\n .build())\n .deadLetterConfig(DeadLetterConfigProperty.builder()\n .arn(\"arn\")\n .build())\n .ecsParameters(EcsParametersProperty.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .group(\"group\")\n .launchType(\"launchType\")\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 .expression(\"expression\")\n .type(\"type\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .field(\"field\")\n .type(\"type\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .referenceId(\"referenceId\")\n .tagList(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskCount(123)\n .build())\n .httpParameters(HttpParametersProperty.builder()\n .headerParameters(Map.of(\n \"headerParametersKey\", \"headerParameters\"))\n .pathParameterValues(List.of(\"pathParameterValues\"))\n .queryStringParameters(Map.of(\n \"queryStringParametersKey\", \"queryStringParameters\"))\n .build())\n .input(\"input\")\n .inputPath(\"inputPath\")\n .inputTransformer(InputTransformerProperty.builder()\n .inputTemplate(\"inputTemplate\")\n\n // the properties below are optional\n .inputPathsMap(Map.of(\n \"inputPathsMapKey\", \"inputPathsMap\"))\n .build())\n .kinesisParameters(KinesisParametersProperty.builder()\n .partitionKeyPath(\"partitionKeyPath\")\n .build())\n .redshiftDataParameters(RedshiftDataParametersProperty.builder()\n .database(\"database\")\n .sql(\"sql\")\n\n // the properties below are optional\n .dbUser(\"dbUser\")\n .secretManagerArn(\"secretManagerArn\")\n .statementName(\"statementName\")\n .withEvent(false)\n .build())\n .retryPolicy(RetryPolicyProperty.builder()\n .maximumEventAgeInSeconds(123)\n .maximumRetryAttempts(123)\n .build())\n .roleArn(\"roleArn\")\n .runCommandParameters(RunCommandParametersProperty.builder()\n .runCommandTargets(List.of(RunCommandTargetProperty.builder()\n .key(\"key\")\n .values(List.of(\"values\"))\n .build()))\n .build())\n .sageMakerPipelineParameters(SageMakerPipelineParametersProperty.builder()\n .pipelineParameterList(List.of(SageMakerPipelineParameterProperty.builder()\n .name(\"name\")\n .value(\"value\")\n .build()))\n .build())\n .sqsParameters(SqsParametersProperty.builder()\n .messageGroupId(\"messageGroupId\")\n .build())\n .build()))\n .build();",
|
3724 | "version": "1"
|
3725 | },
|
3726 | "go": {
|
3727 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\n\nvar eventPattern interface{}\ncfnRuleProps := &cfnRuleProps{\n\tdescription: jsii.String(\"description\"),\n\teventBusName: jsii.String(\"eventBusName\"),\n\teventPattern: eventPattern,\n\tname: jsii.String(\"name\"),\n\troleArn: jsii.String(\"roleArn\"),\n\tscheduleExpression: jsii.String(\"scheduleExpression\"),\n\tstate: jsii.String(\"state\"),\n\ttargets: []interface{}{\n\t\t&targetProperty{\n\t\t\tarn: jsii.String(\"arn\"),\n\t\t\tid: jsii.String(\"id\"),\n\n\t\t\t// the properties below are optional\n\t\t\tbatchParameters: &batchParametersProperty{\n\t\t\t\tjobDefinition: jsii.String(\"jobDefinition\"),\n\t\t\t\tjobName: jsii.String(\"jobName\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tarrayProperties: &batchArrayPropertiesProperty{\n\t\t\t\t\tsize: jsii.Number(123),\n\t\t\t\t},\n\t\t\t\tretryStrategy: &batchRetryStrategyProperty{\n\t\t\t\t\tattempts: jsii.Number(123),\n\t\t\t\t},\n\t\t\t},\n\t\t\tdeadLetterConfig: &deadLetterConfigProperty{\n\t\t\t\tarn: jsii.String(\"arn\"),\n\t\t\t},\n\t\t\tecsParameters: &ecsParametersProperty{\n\t\t\t\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcapacityProviderStrategy: []interface{}{\n\t\t\t\t\t&capacityProviderStrategyItemProperty{\n\t\t\t\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tbase: jsii.Number(123),\n\t\t\t\t\t\tweight: jsii.Number(123),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tenableEcsManagedTags: jsii.Boolean(false),\n\t\t\t\tenableExecuteCommand: jsii.Boolean(false),\n\t\t\t\tgroup: jsii.String(\"group\"),\n\t\t\t\tlaunchType: jsii.String(\"launchType\"),\n\t\t\t\tnetworkConfiguration: &networkConfigurationProperty{\n\t\t\t\t\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\t\t\t\tsubnets: []*string{\n\t\t\t\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t\t\t\t},\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\t\t\t\tsecurityGroups: []*string{\n\t\t\t\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tplacementConstraints: []interface{}{\n\t\t\t\t\t&placementConstraintProperty{\n\t\t\t\t\t\texpression: jsii.String(\"expression\"),\n\t\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tplacementStrategies: []interface{}{\n\t\t\t\t\t&placementStrategyProperty{\n\t\t\t\t\t\tfield: jsii.String(\"field\"),\n\t\t\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tplatformVersion: jsii.String(\"platformVersion\"),\n\t\t\t\tpropagateTags: jsii.String(\"propagateTags\"),\n\t\t\t\treferenceId: jsii.String(\"referenceId\"),\n\t\t\t\ttagList: []interface{}{\n\t\t\t\t\t&cfnTag{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttaskCount: jsii.Number(123),\n\t\t\t},\n\t\t\thttpParameters: &httpParametersProperty{\n\t\t\t\theaderParameters: map[string]*string{\n\t\t\t\t\t\"headerParametersKey\": jsii.String(\"headerParameters\"),\n\t\t\t\t},\n\t\t\t\tpathParameterValues: []*string{\n\t\t\t\t\tjsii.String(\"pathParameterValues\"),\n\t\t\t\t},\n\t\t\t\tqueryStringParameters: map[string]*string{\n\t\t\t\t\t\"queryStringParametersKey\": jsii.String(\"queryStringParameters\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tinput: jsii.String(\"input\"),\n\t\t\tinputPath: jsii.String(\"inputPath\"),\n\t\t\tinputTransformer: &inputTransformerProperty{\n\t\t\t\tinputTemplate: jsii.String(\"inputTemplate\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tinputPathsMap: map[string]*string{\n\t\t\t\t\t\"inputPathsMapKey\": jsii.String(\"inputPathsMap\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tkinesisParameters: &kinesisParametersProperty{\n\t\t\t\tpartitionKeyPath: jsii.String(\"partitionKeyPath\"),\n\t\t\t},\n\t\t\tredshiftDataParameters: &redshiftDataParametersProperty{\n\t\t\t\tdatabase: jsii.String(\"database\"),\n\t\t\t\tsql: jsii.String(\"sql\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tdbUser: jsii.String(\"dbUser\"),\n\t\t\t\tsecretManagerArn: jsii.String(\"secretManagerArn\"),\n\t\t\t\tstatementName: jsii.String(\"statementName\"),\n\t\t\t\twithEvent: jsii.Boolean(false),\n\t\t\t},\n\t\t\tretryPolicy: &retryPolicyProperty{\n\t\t\t\tmaximumEventAgeInSeconds: jsii.Number(123),\n\t\t\t\tmaximumRetryAttempts: jsii.Number(123),\n\t\t\t},\n\t\t\troleArn: jsii.String(\"roleArn\"),\n\t\t\trunCommandParameters: &runCommandParametersProperty{\n\t\t\t\trunCommandTargets: []interface{}{\n\t\t\t\t\t&runCommandTargetProperty{\n\t\t\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\t\t\tvalues: []*string{\n\t\t\t\t\t\t\tjsii.String(\"values\"),\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\tsageMakerPipelineParameters: &sageMakerPipelineParametersProperty{\n\t\t\t\tpipelineParameterList: []interface{}{\n\t\t\t\t\t&sageMakerPipelineParameterProperty{\n\t\t\t\t\t\tname: jsii.String(\"name\"),\n\t\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tsqsParameters: &sqsParametersProperty{\n\t\t\t\tmessageGroupId: jsii.String(\"messageGroupId\"),\n\t\t\t},\n\t\t},\n\t},\n}",
|
3728 | "version": "1"
|
3729 | },
|
3730 | "$": {
|
3731 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\nconst cfnRuleProps: events.CfnRuleProps = {\n description: 'description',\n eventBusName: 'eventBusName',\n eventPattern: eventPattern,\n name: 'name',\n roleArn: 'roleArn',\n scheduleExpression: 'scheduleExpression',\n state: 'state',\n targets: [{\n arn: 'arn',\n id: 'id',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n input: 'input',\n inputPath: 'inputPath',\n inputTransformer: {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n },\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n redshiftDataParameters: {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n roleArn: 'roleArn',\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sageMakerPipelineParameters: {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n }],\n};",
|
3732 | "version": "0"
|
3733 | }
|
3734 | },
|
3735 | "location": {
|
3736 | "api": {
|
3737 | "api": "type",
|
3738 | "fqn": "@aws-cdk/aws-events.CfnRuleProps"
|
3739 | },
|
3740 | "field": {
|
3741 | "field": "example"
|
3742 | }
|
3743 | },
|
3744 | "didCompile": true,
|
3745 | "fqnsReferenced": [
|
3746 | "@aws-cdk/aws-events.CfnRuleProps"
|
3747 | ],
|
3748 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n\ndeclare const eventPattern: any;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnRuleProps: events.CfnRuleProps = {\n description: 'description',\n eventBusName: 'eventBusName',\n eventPattern: eventPattern,\n name: 'name',\n roleArn: 'roleArn',\n scheduleExpression: 'scheduleExpression',\n state: 'state',\n targets: [{\n arn: 'arn',\n id: 'id',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n input: 'input',\n inputPath: 'inputPath',\n inputTransformer: {\n inputTemplate: 'inputTemplate',\n\n // the properties below are optional\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n },\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n redshiftDataParameters: {\n database: 'database',\n sql: 'sql',\n\n // the properties below are optional\n dbUser: 'dbUser',\n secretManagerArn: 'secretManagerArn',\n statementName: 'statementName',\n withEvent: false,\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n roleArn: 'roleArn',\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sageMakerPipelineParameters: {\n pipelineParameterList: [{\n name: 'name',\n value: 'value',\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3749 | "syntaxKindCounter": {
|
3750 | "8": 7,
|
3751 | "10": 47,
|
3752 | "75": 88,
|
3753 | "91": 3,
|
3754 | "125": 1,
|
3755 | "130": 1,
|
3756 | "153": 1,
|
3757 | "169": 1,
|
3758 | "192": 11,
|
3759 | "193": 26,
|
3760 | "225": 2,
|
3761 | "242": 2,
|
3762 | "243": 2,
|
3763 | "254": 1,
|
3764 | "255": 1,
|
3765 | "256": 1,
|
3766 | "281": 82,
|
3767 | "290": 1
|
3768 | },
|
3769 | "fqnsFingerprint": "ac21993ce1db23ce8b9db225135d45295d8ceeeec786bde085ae221b8af592fe"
|
3770 | },
|
3771 | "9c86e6b9f579294c2d7fba43cd894ed31b9ec0b7f4c2ec848f672f6898ac0213": {
|
3772 | "translations": {
|
3773 | "python": {
|
3774 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
3775 | "version": "2"
|
3776 | },
|
3777 | "csharp": {
|
3778 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
3779 | "version": "1"
|
3780 | },
|
3781 | "java": {
|
3782 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
3783 | "version": "1"
|
3784 | },
|
3785 | "go": {
|
3786 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
3787 | "version": "1"
|
3788 | },
|
3789 | "$": {
|
3790 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
3791 | "version": "0"
|
3792 | }
|
3793 | },
|
3794 | "location": {
|
3795 | "api": {
|
3796 | "api": "type",
|
3797 | "fqn": "@aws-cdk/aws-events.Connection"
|
3798 | },
|
3799 | "field": {
|
3800 | "field": "example"
|
3801 | }
|
3802 | },
|
3803 | "didCompile": true,
|
3804 | "fqnsReferenced": [
|
3805 | "@aws-cdk/aws-events-targets.ApiDestination",
|
3806 | "@aws-cdk/aws-events.ApiDestination",
|
3807 | "@aws-cdk/aws-events.ApiDestinationProps",
|
3808 | "@aws-cdk/aws-events.Authorization",
|
3809 | "@aws-cdk/aws-events.Authorization#apiKey",
|
3810 | "@aws-cdk/aws-events.Connection",
|
3811 | "@aws-cdk/aws-events.ConnectionProps",
|
3812 | "@aws-cdk/aws-events.IApiDestination",
|
3813 | "@aws-cdk/aws-events.IConnection",
|
3814 | "@aws-cdk/aws-events.Rule",
|
3815 | "@aws-cdk/aws-events.RuleProps",
|
3816 | "@aws-cdk/aws-events.Schedule",
|
3817 | "@aws-cdk/aws-events.Schedule#rate",
|
3818 | "@aws-cdk/core.Duration",
|
3819 | "@aws-cdk/core.Duration#minutes",
|
3820 | "@aws-cdk/core.SecretValue",
|
3821 | "@aws-cdk/core.SecretValue#secretsManager",
|
3822 | "constructs.Construct"
|
3823 | ],
|
3824 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
3825 | "syntaxKindCounter": {
|
3826 | "8": 1,
|
3827 | "10": 8,
|
3828 | "75": 30,
|
3829 | "104": 3,
|
3830 | "192": 1,
|
3831 | "193": 3,
|
3832 | "194": 11,
|
3833 | "196": 4,
|
3834 | "197": 4,
|
3835 | "225": 3,
|
3836 | "242": 3,
|
3837 | "243": 3,
|
3838 | "281": 6,
|
3839 | "282": 1
|
3840 | },
|
3841 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
3842 | },
|
3843 | "2ceb2c1726756402d1d55aed1ee3ddd4ae9ccc7d9c95036795948a845841724a": {
|
3844 | "translations": {
|
3845 | "python": {
|
3846 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nconnection_attributes = events.ConnectionAttributes(\n connection_arn=\"connectionArn\",\n connection_name=\"connectionName\",\n connection_secret_arn=\"connectionSecretArn\"\n)",
|
3847 | "version": "2"
|
3848 | },
|
3849 | "csharp": {
|
3850 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nConnectionAttributes connectionAttributes = new ConnectionAttributes {\n ConnectionArn = \"connectionArn\",\n ConnectionName = \"connectionName\",\n ConnectionSecretArn = \"connectionSecretArn\"\n};",
|
3851 | "version": "1"
|
3852 | },
|
3853 | "java": {
|
3854 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nConnectionAttributes connectionAttributes = ConnectionAttributes.builder()\n .connectionArn(\"connectionArn\")\n .connectionName(\"connectionName\")\n .connectionSecretArn(\"connectionSecretArn\")\n .build();",
|
3855 | "version": "1"
|
3856 | },
|
3857 | "go": {
|
3858 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nconnectionAttributes := &connectionAttributes{\n\tconnectionArn: jsii.String(\"connectionArn\"),\n\tconnectionName: jsii.String(\"connectionName\"),\n\tconnectionSecretArn: jsii.String(\"connectionSecretArn\"),\n}",
|
3859 | "version": "1"
|
3860 | },
|
3861 | "$": {
|
3862 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst connectionAttributes: events.ConnectionAttributes = {\n connectionArn: 'connectionArn',\n connectionName: 'connectionName',\n connectionSecretArn: 'connectionSecretArn',\n};",
|
3863 | "version": "0"
|
3864 | }
|
3865 | },
|
3866 | "location": {
|
3867 | "api": {
|
3868 | "api": "type",
|
3869 | "fqn": "@aws-cdk/aws-events.ConnectionAttributes"
|
3870 | },
|
3871 | "field": {
|
3872 | "field": "example"
|
3873 | }
|
3874 | },
|
3875 | "didCompile": true,
|
3876 | "fqnsReferenced": [
|
3877 | "@aws-cdk/aws-events.ConnectionAttributes"
|
3878 | ],
|
3879 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst connectionAttributes: events.ConnectionAttributes = {\n connectionArn: 'connectionArn',\n connectionName: 'connectionName',\n connectionSecretArn: 'connectionSecretArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
3880 | "syntaxKindCounter": {
|
3881 | "10": 4,
|
3882 | "75": 7,
|
3883 | "153": 1,
|
3884 | "169": 1,
|
3885 | "193": 1,
|
3886 | "225": 1,
|
3887 | "242": 1,
|
3888 | "243": 1,
|
3889 | "254": 1,
|
3890 | "255": 1,
|
3891 | "256": 1,
|
3892 | "281": 3,
|
3893 | "290": 1
|
3894 | },
|
3895 | "fqnsFingerprint": "4905c8da8a974badcf6900589c5d1e77990b4c25d0b30786eeeba6244297eeeb"
|
3896 | },
|
3897 | "284328f9f3b745f00f97398ccba130c465880e76f4bff0a68556e8f19bd62ac8": {
|
3898 | "translations": {
|
3899 | "python": {
|
3900 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
3901 | "version": "2"
|
3902 | },
|
3903 | "csharp": {
|
3904 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
3905 | "version": "1"
|
3906 | },
|
3907 | "java": {
|
3908 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
3909 | "version": "1"
|
3910 | },
|
3911 | "go": {
|
3912 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
3913 | "version": "1"
|
3914 | },
|
3915 | "$": {
|
3916 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
3917 | "version": "0"
|
3918 | }
|
3919 | },
|
3920 | "location": {
|
3921 | "api": {
|
3922 | "api": "type",
|
3923 | "fqn": "@aws-cdk/aws-events.ConnectionProps"
|
3924 | },
|
3925 | "field": {
|
3926 | "field": "example"
|
3927 | }
|
3928 | },
|
3929 | "didCompile": true,
|
3930 | "fqnsReferenced": [
|
3931 | "@aws-cdk/aws-events-targets.ApiDestination",
|
3932 | "@aws-cdk/aws-events.ApiDestination",
|
3933 | "@aws-cdk/aws-events.ApiDestinationProps",
|
3934 | "@aws-cdk/aws-events.Authorization",
|
3935 | "@aws-cdk/aws-events.Authorization#apiKey",
|
3936 | "@aws-cdk/aws-events.Connection",
|
3937 | "@aws-cdk/aws-events.ConnectionProps",
|
3938 | "@aws-cdk/aws-events.IApiDestination",
|
3939 | "@aws-cdk/aws-events.IConnection",
|
3940 | "@aws-cdk/aws-events.Rule",
|
3941 | "@aws-cdk/aws-events.RuleProps",
|
3942 | "@aws-cdk/aws-events.Schedule",
|
3943 | "@aws-cdk/aws-events.Schedule#rate",
|
3944 | "@aws-cdk/core.Duration",
|
3945 | "@aws-cdk/core.Duration#minutes",
|
3946 | "@aws-cdk/core.SecretValue",
|
3947 | "@aws-cdk/core.SecretValue#secretsManager",
|
3948 | "constructs.Construct"
|
3949 | ],
|
3950 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
3951 | "syntaxKindCounter": {
|
3952 | "8": 1,
|
3953 | "10": 8,
|
3954 | "75": 30,
|
3955 | "104": 3,
|
3956 | "192": 1,
|
3957 | "193": 3,
|
3958 | "194": 11,
|
3959 | "196": 4,
|
3960 | "197": 4,
|
3961 | "225": 3,
|
3962 | "242": 3,
|
3963 | "243": 3,
|
3964 | "281": 6,
|
3965 | "282": 1
|
3966 | },
|
3967 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
3968 | },
|
3969 | "47d3dbb61e522cf657115dc4d4e2684819fc0f49974817a4090892e137d3d54f": {
|
3970 | "translations": {
|
3971 | "python": {
|
3972 | "source": "import aws_cdk.aws_events as events\nimport aws_cdk.aws_events_targets as targets\n\n# fn: lambda.Function\n\nrule = events.Rule(self, \"Schedule Rule\",\n schedule=events.Schedule.cron(minute=\"0\", hour=\"4\")\n)\nrule.add_target(targets.LambdaFunction(fn))",
|
3973 | "version": "2"
|
3974 | },
|
3975 | "csharp": {
|
3976 | "source": "using Amazon.CDK.AWS.Events;\nusing Amazon.CDK.AWS.Events.Targets;\n\nFunction fn;\n\nRule rule = new Rule(this, \"Schedule Rule\", new RuleProps {\n Schedule = Schedule.Cron(new CronOptions { Minute = \"0\", Hour = \"4\" })\n});\nrule.AddTarget(new LambdaFunction(fn));",
|
3977 | "version": "1"
|
3978 | },
|
3979 | "java": {
|
3980 | "source": "import software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.services.events.targets.*;\n\nFunction fn;\n\nRule rule = Rule.Builder.create(this, \"Schedule Rule\")\n .schedule(Schedule.cron(CronOptions.builder().minute(\"0\").hour(\"4\").build()))\n .build();\nrule.addTarget(new LambdaFunction(fn));",
|
3981 | "version": "1"
|
3982 | },
|
3983 | "go": {
|
3984 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"import targets \"github.com/aws-samples/dummy/awscdkawseventstargets\"\n\nvar fn function\nrule := events.NewRule(this, jsii.String(\"Schedule Rule\"), &ruleProps{\n\tschedule: events.schedule.cron(&cronOptions{\n\t\tminute: jsii.String(\"0\"),\n\t\thour: jsii.String(\"4\"),\n\t}),\n})\nrule.addTarget(targets.NewLambdaFunction(fn))",
|
3985 | "version": "1"
|
3986 | },
|
3987 | "$": {
|
3988 | "source": "import * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\n\ndeclare const fn: lambda.Function;\nconst rule = new events.Rule(this, 'Schedule Rule', {\n schedule: events.Schedule.cron({ minute: '0', hour: '4' }),\n});\nrule.addTarget(new targets.LambdaFunction(fn));",
|
3989 | "version": "0"
|
3990 | }
|
3991 | },
|
3992 | "location": {
|
3993 | "api": {
|
3994 | "api": "type",
|
3995 | "fqn": "@aws-cdk/aws-events.CronOptions"
|
3996 | },
|
3997 | "field": {
|
3998 | "field": "example"
|
3999 | }
|
4000 | },
|
4001 | "didCompile": true,
|
4002 | "fqnsReferenced": [
|
4003 | "@aws-cdk/aws-events-targets.LambdaFunction",
|
4004 | "@aws-cdk/aws-events.CronOptions",
|
4005 | "@aws-cdk/aws-events.IRuleTarget",
|
4006 | "@aws-cdk/aws-events.Rule",
|
4007 | "@aws-cdk/aws-events.Rule#addTarget",
|
4008 | "@aws-cdk/aws-events.RuleProps",
|
4009 | "@aws-cdk/aws-events.Schedule",
|
4010 | "@aws-cdk/aws-events.Schedule#cron",
|
4011 | "@aws-cdk/aws-lambda.IFunction",
|
4012 | "constructs.Construct"
|
4013 | ],
|
4014 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\n\ndeclare const fn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport * as path from 'path';\nimport { Construct } from 'constructs';\nimport { CfnOutput, DockerImage, Duration, RemovalPolicy, Stack } from '@aws-cdk/core';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as iam from '@aws-cdk/aws-iam';\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 rule = new events.Rule(this, 'Schedule Rule', {\n schedule: events.Schedule.cron({ minute: '0', hour: '4' }),\n});\nrule.addTarget(new targets.LambdaFunction(fn));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4015 | "syntaxKindCounter": {
|
4016 | "10": 5,
|
4017 | "75": 19,
|
4018 | "104": 1,
|
4019 | "130": 1,
|
4020 | "153": 1,
|
4021 | "169": 1,
|
4022 | "193": 2,
|
4023 | "194": 5,
|
4024 | "196": 2,
|
4025 | "197": 2,
|
4026 | "225": 2,
|
4027 | "226": 1,
|
4028 | "242": 2,
|
4029 | "243": 2,
|
4030 | "254": 2,
|
4031 | "255": 2,
|
4032 | "256": 2,
|
4033 | "281": 3,
|
4034 | "290": 1
|
4035 | },
|
4036 | "fqnsFingerprint": "bb9949ac2d494c400c63a448b398bb4aba680b25a2a9499f382001679ef7467c"
|
4037 | },
|
4038 | "01c3942e14f924ae6347ed1810bccb1f8ef643c5ec532dbf3ffba192cb3febca": {
|
4039 | "translations": {
|
4040 | "python": {
|
4041 | "source": "bus = events.EventBus(self, \"bus\",\n event_bus_name=\"MyCustomEventBus\"\n)\n\nbus.archive(\"MyArchive\",\n archive_name=\"MyCustomEventBusArchive\",\n description=\"MyCustomerEventBus Archive\",\n event_pattern=events.EventPattern(\n account=[Stack.of(self).account]\n ),\n retention=Duration.days(365)\n)",
|
4042 | "version": "2"
|
4043 | },
|
4044 | "csharp": {
|
4045 | "source": "EventBus bus = new EventBus(this, \"bus\", new EventBusProps {\n EventBusName = \"MyCustomEventBus\"\n});\n\nbus.Archive(\"MyArchive\", new BaseArchiveProps {\n ArchiveName = \"MyCustomEventBusArchive\",\n Description = \"MyCustomerEventBus Archive\",\n EventPattern = new EventPattern {\n Account = new [] { Stack.Of(this).Account }\n },\n Retention = Duration.Days(365)\n});",
|
4046 | "version": "1"
|
4047 | },
|
4048 | "java": {
|
4049 | "source": "EventBus bus = EventBus.Builder.create(this, \"bus\")\n .eventBusName(\"MyCustomEventBus\")\n .build();\n\nbus.archive(\"MyArchive\", BaseArchiveProps.builder()\n .archiveName(\"MyCustomEventBusArchive\")\n .description(\"MyCustomerEventBus Archive\")\n .eventPattern(EventPattern.builder()\n .account(List.of(Stack.of(this).getAccount()))\n .build())\n .retention(Duration.days(365))\n .build());",
|
4050 | "version": "1"
|
4051 | },
|
4052 | "go": {
|
4053 | "source": "bus := events.NewEventBus(this, jsii.String(\"bus\"), &eventBusProps{\n\teventBusName: jsii.String(\"MyCustomEventBus\"),\n})\n\nbus.archive(jsii.String(\"MyArchive\"), &baseArchiveProps{\n\tarchiveName: jsii.String(\"MyCustomEventBusArchive\"),\n\tdescription: jsii.String(\"MyCustomerEventBus Archive\"),\n\teventPattern: &eventPattern{\n\t\taccount: []*string{\n\t\t\t*stack.of(this).account,\n\t\t},\n\t},\n\tretention: duration.days(jsii.Number(365)),\n})",
|
4054 | "version": "1"
|
4055 | },
|
4056 | "$": {
|
4057 | "source": "const bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});",
|
4058 | "version": "0"
|
4059 | }
|
4060 | },
|
4061 | "location": {
|
4062 | "api": {
|
4063 | "api": "type",
|
4064 | "fqn": "@aws-cdk/aws-events.EventBus"
|
4065 | },
|
4066 | "field": {
|
4067 | "field": "example"
|
4068 | }
|
4069 | },
|
4070 | "didCompile": true,
|
4071 | "fqnsReferenced": [
|
4072 | "@aws-cdk/aws-events.BaseArchiveProps",
|
4073 | "@aws-cdk/aws-events.EventBus",
|
4074 | "@aws-cdk/aws-events.EventBusProps",
|
4075 | "@aws-cdk/aws-events.EventPattern",
|
4076 | "@aws-cdk/core.Duration",
|
4077 | "@aws-cdk/core.Duration#days",
|
4078 | "@aws-cdk/core.Stack#account",
|
4079 | "@aws-cdk/core.Stack#of",
|
4080 | "constructs.Construct",
|
4081 | "constructs.IConstruct"
|
4082 | ],
|
4083 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
4084 | "syntaxKindCounter": {
|
4085 | "8": 1,
|
4086 | "10": 5,
|
4087 | "75": 16,
|
4088 | "104": 2,
|
4089 | "192": 1,
|
4090 | "193": 3,
|
4091 | "194": 5,
|
4092 | "196": 3,
|
4093 | "197": 1,
|
4094 | "225": 1,
|
4095 | "226": 1,
|
4096 | "242": 1,
|
4097 | "243": 1,
|
4098 | "281": 6
|
4099 | },
|
4100 | "fqnsFingerprint": "8a370448c8850f9d3bf4b97e19e578ded327b3a3770acbff3aee6834ce814a3f"
|
4101 | },
|
4102 | "d1b7f4b59eb308ed3ce5345797efa65eb0e39fd220c50e9307439fbb4f0b906d": {
|
4103 | "translations": {
|
4104 | "python": {
|
4105 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nevent_bus_attributes = events.EventBusAttributes(\n event_bus_arn=\"eventBusArn\",\n event_bus_name=\"eventBusName\",\n event_bus_policy=\"eventBusPolicy\",\n\n # the properties below are optional\n event_source_name=\"eventSourceName\"\n)",
|
4106 | "version": "2"
|
4107 | },
|
4108 | "csharp": {
|
4109 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nEventBusAttributes eventBusAttributes = new EventBusAttributes {\n EventBusArn = \"eventBusArn\",\n EventBusName = \"eventBusName\",\n EventBusPolicy = \"eventBusPolicy\",\n\n // the properties below are optional\n EventSourceName = \"eventSourceName\"\n};",
|
4110 | "version": "1"
|
4111 | },
|
4112 | "java": {
|
4113 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nEventBusAttributes eventBusAttributes = EventBusAttributes.builder()\n .eventBusArn(\"eventBusArn\")\n .eventBusName(\"eventBusName\")\n .eventBusPolicy(\"eventBusPolicy\")\n\n // the properties below are optional\n .eventSourceName(\"eventSourceName\")\n .build();",
|
4114 | "version": "1"
|
4115 | },
|
4116 | "go": {
|
4117 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\neventBusAttributes := &eventBusAttributes{\n\teventBusArn: jsii.String(\"eventBusArn\"),\n\teventBusName: jsii.String(\"eventBusName\"),\n\teventBusPolicy: jsii.String(\"eventBusPolicy\"),\n\n\t// the properties below are optional\n\teventSourceName: jsii.String(\"eventSourceName\"),\n}",
|
4118 | "version": "1"
|
4119 | },
|
4120 | "$": {
|
4121 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst eventBusAttributes: events.EventBusAttributes = {\n eventBusArn: 'eventBusArn',\n eventBusName: 'eventBusName',\n eventBusPolicy: 'eventBusPolicy',\n\n // the properties below are optional\n eventSourceName: 'eventSourceName',\n};",
|
4122 | "version": "0"
|
4123 | }
|
4124 | },
|
4125 | "location": {
|
4126 | "api": {
|
4127 | "api": "type",
|
4128 | "fqn": "@aws-cdk/aws-events.EventBusAttributes"
|
4129 | },
|
4130 | "field": {
|
4131 | "field": "example"
|
4132 | }
|
4133 | },
|
4134 | "didCompile": true,
|
4135 | "fqnsReferenced": [
|
4136 | "@aws-cdk/aws-events.EventBusAttributes"
|
4137 | ],
|
4138 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst eventBusAttributes: events.EventBusAttributes = {\n eventBusArn: 'eventBusArn',\n eventBusName: 'eventBusName',\n eventBusPolicy: 'eventBusPolicy',\n\n // the properties below are optional\n eventSourceName: 'eventSourceName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4139 | "syntaxKindCounter": {
|
4140 | "10": 5,
|
4141 | "75": 8,
|
4142 | "153": 1,
|
4143 | "169": 1,
|
4144 | "193": 1,
|
4145 | "225": 1,
|
4146 | "242": 1,
|
4147 | "243": 1,
|
4148 | "254": 1,
|
4149 | "255": 1,
|
4150 | "256": 1,
|
4151 | "281": 4,
|
4152 | "290": 1
|
4153 | },
|
4154 | "fqnsFingerprint": "b98c40cf4ca6c2300305823f9b89d8eb7223a47c96178ea4943061490b159f04"
|
4155 | },
|
4156 | "804ed44f6e80f96fdc2f0c88bed86c1268ef5d06059432201ac44935040375d8": {
|
4157 | "translations": {
|
4158 | "python": {
|
4159 | "source": "bus = events.EventBus(self, \"bus\",\n event_bus_name=\"MyCustomEventBus\"\n)\n\nbus.archive(\"MyArchive\",\n archive_name=\"MyCustomEventBusArchive\",\n description=\"MyCustomerEventBus Archive\",\n event_pattern=events.EventPattern(\n account=[Stack.of(self).account]\n ),\n retention=Duration.days(365)\n)",
|
4160 | "version": "2"
|
4161 | },
|
4162 | "csharp": {
|
4163 | "source": "EventBus bus = new EventBus(this, \"bus\", new EventBusProps {\n EventBusName = \"MyCustomEventBus\"\n});\n\nbus.Archive(\"MyArchive\", new BaseArchiveProps {\n ArchiveName = \"MyCustomEventBusArchive\",\n Description = \"MyCustomerEventBus Archive\",\n EventPattern = new EventPattern {\n Account = new [] { Stack.Of(this).Account }\n },\n Retention = Duration.Days(365)\n});",
|
4164 | "version": "1"
|
4165 | },
|
4166 | "java": {
|
4167 | "source": "EventBus bus = EventBus.Builder.create(this, \"bus\")\n .eventBusName(\"MyCustomEventBus\")\n .build();\n\nbus.archive(\"MyArchive\", BaseArchiveProps.builder()\n .archiveName(\"MyCustomEventBusArchive\")\n .description(\"MyCustomerEventBus Archive\")\n .eventPattern(EventPattern.builder()\n .account(List.of(Stack.of(this).getAccount()))\n .build())\n .retention(Duration.days(365))\n .build());",
|
4168 | "version": "1"
|
4169 | },
|
4170 | "go": {
|
4171 | "source": "bus := events.NewEventBus(this, jsii.String(\"bus\"), &eventBusProps{\n\teventBusName: jsii.String(\"MyCustomEventBus\"),\n})\n\nbus.archive(jsii.String(\"MyArchive\"), &baseArchiveProps{\n\tarchiveName: jsii.String(\"MyCustomEventBusArchive\"),\n\tdescription: jsii.String(\"MyCustomerEventBus Archive\"),\n\teventPattern: &eventPattern{\n\t\taccount: []*string{\n\t\t\t*stack.of(this).account,\n\t\t},\n\t},\n\tretention: duration.days(jsii.Number(365)),\n})",
|
4172 | "version": "1"
|
4173 | },
|
4174 | "$": {
|
4175 | "source": "const bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});",
|
4176 | "version": "0"
|
4177 | }
|
4178 | },
|
4179 | "location": {
|
4180 | "api": {
|
4181 | "api": "type",
|
4182 | "fqn": "@aws-cdk/aws-events.EventBusProps"
|
4183 | },
|
4184 | "field": {
|
4185 | "field": "example"
|
4186 | }
|
4187 | },
|
4188 | "didCompile": true,
|
4189 | "fqnsReferenced": [
|
4190 | "@aws-cdk/aws-events.BaseArchiveProps",
|
4191 | "@aws-cdk/aws-events.EventBus",
|
4192 | "@aws-cdk/aws-events.EventBusProps",
|
4193 | "@aws-cdk/aws-events.EventPattern",
|
4194 | "@aws-cdk/core.Duration",
|
4195 | "@aws-cdk/core.Duration#days",
|
4196 | "@aws-cdk/core.Stack#account",
|
4197 | "@aws-cdk/core.Stack#of",
|
4198 | "constructs.Construct",
|
4199 | "constructs.IConstruct"
|
4200 | ],
|
4201 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack, Duration } from '@aws-cdk/core';\nimport * as events from '@aws-cdk/aws-events';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as codecommit from '@aws-cdk/aws-codecommit';\nimport * as codebuild from '@aws-cdk/aws-codebuild';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as ecs from '@aws-cdk/aws-ecs';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as lambda from '@aws-cdk/aws-lambda';\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 bus = new events.EventBus(this, 'bus', {\n eventBusName: 'MyCustomEventBus'\n});\n\nbus.archive('MyArchive', {\n archiveName: 'MyCustomEventBusArchive',\n description: 'MyCustomerEventBus Archive',\n eventPattern: {\n account: [Stack.of(this).account],\n },\n retention: Duration.days(365),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n\n",
|
4202 | "syntaxKindCounter": {
|
4203 | "8": 1,
|
4204 | "10": 5,
|
4205 | "75": 16,
|
4206 | "104": 2,
|
4207 | "192": 1,
|
4208 | "193": 3,
|
4209 | "194": 5,
|
4210 | "196": 3,
|
4211 | "197": 1,
|
4212 | "225": 1,
|
4213 | "226": 1,
|
4214 | "242": 1,
|
4215 | "243": 1,
|
4216 | "281": 6
|
4217 | },
|
4218 | "fqnsFingerprint": "8a370448c8850f9d3bf4b97e19e578ded327b3a3770acbff3aee6834ce814a3f"
|
4219 | },
|
4220 | "d70b1feb5e6164126b34a995afe6975c1f20117679b58ee6652b99cb7a639b5c": {
|
4221 | "translations": {
|
4222 | "python": {
|
4223 | "source": "import aws_cdk.aws_lambda as lambda_\n\n\nfn = lambda_.Function(self, \"MyFunc\",\n runtime=lambda_.Runtime.NODEJS_12_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"exports.handler = handler.toString()\")\n)\n\nrule = events.Rule(self, \"rule\",\n event_pattern=events.EventPattern(\n source=[\"aws.ec2\"]\n )\n)\n\nqueue = sqs.Queue(self, \"Queue\")\n\nrule.add_target(targets.LambdaFunction(fn,\n dead_letter_queue=queue, # Optional: add a dead letter queue\n max_event_age=cdk.Duration.hours(2), # Optional: set the maxEventAge retry policy\n retry_attempts=2\n))",
|
4224 | "version": "2"
|
4225 | },
|
4226 | "csharp": {
|
4227 | "source": "using Amazon.CDK.AWS.Lambda;\n\n\nFunction fn = new Function(this, \"MyFunc\", new FunctionProps {\n Runtime = Runtime.NODEJS_12_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(\"exports.handler = handler.toString()\")\n});\n\nRule rule = new Rule(this, \"rule\", new RuleProps {\n EventPattern = new EventPattern {\n Source = new [] { \"aws.ec2\" }\n }\n});\n\nQueue queue = new Queue(this, \"Queue\");\n\nrule.AddTarget(new LambdaFunction(fn, new LambdaFunctionProps {\n DeadLetterQueue = queue, // Optional: add a dead letter queue\n MaxEventAge = Duration.Hours(2), // Optional: set the maxEventAge retry policy\n RetryAttempts = 2\n}));",
|
4228 | "version": "1"
|
4229 | },
|
4230 | "java": {
|
4231 | "source": "import software.amazon.awscdk.services.lambda.*;\n\n\nFunction fn = Function.Builder.create(this, \"MyFunc\")\n .runtime(Runtime.NODEJS_12_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"exports.handler = handler.toString()\"))\n .build();\n\nRule rule = Rule.Builder.create(this, \"rule\")\n .eventPattern(EventPattern.builder()\n .source(List.of(\"aws.ec2\"))\n .build())\n .build();\n\nQueue queue = new Queue(this, \"Queue\");\n\nrule.addTarget(LambdaFunction.Builder.create(fn)\n .deadLetterQueue(queue) // Optional: add a dead letter queue\n .maxEventAge(Duration.hours(2)) // Optional: set the maxEventAge retry policy\n .retryAttempts(2)\n .build());",
|
4232 | "version": "1"
|
4233 | },
|
4234 | "go": {
|
4235 | "source": "import lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\n\nfn := lambda.NewFunction(this, jsii.String(\"MyFunc\"), &functionProps{\n\truntime: lambda.runtime_NODEJS_12_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromInline(jsii.String(\"exports.handler = handler.toString()\")),\n})\n\nrule := events.NewRule(this, jsii.String(\"rule\"), &ruleProps{\n\teventPattern: &eventPattern{\n\t\tsource: []*string{\n\t\t\tjsii.String(\"aws.ec2\"),\n\t\t},\n\t},\n})\n\nqueue := sqs.NewQueue(this, jsii.String(\"Queue\"))\n\nrule.addTarget(targets.NewLambdaFunction(fn, &lambdaFunctionProps{\n\tdeadLetterQueue: queue,\n\t // Optional: add a dead letter queue\n\tmaxEventAge: cdk.duration.hours(jsii.Number(2)),\n\t // Optional: set the maxEventAge retry policy\n\tretryAttempts: jsii.Number(2),\n}))",
|
4236 | "version": "1"
|
4237 | },
|
4238 | "$": {
|
4239 | "source": "import * as lambda from '@aws-cdk/aws-lambda';\n\nconst fn = new lambda.Function(this, 'MyFunc', {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`exports.handler = handler.toString()`),\n});\n\nconst rule = new events.Rule(this, 'rule', {\n eventPattern: {\n source: [\"aws.ec2\"],\n },\n});\n\nconst queue = new sqs.Queue(this, 'Queue');\n\nrule.addTarget(new targets.LambdaFunction(fn, {\n deadLetterQueue: queue, // Optional: add a dead letter queue\n maxEventAge: cdk.Duration.hours(2), // Optional: set the maxEventAge retry policy\n retryAttempts: 2, // Optional: set the max number of retry attempts\n}));",
|
4240 | "version": "0"
|
4241 | }
|
4242 | },
|
4243 | "location": {
|
4244 | "api": {
|
4245 | "api": "type",
|
4246 | "fqn": "@aws-cdk/aws-events.EventPattern"
|
4247 | },
|
4248 | "field": {
|
4249 | "field": "example"
|
4250 | }
|
4251 | },
|
4252 | "didCompile": true,
|
4253 | "fqnsReferenced": [
|
4254 | "@aws-cdk/aws-events-targets.LambdaFunction",
|
4255 | "@aws-cdk/aws-events-targets.LambdaFunctionProps",
|
4256 | "@aws-cdk/aws-events.EventPattern",
|
4257 | "@aws-cdk/aws-events.IRuleTarget",
|
4258 | "@aws-cdk/aws-events.Rule",
|
4259 | "@aws-cdk/aws-events.Rule#addTarget",
|
4260 | "@aws-cdk/aws-events.RuleProps",
|
4261 | "@aws-cdk/aws-lambda.Code",
|
4262 | "@aws-cdk/aws-lambda.Code#fromInline",
|
4263 | "@aws-cdk/aws-lambda.Function",
|
4264 | "@aws-cdk/aws-lambda.FunctionProps",
|
4265 | "@aws-cdk/aws-lambda.IFunction",
|
4266 | "@aws-cdk/aws-lambda.Runtime",
|
4267 | "@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
|
4268 | "@aws-cdk/aws-sqs.IQueue",
|
4269 | "@aws-cdk/aws-sqs.Queue",
|
4270 | "@aws-cdk/core.Duration",
|
4271 | "@aws-cdk/core.Duration#hours",
|
4272 | "constructs.Construct"
|
4273 | ],
|
4274 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as lambda from '@aws-cdk/aws-lambda';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 fn = new lambda.Function(this, 'MyFunc', {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`exports.handler = handler.toString()`),\n});\n\nconst rule = new events.Rule(this, 'rule', {\n eventPattern: {\n source: [\"aws.ec2\"],\n },\n});\n\nconst queue = new sqs.Queue(this, 'Queue');\n\nrule.addTarget(new targets.LambdaFunction(fn, {\n deadLetterQueue: queue, // Optional: add a dead letter queue\n maxEventAge: cdk.Duration.hours(2), // Optional: set the maxEventAge retry policy\n retryAttempts: 2, // Optional: set the max number of retry attempts\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4275 | "syntaxKindCounter": {
|
4276 | "8": 2,
|
4277 | "10": 6,
|
4278 | "14": 1,
|
4279 | "75": 33,
|
4280 | "104": 3,
|
4281 | "192": 1,
|
4282 | "193": 4,
|
4283 | "194": 11,
|
4284 | "196": 3,
|
4285 | "197": 4,
|
4286 | "225": 3,
|
4287 | "226": 1,
|
4288 | "242": 3,
|
4289 | "243": 3,
|
4290 | "254": 1,
|
4291 | "255": 1,
|
4292 | "256": 1,
|
4293 | "281": 8,
|
4294 | "290": 1
|
4295 | },
|
4296 | "fqnsFingerprint": "1e7953352d3772efd5e6b47691167dfe668c5dfd26b2a16116b20bc5597eb25f"
|
4297 | },
|
4298 | "793c9804b74ba2a740138b630d3fcb50fc9521ff50876fab4d047b6c5ed41b69": {
|
4299 | "translations": {
|
4300 | "python": {
|
4301 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\nimport aws_cdk.core as cdk\n\n# secret_value: cdk.SecretValue\n\nhttp_parameter = events.HttpParameter.from_secret(secret_value)",
|
4302 | "version": "2"
|
4303 | },
|
4304 | "csharp": {
|
4305 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\nusing Amazon.CDK;\n\nSecretValue secretValue;\nHttpParameter httpParameter = HttpParameter.FromSecret(secretValue);",
|
4306 | "version": "1"
|
4307 | },
|
4308 | "java": {
|
4309 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.core.*;\n\nSecretValue secretValue;\n\nHttpParameter httpParameter = HttpParameter.fromSecret(secretValue);",
|
4310 | "version": "1"
|
4311 | },
|
4312 | "go": {
|
4313 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"import cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar secretValue secretValue\nhttpParameter := events.httpParameter.fromSecret(secretValue)",
|
4314 | "version": "1"
|
4315 | },
|
4316 | "$": {
|
4317 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const secretValue: cdk.SecretValue;\nconst httpParameter = events.HttpParameter.fromSecret(secretValue);",
|
4318 | "version": "0"
|
4319 | }
|
4320 | },
|
4321 | "location": {
|
4322 | "api": {
|
4323 | "api": "type",
|
4324 | "fqn": "@aws-cdk/aws-events.HttpParameter"
|
4325 | },
|
4326 | "field": {
|
4327 | "field": "example"
|
4328 | }
|
4329 | },
|
4330 | "didCompile": true,
|
4331 | "fqnsReferenced": [
|
4332 | "@aws-cdk/aws-events.HttpParameter",
|
4333 | "@aws-cdk/aws-events.HttpParameter#fromSecret",
|
4334 | "@aws-cdk/core.SecretValue"
|
4335 | ],
|
4336 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\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 httpParameter = events.HttpParameter.fromSecret(secretValue);\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4337 | "syntaxKindCounter": {
|
4338 | "10": 2,
|
4339 | "75": 10,
|
4340 | "130": 1,
|
4341 | "153": 1,
|
4342 | "169": 1,
|
4343 | "194": 2,
|
4344 | "196": 1,
|
4345 | "225": 2,
|
4346 | "242": 2,
|
4347 | "243": 2,
|
4348 | "254": 2,
|
4349 | "255": 2,
|
4350 | "256": 2,
|
4351 | "290": 1
|
4352 | },
|
4353 | "fqnsFingerprint": "353e794b7cb7186f704aa287654e98e9cb0c0e947305f57b37df55a92d2b10a3"
|
4354 | },
|
4355 | "2b648730e8f03986d9e2714fc2611229211b9038b26ff00a1841b1df159fd50a": {
|
4356 | "translations": {
|
4357 | "python": {
|
4358 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\nimport aws_cdk.core as cdk\n\n# http_parameter: events.HttpParameter\n# secret_value: cdk.SecretValue\n\no_auth_authorization_props = events.OAuthAuthorizationProps(\n authorization_endpoint=\"authorizationEndpoint\",\n client_id=\"clientId\",\n client_secret=secret_value,\n http_method=events.HttpMethod.POST,\n\n # the properties below are optional\n body_parameters={\n \"body_parameters_key\": http_parameter\n },\n header_parameters={\n \"header_parameters_key\": http_parameter\n },\n query_string_parameters={\n \"query_string_parameters_key\": http_parameter\n }\n)",
|
4359 | "version": "2"
|
4360 | },
|
4361 | "csharp": {
|
4362 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\nusing Amazon.CDK;\n\nHttpParameter httpParameter;\nSecretValue secretValue;\nOAuthAuthorizationProps oAuthAuthorizationProps = new OAuthAuthorizationProps {\n AuthorizationEndpoint = \"authorizationEndpoint\",\n ClientId = \"clientId\",\n ClientSecret = secretValue,\n HttpMethod = HttpMethod.POST,\n\n // the properties below are optional\n BodyParameters = new Dictionary<string, HttpParameter> {\n { \"bodyParametersKey\", httpParameter }\n },\n HeaderParameters = new Dictionary<string, HttpParameter> {\n { \"headerParametersKey\", httpParameter }\n },\n QueryStringParameters = new Dictionary<string, HttpParameter> {\n { \"queryStringParametersKey\", httpParameter }\n }\n};",
|
4363 | "version": "1"
|
4364 | },
|
4365 | "java": {
|
4366 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.core.*;\n\nHttpParameter httpParameter;\nSecretValue secretValue;\n\nOAuthAuthorizationProps oAuthAuthorizationProps = OAuthAuthorizationProps.builder()\n .authorizationEndpoint(\"authorizationEndpoint\")\n .clientId(\"clientId\")\n .clientSecret(secretValue)\n .httpMethod(HttpMethod.POST)\n\n // the properties below are optional\n .bodyParameters(Map.of(\n \"bodyParametersKey\", httpParameter))\n .headerParameters(Map.of(\n \"headerParametersKey\", httpParameter))\n .queryStringParameters(Map.of(\n \"queryStringParametersKey\", httpParameter))\n .build();",
|
4367 | "version": "1"
|
4368 | },
|
4369 | "go": {
|
4370 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"import cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar httpParameter httpParameter\nvar secretValue secretValue\noAuthAuthorizationProps := &oAuthAuthorizationProps{\n\tauthorizationEndpoint: jsii.String(\"authorizationEndpoint\"),\n\tclientId: jsii.String(\"clientId\"),\n\tclientSecret: secretValue,\n\thttpMethod: events.httpMethod_POST,\n\n\t// the properties below are optional\n\tbodyParameters: map[string]*httpParameter{\n\t\t\"bodyParametersKey\": httpParameter,\n\t},\n\theaderParameters: map[string]*httpParameter{\n\t\t\"headerParametersKey\": httpParameter,\n\t},\n\tqueryStringParameters: map[string]*httpParameter{\n\t\t\"queryStringParametersKey\": httpParameter,\n\t},\n}",
|
4371 | "version": "1"
|
4372 | },
|
4373 | "$": {
|
4374 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const httpParameter: events.HttpParameter;\ndeclare const secretValue: cdk.SecretValue;\nconst oAuthAuthorizationProps: events.OAuthAuthorizationProps = {\n authorizationEndpoint: 'authorizationEndpoint',\n clientId: 'clientId',\n clientSecret: secretValue,\n httpMethod: events.HttpMethod.POST,\n\n // the properties below are optional\n bodyParameters: {\n bodyParametersKey: httpParameter,\n },\n headerParameters: {\n headerParametersKey: httpParameter,\n },\n queryStringParameters: {\n queryStringParametersKey: httpParameter,\n },\n};",
|
4375 | "version": "0"
|
4376 | }
|
4377 | },
|
4378 | "location": {
|
4379 | "api": {
|
4380 | "api": "type",
|
4381 | "fqn": "@aws-cdk/aws-events.OAuthAuthorizationProps"
|
4382 | },
|
4383 | "field": {
|
4384 | "field": "example"
|
4385 | }
|
4386 | },
|
4387 | "didCompile": true,
|
4388 | "fqnsReferenced": [
|
4389 | "@aws-cdk/aws-events.HttpMethod",
|
4390 | "@aws-cdk/aws-events.HttpMethod#POST",
|
4391 | "@aws-cdk/aws-events.HttpParameter",
|
4392 | "@aws-cdk/aws-events.OAuthAuthorizationProps",
|
4393 | "@aws-cdk/core.SecretValue"
|
4394 | ],
|
4395 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const httpParameter: events.HttpParameter;\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 oAuthAuthorizationProps: events.OAuthAuthorizationProps = {\n authorizationEndpoint: 'authorizationEndpoint',\n clientId: 'clientId',\n clientSecret: secretValue,\n httpMethod: events.HttpMethod.POST,\n\n // the properties below are optional\n bodyParameters: {\n bodyParametersKey: httpParameter,\n },\n headerParameters: {\n headerParametersKey: httpParameter,\n },\n queryStringParameters: {\n queryStringParametersKey: httpParameter,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4396 | "syntaxKindCounter": {
|
4397 | "10": 4,
|
4398 | "75": 28,
|
4399 | "130": 2,
|
4400 | "153": 3,
|
4401 | "169": 3,
|
4402 | "193": 4,
|
4403 | "194": 2,
|
4404 | "225": 3,
|
4405 | "242": 3,
|
4406 | "243": 3,
|
4407 | "254": 2,
|
4408 | "255": 2,
|
4409 | "256": 2,
|
4410 | "281": 10,
|
4411 | "290": 1
|
4412 | },
|
4413 | "fqnsFingerprint": "2eb14365de37ff9c9968ae4c457bcc0be8f68ccc3763e911fa8acc862e80e400"
|
4414 | },
|
4415 | "7031ed8bb06b68d311404c92b048dd4a3b14c74195a54269a1117147e6767013": {
|
4416 | "translations": {
|
4417 | "python": {
|
4418 | "source": "# Lambda function containing logic that evaluates compliance with the rule.\neval_compliance_fn = lambda_.Function(self, \"CustomFunction\",\n code=lambda_.AssetCode.from_inline(\"exports.handler = (event) => console.log(event);\"),\n handler=\"index.handler\",\n runtime=lambda_.Runtime.NODEJS_12_X\n)\n\n# A custom rule that runs on configuration changes of EC2 instances\ncustom_rule = config.CustomRule(self, \"Custom\",\n configuration_changes=True,\n lambda_function=eval_compliance_fn,\n rule_scope=config.RuleScope.from_resource(config.ResourceType.EC2_INSTANCE)\n)\n\n# A rule to detect stack drifts\ndrift_rule = config.CloudFormationStackDriftDetectionCheck(self, \"Drift\")\n\n# Topic to which compliance notification events will be published\ncompliance_topic = sns.Topic(self, \"ComplianceTopic\")\n\n# Send notification on compliance change events\ndrift_rule.on_compliance_change(\"ComplianceChange\",\n target=targets.SnsTopic(compliance_topic)\n)",
|
4419 | "version": "2"
|
4420 | },
|
4421 | "csharp": {
|
4422 | "source": "// Lambda function containing logic that evaluates compliance with the rule.\nFunction evalComplianceFn = new Function(this, \"CustomFunction\", new FunctionProps {\n Code = AssetCode.FromInline(\"exports.handler = (event) => console.log(event);\"),\n Handler = \"index.handler\",\n Runtime = Runtime.NODEJS_12_X\n});\n\n// A custom rule that runs on configuration changes of EC2 instances\nCustomRule customRule = new CustomRule(this, \"Custom\", new CustomRuleProps {\n ConfigurationChanges = true,\n LambdaFunction = evalComplianceFn,\n RuleScope = RuleScope.FromResource(ResourceType.EC2_INSTANCE)\n});\n\n// A rule to detect stack drifts\nCloudFormationStackDriftDetectionCheck driftRule = new CloudFormationStackDriftDetectionCheck(this, \"Drift\");\n\n// Topic to which compliance notification events will be published\nTopic complianceTopic = new Topic(this, \"ComplianceTopic\");\n\n// Send notification on compliance change events\ndriftRule.OnComplianceChange(\"ComplianceChange\", new OnEventOptions {\n Target = new SnsTopic(complianceTopic)\n});",
|
4423 | "version": "1"
|
4424 | },
|
4425 | "java": {
|
4426 | "source": "// Lambda function containing logic that evaluates compliance with the rule.\nFunction evalComplianceFn = Function.Builder.create(this, \"CustomFunction\")\n .code(AssetCode.fromInline(\"exports.handler = (event) => console.log(event);\"))\n .handler(\"index.handler\")\n .runtime(Runtime.NODEJS_12_X)\n .build();\n\n// A custom rule that runs on configuration changes of EC2 instances\nCustomRule customRule = CustomRule.Builder.create(this, \"Custom\")\n .configurationChanges(true)\n .lambdaFunction(evalComplianceFn)\n .ruleScope(RuleScope.fromResource(ResourceType.EC2_INSTANCE))\n .build();\n\n// A rule to detect stack drifts\nCloudFormationStackDriftDetectionCheck driftRule = new CloudFormationStackDriftDetectionCheck(this, \"Drift\");\n\n// Topic to which compliance notification events will be published\nTopic complianceTopic = new Topic(this, \"ComplianceTopic\");\n\n// Send notification on compliance change events\ndriftRule.onComplianceChange(\"ComplianceChange\", OnEventOptions.builder()\n .target(new SnsTopic(complianceTopic))\n .build());",
|
4427 | "version": "1"
|
4428 | },
|
4429 | "go": {
|
4430 | "source": "// Lambda function containing logic that evaluates compliance with the rule.\nevalComplianceFn := lambda.NewFunction(this, jsii.String(\"CustomFunction\"), &functionProps{\n\tcode: lambda.assetCode.fromInline(jsii.String(\"exports.handler = (event) => console.log(event);\")),\n\thandler: jsii.String(\"index.handler\"),\n\truntime: lambda.runtime_NODEJS_12_X(),\n})\n\n// A custom rule that runs on configuration changes of EC2 instances\ncustomRule := config.NewCustomRule(this, jsii.String(\"Custom\"), &customRuleProps{\n\tconfigurationChanges: jsii.Boolean(true),\n\tlambdaFunction: evalComplianceFn,\n\truleScope: config.ruleScope.fromResource(config.resourceType_EC2_INSTANCE()),\n})\n\n// A rule to detect stack drifts\ndriftRule := config.NewCloudFormationStackDriftDetectionCheck(this, jsii.String(\"Drift\"))\n\n// Topic to which compliance notification events will be published\ncomplianceTopic := sns.NewTopic(this, jsii.String(\"ComplianceTopic\"))\n\n// Send notification on compliance change events\ndriftRule.onComplianceChange(jsii.String(\"ComplianceChange\"), &onEventOptions{\n\ttarget: targets.NewSnsTopic(complianceTopic),\n})",
|
4431 | "version": "1"
|
4432 | },
|
4433 | "$": {
|
4434 | "source": "// Lambda function containing logic that evaluates compliance with the rule.\nconst evalComplianceFn = new lambda.Function(this, 'CustomFunction', {\n code: lambda.AssetCode.fromInline('exports.handler = (event) => console.log(event);'),\n handler: 'index.handler',\n runtime: lambda.Runtime.NODEJS_12_X,\n});\n\n// A custom rule that runs on configuration changes of EC2 instances\nconst customRule = new config.CustomRule(this, 'Custom', {\n configurationChanges: true,\n lambdaFunction: evalComplianceFn,\n ruleScope: config.RuleScope.fromResource(config.ResourceType.EC2_INSTANCE),\n});\n\n// A rule to detect stack drifts\nconst driftRule = new config.CloudFormationStackDriftDetectionCheck(this, 'Drift');\n\n// Topic to which compliance notification events will be published\nconst complianceTopic = new sns.Topic(this, 'ComplianceTopic');\n\n// Send notification on compliance change events\ndriftRule.onComplianceChange('ComplianceChange', {\n target: new targets.SnsTopic(complianceTopic),\n});",
|
4435 | "version": "0"
|
4436 | }
|
4437 | },
|
4438 | "location": {
|
4439 | "api": {
|
4440 | "api": "type",
|
4441 | "fqn": "@aws-cdk/aws-events.OnEventOptions"
|
4442 | },
|
4443 | "field": {
|
4444 | "field": "example"
|
4445 | }
|
4446 | },
|
4447 | "didCompile": true,
|
4448 | "fqnsReferenced": [
|
4449 | "@aws-cdk/aws-config.CloudFormationStackDriftDetectionCheck",
|
4450 | "@aws-cdk/aws-config.CustomRule",
|
4451 | "@aws-cdk/aws-config.CustomRuleProps",
|
4452 | "@aws-cdk/aws-config.ResourceType",
|
4453 | "@aws-cdk/aws-config.ResourceType#EC2_INSTANCE",
|
4454 | "@aws-cdk/aws-config.RuleScope",
|
4455 | "@aws-cdk/aws-config.RuleScope#fromResource",
|
4456 | "@aws-cdk/aws-events-targets.SnsTopic",
|
4457 | "@aws-cdk/aws-events.IRuleTarget",
|
4458 | "@aws-cdk/aws-events.OnEventOptions",
|
4459 | "@aws-cdk/aws-lambda.AssetCode",
|
4460 | "@aws-cdk/aws-lambda.Code",
|
4461 | "@aws-cdk/aws-lambda.Code#fromInline",
|
4462 | "@aws-cdk/aws-lambda.Function",
|
4463 | "@aws-cdk/aws-lambda.FunctionProps",
|
4464 | "@aws-cdk/aws-lambda.IFunction",
|
4465 | "@aws-cdk/aws-lambda.Runtime",
|
4466 | "@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
|
4467 | "@aws-cdk/aws-sns.ITopic",
|
4468 | "@aws-cdk/aws-sns.Topic",
|
4469 | "constructs.Construct"
|
4470 | ],
|
4471 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as config from '@aws-cdk/aws-config';\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as sns from '@aws-cdk/aws-sns';\nimport * as lambda from '@aws-cdk/aws-lambda';\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// Lambda function containing logic that evaluates compliance with the rule.\nconst evalComplianceFn = new lambda.Function(this, 'CustomFunction', {\n code: lambda.AssetCode.fromInline('exports.handler = (event) => console.log(event);'),\n handler: 'index.handler',\n runtime: lambda.Runtime.NODEJS_12_X,\n});\n\n// A custom rule that runs on configuration changes of EC2 instances\nconst customRule = new config.CustomRule(this, 'Custom', {\n configurationChanges: true,\n lambdaFunction: evalComplianceFn,\n ruleScope: config.RuleScope.fromResource(config.ResourceType.EC2_INSTANCE),\n});\n\n// A rule to detect stack drifts\nconst driftRule = new config.CloudFormationStackDriftDetectionCheck(this, 'Drift');\n\n// Topic to which compliance notification events will be published\nconst complianceTopic = new sns.Topic(this, 'ComplianceTopic');\n\n// Send notification on compliance change events\ndriftRule.onComplianceChange('ComplianceChange', {\n target: new targets.SnsTopic(complianceTopic),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
4472 | "syntaxKindCounter": {
|
4473 | "10": 7,
|
4474 | "75": 37,
|
4475 | "104": 4,
|
4476 | "106": 1,
|
4477 | "193": 3,
|
4478 | "194": 14,
|
4479 | "196": 3,
|
4480 | "197": 5,
|
4481 | "225": 4,
|
4482 | "226": 1,
|
4483 | "242": 4,
|
4484 | "243": 4,
|
4485 | "281": 7
|
4486 | },
|
4487 | "fqnsFingerprint": "cf176815254f078c6830da4374b9f039b314ad534b46d31a4d3dcb16599ee219"
|
4488 | },
|
4489 | "34f066f4b900c44c7a1b2bafa3efa6ef014273136415e853e3b6ddc13e3cce1b": {
|
4490 | "translations": {
|
4491 | "python": {
|
4492 | "source": "import aws_cdk.aws_lambda as lambda_\n\n\nfn = lambda_.Function(self, \"MyFunc\",\n runtime=lambda_.Runtime.NODEJS_12_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"exports.handler = handler.toString()\")\n)\n\nrule = events.Rule(self, \"rule\",\n event_pattern=events.EventPattern(\n source=[\"aws.ec2\"]\n )\n)\n\nqueue = sqs.Queue(self, \"Queue\")\n\nrule.add_target(targets.LambdaFunction(fn,\n dead_letter_queue=queue, # Optional: add a dead letter queue\n max_event_age=cdk.Duration.hours(2), # Optional: set the maxEventAge retry policy\n retry_attempts=2\n))",
|
4493 | "version": "2"
|
4494 | },
|
4495 | "csharp": {
|
4496 | "source": "using Amazon.CDK.AWS.Lambda;\n\n\nFunction fn = new Function(this, \"MyFunc\", new FunctionProps {\n Runtime = Runtime.NODEJS_12_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(\"exports.handler = handler.toString()\")\n});\n\nRule rule = new Rule(this, \"rule\", new RuleProps {\n EventPattern = new EventPattern {\n Source = new [] { \"aws.ec2\" }\n }\n});\n\nQueue queue = new Queue(this, \"Queue\");\n\nrule.AddTarget(new LambdaFunction(fn, new LambdaFunctionProps {\n DeadLetterQueue = queue, // Optional: add a dead letter queue\n MaxEventAge = Duration.Hours(2), // Optional: set the maxEventAge retry policy\n RetryAttempts = 2\n}));",
|
4497 | "version": "1"
|
4498 | },
|
4499 | "java": {
|
4500 | "source": "import software.amazon.awscdk.services.lambda.*;\n\n\nFunction fn = Function.Builder.create(this, \"MyFunc\")\n .runtime(Runtime.NODEJS_12_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"exports.handler = handler.toString()\"))\n .build();\n\nRule rule = Rule.Builder.create(this, \"rule\")\n .eventPattern(EventPattern.builder()\n .source(List.of(\"aws.ec2\"))\n .build())\n .build();\n\nQueue queue = new Queue(this, \"Queue\");\n\nrule.addTarget(LambdaFunction.Builder.create(fn)\n .deadLetterQueue(queue) // Optional: add a dead letter queue\n .maxEventAge(Duration.hours(2)) // Optional: set the maxEventAge retry policy\n .retryAttempts(2)\n .build());",
|
4501 | "version": "1"
|
4502 | },
|
4503 | "go": {
|
4504 | "source": "import lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\n\nfn := lambda.NewFunction(this, jsii.String(\"MyFunc\"), &functionProps{\n\truntime: lambda.runtime_NODEJS_12_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromInline(jsii.String(\"exports.handler = handler.toString()\")),\n})\n\nrule := events.NewRule(this, jsii.String(\"rule\"), &ruleProps{\n\teventPattern: &eventPattern{\n\t\tsource: []*string{\n\t\t\tjsii.String(\"aws.ec2\"),\n\t\t},\n\t},\n})\n\nqueue := sqs.NewQueue(this, jsii.String(\"Queue\"))\n\nrule.addTarget(targets.NewLambdaFunction(fn, &lambdaFunctionProps{\n\tdeadLetterQueue: queue,\n\t // Optional: add a dead letter queue\n\tmaxEventAge: cdk.duration.hours(jsii.Number(2)),\n\t // Optional: set the maxEventAge retry policy\n\tretryAttempts: jsii.Number(2),\n}))",
|
4505 | "version": "1"
|
4506 | },
|
4507 | "$": {
|
4508 | "source": "import * as lambda from '@aws-cdk/aws-lambda';\n\nconst fn = new lambda.Function(this, 'MyFunc', {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`exports.handler = handler.toString()`),\n});\n\nconst rule = new events.Rule(this, 'rule', {\n eventPattern: {\n source: [\"aws.ec2\"],\n },\n});\n\nconst queue = new sqs.Queue(this, 'Queue');\n\nrule.addTarget(new targets.LambdaFunction(fn, {\n deadLetterQueue: queue, // Optional: add a dead letter queue\n maxEventAge: cdk.Duration.hours(2), // Optional: set the maxEventAge retry policy\n retryAttempts: 2, // Optional: set the max number of retry attempts\n}));",
|
4509 | "version": "0"
|
4510 | }
|
4511 | },
|
4512 | "location": {
|
4513 | "api": {
|
4514 | "api": "type",
|
4515 | "fqn": "@aws-cdk/aws-events.Rule"
|
4516 | },
|
4517 | "field": {
|
4518 | "field": "example"
|
4519 | }
|
4520 | },
|
4521 | "didCompile": true,
|
4522 | "fqnsReferenced": [
|
4523 | "@aws-cdk/aws-events-targets.LambdaFunction",
|
4524 | "@aws-cdk/aws-events-targets.LambdaFunctionProps",
|
4525 | "@aws-cdk/aws-events.EventPattern",
|
4526 | "@aws-cdk/aws-events.IRuleTarget",
|
4527 | "@aws-cdk/aws-events.Rule",
|
4528 | "@aws-cdk/aws-events.Rule#addTarget",
|
4529 | "@aws-cdk/aws-events.RuleProps",
|
4530 | "@aws-cdk/aws-lambda.Code",
|
4531 | "@aws-cdk/aws-lambda.Code#fromInline",
|
4532 | "@aws-cdk/aws-lambda.Function",
|
4533 | "@aws-cdk/aws-lambda.FunctionProps",
|
4534 | "@aws-cdk/aws-lambda.IFunction",
|
4535 | "@aws-cdk/aws-lambda.Runtime",
|
4536 | "@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
|
4537 | "@aws-cdk/aws-sqs.IQueue",
|
4538 | "@aws-cdk/aws-sqs.Queue",
|
4539 | "@aws-cdk/core.Duration",
|
4540 | "@aws-cdk/core.Duration#hours",
|
4541 | "constructs.Construct"
|
4542 | ],
|
4543 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as lambda from '@aws-cdk/aws-lambda';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 fn = new lambda.Function(this, 'MyFunc', {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`exports.handler = handler.toString()`),\n});\n\nconst rule = new events.Rule(this, 'rule', {\n eventPattern: {\n source: [\"aws.ec2\"],\n },\n});\n\nconst queue = new sqs.Queue(this, 'Queue');\n\nrule.addTarget(new targets.LambdaFunction(fn, {\n deadLetterQueue: queue, // Optional: add a dead letter queue\n maxEventAge: cdk.Duration.hours(2), // Optional: set the maxEventAge retry policy\n retryAttempts: 2, // Optional: set the max number of retry attempts\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4544 | "syntaxKindCounter": {
|
4545 | "8": 2,
|
4546 | "10": 6,
|
4547 | "14": 1,
|
4548 | "75": 33,
|
4549 | "104": 3,
|
4550 | "192": 1,
|
4551 | "193": 4,
|
4552 | "194": 11,
|
4553 | "196": 3,
|
4554 | "197": 4,
|
4555 | "225": 3,
|
4556 | "226": 1,
|
4557 | "242": 3,
|
4558 | "243": 3,
|
4559 | "254": 1,
|
4560 | "255": 1,
|
4561 | "256": 1,
|
4562 | "281": 8,
|
4563 | "290": 1
|
4564 | },
|
4565 | "fqnsFingerprint": "1e7953352d3772efd5e6b47691167dfe668c5dfd26b2a16116b20bc5597eb25f"
|
4566 | },
|
4567 | "dbded07a460f5dd5718c155a750926e48aab9012edfc4589660a59cca9f5c0a8": {
|
4568 | "translations": {
|
4569 | "python": {
|
4570 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
4571 | "version": "2"
|
4572 | },
|
4573 | "csharp": {
|
4574 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
4575 | "version": "1"
|
4576 | },
|
4577 | "java": {
|
4578 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
4579 | "version": "1"
|
4580 | },
|
4581 | "go": {
|
4582 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
4583 | "version": "1"
|
4584 | },
|
4585 | "$": {
|
4586 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
4587 | "version": "0"
|
4588 | }
|
4589 | },
|
4590 | "location": {
|
4591 | "api": {
|
4592 | "api": "type",
|
4593 | "fqn": "@aws-cdk/aws-events.RuleProps"
|
4594 | },
|
4595 | "field": {
|
4596 | "field": "example"
|
4597 | }
|
4598 | },
|
4599 | "didCompile": true,
|
4600 | "fqnsReferenced": [
|
4601 | "@aws-cdk/aws-events-targets.ApiDestination",
|
4602 | "@aws-cdk/aws-events.ApiDestination",
|
4603 | "@aws-cdk/aws-events.ApiDestinationProps",
|
4604 | "@aws-cdk/aws-events.Authorization",
|
4605 | "@aws-cdk/aws-events.Authorization#apiKey",
|
4606 | "@aws-cdk/aws-events.Connection",
|
4607 | "@aws-cdk/aws-events.ConnectionProps",
|
4608 | "@aws-cdk/aws-events.IApiDestination",
|
4609 | "@aws-cdk/aws-events.IConnection",
|
4610 | "@aws-cdk/aws-events.Rule",
|
4611 | "@aws-cdk/aws-events.RuleProps",
|
4612 | "@aws-cdk/aws-events.Schedule",
|
4613 | "@aws-cdk/aws-events.Schedule#rate",
|
4614 | "@aws-cdk/core.Duration",
|
4615 | "@aws-cdk/core.Duration#minutes",
|
4616 | "@aws-cdk/core.SecretValue",
|
4617 | "@aws-cdk/core.SecretValue#secretsManager",
|
4618 | "constructs.Construct"
|
4619 | ],
|
4620 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4621 | "syntaxKindCounter": {
|
4622 | "8": 1,
|
4623 | "10": 8,
|
4624 | "75": 30,
|
4625 | "104": 3,
|
4626 | "192": 1,
|
4627 | "193": 3,
|
4628 | "194": 11,
|
4629 | "196": 4,
|
4630 | "197": 4,
|
4631 | "225": 3,
|
4632 | "242": 3,
|
4633 | "243": 3,
|
4634 | "281": 6,
|
4635 | "282": 1
|
4636 | },
|
4637 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
4638 | },
|
4639 | "e5297a1ca5e26e389e2a23559a83b53b82dc8aff2fbd0003656fc60b37b6f89a": {
|
4640 | "translations": {
|
4641 | "python": {
|
4642 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\nimport aws_cdk.aws_iam as iam\nimport aws_cdk.core as cdk\n\n# construct: cdk.Construct\n# role: iam.Role\n# rule_target_input: events.RuleTargetInput\n\nrule_target_config = events.RuleTargetConfig(\n arn=\"arn\",\n\n # the properties below are optional\n batch_parameters=events.CfnRule.BatchParametersProperty(\n job_definition=\"jobDefinition\",\n job_name=\"jobName\",\n\n # the properties below are optional\n array_properties=events.CfnRule.BatchArrayPropertiesProperty(\n size=123\n ),\n retry_strategy=events.CfnRule.BatchRetryStrategyProperty(\n attempts=123\n )\n ),\n dead_letter_config=events.CfnRule.DeadLetterConfigProperty(\n arn=\"arn\"\n ),\n ecs_parameters=events.CfnRule.EcsParametersProperty(\n task_definition_arn=\"taskDefinitionArn\",\n\n # the properties below are optional\n capacity_provider_strategy=[events.CfnRule.CapacityProviderStrategyItemProperty(\n capacity_provider=\"capacityProvider\",\n\n # the properties below are optional\n base=123,\n weight=123\n )],\n enable_ecs_managed_tags=False,\n enable_execute_command=False,\n group=\"group\",\n launch_type=\"launchType\",\n network_configuration=events.CfnRule.NetworkConfigurationProperty(\n aws_vpc_configuration=events.CfnRule.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=[events.CfnRule.PlacementConstraintProperty(\n expression=\"expression\",\n type=\"type\"\n )],\n placement_strategies=[events.CfnRule.PlacementStrategyProperty(\n field=\"field\",\n type=\"type\"\n )],\n platform_version=\"platformVersion\",\n propagate_tags=\"propagateTags\",\n reference_id=\"referenceId\",\n tag_list=[cdk.CfnTag(\n key=\"key\",\n value=\"value\"\n )],\n task_count=123\n ),\n http_parameters=events.CfnRule.HttpParametersProperty(\n header_parameters={\n \"header_parameters_key\": \"headerParameters\"\n },\n path_parameter_values=[\"pathParameterValues\"],\n query_string_parameters={\n \"query_string_parameters_key\": \"queryStringParameters\"\n }\n ),\n id=\"id\",\n input=rule_target_input,\n kinesis_parameters=events.CfnRule.KinesisParametersProperty(\n partition_key_path=\"partitionKeyPath\"\n ),\n retry_policy=events.CfnRule.RetryPolicyProperty(\n maximum_event_age_in_seconds=123,\n maximum_retry_attempts=123\n ),\n role=role,\n run_command_parameters=events.CfnRule.RunCommandParametersProperty(\n run_command_targets=[events.CfnRule.RunCommandTargetProperty(\n key=\"key\",\n values=[\"values\"]\n )]\n ),\n sqs_parameters=events.CfnRule.SqsParametersProperty(\n message_group_id=\"messageGroupId\"\n ),\n target_resource=construct\n)",
|
4643 | "version": "2"
|
4644 | },
|
4645 | "csharp": {
|
4646 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\nusing Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\n\nConstruct construct;\nRole role;\nRuleTargetInput ruleTargetInput;\nRuleTargetConfig ruleTargetConfig = new RuleTargetConfig {\n Arn = \"arn\",\n\n // the properties below are optional\n BatchParameters = new BatchParametersProperty {\n JobDefinition = \"jobDefinition\",\n JobName = \"jobName\",\n\n // the properties below are optional\n ArrayProperties = new BatchArrayPropertiesProperty {\n Size = 123\n },\n RetryStrategy = new BatchRetryStrategyProperty {\n Attempts = 123\n }\n },\n DeadLetterConfig = new DeadLetterConfigProperty {\n Arn = \"arn\"\n },\n EcsParameters = new EcsParametersProperty {\n TaskDefinitionArn = \"taskDefinitionArn\",\n\n // the properties below are optional\n CapacityProviderStrategy = new [] { new CapacityProviderStrategyItemProperty {\n CapacityProvider = \"capacityProvider\",\n\n // the properties below are optional\n Base = 123,\n Weight = 123\n } },\n EnableEcsManagedTags = false,\n EnableExecuteCommand = false,\n Group = \"group\",\n LaunchType = \"launchType\",\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 Expression = \"expression\",\n Type = \"type\"\n } },\n PlacementStrategies = new [] { new PlacementStrategyProperty {\n Field = \"field\",\n Type = \"type\"\n } },\n PlatformVersion = \"platformVersion\",\n PropagateTags = \"propagateTags\",\n ReferenceId = \"referenceId\",\n TagList = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } },\n TaskCount = 123\n },\n HttpParameters = new HttpParametersProperty {\n HeaderParameters = new Dictionary<string, string> {\n { \"headerParametersKey\", \"headerParameters\" }\n },\n PathParameterValues = new [] { \"pathParameterValues\" },\n QueryStringParameters = new Dictionary<string, string> {\n { \"queryStringParametersKey\", \"queryStringParameters\" }\n }\n },\n Id = \"id\",\n Input = ruleTargetInput,\n KinesisParameters = new KinesisParametersProperty {\n PartitionKeyPath = \"partitionKeyPath\"\n },\n RetryPolicy = new RetryPolicyProperty {\n MaximumEventAgeInSeconds = 123,\n MaximumRetryAttempts = 123\n },\n Role = role,\n RunCommandParameters = new RunCommandParametersProperty {\n RunCommandTargets = new [] { new RunCommandTargetProperty {\n Key = \"key\",\n Values = new [] { \"values\" }\n } }\n },\n SqsParameters = new SqsParametersProperty {\n MessageGroupId = \"messageGroupId\"\n },\n TargetResource = construct\n};",
|
4647 | "version": "1"
|
4648 | },
|
4649 | "java": {
|
4650 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.core.*;\n\nConstruct construct;\nRole role;\nRuleTargetInput ruleTargetInput;\n\nRuleTargetConfig ruleTargetConfig = RuleTargetConfig.builder()\n .arn(\"arn\")\n\n // the properties below are optional\n .batchParameters(BatchParametersProperty.builder()\n .jobDefinition(\"jobDefinition\")\n .jobName(\"jobName\")\n\n // the properties below are optional\n .arrayProperties(BatchArrayPropertiesProperty.builder()\n .size(123)\n .build())\n .retryStrategy(BatchRetryStrategyProperty.builder()\n .attempts(123)\n .build())\n .build())\n .deadLetterConfig(DeadLetterConfigProperty.builder()\n .arn(\"arn\")\n .build())\n .ecsParameters(EcsParametersProperty.builder()\n .taskDefinitionArn(\"taskDefinitionArn\")\n\n // the properties below are optional\n .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()\n .capacityProvider(\"capacityProvider\")\n\n // the properties below are optional\n .base(123)\n .weight(123)\n .build()))\n .enableEcsManagedTags(false)\n .enableExecuteCommand(false)\n .group(\"group\")\n .launchType(\"launchType\")\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 .expression(\"expression\")\n .type(\"type\")\n .build()))\n .placementStrategies(List.of(PlacementStrategyProperty.builder()\n .field(\"field\")\n .type(\"type\")\n .build()))\n .platformVersion(\"platformVersion\")\n .propagateTags(\"propagateTags\")\n .referenceId(\"referenceId\")\n .tagList(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .taskCount(123)\n .build())\n .httpParameters(HttpParametersProperty.builder()\n .headerParameters(Map.of(\n \"headerParametersKey\", \"headerParameters\"))\n .pathParameterValues(List.of(\"pathParameterValues\"))\n .queryStringParameters(Map.of(\n \"queryStringParametersKey\", \"queryStringParameters\"))\n .build())\n .id(\"id\")\n .input(ruleTargetInput)\n .kinesisParameters(KinesisParametersProperty.builder()\n .partitionKeyPath(\"partitionKeyPath\")\n .build())\n .retryPolicy(RetryPolicyProperty.builder()\n .maximumEventAgeInSeconds(123)\n .maximumRetryAttempts(123)\n .build())\n .role(role)\n .runCommandParameters(RunCommandParametersProperty.builder()\n .runCommandTargets(List.of(RunCommandTargetProperty.builder()\n .key(\"key\")\n .values(List.of(\"values\"))\n .build()))\n .build())\n .sqsParameters(SqsParametersProperty.builder()\n .messageGroupId(\"messageGroupId\")\n .build())\n .targetResource(construct)\n .build();",
|
4651 | "version": "1"
|
4652 | },
|
4653 | "go": {
|
4654 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"import iam \"github.com/aws-samples/dummy/awscdkawsiam\"import cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar construct construct\nvar role role\nvar ruleTargetInput ruleTargetInput\nruleTargetConfig := &ruleTargetConfig{\n\tarn: jsii.String(\"arn\"),\n\n\t// the properties below are optional\n\tbatchParameters: &batchParametersProperty{\n\t\tjobDefinition: jsii.String(\"jobDefinition\"),\n\t\tjobName: jsii.String(\"jobName\"),\n\n\t\t// the properties below are optional\n\t\tarrayProperties: &batchArrayPropertiesProperty{\n\t\t\tsize: jsii.Number(123),\n\t\t},\n\t\tretryStrategy: &batchRetryStrategyProperty{\n\t\t\tattempts: jsii.Number(123),\n\t\t},\n\t},\n\tdeadLetterConfig: &deadLetterConfigProperty{\n\t\tarn: jsii.String(\"arn\"),\n\t},\n\tecsParameters: &ecsParametersProperty{\n\t\ttaskDefinitionArn: jsii.String(\"taskDefinitionArn\"),\n\n\t\t// the properties below are optional\n\t\tcapacityProviderStrategy: []interface{}{\n\t\t\t&capacityProviderStrategyItemProperty{\n\t\t\t\tcapacityProvider: jsii.String(\"capacityProvider\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tbase: jsii.Number(123),\n\t\t\t\tweight: jsii.Number(123),\n\t\t\t},\n\t\t},\n\t\tenableEcsManagedTags: jsii.Boolean(false),\n\t\tenableExecuteCommand: jsii.Boolean(false),\n\t\tgroup: jsii.String(\"group\"),\n\t\tlaunchType: jsii.String(\"launchType\"),\n\t\tnetworkConfiguration: &networkConfigurationProperty{\n\t\t\tawsVpcConfiguration: &awsVpcConfigurationProperty{\n\t\t\t\tsubnets: []*string{\n\t\t\t\t\tjsii.String(\"subnets\"),\n\t\t\t\t},\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tassignPublicIp: jsii.String(\"assignPublicIp\"),\n\t\t\t\tsecurityGroups: []*string{\n\t\t\t\t\tjsii.String(\"securityGroups\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tplacementConstraints: []interface{}{\n\t\t\t&placementConstraintProperty{\n\t\t\t\texpression: jsii.String(\"expression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tplacementStrategies: []interface{}{\n\t\t\t&placementStrategyProperty{\n\t\t\t\tfield: jsii.String(\"field\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tplatformVersion: jsii.String(\"platformVersion\"),\n\t\tpropagateTags: jsii.String(\"propagateTags\"),\n\t\treferenceId: jsii.String(\"referenceId\"),\n\t\ttagList: []interface{}{\n\t\t\t&cfnTag{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t},\n\t\t},\n\t\ttaskCount: jsii.Number(123),\n\t},\n\thttpParameters: &httpParametersProperty{\n\t\theaderParameters: map[string]*string{\n\t\t\t\"headerParametersKey\": jsii.String(\"headerParameters\"),\n\t\t},\n\t\tpathParameterValues: []*string{\n\t\t\tjsii.String(\"pathParameterValues\"),\n\t\t},\n\t\tqueryStringParameters: map[string]*string{\n\t\t\t\"queryStringParametersKey\": jsii.String(\"queryStringParameters\"),\n\t\t},\n\t},\n\tid: jsii.String(\"id\"),\n\tinput: ruleTargetInput,\n\tkinesisParameters: &kinesisParametersProperty{\n\t\tpartitionKeyPath: jsii.String(\"partitionKeyPath\"),\n\t},\n\tretryPolicy: &retryPolicyProperty{\n\t\tmaximumEventAgeInSeconds: jsii.Number(123),\n\t\tmaximumRetryAttempts: jsii.Number(123),\n\t},\n\trole: role,\n\trunCommandParameters: &runCommandParametersProperty{\n\t\trunCommandTargets: []interface{}{\n\t\t\t&runCommandTargetProperty{\n\t\t\t\tkey: jsii.String(\"key\"),\n\t\t\t\tvalues: []*string{\n\t\t\t\t\tjsii.String(\"values\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tsqsParameters: &sqsParametersProperty{\n\t\tmessageGroupId: jsii.String(\"messageGroupId\"),\n\t},\n\ttargetResource: construct,\n}",
|
4655 | "version": "1"
|
4656 | },
|
4657 | "$": {
|
4658 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const construct: cdk.Construct;\ndeclare const role: iam.Role;\ndeclare const ruleTargetInput: events.RuleTargetInput;\nconst ruleTargetConfig: events.RuleTargetConfig = {\n arn: 'arn',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n id: 'id',\n input: ruleTargetInput,\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n role: role,\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n targetResource: construct,\n};",
|
4659 | "version": "0"
|
4660 | }
|
4661 | },
|
4662 | "location": {
|
4663 | "api": {
|
4664 | "api": "type",
|
4665 | "fqn": "@aws-cdk/aws-events.RuleTargetConfig"
|
4666 | },
|
4667 | "field": {
|
4668 | "field": "example"
|
4669 | }
|
4670 | },
|
4671 | "didCompile": true,
|
4672 | "fqnsReferenced": [
|
4673 | "@aws-cdk/aws-events.CfnRule.BatchParametersProperty",
|
4674 | "@aws-cdk/aws-events.CfnRule.DeadLetterConfigProperty",
|
4675 | "@aws-cdk/aws-events.CfnRule.EcsParametersProperty",
|
4676 | "@aws-cdk/aws-events.CfnRule.HttpParametersProperty",
|
4677 | "@aws-cdk/aws-events.CfnRule.KinesisParametersProperty",
|
4678 | "@aws-cdk/aws-events.CfnRule.RetryPolicyProperty",
|
4679 | "@aws-cdk/aws-events.CfnRule.RunCommandParametersProperty",
|
4680 | "@aws-cdk/aws-events.CfnRule.SqsParametersProperty",
|
4681 | "@aws-cdk/aws-events.RuleTargetConfig",
|
4682 | "@aws-cdk/aws-events.RuleTargetInput",
|
4683 | "@aws-cdk/aws-iam.IRole",
|
4684 | "@aws-cdk/core.IConstruct"
|
4685 | ],
|
4686 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const construct: cdk.Construct;\ndeclare const role: iam.Role;\ndeclare const ruleTargetInput: events.RuleTargetInput;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ruleTargetConfig: events.RuleTargetConfig = {\n arn: 'arn',\n\n // the properties below are optional\n batchParameters: {\n jobDefinition: 'jobDefinition',\n jobName: 'jobName',\n\n // the properties below are optional\n arrayProperties: {\n size: 123,\n },\n retryStrategy: {\n attempts: 123,\n },\n },\n deadLetterConfig: {\n arn: 'arn',\n },\n ecsParameters: {\n taskDefinitionArn: 'taskDefinitionArn',\n\n // the properties below are optional\n capacityProviderStrategy: [{\n capacityProvider: 'capacityProvider',\n\n // the properties below are optional\n base: 123,\n weight: 123,\n }],\n enableEcsManagedTags: false,\n enableExecuteCommand: false,\n group: 'group',\n launchType: 'launchType',\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 expression: 'expression',\n type: 'type',\n }],\n placementStrategies: [{\n field: 'field',\n type: 'type',\n }],\n platformVersion: 'platformVersion',\n propagateTags: 'propagateTags',\n referenceId: 'referenceId',\n tagList: [{\n key: 'key',\n value: 'value',\n }],\n taskCount: 123,\n },\n httpParameters: {\n headerParameters: {\n headerParametersKey: 'headerParameters',\n },\n pathParameterValues: ['pathParameterValues'],\n queryStringParameters: {\n queryStringParametersKey: 'queryStringParameters',\n },\n },\n id: 'id',\n input: ruleTargetInput,\n kinesisParameters: {\n partitionKeyPath: 'partitionKeyPath',\n },\n retryPolicy: {\n maximumEventAgeInSeconds: 123,\n maximumRetryAttempts: 123,\n },\n role: role,\n runCommandParameters: {\n runCommandTargets: [{\n key: 'key',\n values: ['values'],\n }],\n },\n sqsParameters: {\n messageGroupId: 'messageGroupId',\n },\n targetResource: construct,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4687 | "syntaxKindCounter": {
|
4688 | "8": 7,
|
4689 | "10": 31,
|
4690 | "75": 77,
|
4691 | "91": 2,
|
4692 | "130": 3,
|
4693 | "153": 4,
|
4694 | "169": 4,
|
4695 | "192": 9,
|
4696 | "193": 20,
|
4697 | "225": 4,
|
4698 | "242": 4,
|
4699 | "243": 4,
|
4700 | "254": 3,
|
4701 | "255": 3,
|
4702 | "256": 3,
|
4703 | "281": 59,
|
4704 | "290": 1
|
4705 | },
|
4706 | "fqnsFingerprint": "9db2211f548a0868096ea5d098934388ae6fa52034e068c9424af8531016b02b"
|
4707 | },
|
4708 | "11d5e511ef5f7e859fe55d7aecaf5dd6a7ef436232ad0ed92451a194351876d7": {
|
4709 | "translations": {
|
4710 | "python": {
|
4711 | "source": "import aws_cdk.aws_iam as iam\nimport aws_cdk.aws_stepfunctions as sfn\n\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1))\n)\n\ndlq = sqs.Queue(self, \"DeadLetterQueue\")\n\nrole = iam.Role(self, \"Role\",\n assumed_by=iam.ServicePrincipal(\"events.amazonaws.com\")\n)\nstate_machine = sfn.StateMachine(self, \"SM\",\n definition=sfn.Wait(self, \"Hello\", time=sfn.WaitTime.duration(cdk.Duration.seconds(10)))\n)\n\nrule.add_target(targets.SfnStateMachine(state_machine,\n input=events.RuleTargetInput.from_object({\"SomeParam\": \"SomeValue\"}),\n dead_letter_queue=dlq,\n role=role\n))",
|
4712 | "version": "2"
|
4713 | },
|
4714 | "csharp": {
|
4715 | "source": "using Amazon.CDK.AWS.IAM;\nusing Amazon.CDK.AWS.StepFunctions;\n\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1))\n});\n\nQueue dlq = new Queue(this, \"DeadLetterQueue\");\n\nRole role = new Role(this, \"Role\", new RoleProps {\n AssumedBy = new ServicePrincipal(\"events.amazonaws.com\")\n});\nStateMachine stateMachine = new StateMachine(this, \"SM\", new StateMachineProps {\n Definition = new Wait(this, \"Hello\", new WaitProps { Time = WaitTime.Duration(Duration.Seconds(10)) })\n});\n\nrule.AddTarget(new SfnStateMachine(stateMachine, new SfnStateMachineProps {\n Input = RuleTargetInput.FromObject(new Dictionary<string, string> { { \"SomeParam\", \"SomeValue\" } }),\n DeadLetterQueue = dlq,\n Role = role\n}));",
|
4716 | "version": "1"
|
4717 | },
|
4718 | "java": {
|
4719 | "source": "import software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.services.stepfunctions.*;\n\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .build();\n\nQueue dlq = new Queue(this, \"DeadLetterQueue\");\n\nRole role = Role.Builder.create(this, \"Role\")\n .assumedBy(new ServicePrincipal(\"events.amazonaws.com\"))\n .build();\nStateMachine stateMachine = StateMachine.Builder.create(this, \"SM\")\n .definition(Wait.Builder.create(this, \"Hello\").time(WaitTime.duration(Duration.seconds(10))).build())\n .build();\n\nrule.addTarget(SfnStateMachine.Builder.create(stateMachine)\n .input(RuleTargetInput.fromObject(Map.of(\"SomeParam\", \"SomeValue\")))\n .deadLetterQueue(dlq)\n .role(role)\n .build());",
|
4720 | "version": "1"
|
4721 | },
|
4722 | "go": {
|
4723 | "source": "import iam \"github.com/aws-samples/dummy/awscdkawsiam\"import sfn \"github.com/aws-samples/dummy/awscdkawsstepfunctions\"\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n})\n\ndlq := sqs.NewQueue(this, jsii.String(\"DeadLetterQueue\"))\n\nrole := iam.NewRole(this, jsii.String(\"Role\"), &roleProps{\n\tassumedBy: iam.NewServicePrincipal(jsii.String(\"events.amazonaws.com\")),\n})\nstateMachine := sfn.NewStateMachine(this, jsii.String(\"SM\"), &stateMachineProps{\n\tdefinition: sfn.NewWait(this, jsii.String(\"Hello\"), &waitProps{\n\t\ttime: sfn.waitTime.duration(cdk.*duration.seconds(jsii.Number(10))),\n\t}),\n})\n\nrule.addTarget(targets.NewSfnStateMachine(stateMachine, &sfnStateMachineProps{\n\tinput: events.ruleTargetInput.fromObject(map[string]*string{\n\t\t\"SomeParam\": jsii.String(\"SomeValue\"),\n\t}),\n\tdeadLetterQueue: dlq,\n\trole: role,\n}))",
|
4724 | "version": "1"
|
4725 | },
|
4726 | "$": {
|
4727 | "source": "import * as iam from '@aws-cdk/aws-iam';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n});\n\nconst dlq = new sqs.Queue(this, 'DeadLetterQueue');\n\nconst role = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('events.amazonaws.com'),\n});\nconst stateMachine = new sfn.StateMachine(this, 'SM', {\n definition: new sfn.Wait(this, 'Hello', { time: sfn.WaitTime.duration(cdk.Duration.seconds(10)) })\n});\n\nrule.addTarget(new targets.SfnStateMachine(stateMachine, {\n input: events.RuleTargetInput.fromObject({ SomeParam: 'SomeValue' }),\n deadLetterQueue: dlq,\n role: role\n}));",
|
4728 | "version": "0"
|
4729 | }
|
4730 | },
|
4731 | "location": {
|
4732 | "api": {
|
4733 | "api": "type",
|
4734 | "fqn": "@aws-cdk/aws-events.RuleTargetInput"
|
4735 | },
|
4736 | "field": {
|
4737 | "field": "example"
|
4738 | }
|
4739 | },
|
4740 | "didCompile": true,
|
4741 | "fqnsReferenced": [
|
4742 | "@aws-cdk/aws-events-targets.SfnStateMachine",
|
4743 | "@aws-cdk/aws-events-targets.SfnStateMachineProps",
|
4744 | "@aws-cdk/aws-events.IRuleTarget",
|
4745 | "@aws-cdk/aws-events.Rule",
|
4746 | "@aws-cdk/aws-events.Rule#addTarget",
|
4747 | "@aws-cdk/aws-events.RuleProps",
|
4748 | "@aws-cdk/aws-events.RuleTargetInput",
|
4749 | "@aws-cdk/aws-events.RuleTargetInput#fromObject",
|
4750 | "@aws-cdk/aws-events.Schedule",
|
4751 | "@aws-cdk/aws-events.Schedule#rate",
|
4752 | "@aws-cdk/aws-iam.IPrincipal",
|
4753 | "@aws-cdk/aws-iam.IRole",
|
4754 | "@aws-cdk/aws-iam.Role",
|
4755 | "@aws-cdk/aws-iam.RoleProps",
|
4756 | "@aws-cdk/aws-iam.ServicePrincipal",
|
4757 | "@aws-cdk/aws-sqs.IQueue",
|
4758 | "@aws-cdk/aws-sqs.Queue",
|
4759 | "@aws-cdk/aws-stepfunctions.IChainable",
|
4760 | "@aws-cdk/aws-stepfunctions.IStateMachine",
|
4761 | "@aws-cdk/aws-stepfunctions.StateMachine",
|
4762 | "@aws-cdk/aws-stepfunctions.StateMachineProps",
|
4763 | "@aws-cdk/aws-stepfunctions.Wait",
|
4764 | "@aws-cdk/aws-stepfunctions.WaitProps",
|
4765 | "@aws-cdk/aws-stepfunctions.WaitTime",
|
4766 | "@aws-cdk/aws-stepfunctions.WaitTime#duration",
|
4767 | "@aws-cdk/core.Duration",
|
4768 | "@aws-cdk/core.Duration#minutes",
|
4769 | "@aws-cdk/core.Duration#seconds",
|
4770 | "constructs.Construct"
|
4771 | ],
|
4772 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as iam from '@aws-cdk/aws-iam';\nimport * as sfn from '@aws-cdk/aws-stepfunctions';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n});\n\nconst dlq = new sqs.Queue(this, 'DeadLetterQueue');\n\nconst role = new iam.Role(this, 'Role', {\n assumedBy: new iam.ServicePrincipal('events.amazonaws.com'),\n});\nconst stateMachine = new sfn.StateMachine(this, 'SM', {\n definition: new sfn.Wait(this, 'Hello', { time: sfn.WaitTime.duration(cdk.Duration.seconds(10)) })\n});\n\nrule.addTarget(new targets.SfnStateMachine(stateMachine, {\n input: events.RuleTargetInput.fromObject({ SomeParam: 'SomeValue' }),\n deadLetterQueue: dlq,\n role: role\n}));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4773 | "syntaxKindCounter": {
|
4774 | "8": 2,
|
4775 | "10": 9,
|
4776 | "75": 48,
|
4777 | "104": 5,
|
4778 | "193": 6,
|
4779 | "194": 18,
|
4780 | "196": 6,
|
4781 | "197": 7,
|
4782 | "225": 4,
|
4783 | "226": 1,
|
4784 | "242": 4,
|
4785 | "243": 4,
|
4786 | "254": 2,
|
4787 | "255": 2,
|
4788 | "256": 2,
|
4789 | "281": 8,
|
4790 | "290": 1
|
4791 | },
|
4792 | "fqnsFingerprint": "036871d5d33ea7eb403b491d2ba13cb45550f42ab0148bc41d52ca1c997fd684"
|
4793 | },
|
4794 | "c6dcded4a7a92f4a94051a3744aba4f517a7eceb7e60d081cebdcae1e17e11f8": {
|
4795 | "translations": {
|
4796 | "python": {
|
4797 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_events as events\n\nrule_target_input_properties = events.RuleTargetInputProperties(\n input=\"input\",\n input_path=\"inputPath\",\n input_paths_map={\n \"input_paths_map_key\": \"inputPathsMap\"\n },\n input_template=\"inputTemplate\"\n)",
|
4798 | "version": "2"
|
4799 | },
|
4800 | "csharp": {
|
4801 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Events;\n\nRuleTargetInputProperties ruleTargetInputProperties = new RuleTargetInputProperties {\n Input = \"input\",\n InputPath = \"inputPath\",\n InputPathsMap = new Dictionary<string, string> {\n { \"inputPathsMapKey\", \"inputPathsMap\" }\n },\n InputTemplate = \"inputTemplate\"\n};",
|
4802 | "version": "1"
|
4803 | },
|
4804 | "java": {
|
4805 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.events.*;\n\nRuleTargetInputProperties ruleTargetInputProperties = RuleTargetInputProperties.builder()\n .input(\"input\")\n .inputPath(\"inputPath\")\n .inputPathsMap(Map.of(\n \"inputPathsMapKey\", \"inputPathsMap\"))\n .inputTemplate(\"inputTemplate\")\n .build();",
|
4806 | "version": "1"
|
4807 | },
|
4808 | "go": {
|
4809 | "source": "import events \"github.com/aws-samples/dummy/awscdkawsevents\"\nruleTargetInputProperties := &ruleTargetInputProperties{\n\tinput: jsii.String(\"input\"),\n\tinputPath: jsii.String(\"inputPath\"),\n\tinputPathsMap: map[string]*string{\n\t\t\"inputPathsMapKey\": jsii.String(\"inputPathsMap\"),\n\t},\n\tinputTemplate: jsii.String(\"inputTemplate\"),\n}",
|
4810 | "version": "1"
|
4811 | },
|
4812 | "$": {
|
4813 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\nconst ruleTargetInputProperties: events.RuleTargetInputProperties = {\n input: 'input',\n inputPath: 'inputPath',\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n inputTemplate: 'inputTemplate',\n};",
|
4814 | "version": "0"
|
4815 | }
|
4816 | },
|
4817 | "location": {
|
4818 | "api": {
|
4819 | "api": "type",
|
4820 | "fqn": "@aws-cdk/aws-events.RuleTargetInputProperties"
|
4821 | },
|
4822 | "field": {
|
4823 | "field": "example"
|
4824 | }
|
4825 | },
|
4826 | "didCompile": true,
|
4827 | "fqnsReferenced": [
|
4828 | "@aws-cdk/aws-events.RuleTargetInputProperties"
|
4829 | ],
|
4830 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as events from '@aws-cdk/aws-events';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst ruleTargetInputProperties: events.RuleTargetInputProperties = {\n input: 'input',\n inputPath: 'inputPath',\n inputPathsMap: {\n inputPathsMapKey: 'inputPathsMap',\n },\n inputTemplate: 'inputTemplate',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
4831 | "syntaxKindCounter": {
|
4832 | "10": 5,
|
4833 | "75": 9,
|
4834 | "153": 1,
|
4835 | "169": 1,
|
4836 | "193": 2,
|
4837 | "225": 1,
|
4838 | "242": 1,
|
4839 | "243": 1,
|
4840 | "254": 1,
|
4841 | "255": 1,
|
4842 | "256": 1,
|
4843 | "281": 5,
|
4844 | "290": 1
|
4845 | },
|
4846 | "fqnsFingerprint": "93becb82b26f8caee98df55f55886dde35020dcd54684544a7332e01e4b61f40"
|
4847 | },
|
4848 | "eee0d8ba118c50d9f8633cea1b62a6d03bcfcdf4fba248a9797a09c212aa7f28": {
|
4849 | "translations": {
|
4850 | "python": {
|
4851 | "source": "connection = events.Connection(self, \"Connection\",\n authorization=events.Authorization.api_key(\"x-api-key\", SecretValue.secrets_manager(\"ApiSecretName\")),\n description=\"Connection with API Key x-api-key\"\n)\n\ndestination = events.ApiDestination(self, \"Destination\",\n connection=connection,\n endpoint=\"https://example.com\",\n description=\"Calling example.com with API key x-api-key\"\n)\n\nrule = events.Rule(self, \"Rule\",\n schedule=events.Schedule.rate(cdk.Duration.minutes(1)),\n targets=[targets.ApiDestination(destination)]\n)",
|
4852 | "version": "2"
|
4853 | },
|
4854 | "csharp": {
|
4855 | "source": "Connection connection = new Connection(this, \"Connection\", new ConnectionProps {\n Authorization = Authorization.ApiKey(\"x-api-key\", SecretValue.SecretsManager(\"ApiSecretName\")),\n Description = \"Connection with API Key x-api-key\"\n});\n\nApiDestination destination = new ApiDestination(this, \"Destination\", new ApiDestinationProps {\n Connection = connection,\n Endpoint = \"https://example.com\",\n Description = \"Calling example.com with API key x-api-key\"\n});\n\nRule rule = new Rule(this, \"Rule\", new RuleProps {\n Schedule = Schedule.Rate(Duration.Minutes(1)),\n Targets = new [] { new ApiDestination(destination) }\n});",
|
4856 | "version": "1"
|
4857 | },
|
4858 | "java": {
|
4859 | "source": "Connection connection = Connection.Builder.create(this, \"Connection\")\n .authorization(Authorization.apiKey(\"x-api-key\", SecretValue.secretsManager(\"ApiSecretName\")))\n .description(\"Connection with API Key x-api-key\")\n .build();\n\nApiDestination destination = ApiDestination.Builder.create(this, \"Destination\")\n .connection(connection)\n .endpoint(\"https://example.com\")\n .description(\"Calling example.com with API key x-api-key\")\n .build();\n\nRule rule = Rule.Builder.create(this, \"Rule\")\n .schedule(Schedule.rate(Duration.minutes(1)))\n .targets(List.of(new ApiDestination(destination)))\n .build();",
|
4860 | "version": "1"
|
4861 | },
|
4862 | "go": {
|
4863 | "source": "connection := events.NewConnection(this, jsii.String(\"Connection\"), &connectionProps{\n\tauthorization: events.authorization.apiKey(jsii.String(\"x-api-key\"), secretValue.secretsManager(jsii.String(\"ApiSecretName\"))),\n\tdescription: jsii.String(\"Connection with API Key x-api-key\"),\n})\n\ndestination := events.NewApiDestination(this, jsii.String(\"Destination\"), &apiDestinationProps{\n\tconnection: connection,\n\tendpoint: jsii.String(\"https://example.com\"),\n\tdescription: jsii.String(\"Calling example.com with API key x-api-key\"),\n})\n\nrule := events.NewRule(this, jsii.String(\"Rule\"), &ruleProps{\n\tschedule: events.schedule.rate(cdk.duration.minutes(jsii.Number(1))),\n\ttargets: []iRuleTarget{\n\t\ttargets.NewApiDestination(destination),\n\t},\n})",
|
4864 | "version": "1"
|
4865 | },
|
4866 | "$": {
|
4867 | "source": "const connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});",
|
4868 | "version": "0"
|
4869 | }
|
4870 | },
|
4871 | "location": {
|
4872 | "api": {
|
4873 | "api": "type",
|
4874 | "fqn": "@aws-cdk/aws-events.Schedule"
|
4875 | },
|
4876 | "field": {
|
4877 | "field": "example"
|
4878 | }
|
4879 | },
|
4880 | "didCompile": true,
|
4881 | "fqnsReferenced": [
|
4882 | "@aws-cdk/aws-events-targets.ApiDestination",
|
4883 | "@aws-cdk/aws-events.ApiDestination",
|
4884 | "@aws-cdk/aws-events.ApiDestinationProps",
|
4885 | "@aws-cdk/aws-events.Authorization",
|
4886 | "@aws-cdk/aws-events.Authorization#apiKey",
|
4887 | "@aws-cdk/aws-events.Connection",
|
4888 | "@aws-cdk/aws-events.ConnectionProps",
|
4889 | "@aws-cdk/aws-events.IApiDestination",
|
4890 | "@aws-cdk/aws-events.IConnection",
|
4891 | "@aws-cdk/aws-events.Rule",
|
4892 | "@aws-cdk/aws-events.RuleProps",
|
4893 | "@aws-cdk/aws-events.Schedule",
|
4894 | "@aws-cdk/aws-events.Schedule#rate",
|
4895 | "@aws-cdk/core.Duration",
|
4896 | "@aws-cdk/core.Duration#minutes",
|
4897 | "@aws-cdk/core.SecretValue",
|
4898 | "@aws-cdk/core.SecretValue#secretsManager",
|
4899 | "constructs.Construct"
|
4900 | ],
|
4901 | "fullSource": "// Fixture with packages imported, but nothing else\nimport { Duration, RemovalPolicy, SecretValue, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\n\nimport * as targets from '@aws-cdk/aws-events-targets';\nimport * as events from '@aws-cdk/aws-events';\nimport * as sqs from '@aws-cdk/aws-sqs';\nimport * as cdk from '@aws-cdk/core';\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 connection = new events.Connection(this, 'Connection', {\n authorization: events.Authorization.apiKey('x-api-key', SecretValue.secretsManager('ApiSecretName')),\n description: 'Connection with API Key x-api-key',\n});\n\nconst destination = new events.ApiDestination(this, 'Destination', {\n connection,\n endpoint: 'https://example.com',\n description: 'Calling example.com with API key x-api-key',\n});\n\nconst rule = new events.Rule(this, 'Rule', {\n schedule: events.Schedule.rate(cdk.Duration.minutes(1)),\n targets: [new targets.ApiDestination(destination)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
|
4902 | "syntaxKindCounter": {
|
4903 | "8": 1,
|
4904 | "10": 8,
|
4905 | "75": 30,
|
4906 | "104": 3,
|
4907 | "192": 1,
|
4908 | "193": 3,
|
4909 | "194": 11,
|
4910 | "196": 4,
|
4911 | "197": 4,
|
4912 | "225": 3,
|
4913 | "242": 3,
|
4914 | "243": 3,
|
4915 | "281": 6,
|
4916 | "282": 1
|
4917 | },
|
4918 | "fqnsFingerprint": "d2c56457bed24a5a332230dfd2303263bf2a0e23e167544d086fc2ba69a24328"
|
4919 | }
|
4920 | }
|
4921 | }
|