UNPKG

438 kBJSONView Raw
1{
2 "version": "2",
3 "toolVersion": "1.74.0",
4 "snippets": {
5 "f5c52d35c47f05643976ae51790c88ce720757d89f6089dacd3bbcbbd8b0655d": {
6 "translations": {
7 "python": {
8 "source": "route53.PublicHostedZone(self, \"HostedZone\",\n zone_name=\"fully.qualified.domain.com\"\n)",
9 "version": "2"
10 },
11 "csharp": {
12 "source": "new PublicHostedZone(this, \"HostedZone\", new PublicHostedZoneProps {\n ZoneName = \"fully.qualified.domain.com\"\n});",
13 "version": "1"
14 },
15 "java": {
16 "source": "PublicHostedZone.Builder.create(this, \"HostedZone\")\n .zoneName(\"fully.qualified.domain.com\")\n .build();",
17 "version": "1"
18 },
19 "go": {
20 "source": "route53.NewPublicHostedZone(this, jsii.String(\"HostedZone\"), &publicHostedZoneProps{\n\tzoneName: jsii.String(\"fully.qualified.domain.com\"),\n})",
21 "version": "1"
22 },
23 "$": {
24 "source": "new route53.PublicHostedZone(this, 'HostedZone', {\n zoneName: 'fully.qualified.domain.com',\n});",
25 "version": "0"
26 }
27 },
28 "location": {
29 "api": {
30 "api": "moduleReadme",
31 "moduleFqn": "@aws-cdk/aws-route53"
32 },
33 "field": {
34 "field": "markdown",
35 "line": 16
36 }
37 },
38 "didCompile": true,
39 "fqnsReferenced": [
40 "@aws-cdk/aws-route53.PublicHostedZone",
41 "@aws-cdk/aws-route53.PublicHostedZoneProps",
42 "constructs.Construct"
43 ],
44 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nnew route53.PublicHostedZone(this, 'HostedZone', {\n zoneName: 'fully.qualified.domain.com',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
45 "syntaxKindCounter": {
46 "10": 2,
47 "75": 3,
48 "104": 1,
49 "193": 1,
50 "194": 1,
51 "197": 1,
52 "226": 1,
53 "281": 1
54 },
55 "fqnsFingerprint": "92df6391089ea53a526a0c7abe2cf54806472f26a6d22b8eca3f13da0dd4bb7f"
56 },
57 "44b7e4cc5ada0fe26a7eb15501d431f36b51df57acbb2c4d041bfe92ad3fae6a": {
58 "translations": {
59 "python": {
60 "source": "# vpc: ec2.Vpc\n\n\nzone = route53.PrivateHostedZone(self, \"HostedZone\",\n zone_name=\"fully.qualified.domain.com\",\n vpc=vpc\n)",
61 "version": "2"
62 },
63 "csharp": {
64 "source": "Vpc vpc;\n\n\nPrivateHostedZone zone = new PrivateHostedZone(this, \"HostedZone\", new PrivateHostedZoneProps {\n ZoneName = \"fully.qualified.domain.com\",\n Vpc = vpc\n});",
65 "version": "1"
66 },
67 "java": {
68 "source": "Vpc vpc;\n\n\nPrivateHostedZone zone = PrivateHostedZone.Builder.create(this, \"HostedZone\")\n .zoneName(\"fully.qualified.domain.com\")\n .vpc(vpc)\n .build();",
69 "version": "1"
70 },
71 "go": {
72 "source": "var vpc vpc\n\n\nzone := route53.NewPrivateHostedZone(this, jsii.String(\"HostedZone\"), &privateHostedZoneProps{\n\tzoneName: jsii.String(\"fully.qualified.domain.com\"),\n\tvpc: vpc,\n})",
73 "version": "1"
74 },
75 "$": {
76 "source": "declare const vpc: ec2.Vpc;\n\nconst zone = new route53.PrivateHostedZone(this, 'HostedZone', {\n zoneName: 'fully.qualified.domain.com',\n vpc, // At least one VPC has to be added to a Private Hosted Zone.\n});",
77 "version": "0"
78 }
79 },
80 "location": {
81 "api": {
82 "api": "moduleReadme",
83 "moduleFqn": "@aws-cdk/aws-route53"
84 },
85 "field": {
86 "field": "markdown",
87 "line": 26
88 }
89 },
90 "didCompile": true,
91 "fqnsReferenced": [
92 "@aws-cdk/aws-ec2.IVpc",
93 "@aws-cdk/aws-route53.PrivateHostedZone",
94 "@aws-cdk/aws-route53.PrivateHostedZoneProps",
95 "constructs.Construct"
96 ],
97 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst zone = new route53.PrivateHostedZone(this, 'HostedZone', {\n zoneName: 'fully.qualified.domain.com',\n vpc, // At least one VPC has to be added to a Private Hosted Zone.\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
98 "syntaxKindCounter": {
99 "10": 2,
100 "75": 8,
101 "104": 1,
102 "130": 1,
103 "153": 1,
104 "169": 1,
105 "193": 1,
106 "194": 1,
107 "197": 1,
108 "225": 2,
109 "242": 2,
110 "243": 2,
111 "281": 1,
112 "282": 1,
113 "290": 1
114 },
115 "fqnsFingerprint": "12e06d0c8b448cd023a7b22c815d6ea364fff16b0a0d1af48c93856f7e0734f9"
116 },
117 "3da5b4161e6fea19506fd53bbc7484096932267c3a6a04e4b4ccc9f1ad033c0b": {
118 "translations": {
119 "python": {
120 "source": "# my_zone: route53.HostedZone\n\n\nroute53.TxtRecord(self, \"TXTRecord\",\n zone=my_zone,\n record_name=\"_foo\", # If the name ends with a \".\", it will be used as-is;\n # if it ends with a \".\" followed by the zone name, a trailing \".\" will be added automatically;\n # otherwise, a \".\", the zone name, and a trailing \".\" will be added automatically.\n # Defaults to zone root if not specified.\n values=[\"Bar!\", \"Baz?\"],\n ttl=Duration.minutes(90)\n)",
121 "version": "2"
122 },
123 "csharp": {
124 "source": "HostedZone myZone;\n\n\nnew TxtRecord(this, \"TXTRecord\", new TxtRecordProps {\n Zone = myZone,\n RecordName = \"_foo\", // If the name ends with a \".\", it will be used as-is;\n // if it ends with a \".\" followed by the zone name, a trailing \".\" will be added automatically;\n // otherwise, a \".\", the zone name, and a trailing \".\" will be added automatically.\n // Defaults to zone root if not specified.\n Values = new [] { \"Bar!\", \"Baz?\" },\n Ttl = Duration.Minutes(90)\n});",
125 "version": "1"
126 },
127 "java": {
128 "source": "HostedZone myZone;\n\n\nTxtRecord.Builder.create(this, \"TXTRecord\")\n .zone(myZone)\n .recordName(\"_foo\") // If the name ends with a \".\", it will be used as-is;\n // if it ends with a \".\" followed by the zone name, a trailing \".\" will be added automatically;\n // otherwise, a \".\", the zone name, and a trailing \".\" will be added automatically.\n // Defaults to zone root if not specified.\n .values(List.of(\"Bar!\", \"Baz?\"))\n .ttl(Duration.minutes(90))\n .build();",
129 "version": "1"
130 },
131 "go": {
132 "source": "var myZone hostedZone\n\n\nroute53.NewTxtRecord(this, jsii.String(\"TXTRecord\"), &txtRecordProps{\n\tzone: myZone,\n\trecordName: jsii.String(\"_foo\"),\n\t // If the name ends with a \".\", it will be used as-is;\n\t// if it ends with a \".\" followed by the zone name, a trailing \".\" will be added automatically;\n\t// otherwise, a \".\", the zone name, and a trailing \".\" will be added automatically.\n\t// Defaults to zone root if not specified.\n\tvalues: []*string{\n\t\tjsii.String(\"Bar!\"),\n\t\tjsii.String(\"Baz?\"),\n\t},\n\tttl: *awscdkcore.Duration.minutes(jsii.Number(90)),\n})",
133 "version": "1"
134 },
135 "$": {
136 "source": "declare const myZone: route53.HostedZone;\n\nnew route53.TxtRecord(this, 'TXTRecord', {\n zone: myZone,\n recordName: '_foo', // If the name ends with a \".\", it will be used as-is;\n // if it ends with a \".\" followed by the zone name, a trailing \".\" will be added automatically;\n // otherwise, a \".\", the zone name, and a trailing \".\" will be added automatically.\n // Defaults to zone root if not specified.\n values: [ // Will be quoted for you, and \" will be escaped automatically.\n 'Bar!',\n 'Baz?',\n ],\n ttl: Duration.minutes(90), // Optional - default is 30 minutes\n});",
137 "version": "0"
138 }
139 },
140 "location": {
141 "api": {
142 "api": "moduleReadme",
143 "moduleFqn": "@aws-cdk/aws-route53"
144 },
145 "field": {
146 "field": "markdown",
147 "line": 41
148 }
149 },
150 "didCompile": true,
151 "fqnsReferenced": [
152 "@aws-cdk/aws-route53.IHostedZone",
153 "@aws-cdk/aws-route53.TxtRecord",
154 "@aws-cdk/aws-route53.TxtRecordProps",
155 "@aws-cdk/core.Duration",
156 "@aws-cdk/core.Duration#minutes",
157 "constructs.Construct"
158 ],
159 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const myZone: route53.HostedZone;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew route53.TxtRecord(this, 'TXTRecord', {\n zone: myZone,\n recordName: '_foo', // If the name ends with a \".\", it will be used as-is;\n // if it ends with a \".\" followed by the zone name, a trailing \".\" will be added automatically;\n // otherwise, a \".\", the zone name, and a trailing \".\" will be added automatically.\n // Defaults to zone root if not specified.\n values: [ // Will be quoted for you, and \" will be escaped automatically.\n 'Bar!',\n 'Baz?',\n ],\n ttl: Duration.minutes(90), // Optional - default is 30 minutes\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
160 "syntaxKindCounter": {
161 "8": 1,
162 "10": 4,
163 "75": 12,
164 "104": 1,
165 "130": 1,
166 "153": 1,
167 "169": 1,
168 "192": 1,
169 "193": 1,
170 "194": 2,
171 "196": 1,
172 "197": 1,
173 "225": 1,
174 "226": 1,
175 "242": 1,
176 "243": 1,
177 "281": 4,
178 "290": 1
179 },
180 "fqnsFingerprint": "f8dbba3300d644f2edf3dadcc121788d66bde6da04746aa437ffd5849cabf5ef"
181 },
182 "5591aba5382e8dd8361a206628ff2d897c64cfebe3ef8998b928e058168bed1c": {
183 "translations": {
184 "python": {
185 "source": "# my_zone: route53.HostedZone\n\n\nroute53.NsRecord(self, \"NSRecord\",\n zone=my_zone,\n record_name=\"foo\",\n values=[\"ns-1.awsdns.co.uk.\", \"ns-2.awsdns.com.\"\n ],\n ttl=Duration.minutes(90)\n)",
186 "version": "2"
187 },
188 "csharp": {
189 "source": "HostedZone myZone;\n\n\nnew NsRecord(this, \"NSRecord\", new NsRecordProps {\n Zone = myZone,\n RecordName = \"foo\",\n Values = new [] { \"ns-1.awsdns.co.uk.\", \"ns-2.awsdns.com.\" },\n Ttl = Duration.Minutes(90)\n});",
190 "version": "1"
191 },
192 "java": {
193 "source": "HostedZone myZone;\n\n\nNsRecord.Builder.create(this, \"NSRecord\")\n .zone(myZone)\n .recordName(\"foo\")\n .values(List.of(\"ns-1.awsdns.co.uk.\", \"ns-2.awsdns.com.\"))\n .ttl(Duration.minutes(90))\n .build();",
194 "version": "1"
195 },
196 "go": {
197 "source": "var myZone hostedZone\n\n\nroute53.NewNsRecord(this, jsii.String(\"NSRecord\"), &nsRecordProps{\n\tzone: myZone,\n\trecordName: jsii.String(\"foo\"),\n\tvalues: []*string{\n\t\tjsii.String(\"ns-1.awsdns.co.uk.\"),\n\t\tjsii.String(\"ns-2.awsdns.com.\"),\n\t},\n\tttl: *awscdkcore.Duration.minutes(jsii.Number(90)),\n})",
198 "version": "1"
199 },
200 "$": {
201 "source": "declare const myZone: route53.HostedZone;\n\nnew route53.NsRecord(this, 'NSRecord', {\n zone: myZone,\n recordName: 'foo',\n values: [\n 'ns-1.awsdns.co.uk.',\n 'ns-2.awsdns.com.',\n ],\n ttl: Duration.minutes(90), // Optional - default is 30 minutes\n});",
202 "version": "0"
203 }
204 },
205 "location": {
206 "api": {
207 "api": "moduleReadme",
208 "moduleFqn": "@aws-cdk/aws-route53"
209 },
210 "field": {
211 "field": "markdown",
212 "line": 60
213 }
214 },
215 "didCompile": true,
216 "fqnsReferenced": [
217 "@aws-cdk/aws-route53.IHostedZone",
218 "@aws-cdk/aws-route53.NsRecord",
219 "@aws-cdk/aws-route53.NsRecordProps",
220 "@aws-cdk/core.Duration",
221 "@aws-cdk/core.Duration#minutes",
222 "constructs.Construct"
223 ],
224 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const myZone: route53.HostedZone;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew route53.NsRecord(this, 'NSRecord', {\n zone: myZone,\n recordName: 'foo',\n values: [\n 'ns-1.awsdns.co.uk.',\n 'ns-2.awsdns.com.',\n ],\n ttl: Duration.minutes(90), // Optional - default is 30 minutes\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
225 "syntaxKindCounter": {
226 "8": 1,
227 "10": 4,
228 "75": 12,
229 "104": 1,
230 "130": 1,
231 "153": 1,
232 "169": 1,
233 "192": 1,
234 "193": 1,
235 "194": 2,
236 "196": 1,
237 "197": 1,
238 "225": 1,
239 "226": 1,
240 "242": 1,
241 "243": 1,
242 "281": 4,
243 "290": 1
244 },
245 "fqnsFingerprint": "364c6fa5ab03b74707db044806e6dd21c626ad6456fa4a443d42794b972b13cd"
246 },
247 "adc8480f9bd145ba3af2564093018f93893404762c4421e2e795120e9ff9b34d": {
248 "translations": {
249 "python": {
250 "source": "# my_zone: route53.HostedZone\n\n\nroute53.DsRecord(self, \"DSRecord\",\n zone=my_zone,\n record_name=\"foo\",\n values=[\"12345 3 1 123456789abcdef67890123456789abcdef67890\"\n ],\n ttl=Duration.minutes(90)\n)",
251 "version": "2"
252 },
253 "csharp": {
254 "source": "HostedZone myZone;\n\n\nnew DsRecord(this, \"DSRecord\", new DsRecordProps {\n Zone = myZone,\n RecordName = \"foo\",\n Values = new [] { \"12345 3 1 123456789abcdef67890123456789abcdef67890\" },\n Ttl = Duration.Minutes(90)\n});",
255 "version": "1"
256 },
257 "java": {
258 "source": "HostedZone myZone;\n\n\nDsRecord.Builder.create(this, \"DSRecord\")\n .zone(myZone)\n .recordName(\"foo\")\n .values(List.of(\"12345 3 1 123456789abcdef67890123456789abcdef67890\"))\n .ttl(Duration.minutes(90))\n .build();",
259 "version": "1"
260 },
261 "go": {
262 "source": "var myZone hostedZone\n\n\nroute53.NewDsRecord(this, jsii.String(\"DSRecord\"), &dsRecordProps{\n\tzone: myZone,\n\trecordName: jsii.String(\"foo\"),\n\tvalues: []*string{\n\t\tjsii.String(\"12345 3 1 123456789abcdef67890123456789abcdef67890\"),\n\t},\n\tttl: *awscdkcore.Duration.minutes(jsii.Number(90)),\n})",
263 "version": "1"
264 },
265 "$": {
266 "source": "declare const myZone: route53.HostedZone;\n\nnew route53.DsRecord(this, 'DSRecord', {\n zone: myZone,\n recordName: 'foo',\n values: [\n '12345 3 1 123456789abcdef67890123456789abcdef67890',\n ],\n ttl: Duration.minutes(90), // Optional - default is 30 minutes\n});",
267 "version": "0"
268 }
269 },
270 "location": {
271 "api": {
272 "api": "moduleReadme",
273 "moduleFqn": "@aws-cdk/aws-route53"
274 },
275 "field": {
276 "field": "markdown",
277 "line": 76
278 }
279 },
280 "didCompile": true,
281 "fqnsReferenced": [
282 "@aws-cdk/aws-route53.DsRecord",
283 "@aws-cdk/aws-route53.DsRecordProps",
284 "@aws-cdk/aws-route53.IHostedZone",
285 "@aws-cdk/core.Duration",
286 "@aws-cdk/core.Duration#minutes",
287 "constructs.Construct"
288 ],
289 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const myZone: route53.HostedZone;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew route53.DsRecord(this, 'DSRecord', {\n zone: myZone,\n recordName: 'foo',\n values: [\n '12345 3 1 123456789abcdef67890123456789abcdef67890',\n ],\n ttl: Duration.minutes(90), // Optional - default is 30 minutes\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
290 "syntaxKindCounter": {
291 "8": 1,
292 "10": 3,
293 "75": 12,
294 "104": 1,
295 "130": 1,
296 "153": 1,
297 "169": 1,
298 "192": 1,
299 "193": 1,
300 "194": 2,
301 "196": 1,
302 "197": 1,
303 "225": 1,
304 "226": 1,
305 "242": 1,
306 "243": 1,
307 "281": 4,
308 "290": 1
309 },
310 "fqnsFingerprint": "6580acaea55413852123a9bc1d6fbf5124e72bb0162b00d69de2abedf6c0c1a4"
311 },
312 "cb4a4082f6230ab9e8e53dddb5577598a2a3a3ad50f5ec760e2e4ae3e955ca2d": {
313 "translations": {
314 "python": {
315 "source": "# my_zone: route53.HostedZone\n\n\nroute53.ARecord(self, \"ARecord\",\n zone=my_zone,\n target=route53.RecordTarget.from_ip_addresses(\"1.2.3.4\", \"5.6.7.8\")\n)",
316 "version": "2"
317 },
318 "csharp": {
319 "source": "HostedZone myZone;\n\n\nnew ARecord(this, \"ARecord\", new ARecordProps {\n Zone = myZone,\n Target = RecordTarget.FromIpAddresses(\"1.2.3.4\", \"5.6.7.8\")\n});",
320 "version": "1"
321 },
322 "java": {
323 "source": "HostedZone myZone;\n\n\nARecord.Builder.create(this, \"ARecord\")\n .zone(myZone)\n .target(RecordTarget.fromIpAddresses(\"1.2.3.4\", \"5.6.7.8\"))\n .build();",
324 "version": "1"
325 },
326 "go": {
327 "source": "var myZone hostedZone\n\n\nroute53.NewARecord(this, jsii.String(\"ARecord\"), &aRecordProps{\n\tzone: myZone,\n\ttarget: route53.recordTarget.fromIpAddresses(jsii.String(\"1.2.3.4\"), jsii.String(\"5.6.7.8\")),\n})",
328 "version": "1"
329 },
330 "$": {
331 "source": "declare const myZone: route53.HostedZone;\n\nnew route53.ARecord(this, 'ARecord', {\n zone: myZone,\n target: route53.RecordTarget.fromIpAddresses('1.2.3.4', '5.6.7.8'),\n});",
332 "version": "0"
333 }
334 },
335 "location": {
336 "api": {
337 "api": "moduleReadme",
338 "moduleFqn": "@aws-cdk/aws-route53"
339 },
340 "field": {
341 "field": "markdown",
342 "line": 91
343 }
344 },
345 "didCompile": true,
346 "fqnsReferenced": [
347 "@aws-cdk/aws-route53.ARecord",
348 "@aws-cdk/aws-route53.ARecordProps",
349 "@aws-cdk/aws-route53.IHostedZone",
350 "@aws-cdk/aws-route53.RecordTarget",
351 "@aws-cdk/aws-route53.RecordTarget#fromIpAddresses",
352 "constructs.Construct"
353 ],
354 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const myZone: route53.HostedZone;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew route53.ARecord(this, 'ARecord', {\n zone: myZone,\n target: route53.RecordTarget.fromIpAddresses('1.2.3.4', '5.6.7.8'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
355 "syntaxKindCounter": {
356 "10": 3,
357 "75": 11,
358 "104": 1,
359 "130": 1,
360 "153": 1,
361 "169": 1,
362 "193": 1,
363 "194": 3,
364 "196": 1,
365 "197": 1,
366 "225": 1,
367 "226": 1,
368 "242": 1,
369 "243": 1,
370 "281": 2,
371 "290": 1
372 },
373 "fqnsFingerprint": "d9c617893c39090222aeda69ad40195623fb8f03028736d7ca985b6c2c8aca54"
374 },
375 "123bfbf6b812c08ae0bf1ae5fecabcd4095055bd480989e747f4e1b803d07b92": {
376 "translations": {
377 "python": {
378 "source": "# instance: ec2.Instance\n\n# my_zone: route53.HostedZone\n\n\nelastic_ip = ec2.CfnEIP(self, \"EIP\",\n domain=\"vpc\",\n instance_id=instance.instance_id\n)\nroute53.ARecord(self, \"ARecord\",\n zone=my_zone,\n target=route53.RecordTarget.from_ip_addresses(elastic_ip.ref)\n)",
379 "version": "2"
380 },
381 "csharp": {
382 "source": "Instance instance;\n\nHostedZone myZone;\n\n\nCfnEIP elasticIp = new CfnEIP(this, \"EIP\", new CfnEIPProps {\n Domain = \"vpc\",\n InstanceId = instance.InstanceId\n});\nnew ARecord(this, \"ARecord\", new ARecordProps {\n Zone = myZone,\n Target = RecordTarget.FromIpAddresses(elasticIp.Ref)\n});",
383 "version": "1"
384 },
385 "java": {
386 "source": "Instance instance;\n\nHostedZone myZone;\n\n\nCfnEIP elasticIp = CfnEIP.Builder.create(this, \"EIP\")\n .domain(\"vpc\")\n .instanceId(instance.getInstanceId())\n .build();\nARecord.Builder.create(this, \"ARecord\")\n .zone(myZone)\n .target(RecordTarget.fromIpAddresses(elasticIp.getRef()))\n .build();",
387 "version": "1"
388 },
389 "go": {
390 "source": "var instance instance\n\nvar myZone hostedZone\n\n\nelasticIp := ec2.NewCfnEIP(this, jsii.String(\"EIP\"), &cfnEIPProps{\n\tdomain: jsii.String(\"vpc\"),\n\tinstanceId: instance.instanceId,\n})\nroute53.NewARecord(this, jsii.String(\"ARecord\"), &aRecordProps{\n\tzone: myZone,\n\ttarget: route53.recordTarget.fromIpAddresses(elasticIp.ref),\n})",
391 "version": "1"
392 },
393 "$": {
394 "source": "declare const instance: ec2.Instance;\n\nconst elasticIp = new ec2.CfnEIP(this, 'EIP', {\n domain: 'vpc',\n instanceId: instance.instanceId,\n});\n\ndeclare const myZone: route53.HostedZone;\nnew route53.ARecord(this, 'ARecord', {\n zone: myZone,\n target: route53.RecordTarget.fromIpAddresses(elasticIp.ref),\n});",
395 "version": "0"
396 }
397 },
398 "location": {
399 "api": {
400 "api": "moduleReadme",
401 "moduleFqn": "@aws-cdk/aws-route53"
402 },
403 "field": {
404 "field": "markdown",
405 "line": 102
406 }
407 },
408 "didCompile": true,
409 "fqnsReferenced": [
410 "@aws-cdk/aws-ec2.CfnEIP",
411 "@aws-cdk/aws-ec2.CfnEIPProps",
412 "@aws-cdk/aws-ec2.Instance#instanceId",
413 "@aws-cdk/aws-route53.ARecord",
414 "@aws-cdk/aws-route53.ARecordProps",
415 "@aws-cdk/aws-route53.IHostedZone",
416 "@aws-cdk/aws-route53.RecordTarget",
417 "@aws-cdk/aws-route53.RecordTarget#fromIpAddresses",
418 "@aws-cdk/core.Construct",
419 "constructs.Construct"
420 ],
421 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const instance: ec2.Instance;\n\ndeclare const myZone: route53.HostedZone;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst elasticIp = new ec2.CfnEIP(this, 'EIP', {\n domain: 'vpc',\n instanceId: instance.instanceId,\n});\nnew route53.ARecord(this, 'ARecord', {\n zone: myZone,\n target: route53.RecordTarget.fromIpAddresses(elasticIp.ref),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
422 "syntaxKindCounter": {
423 "10": 3,
424 "75": 23,
425 "104": 2,
426 "130": 2,
427 "153": 2,
428 "169": 2,
429 "193": 2,
430 "194": 6,
431 "196": 1,
432 "197": 2,
433 "225": 3,
434 "226": 1,
435 "242": 3,
436 "243": 3,
437 "281": 4,
438 "290": 1
439 },
440 "fqnsFingerprint": "c2dabb071858be48b34dd3b9ff7df8e3aa4eeed148cd98c809ce7c8e6dcb17f8"
441 },
442 "7f61f8dcc4902fe7af498737c7dd526e56191f7d8346864294cd17b5122dfc75": {
443 "translations": {
444 "python": {
445 "source": "import aws_cdk.aws_cloudfront as cloudfront\n\n# my_zone: route53.HostedZone\n# distribution: cloudfront.CloudFrontWebDistribution\n\nroute53.AaaaRecord(self, \"Alias\",\n zone=my_zone,\n target=route53.RecordTarget.from_alias(targets.CloudFrontTarget(distribution))\n)",
446 "version": "2"
447 },
448 "csharp": {
449 "source": "using Amazon.CDK.AWS.CloudFront;\n\nHostedZone myZone;\nCloudFrontWebDistribution distribution;\n\nnew AaaaRecord(this, \"Alias\", new AaaaRecordProps {\n Zone = myZone,\n Target = RecordTarget.FromAlias(new CloudFrontTarget(distribution))\n});",
450 "version": "1"
451 },
452 "java": {
453 "source": "import software.amazon.awscdk.services.cloudfront.*;\n\nHostedZone myZone;\nCloudFrontWebDistribution distribution;\n\nAaaaRecord.Builder.create(this, \"Alias\")\n .zone(myZone)\n .target(RecordTarget.fromAlias(new CloudFrontTarget(distribution)))\n .build();",
454 "version": "1"
455 },
456 "go": {
457 "source": "import cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nvar myZone hostedZone\nvar distribution cloudFrontWebDistribution\n\nroute53.NewAaaaRecord(this, jsii.String(\"Alias\"), &aaaaRecordProps{\n\tzone: myZone,\n\ttarget: route53.recordTarget.fromAlias(targets.NewCloudFrontTarget(distribution)),\n})",
458 "version": "1"
459 },
460 "$": {
461 "source": "import * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const myZone: route53.HostedZone;\ndeclare const distribution: cloudfront.CloudFrontWebDistribution;\nnew route53.AaaaRecord(this, 'Alias', {\n zone: myZone,\n target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),\n});",
462 "version": "0"
463 }
464 },
465 "location": {
466 "api": {
467 "api": "moduleReadme",
468 "moduleFqn": "@aws-cdk/aws-route53"
469 },
470 "field": {
471 "field": "markdown",
472 "line": 119
473 }
474 },
475 "didCompile": true,
476 "fqnsReferenced": [
477 "@aws-cdk/aws-cloudfront.IDistribution",
478 "@aws-cdk/aws-route53-targets.CloudFrontTarget",
479 "@aws-cdk/aws-route53.AaaaRecord",
480 "@aws-cdk/aws-route53.AaaaRecordProps",
481 "@aws-cdk/aws-route53.IAliasRecordTarget",
482 "@aws-cdk/aws-route53.IHostedZone",
483 "@aws-cdk/aws-route53.RecordTarget",
484 "@aws-cdk/aws-route53.RecordTarget#fromAlias",
485 "constructs.Construct"
486 ],
487 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const myZone: route53.HostedZone;\ndeclare const distribution: cloudfront.CloudFrontWebDistribution;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nnew route53.AaaaRecord(this, 'Alias', {\n zone: myZone,\n target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
488 "syntaxKindCounter": {
489 "10": 2,
490 "75": 18,
491 "104": 1,
492 "130": 2,
493 "153": 2,
494 "169": 2,
495 "193": 1,
496 "194": 4,
497 "196": 1,
498 "197": 2,
499 "225": 2,
500 "226": 1,
501 "242": 2,
502 "243": 2,
503 "254": 1,
504 "255": 1,
505 "256": 1,
506 "281": 2,
507 "290": 1
508 },
509 "fqnsFingerprint": "bf165b5d0892af13da402fb2acc8f959bd90b4313997139498858248c3dae4c3"
510 },
511 "3d2a69ae7d292e745749c73c61f0803920cbcba3daae77d7b7265c83836f876f": {
512 "translations": {
513 "python": {
514 "source": "parent_zone = route53.PublicHostedZone(self, \"HostedZone\",\n zone_name=\"someexample.com\",\n cross_account_zone_delegation_principal=iam.AccountPrincipal(\"12345678901\"),\n cross_account_zone_delegation_role_name=\"MyDelegationRole\"\n)",
515 "version": "2"
516 },
517 "csharp": {
518 "source": "PublicHostedZone parentZone = new PublicHostedZone(this, \"HostedZone\", new PublicHostedZoneProps {\n ZoneName = \"someexample.com\",\n CrossAccountZoneDelegationPrincipal = new AccountPrincipal(\"12345678901\"),\n CrossAccountZoneDelegationRoleName = \"MyDelegationRole\"\n});",
519 "version": "1"
520 },
521 "java": {
522 "source": "PublicHostedZone parentZone = PublicHostedZone.Builder.create(this, \"HostedZone\")\n .zoneName(\"someexample.com\")\n .crossAccountZoneDelegationPrincipal(new AccountPrincipal(\"12345678901\"))\n .crossAccountZoneDelegationRoleName(\"MyDelegationRole\")\n .build();",
523 "version": "1"
524 },
525 "go": {
526 "source": "parentZone := route53.NewPublicHostedZone(this, jsii.String(\"HostedZone\"), &publicHostedZoneProps{\n\tzoneName: jsii.String(\"someexample.com\"),\n\tcrossAccountZoneDelegationPrincipal: iam.NewAccountPrincipal(jsii.String(\"12345678901\")),\n\tcrossAccountZoneDelegationRoleName: jsii.String(\"MyDelegationRole\"),\n})",
527 "version": "1"
528 },
529 "$": {
530 "source": "const parentZone = new route53.PublicHostedZone(this, 'HostedZone', {\n zoneName: 'someexample.com',\n crossAccountZoneDelegationPrincipal: new iam.AccountPrincipal('12345678901'),\n crossAccountZoneDelegationRoleName: 'MyDelegationRole',\n});",
531 "version": "0"
532 }
533 },
534 "location": {
535 "api": {
536 "api": "moduleReadme",
537 "moduleFqn": "@aws-cdk/aws-route53"
538 },
539 "field": {
540 "field": "markdown",
541 "line": 139
542 }
543 },
544 "didCompile": true,
545 "fqnsReferenced": [
546 "@aws-cdk/aws-iam.AccountPrincipal",
547 "@aws-cdk/aws-iam.IPrincipal",
548 "@aws-cdk/aws-route53.PublicHostedZone",
549 "@aws-cdk/aws-route53.PublicHostedZoneProps",
550 "constructs.Construct"
551 ],
552 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst parentZone = new route53.PublicHostedZone(this, 'HostedZone', {\n zoneName: 'someexample.com',\n crossAccountZoneDelegationPrincipal: new iam.AccountPrincipal('12345678901'),\n crossAccountZoneDelegationRoleName: 'MyDelegationRole',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
553 "syntaxKindCounter": {
554 "10": 4,
555 "75": 8,
556 "104": 1,
557 "193": 1,
558 "194": 2,
559 "197": 2,
560 "225": 1,
561 "242": 1,
562 "243": 1,
563 "281": 3
564 },
565 "fqnsFingerprint": "3bdc7d9f0f0624c44457c9c1ffb78092a2ead5741dc0d72b763c6c5554e2d477"
566 },
567 "e1b78adef4b73ff13307d457a6d8408f40b85fd56ade7a4f8536afe4fd514e13": {
568 "translations": {
569 "python": {
570 "source": "sub_zone = route53.PublicHostedZone(self, \"SubZone\",\n zone_name=\"sub.someexample.com\"\n)\n\n# import the delegation role by constructing the roleArn\ndelegation_role_arn = Stack.of(self).format_arn(\n region=\"\", # IAM is global in each partition\n service=\"iam\",\n account=\"parent-account-id\",\n resource=\"role\",\n resource_name=\"MyDelegationRole\"\n)\ndelegation_role = iam.Role.from_role_arn(self, \"DelegationRole\", delegation_role_arn)\n\n# create the record\nroute53.CrossAccountZoneDelegationRecord(self, \"delegate\",\n delegated_zone=sub_zone,\n parent_hosted_zone_name=\"someexample.com\", # or you can use parentHostedZoneId\n delegation_role=delegation_role\n)",
571 "version": "2"
572 },
573 "csharp": {
574 "source": "PublicHostedZone subZone = new PublicHostedZone(this, \"SubZone\", new PublicHostedZoneProps {\n ZoneName = \"sub.someexample.com\"\n});\n\n// import the delegation role by constructing the roleArn\nstring delegationRoleArn = Stack.Of(this).FormatArn(new ArnComponents {\n Region = \"\", // IAM is global in each partition\n Service = \"iam\",\n Account = \"parent-account-id\",\n Resource = \"role\",\n ResourceName = \"MyDelegationRole\"\n});\nIRole delegationRole = Role.FromRoleArn(this, \"DelegationRole\", delegationRoleArn);\n\n// create the record\n// create the record\nnew CrossAccountZoneDelegationRecord(this, \"delegate\", new CrossAccountZoneDelegationRecordProps {\n DelegatedZone = subZone,\n ParentHostedZoneName = \"someexample.com\", // or you can use parentHostedZoneId\n DelegationRole = delegationRole\n});",
575 "version": "1"
576 },
577 "java": {
578 "source": "PublicHostedZone subZone = PublicHostedZone.Builder.create(this, \"SubZone\")\n .zoneName(\"sub.someexample.com\")\n .build();\n\n// import the delegation role by constructing the roleArn\nString delegationRoleArn = Stack.of(this).formatArn(ArnComponents.builder()\n .region(\"\") // IAM is global in each partition\n .service(\"iam\")\n .account(\"parent-account-id\")\n .resource(\"role\")\n .resourceName(\"MyDelegationRole\")\n .build());\nIRole delegationRole = Role.fromRoleArn(this, \"DelegationRole\", delegationRoleArn);\n\n// create the record\n// create the record\nCrossAccountZoneDelegationRecord.Builder.create(this, \"delegate\")\n .delegatedZone(subZone)\n .parentHostedZoneName(\"someexample.com\") // or you can use parentHostedZoneId\n .delegationRole(delegationRole)\n .build();",
579 "version": "1"
580 },
581 "go": {
582 "source": "subZone := route53.NewPublicHostedZone(this, jsii.String(\"SubZone\"), &publicHostedZoneProps{\n\tzoneName: jsii.String(\"sub.someexample.com\"),\n})\n\n// import the delegation role by constructing the roleArn\ndelegationRoleArn := awscdkcore.stack.of(this).formatArn(&arnComponents{\n\tregion: jsii.String(\"\"),\n\t // IAM is global in each partition\n\tservice: jsii.String(\"iam\"),\n\taccount: jsii.String(\"parent-account-id\"),\n\tresource: jsii.String(\"role\"),\n\tresourceName: jsii.String(\"MyDelegationRole\"),\n})\ndelegationRole := iam.role.fromRoleArn(this, jsii.String(\"DelegationRole\"), delegationRoleArn)\n\n// create the record\n// create the record\nroute53.NewCrossAccountZoneDelegationRecord(this, jsii.String(\"delegate\"), &crossAccountZoneDelegationRecordProps{\n\tdelegatedZone: subZone,\n\tparentHostedZoneName: jsii.String(\"someexample.com\"),\n\t // or you can use parentHostedZoneId\n\tdelegationRole: delegationRole,\n})",
583 "version": "1"
584 },
585 "$": {
586 "source": "const subZone = new route53.PublicHostedZone(this, 'SubZone', {\n zoneName: 'sub.someexample.com',\n});\n\n// import the delegation role by constructing the roleArn\nconst delegationRoleArn = Stack.of(this).formatArn({\n region: '', // IAM is global in each partition\n service: 'iam',\n account: 'parent-account-id',\n resource: 'role',\n resourceName: 'MyDelegationRole',\n});\nconst delegationRole = iam.Role.fromRoleArn(this, 'DelegationRole', delegationRoleArn);\n\n// create the record\nnew route53.CrossAccountZoneDelegationRecord(this, 'delegate', {\n delegatedZone: subZone,\n parentHostedZoneName: 'someexample.com', // or you can use parentHostedZoneId\n delegationRole,\n});",
587 "version": "0"
588 }
589 },
590 "location": {
591 "api": {
592 "api": "moduleReadme",
593 "moduleFqn": "@aws-cdk/aws-route53"
594 },
595 "field": {
596 "field": "markdown",
597 "line": 149
598 }
599 },
600 "didCompile": true,
601 "fqnsReferenced": [
602 "@aws-cdk/aws-iam.IRole",
603 "@aws-cdk/aws-iam.Role",
604 "@aws-cdk/aws-iam.Role#fromRoleArn",
605 "@aws-cdk/aws-route53.CrossAccountZoneDelegationRecord",
606 "@aws-cdk/aws-route53.CrossAccountZoneDelegationRecordProps",
607 "@aws-cdk/aws-route53.IHostedZone",
608 "@aws-cdk/aws-route53.PublicHostedZone",
609 "@aws-cdk/aws-route53.PublicHostedZoneProps",
610 "@aws-cdk/core.ArnComponents",
611 "@aws-cdk/core.Stack#formatArn",
612 "@aws-cdk/core.Stack#of",
613 "constructs.Construct",
614 "constructs.IConstruct"
615 ],
616 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst subZone = new route53.PublicHostedZone(this, 'SubZone', {\n zoneName: 'sub.someexample.com',\n});\n\n// import the delegation role by constructing the roleArn\nconst delegationRoleArn = Stack.of(this).formatArn({\n region: '', // IAM is global in each partition\n service: 'iam',\n account: 'parent-account-id',\n resource: 'role',\n resourceName: 'MyDelegationRole',\n});\nconst delegationRole = iam.Role.fromRoleArn(this, 'DelegationRole', delegationRoleArn);\n\n// create the record\nnew route53.CrossAccountZoneDelegationRecord(this, 'delegate', {\n delegatedZone: subZone,\n parentHostedZoneName: 'someexample.com', // or you can use parentHostedZoneId\n delegationRole,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
617 "syntaxKindCounter": {
618 "10": 10,
619 "75": 24,
620 "104": 4,
621 "193": 3,
622 "194": 6,
623 "196": 3,
624 "197": 2,
625 "225": 3,
626 "226": 1,
627 "242": 3,
628 "243": 3,
629 "281": 8,
630 "282": 1
631 },
632 "fqnsFingerprint": "89b3194133d8aa5b66d8623097755c2cabd71175c48d5fe50c6af7962b768692"
633 },
634 "9d7011c271262218c32ed43b48d9790d66279653a5b11a31080763116ec63716": {
635 "translations": {
636 "python": {
637 "source": "route53.HostedZone.from_lookup(self, \"MyZone\",\n domain_name=\"example.com\"\n)",
638 "version": "2"
639 },
640 "csharp": {
641 "source": "HostedZone.FromLookup(this, \"MyZone\", new HostedZoneProviderProps {\n DomainName = \"example.com\"\n});",
642 "version": "1"
643 },
644 "java": {
645 "source": "HostedZone.fromLookup(this, \"MyZone\", HostedZoneProviderProps.builder()\n .domainName(\"example.com\")\n .build());",
646 "version": "1"
647 },
648 "go": {
649 "source": "route53.hostedZone.fromLookup(this, jsii.String(\"MyZone\"), &hostedZoneProviderProps{\n\tdomainName: jsii.String(\"example.com\"),\n})",
650 "version": "1"
651 },
652 "$": {
653 "source": "route53.HostedZone.fromLookup(this, 'MyZone', {\n domainName: 'example.com',\n});",
654 "version": "0"
655 }
656 },
657 "location": {
658 "api": {
659 "api": "moduleReadme",
660 "moduleFqn": "@aws-cdk/aws-route53"
661 },
662 "field": {
663 "field": "markdown",
664 "line": 177
665 }
666 },
667 "didCompile": true,
668 "fqnsReferenced": [
669 "@aws-cdk/aws-route53.HostedZone",
670 "@aws-cdk/aws-route53.HostedZone#fromLookup",
671 "@aws-cdk/aws-route53.HostedZoneProviderProps",
672 "constructs.Construct"
673 ],
674 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nroute53.HostedZone.fromLookup(this, 'MyZone', {\n domainName: 'example.com',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
675 "syntaxKindCounter": {
676 "10": 2,
677 "75": 4,
678 "104": 1,
679 "193": 1,
680 "194": 2,
681 "196": 1,
682 "226": 1,
683 "281": 1
684 },
685 "fqnsFingerprint": "5bd40dfc5adb5be7f5b1d3e3bcce540f1ff50869e84c11995792ad154a8242aa"
686 },
687 "dd02f3a7b30325e9d34ae7316f233ce1c5f472f6707ff15cb3925be18ca0386e": {
688 "translations": {
689 "python": {
690 "source": "zone = route53.HostedZone.from_hosted_zone_attributes(self, \"MyZone\",\n zone_name=\"example.com\",\n hosted_zone_id=\"ZOJJZC49E0EPZ\"\n)",
691 "version": "2"
692 },
693 "csharp": {
694 "source": "IHostedZone zone = HostedZone.FromHostedZoneAttributes(this, \"MyZone\", new HostedZoneAttributes {\n ZoneName = \"example.com\",\n HostedZoneId = \"ZOJJZC49E0EPZ\"\n});",
695 "version": "1"
696 },
697 "java": {
698 "source": "IHostedZone zone = HostedZone.fromHostedZoneAttributes(this, \"MyZone\", HostedZoneAttributes.builder()\n .zoneName(\"example.com\")\n .hostedZoneId(\"ZOJJZC49E0EPZ\")\n .build());",
699 "version": "1"
700 },
701 "go": {
702 "source": "zone := route53.hostedZone.fromHostedZoneAttributes(this, jsii.String(\"MyZone\"), &hostedZoneAttributes{\n\tzoneName: jsii.String(\"example.com\"),\n\thostedZoneId: jsii.String(\"ZOJJZC49E0EPZ\"),\n})",
703 "version": "1"
704 },
705 "$": {
706 "source": "const zone = route53.HostedZone.fromHostedZoneAttributes(this, 'MyZone', {\n zoneName: 'example.com',\n hostedZoneId: 'ZOJJZC49E0EPZ',\n});",
707 "version": "0"
708 }
709 },
710 "location": {
711 "api": {
712 "api": "moduleReadme",
713 "moduleFqn": "@aws-cdk/aws-route53"
714 },
715 "field": {
716 "field": "markdown",
717 "line": 199
718 }
719 },
720 "didCompile": true,
721 "fqnsReferenced": [
722 "@aws-cdk/aws-route53.HostedZone",
723 "@aws-cdk/aws-route53.HostedZone#fromHostedZoneAttributes",
724 "@aws-cdk/aws-route53.HostedZoneAttributes",
725 "@aws-cdk/aws-route53.IHostedZone",
726 "constructs.Construct"
727 ],
728 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst zone = route53.HostedZone.fromHostedZoneAttributes(this, 'MyZone', {\n zoneName: 'example.com',\n hostedZoneId: 'ZOJJZC49E0EPZ',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
729 "syntaxKindCounter": {
730 "10": 3,
731 "75": 6,
732 "104": 1,
733 "193": 1,
734 "194": 2,
735 "196": 1,
736 "225": 1,
737 "242": 1,
738 "243": 1,
739 "281": 2
740 },
741 "fqnsFingerprint": "d2b720a03a8724073e3c156a5a1d55481f6490a47a2d6dbd4503d015ad2e7f61"
742 },
743 "642bb75f37a36ef44ba3cc3c3e311e904601a22d7509cb5541ccb04f5224c556": {
744 "translations": {
745 "python": {
746 "source": "zone = route53.HostedZone.from_hosted_zone_id(self, \"MyZone\", \"ZOJJZC49E0EPZ\")",
747 "version": "2"
748 },
749 "csharp": {
750 "source": "IHostedZone zone = HostedZone.FromHostedZoneId(this, \"MyZone\", \"ZOJJZC49E0EPZ\");",
751 "version": "1"
752 },
753 "java": {
754 "source": "IHostedZone zone = HostedZone.fromHostedZoneId(this, \"MyZone\", \"ZOJJZC49E0EPZ\");",
755 "version": "1"
756 },
757 "go": {
758 "source": "zone := route53.hostedZone.fromHostedZoneId(this, jsii.String(\"MyZone\"), jsii.String(\"ZOJJZC49E0EPZ\"))",
759 "version": "1"
760 },
761 "$": {
762 "source": "const zone = route53.HostedZone.fromHostedZoneId(this, 'MyZone', 'ZOJJZC49E0EPZ');",
763 "version": "0"
764 }
765 },
766 "location": {
767 "api": {
768 "api": "moduleReadme",
769 "moduleFqn": "@aws-cdk/aws-route53"
770 },
771 "field": {
772 "field": "markdown",
773 "line": 209
774 }
775 },
776 "didCompile": true,
777 "fqnsReferenced": [
778 "@aws-cdk/aws-route53.HostedZone",
779 "@aws-cdk/aws-route53.HostedZone#fromHostedZoneId",
780 "@aws-cdk/aws-route53.IHostedZone",
781 "constructs.Construct"
782 ],
783 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst zone = route53.HostedZone.fromHostedZoneId(this, 'MyZone', 'ZOJJZC49E0EPZ');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
784 "syntaxKindCounter": {
785 "10": 2,
786 "75": 4,
787 "104": 1,
788 "194": 2,
789 "196": 1,
790 "225": 1,
791 "242": 1,
792 "243": 1
793 },
794 "fqnsFingerprint": "63485bfed7b48e3f0352c6cafd85da3219fccddbcdce817e39b031c242869798"
795 },
796 "9164f399ef3af54b6bbf82402788f450f7721368db2f52a92b0c2bd9d7ceaa9e": {
797 "translations": {
798 "python": {
799 "source": "zone_from_attributes = route53.PublicHostedZone.from_public_hosted_zone_attributes(self, \"MyZone\",\n zone_name=\"example.com\",\n hosted_zone_id=\"ZOJJZC49E0EPZ\"\n)\n\n# Does not know zoneName\nzone_from_id = route53.PublicHostedZone.from_public_hosted_zone_id(self, \"MyZone\", \"ZOJJZC49E0EPZ\")",
800 "version": "2"
801 },
802 "csharp": {
803 "source": "IHostedZone zoneFromAttributes = PublicHostedZone.FromPublicHostedZoneAttributes(this, \"MyZone\", new PublicHostedZoneAttributes {\n ZoneName = \"example.com\",\n HostedZoneId = \"ZOJJZC49E0EPZ\"\n});\n\n// Does not know zoneName\nIPublicHostedZone zoneFromId = PublicHostedZone.FromPublicHostedZoneId(this, \"MyZone\", \"ZOJJZC49E0EPZ\");",
804 "version": "1"
805 },
806 "java": {
807 "source": "IHostedZone zoneFromAttributes = PublicHostedZone.fromPublicHostedZoneAttributes(this, \"MyZone\", PublicHostedZoneAttributes.builder()\n .zoneName(\"example.com\")\n .hostedZoneId(\"ZOJJZC49E0EPZ\")\n .build());\n\n// Does not know zoneName\nIPublicHostedZone zoneFromId = PublicHostedZone.fromPublicHostedZoneId(this, \"MyZone\", \"ZOJJZC49E0EPZ\");",
808 "version": "1"
809 },
810 "go": {
811 "source": "zoneFromAttributes := route53.publicHostedZone.fromPublicHostedZoneAttributes(this, jsii.String(\"MyZone\"), &publicHostedZoneAttributes{\n\tzoneName: jsii.String(\"example.com\"),\n\thostedZoneId: jsii.String(\"ZOJJZC49E0EPZ\"),\n})\n\n// Does not know zoneName\nzoneFromId := route53.publicHostedZone.fromPublicHostedZoneId(this, jsii.String(\"MyZone\"), jsii.String(\"ZOJJZC49E0EPZ\"))",
812 "version": "1"
813 },
814 "$": {
815 "source": "const zoneFromAttributes = route53.PublicHostedZone.fromPublicHostedZoneAttributes(this, 'MyZone', {\n zoneName: 'example.com',\n hostedZoneId: 'ZOJJZC49E0EPZ',\n});\n\n// Does not know zoneName\nconst zoneFromId = route53.PublicHostedZone.fromPublicHostedZoneId(this, 'MyZone', 'ZOJJZC49E0EPZ');",
816 "version": "0"
817 }
818 },
819 "location": {
820 "api": {
821 "api": "moduleReadme",
822 "moduleFqn": "@aws-cdk/aws-route53"
823 },
824 "field": {
825 "field": "markdown",
826 "line": 215
827 }
828 },
829 "didCompile": true,
830 "fqnsReferenced": [
831 "@aws-cdk/aws-route53.IHostedZone",
832 "@aws-cdk/aws-route53.IPublicHostedZone",
833 "@aws-cdk/aws-route53.PublicHostedZone",
834 "@aws-cdk/aws-route53.PublicHostedZone#fromPublicHostedZoneAttributes",
835 "@aws-cdk/aws-route53.PublicHostedZone#fromPublicHostedZoneId",
836 "@aws-cdk/aws-route53.PublicHostedZoneAttributes",
837 "constructs.Construct"
838 ],
839 "fullSource": "// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nconst zoneFromAttributes = route53.PublicHostedZone.fromPublicHostedZoneAttributes(this, 'MyZone', {\n zoneName: 'example.com',\n hostedZoneId: 'ZOJJZC49E0EPZ',\n});\n\n// Does not know zoneName\nconst zoneFromId = route53.PublicHostedZone.fromPublicHostedZoneId(this, 'MyZone', 'ZOJJZC49E0EPZ');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
840 "syntaxKindCounter": {
841 "10": 5,
842 "75": 10,
843 "104": 2,
844 "193": 1,
845 "194": 4,
846 "196": 2,
847 "225": 2,
848 "242": 2,
849 "243": 2,
850 "281": 2
851 },
852 "fqnsFingerprint": "1a53f4817f93c4475f5e897bcf411af43d0686088f4a008a9f4520aa9a38805c"
853 },
854 "615799be62e233b505cbfd7a1e068144f983d446ea236fcea99e04bd855e671e": {
855 "translations": {
856 "python": {
857 "source": "from aws_cdk.core import Stack\nfrom aws_cdk.aws_ec2 import Vpc, VpcEndpointService\nfrom aws_cdk.aws_elasticloadbalancingv2 import NetworkLoadBalancer\nfrom aws_cdk.aws_route53 import PublicHostedZone, VpcEndpointServiceDomainName\n\nstack = Stack()\nvpc = Vpc(stack, \"VPC\")\nnlb = NetworkLoadBalancer(stack, \"NLB\",\n vpc=vpc\n)\nvpces = VpcEndpointService(stack, \"VPCES\",\n vpc_endpoint_service_load_balancers=[nlb]\n)\n# You must use a public hosted zone so domain ownership can be verified\nzone = PublicHostedZone(stack, \"PHZ\",\n zone_name=\"aws-cdk.dev\"\n)\nVpcEndpointServiceDomainName(stack, \"EndpointDomain\",\n endpoint_service=vpces,\n domain_name=\"my-stuff.aws-cdk.dev\",\n public_hosted_zone=zone\n)",
858 "version": "2"
859 },
860 "csharp": {
861 "source": "using Amazon.CDK;\nusing Amazon.CDK.AWS.EC2;\nusing Amazon.CDK.AWS.ElasticLoadBalancingV2;\nusing Amazon.CDK.AWS.Route53;\n\nStack stack = new Stack();\nVpc vpc = new Vpc(stack, \"VPC\");\nNetworkLoadBalancer nlb = new NetworkLoadBalancer(stack, \"NLB\", new NetworkLoadBalancerProps {\n Vpc = vpc\n});\nVpcEndpointService vpces = new VpcEndpointService(stack, \"VPCES\", new VpcEndpointServiceProps {\n VpcEndpointServiceLoadBalancers = new [] { nlb }\n});\n// You must use a public hosted zone so domain ownership can be verified\nPublicHostedZone zone = new PublicHostedZone(stack, \"PHZ\", new PublicHostedZoneProps {\n ZoneName = \"aws-cdk.dev\"\n});\nnew VpcEndpointServiceDomainName(stack, \"EndpointDomain\", new VpcEndpointServiceDomainNameProps {\n EndpointService = vpces,\n DomainName = \"my-stuff.aws-cdk.dev\",\n PublicHostedZone = zone\n});",
862 "version": "1"
863 },
864 "java": {
865 "source": "import software.amazon.awscdk.core.Stack;\nimport software.amazon.awscdk.services.ec2.Vpc;\nimport software.amazon.awscdk.services.ec2.VpcEndpointService;\nimport software.amazon.awscdk.services.elasticloadbalancingv2.NetworkLoadBalancer;\nimport software.amazon.awscdk.services.route53.PublicHostedZone;\nimport software.amazon.awscdk.services.route53.VpcEndpointServiceDomainName;\n\nStack stack = new Stack();\nVpc vpc = new Vpc(stack, \"VPC\");\nNetworkLoadBalancer nlb = NetworkLoadBalancer.Builder.create(stack, \"NLB\")\n .vpc(vpc)\n .build();\nVpcEndpointService vpces = VpcEndpointService.Builder.create(stack, \"VPCES\")\n .vpcEndpointServiceLoadBalancers(List.of(nlb))\n .build();\n// You must use a public hosted zone so domain ownership can be verified\nPublicHostedZone zone = PublicHostedZone.Builder.create(stack, \"PHZ\")\n .zoneName(\"aws-cdk.dev\")\n .build();\nVpcEndpointServiceDomainName.Builder.create(stack, \"EndpointDomain\")\n .endpointService(vpces)\n .domainName(\"my-stuff.aws-cdk.dev\")\n .publicHostedZone(zone)\n .build();",
866 "version": "1"
867 },
868 "go": {
869 "source": "import \"github.com/aws-samples/dummy/awscdkcore\"\nimport \"github.com/aws-samples/dummy/awscdkawsec2\"\nimport \"github.com/aws-samples/dummy/awscdkawselasticloadbalancingv2\"\nimport \"github.com/aws-samples/dummy/awscdkawsroute53\"\n\nstack := awscdkcore.NewStack()\nvpc := awscdkawsec2.NewVpc(stack, jsii.String(\"VPC\"))\nnlb := awscdkawselasticloadbalancingv2.NewNetworkLoadBalancer(stack, jsii.String(\"NLB\"), &networkLoadBalancerProps{\n\tvpc: vpc,\n})\nvpces := awscdkawsec2.NewVpcEndpointService(stack, jsii.String(\"VPCES\"), &vpcEndpointServiceProps{\n\tvpcEndpointServiceLoadBalancers: []iVpcEndpointServiceLoadBalancer{\n\t\tnlb,\n\t},\n})\n// You must use a public hosted zone so domain ownership can be verified\nzone := awscdkawsroute53.NewPublicHostedZone(stack, jsii.String(\"PHZ\"), &publicHostedZoneProps{\n\tzoneName: jsii.String(\"aws-cdk.dev\"),\n})\nawscdkawsroute53.NewVpcEndpointServiceDomainName(stack, jsii.String(\"EndpointDomain\"), &vpcEndpointServiceDomainNameProps{\n\tendpointService: vpces,\n\tdomainName: jsii.String(\"my-stuff.aws-cdk.dev\"),\n\tpublicHostedZone: zone,\n})",
870 "version": "1"
871 },
872 "$": {
873 "source": "import { Stack } from '@aws-cdk/core';\nimport { Vpc, VpcEndpointService } from '@aws-cdk/aws-ec2';\nimport { NetworkLoadBalancer } from '@aws-cdk/aws-elasticloadbalancingv2';\nimport { PublicHostedZone, VpcEndpointServiceDomainName } from '@aws-cdk/aws-route53';\n\nconst stack = new Stack();\nconst vpc = new Vpc(stack, 'VPC');\nconst nlb = new NetworkLoadBalancer(stack, 'NLB', {\n vpc,\n});\nconst vpces = new VpcEndpointService(stack, 'VPCES', {\n vpcEndpointServiceLoadBalancers: [nlb],\n});\n// You must use a public hosted zone so domain ownership can be verified\nconst zone = new PublicHostedZone(stack, 'PHZ', {\n zoneName: 'aws-cdk.dev',\n});\nnew VpcEndpointServiceDomainName(stack, 'EndpointDomain', {\n endpointService: vpces,\n domainName: 'my-stuff.aws-cdk.dev',\n publicHostedZone: zone,\n});",
874 "version": "0"
875 }
876 },
877 "location": {
878 "api": {
879 "api": "moduleReadme",
880 "moduleFqn": "@aws-cdk/aws-route53"
881 },
882 "field": {
883 "field": "markdown",
884 "line": 248
885 }
886 },
887 "didCompile": true,
888 "fqnsReferenced": [
889 "@aws-cdk/aws-ec2.IVpc",
890 "@aws-cdk/aws-ec2.IVpcEndpointService",
891 "@aws-cdk/aws-ec2.Vpc",
892 "@aws-cdk/aws-ec2.VpcEndpointService",
893 "@aws-cdk/aws-ec2.VpcEndpointServiceProps",
894 "@aws-cdk/aws-elasticloadbalancingv2.NetworkLoadBalancer",
895 "@aws-cdk/aws-elasticloadbalancingv2.NetworkLoadBalancerProps",
896 "@aws-cdk/aws-route53.IPublicHostedZone",
897 "@aws-cdk/aws-route53.PublicHostedZone",
898 "@aws-cdk/aws-route53.PublicHostedZoneProps",
899 "@aws-cdk/aws-route53.VpcEndpointServiceDomainName",
900 "@aws-cdk/aws-route53.VpcEndpointServiceDomainNameProps",
901 "@aws-cdk/core.Stack",
902 "constructs.Construct"
903 ],
904 "fullSource": "import { Stack } from '@aws-cdk/core';\nimport { Vpc, VpcEndpointService } from '@aws-cdk/aws-ec2';\nimport { NetworkLoadBalancer } from '@aws-cdk/aws-elasticloadbalancingv2';\nimport { PublicHostedZone, VpcEndpointServiceDomainName } from '@aws-cdk/aws-route53';\n\nconst stack = new Stack();\nconst vpc = new Vpc(stack, 'VPC');\nconst nlb = new NetworkLoadBalancer(stack, 'NLB', {\n vpc,\n});\nconst vpces = new VpcEndpointService(stack, 'VPCES', {\n vpcEndpointServiceLoadBalancers: [nlb],\n});\n// You must use a public hosted zone so domain ownership can be verified\nconst zone = new PublicHostedZone(stack, 'PHZ', {\n zoneName: 'aws-cdk.dev',\n});\nnew VpcEndpointServiceDomainName(stack, 'EndpointDomain', {\n endpointService: vpces,\n domainName: 'my-stuff.aws-cdk.dev',\n publicHostedZone: zone,\n});",
905 "syntaxKindCounter": {
906 "10": 11,
907 "75": 31,
908 "192": 1,
909 "193": 4,
910 "197": 6,
911 "225": 5,
912 "226": 1,
913 "242": 5,
914 "243": 5,
915 "254": 4,
916 "255": 4,
917 "257": 4,
918 "258": 6,
919 "281": 5,
920 "282": 1,
921 "290": 1
922 },
923 "fqnsFingerprint": "e2baaa82d5cae42fcc14d95b0058a2860773e3d7e2ea052df52ac7ce542f10ba"
924 },
925 "de43d9436a2ba511b8b570cbeb5378b980d7f81089ca9f8c07a868a3d8ae3f4c": {
926 "translations": {
927 "python": {
928 "source": "import aws_cdk.aws_apigateway as apigw\n\n# zone: route53.HostedZone\n# rest_api: apigw.LambdaRestApi\n\n\nroute53.ARecord(self, \"AliasRecord\",\n zone=zone,\n target=route53.RecordTarget.from_alias(targets.ApiGateway(rest_api))\n)",
929 "version": "2"
930 },
931 "csharp": {
932 "source": "using Amazon.CDK.AWS.APIGateway;\n\nHostedZone zone;\nLambdaRestApi restApi;\n\n\nnew ARecord(this, \"AliasRecord\", new ARecordProps {\n Zone = zone,\n Target = RecordTarget.FromAlias(new ApiGateway(restApi))\n});",
933 "version": "1"
934 },
935 "java": {
936 "source": "import software.amazon.awscdk.services.apigateway.*;\n\nHostedZone zone;\nLambdaRestApi restApi;\n\n\nARecord.Builder.create(this, \"AliasRecord\")\n .zone(zone)\n .target(RecordTarget.fromAlias(new ApiGateway(restApi)))\n .build();",
937 "version": "1"
938 },
939 "go": {
940 "source": "import apigw \"github.com/aws-samples/dummy/awscdkawsapigateway\"\n\nvar zone hostedZone\nvar restApi lambdaRestApi\n\n\nroute53.NewARecord(this, jsii.String(\"AliasRecord\"), &aRecordProps{\n\tzone: zone,\n\ttarget: route53.recordTarget.fromAlias(targets.NewApiGateway(restApi)),\n})",
941 "version": "1"
942 },
943 "$": {
944 "source": "import * as apigw from '@aws-cdk/aws-apigateway';\n\ndeclare const zone: route53.HostedZone;\ndeclare const restApi: apigw.LambdaRestApi;\n\nnew route53.ARecord(this, 'AliasRecord', {\n zone,\n target: route53.RecordTarget.fromAlias(new targets.ApiGateway(restApi)),\n // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomain(domainName)),\n});",
945 "version": "0"
946 }
947 },
948 "location": {
949 "api": {
950 "api": "type",
951 "fqn": "@aws-cdk/aws-route53.ARecord"
952 },
953 "field": {
954 "field": "example"
955 }
956 },
957 "didCompile": true,
958 "fqnsReferenced": [
959 "@aws-cdk/aws-apigateway.RestApiBase",
960 "@aws-cdk/aws-route53-targets.ApiGateway",
961 "@aws-cdk/aws-route53.ARecord",
962 "@aws-cdk/aws-route53.ARecordProps",
963 "@aws-cdk/aws-route53.IAliasRecordTarget",
964 "@aws-cdk/aws-route53.IHostedZone",
965 "@aws-cdk/aws-route53.RecordTarget",
966 "@aws-cdk/aws-route53.RecordTarget#fromAlias",
967 "constructs.Construct"
968 ],
969 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as apigw from '@aws-cdk/aws-apigateway';\n\ndeclare const zone: route53.HostedZone;\ndeclare const restApi: apigw.LambdaRestApi;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew route53.ARecord(this, 'AliasRecord', {\n zone,\n target: route53.RecordTarget.fromAlias(new targets.ApiGateway(restApi)),\n // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomain(domainName)),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
970 "syntaxKindCounter": {
971 "10": 2,
972 "75": 17,
973 "104": 1,
974 "130": 2,
975 "153": 2,
976 "169": 2,
977 "193": 1,
978 "194": 4,
979 "196": 1,
980 "197": 2,
981 "225": 2,
982 "226": 1,
983 "242": 2,
984 "243": 2,
985 "254": 1,
986 "255": 1,
987 "256": 1,
988 "281": 1,
989 "282": 1,
990 "290": 1
991 },
992 "fqnsFingerprint": "6cf3a5e149b9bdc925df4b816cf116f10b4a2b4f6c0fc7af8597849a9cfa8928"
993 },
994 "8a44ee7c02c9eeec7c97eda8f8f3b9a7191e02b1745e94be5a8fce6839dd8e10": {
995 "translations": {
996 "python": {
997 "source": "import aws_cdk.aws_apigateway as apigw\n\n# zone: route53.HostedZone\n# rest_api: apigw.LambdaRestApi\n\n\nroute53.ARecord(self, \"AliasRecord\",\n zone=zone,\n target=route53.RecordTarget.from_alias(targets.ApiGateway(rest_api))\n)",
998 "version": "2"
999 },
1000 "csharp": {
1001 "source": "using Amazon.CDK.AWS.APIGateway;\n\nHostedZone zone;\nLambdaRestApi restApi;\n\n\nnew ARecord(this, \"AliasRecord\", new ARecordProps {\n Zone = zone,\n Target = RecordTarget.FromAlias(new ApiGateway(restApi))\n});",
1002 "version": "1"
1003 },
1004 "java": {
1005 "source": "import software.amazon.awscdk.services.apigateway.*;\n\nHostedZone zone;\nLambdaRestApi restApi;\n\n\nARecord.Builder.create(this, \"AliasRecord\")\n .zone(zone)\n .target(RecordTarget.fromAlias(new ApiGateway(restApi)))\n .build();",
1006 "version": "1"
1007 },
1008 "go": {
1009 "source": "import apigw \"github.com/aws-samples/dummy/awscdkawsapigateway\"\n\nvar zone hostedZone\nvar restApi lambdaRestApi\n\n\nroute53.NewARecord(this, jsii.String(\"AliasRecord\"), &aRecordProps{\n\tzone: zone,\n\ttarget: route53.recordTarget.fromAlias(targets.NewApiGateway(restApi)),\n})",
1010 "version": "1"
1011 },
1012 "$": {
1013 "source": "import * as apigw from '@aws-cdk/aws-apigateway';\n\ndeclare const zone: route53.HostedZone;\ndeclare const restApi: apigw.LambdaRestApi;\n\nnew route53.ARecord(this, 'AliasRecord', {\n zone,\n target: route53.RecordTarget.fromAlias(new targets.ApiGateway(restApi)),\n // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomain(domainName)),\n});",
1014 "version": "0"
1015 }
1016 },
1017 "location": {
1018 "api": {
1019 "api": "type",
1020 "fqn": "@aws-cdk/aws-route53.ARecordProps"
1021 },
1022 "field": {
1023 "field": "example"
1024 }
1025 },
1026 "didCompile": true,
1027 "fqnsReferenced": [
1028 "@aws-cdk/aws-apigateway.RestApiBase",
1029 "@aws-cdk/aws-route53-targets.ApiGateway",
1030 "@aws-cdk/aws-route53.ARecord",
1031 "@aws-cdk/aws-route53.ARecordProps",
1032 "@aws-cdk/aws-route53.IAliasRecordTarget",
1033 "@aws-cdk/aws-route53.IHostedZone",
1034 "@aws-cdk/aws-route53.RecordTarget",
1035 "@aws-cdk/aws-route53.RecordTarget#fromAlias",
1036 "constructs.Construct"
1037 ],
1038 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as apigw from '@aws-cdk/aws-apigateway';\n\ndeclare const zone: route53.HostedZone;\ndeclare const restApi: apigw.LambdaRestApi;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nnew route53.ARecord(this, 'AliasRecord', {\n zone,\n target: route53.RecordTarget.fromAlias(new targets.ApiGateway(restApi)),\n // or - route53.RecordTarget.fromAlias(new alias.ApiGatewayDomain(domainName)),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1039 "syntaxKindCounter": {
1040 "10": 2,
1041 "75": 17,
1042 "104": 1,
1043 "130": 2,
1044 "153": 2,
1045 "169": 2,
1046 "193": 1,
1047 "194": 4,
1048 "196": 1,
1049 "197": 2,
1050 "225": 2,
1051 "226": 1,
1052 "242": 2,
1053 "243": 2,
1054 "254": 1,
1055 "255": 1,
1056 "256": 1,
1057 "281": 1,
1058 "282": 1,
1059 "290": 1
1060 },
1061 "fqnsFingerprint": "6cf3a5e149b9bdc925df4b816cf116f10b4a2b4f6c0fc7af8597849a9cfa8928"
1062 },
1063 "d613ba5cdbfcf62662ca81c0ced5f30971e695a1c53596fd1be7dcfdc81fccc9": {
1064 "translations": {
1065 "python": {
1066 "source": "import aws_cdk.aws_cloudfront as cloudfront\n\n# my_zone: route53.HostedZone\n# distribution: cloudfront.CloudFrontWebDistribution\n\nroute53.AaaaRecord(self, \"Alias\",\n zone=my_zone,\n target=route53.RecordTarget.from_alias(targets.CloudFrontTarget(distribution))\n)",
1067 "version": "2"
1068 },
1069 "csharp": {
1070 "source": "using Amazon.CDK.AWS.CloudFront;\n\nHostedZone myZone;\nCloudFrontWebDistribution distribution;\n\nnew AaaaRecord(this, \"Alias\", new AaaaRecordProps {\n Zone = myZone,\n Target = RecordTarget.FromAlias(new CloudFrontTarget(distribution))\n});",
1071 "version": "1"
1072 },
1073 "java": {
1074 "source": "import software.amazon.awscdk.services.cloudfront.*;\n\nHostedZone myZone;\nCloudFrontWebDistribution distribution;\n\nAaaaRecord.Builder.create(this, \"Alias\")\n .zone(myZone)\n .target(RecordTarget.fromAlias(new CloudFrontTarget(distribution)))\n .build();",
1075 "version": "1"
1076 },
1077 "go": {
1078 "source": "import cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nvar myZone hostedZone\nvar distribution cloudFrontWebDistribution\n\nroute53.NewAaaaRecord(this, jsii.String(\"Alias\"), &aaaaRecordProps{\n\tzone: myZone,\n\ttarget: route53.recordTarget.fromAlias(targets.NewCloudFrontTarget(distribution)),\n})",
1079 "version": "1"
1080 },
1081 "$": {
1082 "source": "import * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const myZone: route53.HostedZone;\ndeclare const distribution: cloudfront.CloudFrontWebDistribution;\nnew route53.AaaaRecord(this, 'Alias', {\n zone: myZone,\n target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),\n});",
1083 "version": "0"
1084 }
1085 },
1086 "location": {
1087 "api": {
1088 "api": "type",
1089 "fqn": "@aws-cdk/aws-route53.AaaaRecord"
1090 },
1091 "field": {
1092 "field": "example"
1093 }
1094 },
1095 "didCompile": true,
1096 "fqnsReferenced": [
1097 "@aws-cdk/aws-cloudfront.IDistribution",
1098 "@aws-cdk/aws-route53-targets.CloudFrontTarget",
1099 "@aws-cdk/aws-route53.AaaaRecord",
1100 "@aws-cdk/aws-route53.AaaaRecordProps",
1101 "@aws-cdk/aws-route53.IAliasRecordTarget",
1102 "@aws-cdk/aws-route53.IHostedZone",
1103 "@aws-cdk/aws-route53.RecordTarget",
1104 "@aws-cdk/aws-route53.RecordTarget#fromAlias",
1105 "constructs.Construct"
1106 ],
1107 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const myZone: route53.HostedZone;\ndeclare const distribution: cloudfront.CloudFrontWebDistribution;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nnew route53.AaaaRecord(this, 'Alias', {\n zone: myZone,\n target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1108 "syntaxKindCounter": {
1109 "10": 2,
1110 "75": 18,
1111 "104": 1,
1112 "130": 2,
1113 "153": 2,
1114 "169": 2,
1115 "193": 1,
1116 "194": 4,
1117 "196": 1,
1118 "197": 2,
1119 "225": 2,
1120 "226": 1,
1121 "242": 2,
1122 "243": 2,
1123 "254": 1,
1124 "255": 1,
1125 "256": 1,
1126 "281": 2,
1127 "290": 1
1128 },
1129 "fqnsFingerprint": "bf165b5d0892af13da402fb2acc8f959bd90b4313997139498858248c3dae4c3"
1130 },
1131 "3835a7014a54a586d93bda9139dad15d314e95d01a37b00cf809387e26864cd1": {
1132 "translations": {
1133 "python": {
1134 "source": "import aws_cdk.aws_cloudfront as cloudfront\n\n# my_zone: route53.HostedZone\n# distribution: cloudfront.CloudFrontWebDistribution\n\nroute53.AaaaRecord(self, \"Alias\",\n zone=my_zone,\n target=route53.RecordTarget.from_alias(targets.CloudFrontTarget(distribution))\n)",
1135 "version": "2"
1136 },
1137 "csharp": {
1138 "source": "using Amazon.CDK.AWS.CloudFront;\n\nHostedZone myZone;\nCloudFrontWebDistribution distribution;\n\nnew AaaaRecord(this, \"Alias\", new AaaaRecordProps {\n Zone = myZone,\n Target = RecordTarget.FromAlias(new CloudFrontTarget(distribution))\n});",
1139 "version": "1"
1140 },
1141 "java": {
1142 "source": "import software.amazon.awscdk.services.cloudfront.*;\n\nHostedZone myZone;\nCloudFrontWebDistribution distribution;\n\nAaaaRecord.Builder.create(this, \"Alias\")\n .zone(myZone)\n .target(RecordTarget.fromAlias(new CloudFrontTarget(distribution)))\n .build();",
1143 "version": "1"
1144 },
1145 "go": {
1146 "source": "import cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nvar myZone hostedZone\nvar distribution cloudFrontWebDistribution\n\nroute53.NewAaaaRecord(this, jsii.String(\"Alias\"), &aaaaRecordProps{\n\tzone: myZone,\n\ttarget: route53.recordTarget.fromAlias(targets.NewCloudFrontTarget(distribution)),\n})",
1147 "version": "1"
1148 },
1149 "$": {
1150 "source": "import * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const myZone: route53.HostedZone;\ndeclare const distribution: cloudfront.CloudFrontWebDistribution;\nnew route53.AaaaRecord(this, 'Alias', {\n zone: myZone,\n target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),\n});",
1151 "version": "0"
1152 }
1153 },
1154 "location": {
1155 "api": {
1156 "api": "type",
1157 "fqn": "@aws-cdk/aws-route53.AaaaRecordProps"
1158 },
1159 "field": {
1160 "field": "example"
1161 }
1162 },
1163 "didCompile": true,
1164 "fqnsReferenced": [
1165 "@aws-cdk/aws-cloudfront.IDistribution",
1166 "@aws-cdk/aws-route53-targets.CloudFrontTarget",
1167 "@aws-cdk/aws-route53.AaaaRecord",
1168 "@aws-cdk/aws-route53.AaaaRecordProps",
1169 "@aws-cdk/aws-route53.IAliasRecordTarget",
1170 "@aws-cdk/aws-route53.IHostedZone",
1171 "@aws-cdk/aws-route53.RecordTarget",
1172 "@aws-cdk/aws-route53.RecordTarget#fromAlias",
1173 "constructs.Construct"
1174 ],
1175 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const myZone: route53.HostedZone;\ndeclare const distribution: cloudfront.CloudFrontWebDistribution;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as route53 from '@aws-cdk/aws-route53';\nimport * as targets from '@aws-cdk/aws-route53-targets';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as iam from '@aws-cdk/aws-iam';\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\nnew route53.AaaaRecord(this, 'Alias', {\n zone: myZone,\n target: route53.RecordTarget.fromAlias(new targets.CloudFrontTarget(distribution)),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1176 "syntaxKindCounter": {
1177 "10": 2,
1178 "75": 18,
1179 "104": 1,
1180 "130": 2,
1181 "153": 2,
1182 "169": 2,
1183 "193": 1,
1184 "194": 4,
1185 "196": 1,
1186 "197": 2,
1187 "225": 2,
1188 "226": 1,
1189 "242": 2,
1190 "243": 2,
1191 "254": 1,
1192 "255": 1,
1193 "256": 1,
1194 "281": 2,
1195 "290": 1
1196 },
1197 "fqnsFingerprint": "bf165b5d0892af13da402fb2acc8f959bd90b4313997139498858248c3dae4c3"
1198 },
1199 "9121366a4d118793049b0568c5b41df2640798ab310f206939e8575c3a45420e": {
1200 "translations": {
1201 "python": {
1202 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_route53 as route53\n\n# alias_record_target: route53.IAliasRecordTarget\n\naddress_record_target = route53.AddressRecordTarget.from_alias(alias_record_target)",
1203 "version": "2"
1204 },
1205 "csharp": {
1206 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Route53;\n\nIAliasRecordTarget aliasRecordTarget;\n\nRecordTarget addressRecordTarget = AddressRecordTarget.FromAlias(aliasRecordTarget);",
1207 "version": "1"
1208 },
1209 "java": {
1210 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.route53.*;\n\nIAliasRecordTarget aliasRecordTarget;\n\nRecordTarget addressRecordTarget = AddressRecordTarget.fromAlias(aliasRecordTarget);",
1211 "version": "1"
1212 },
1213 "go": {
1214 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport route53 \"github.com/aws-samples/dummy/awscdkawsroute53\"\n\nvar aliasRecordTarget iAliasRecordTarget\n\naddressRecordTarget := route53.addressRecordTarget.fromAlias(aliasRecordTarget)",
1215 "version": "1"
1216 },
1217 "$": {
1218 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as route53 from '@aws-cdk/aws-route53';\n\ndeclare const aliasRecordTarget: route53.IAliasRecordTarget;\nconst addressRecordTarget = route53.AddressRecordTarget.fromAlias(aliasRecordTarget);",
1219 "version": "0"
1220 }
1221 },
1222 "location": {
1223 "api": {
1224 "api": "type",
1225 "fqn": "@aws-cdk/aws-route53.AddressRecordTarget"
1226 },
1227 "field": {
1228 "field": "example"
1229 }
1230 },
1231 "didCompile": true,
1232 "fqnsReferenced": [
1233 "@aws-cdk/aws-route53.AddressRecordTarget",
1234 "@aws-cdk/aws-route53.IAliasRecordTarget",
1235 "@aws-cdk/aws-route53.RecordTarget",
1236 "@aws-cdk/aws-route53.RecordTarget#fromAlias"
1237 ],
1238 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as route53 from '@aws-cdk/aws-route53';\n\ndeclare const aliasRecordTarget: route53.IAliasRecordTarget;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst addressRecordTarget = route53.AddressRecordTarget.fromAlias(aliasRecordTarget);\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1239 "syntaxKindCounter": {
1240 "10": 1,
1241 "75": 9,
1242 "130": 1,
1243 "153": 1,
1244 "169": 1,
1245 "194": 2,
1246 "196": 1,
1247 "225": 2,
1248 "242": 2,
1249 "243": 2,
1250 "254": 1,
1251 "255": 1,
1252 "256": 1,
1253 "290": 1
1254 },
1255 "fqnsFingerprint": "b52ba2ceaf01e65717ffdc74facc39e6e3043a106961ea10c8670a14acd686fd"
1256 },
1257 "b4ada9967c4a6513b3a46a04b26c7c7ee629d6f9325f38d4994f565b2226b744": {
1258 "translations": {
1259 "python": {
1260 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_route53 as route53\n\nalias_record_target_config = route53.AliasRecordTargetConfig(\n dns_name=\"dnsName\",\n hosted_zone_id=\"hostedZoneId\"\n)",
1261 "version": "2"
1262 },
1263 "csharp": {
1264 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.Route53;\n\nAliasRecordTargetConfig aliasRecordTargetConfig = new AliasRecordTargetConfig {\n DnsName = \"dnsName\",\n HostedZoneId = \"hostedZoneId\"\n};",
1265 "version": "1"
1266 },
1267 "java": {
1268 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.route53.*;\n\nAliasRecordTargetConfig aliasRecordTargetConfig = AliasRecordTargetConfig.builder()\n .dnsName(\"dnsName\")\n .hostedZoneId(\"hostedZoneId\")\n .build();",
1269 "version": "1"
1270 },
1271 "go": {
1272 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport route53 \"github.com/aws-samples/dummy/awscdkawsroute53\"\n\naliasRecordTargetConfig := &aliasRecordTargetConfig{\n\tdnsName: jsii.String(\"dnsName\"),\n\thostedZoneId: jsii.String(\"hostedZoneId\"),\n}",
1273 "version": "1"
1274 },
1275 "$": {
1276 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as route53 from '@aws-cdk/aws-route53';\nconst aliasRecordTargetConfig: route53.AliasRecordTargetConfig = {\n dnsName: 'dnsName',\n hostedZoneId: 'hostedZoneId',\n};",
1277 "version": "0"
1278 }
1279 },
1280 "location": {
1281 "api": {
1282 "api": "type",
1283 "fqn": "@aws-cdk/aws-route53.AliasRecordTargetConfig"
1284 },
1285 "field": {
1286 "field": "example"
1287 }
1288 },
1289 "didCompile": true,
1290 "fqnsReferenced": [
1291 "@aws-cdk/aws-route53.AliasRecordTargetConfig"
1292 ],
1293 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as route53 from '@aws-cdk/aws-route53';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst aliasRecordTargetConfig: route53.AliasRecordTargetConfig = {\n dnsName: 'dnsName',\n hostedZoneId: 'hostedZoneId',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
1294 "syntaxKindCounter": {
1295 "10": 3,
1296 "75": 6,
1297 "153": 1,
1298 "169": 1,
1299 "193": 1,
1300 "225": 1,
1301 "242": 1,
1302 "243": 1,
1303 "254": 1,
1304 "255": 1,
1305 "256": 1,
1306 "281": 2,
1307 "290": 1
1308 },
1309 "fqnsFingerprint": "7d06d92af1aaab5cb3a18e84de37d7ca24b10cc075e6f84b2ccc938448f8c3ca"
1310 },
1311 "1d02642213730d43a860fe863a4d75a03ae926bffb36ef982fad643e0b0724d3": {
1312 "translations": {
1313 "python": {
1314 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_route53 as route53\nimport aws_cdk.core as cdk\n\n# hosted_zone: route53.HostedZone\n\ncaa_amazon_record = route53.CaaAmazonRecord(self, \"MyCaaAmazonRecord\",\n zone=hosted_zone,\n\n # the properties below are optional\n comment=\"comment\",