UNPKG

1.43 MBJSONView Raw
1{
2 "version": "2",
3 "toolVersion": "1.71.0",
4 "snippets": {
5 "10bd60d716c0026654038306c399171ff86952eb7729868c89b673ff498d0c60": {
6 "translations": {
7 "python": {
8 "source": "# Creates a distribution from an S3 bucket.\nmy_bucket = s3.Bucket(self, \"myBucket\")\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.S3Origin(my_bucket))\n)",
9 "version": "2"
10 },
11 "csharp": {
12 "source": "// Creates a distribution from an S3 bucket.\nBucket myBucket = new Bucket(this, \"myBucket\");\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new S3Origin(myBucket) }\n});",
13 "version": "1"
14 },
15 "java": {
16 "source": "// Creates a distribution from an S3 bucket.\nBucket myBucket = new Bucket(this, \"myBucket\");\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new S3Origin(myBucket)).build())\n .build();",
17 "version": "1"
18 },
19 "go": {
20 "source": "// Creates a distribution from an S3 bucket.\nmyBucket := s3.NewBucket(this, jsii.String(\"myBucket\"))\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t},\n})",
21 "version": "1"
22 },
23 "$": {
24 "source": "// Creates a distribution from an S3 bucket.\nconst myBucket = new s3.Bucket(this, 'myBucket');\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.S3Origin(myBucket) },\n});",
25 "version": "0"
26 }
27 },
28 "location": {
29 "api": {
30 "api": "moduleReadme",
31 "moduleFqn": "@aws-cdk/aws-cloudfront"
32 },
33 "field": {
34 "field": "markdown",
35 "line": 41
36 }
37 },
38 "didCompile": true,
39 "fqnsReferenced": [
40 "@aws-cdk/aws-cloudfront-origins.S3Origin",
41 "@aws-cdk/aws-cloudfront.BehaviorOptions",
42 "@aws-cdk/aws-cloudfront.Distribution",
43 "@aws-cdk/aws-cloudfront.DistributionProps",
44 "@aws-cdk/aws-cloudfront.IOrigin",
45 "@aws-cdk/aws-s3.Bucket",
46 "@aws-cdk/aws-s3.IBucket",
47 "constructs.Construct"
48 ],
49 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Creates a distribution from an S3 bucket.\nconst myBucket = new s3.Bucket(this, 'myBucket');\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.S3Origin(myBucket) },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
50 "syntaxKindCounter": {
51 "10": 2,
52 "75": 10,
53 "104": 2,
54 "193": 2,
55 "194": 3,
56 "197": 3,
57 "225": 1,
58 "226": 1,
59 "242": 1,
60 "243": 1,
61 "281": 2
62 },
63 "fqnsFingerprint": "6054c3dea3fc10aee00036440bb01052c5da960b61f593cd0ffe90e4c34b1bc9"
64 },
65 "0eb41a91dbb6bf95b75f9eccf49aa981f61c0ea1edb1a877918ab75abf65e66c": {
66 "translations": {
67 "python": {
68 "source": "# Creates a distribution from an ELBv2 load balancer\n# vpc: ec2.Vpc\n\n# Create an application load balancer in a VPC. 'internetFacing' must be 'true'\n# for CloudFront to access the load balancer and use it as an origin.\nlb = elbv2.ApplicationLoadBalancer(self, \"LB\",\n vpc=vpc,\n internet_facing=True\n)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.LoadBalancerV2Origin(lb))\n)",
69 "version": "2"
70 },
71 "csharp": {
72 "source": "// Creates a distribution from an ELBv2 load balancer\nVpc vpc;\n\n// Create an application load balancer in a VPC. 'internetFacing' must be 'true'\n// for CloudFront to access the load balancer and use it as an origin.\nApplicationLoadBalancer lb = new ApplicationLoadBalancer(this, \"LB\", new ApplicationLoadBalancerProps {\n Vpc = vpc,\n InternetFacing = true\n});\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new LoadBalancerV2Origin(lb) }\n});",
73 "version": "1"
74 },
75 "java": {
76 "source": "// Creates a distribution from an ELBv2 load balancer\nVpc vpc;\n\n// Create an application load balancer in a VPC. 'internetFacing' must be 'true'\n// for CloudFront to access the load balancer and use it as an origin.\nApplicationLoadBalancer lb = ApplicationLoadBalancer.Builder.create(this, \"LB\")\n .vpc(vpc)\n .internetFacing(true)\n .build();\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new LoadBalancerV2Origin(lb)).build())\n .build();",
77 "version": "1"
78 },
79 "go": {
80 "source": "// Creates a distribution from an ELBv2 load balancer\nvar vpc vpc\n\n// Create an application load balancer in a VPC. 'internetFacing' must be 'true'\n// for CloudFront to access the load balancer and use it as an origin.\nlb := elbv2.NewApplicationLoadBalancer(this, jsii.String(\"LB\"), &applicationLoadBalancerProps{\n\tvpc: vpc,\n\tinternetFacing: jsii.Boolean(true),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewLoadBalancerV2Origin(lb),\n\t},\n})",
81 "version": "1"
82 },
83 "$": {
84 "source": "// Creates a distribution from an ELBv2 load balancer\ndeclare const vpc: ec2.Vpc;\n// Create an application load balancer in a VPC. 'internetFacing' must be 'true'\n// for CloudFront to access the load balancer and use it as an origin.\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', {\n vpc,\n internetFacing: true,\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.LoadBalancerV2Origin(lb) },\n});",
85 "version": "0"
86 }
87 },
88 "location": {
89 "api": {
90 "api": "moduleReadme",
91 "moduleFqn": "@aws-cdk/aws-cloudfront"
92 },
93 "field": {
94 "field": "markdown",
95 "line": 60
96 }
97 },
98 "didCompile": true,
99 "fqnsReferenced": [
100 "@aws-cdk/aws-cloudfront-origins.LoadBalancerV2Origin",
101 "@aws-cdk/aws-cloudfront.BehaviorOptions",
102 "@aws-cdk/aws-cloudfront.Distribution",
103 "@aws-cdk/aws-cloudfront.DistributionProps",
104 "@aws-cdk/aws-cloudfront.IOrigin",
105 "@aws-cdk/aws-ec2.IVpc",
106 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancer",
107 "@aws-cdk/aws-elasticloadbalancingv2.ApplicationLoadBalancerProps",
108 "@aws-cdk/aws-elasticloadbalancingv2.ILoadBalancerV2",
109 "constructs.Construct"
110 ],
111 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creates a distribution from an ELBv2 load balancer\ndeclare const vpc: ec2.Vpc;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n// Create an application load balancer in a VPC. 'internetFacing' must be 'true'\n// for CloudFront to access the load balancer and use it as an origin.\nconst lb = new elbv2.ApplicationLoadBalancer(this, 'LB', {\n vpc,\n internetFacing: true,\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.LoadBalancerV2Origin(lb) },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
112 "syntaxKindCounter": {
113 "10": 2,
114 "75": 15,
115 "104": 2,
116 "106": 1,
117 "130": 1,
118 "153": 1,
119 "169": 1,
120 "193": 3,
121 "194": 3,
122 "197": 3,
123 "225": 2,
124 "226": 1,
125 "242": 2,
126 "243": 2,
127 "281": 3,
128 "282": 1,
129 "290": 1
130 },
131 "fqnsFingerprint": "e8fe61df5ea6779d1786c8e56fac606fa3fc998ec51aa9b1fffb3cf6a5288c47"
132 },
133 "0d13777da28c0044f97c3b4fff394de8f2645067eb97f53765a9c7e13fe12b4e": {
134 "translations": {
135 "python": {
136 "source": "# Creates a distribution from an HTTP endpoint\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.HttpOrigin(\"www.example.com\"))\n)",
137 "version": "2"
138 },
139 "csharp": {
140 "source": "// Creates a distribution from an HTTP endpoint\n// Creates a distribution from an HTTP endpoint\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new HttpOrigin(\"www.example.com\") }\n});",
141 "version": "1"
142 },
143 "java": {
144 "source": "// Creates a distribution from an HTTP endpoint\n// Creates a distribution from an HTTP endpoint\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new HttpOrigin(\"www.example.com\")).build())\n .build();",
145 "version": "1"
146 },
147 "go": {
148 "source": "// Creates a distribution from an HTTP endpoint\n// Creates a distribution from an HTTP endpoint\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t},\n})",
149 "version": "1"
150 },
151 "$": {
152 "source": "// Creates a distribution from an HTTP endpoint\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') },\n});",
153 "version": "0"
154 }
155 },
156 "location": {
157 "api": {
158 "api": "moduleReadme",
159 "moduleFqn": "@aws-cdk/aws-cloudfront"
160 },
161 "field": {
162 "field": "markdown",
163 "line": 78
164 }
165 },
166 "didCompile": true,
167 "fqnsReferenced": [
168 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
169 "@aws-cdk/aws-cloudfront.BehaviorOptions",
170 "@aws-cdk/aws-cloudfront.Distribution",
171 "@aws-cdk/aws-cloudfront.DistributionProps",
172 "@aws-cdk/aws-cloudfront.IOrigin",
173 "constructs.Construct"
174 ],
175 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Creates a distribution from an HTTP endpoint\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
176 "syntaxKindCounter": {
177 "10": 2,
178 "75": 6,
179 "104": 1,
180 "193": 2,
181 "194": 2,
182 "197": 2,
183 "226": 1,
184 "281": 2
185 },
186 "fqnsFingerprint": "9d4e5701c24c3d19592174d8634a0b76aa3c9a7351b3fee53c97e10691972495"
187 },
188 "97d3c5a4afcb2902fc47831913f37a29426f7d0628f4bdfc4015763535020bb8": {
189 "translations": {
190 "python": {
191 "source": "# To use your own domain name in a Distribution, you must associate a certificate\nimport aws_cdk.aws_certificatemanager as acm\nimport aws_cdk.aws_route53 as route53\n\n# hosted_zone: route53.HostedZone\n\n# my_bucket: s3.Bucket\n\nmy_certificate = acm.DnsValidatedCertificate(self, \"mySiteCert\",\n domain_name=\"www.example.com\",\n hosted_zone=hosted_zone\n)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.S3Origin(my_bucket)),\n domain_names=[\"www.example.com\"],\n certificate=my_certificate\n)",
192 "version": "2"
193 },
194 "csharp": {
195 "source": "// To use your own domain name in a Distribution, you must associate a certificate\nusing Amazon.CDK.AWS.CertificateManager;\nusing Amazon.CDK.AWS.Route53;\n\nHostedZone hostedZone;\n\nBucket myBucket;\n\nDnsValidatedCertificate myCertificate = new DnsValidatedCertificate(this, \"mySiteCert\", new DnsValidatedCertificateProps {\n DomainName = \"www.example.com\",\n HostedZone = hostedZone\n});\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new S3Origin(myBucket) },\n DomainNames = new [] { \"www.example.com\" },\n Certificate = myCertificate\n});",
196 "version": "1"
197 },
198 "java": {
199 "source": "// To use your own domain name in a Distribution, you must associate a certificate\nimport software.amazon.awscdk.services.certificatemanager.*;\nimport software.amazon.awscdk.services.route53.*;\n\nHostedZone hostedZone;\n\nBucket myBucket;\n\nDnsValidatedCertificate myCertificate = DnsValidatedCertificate.Builder.create(this, \"mySiteCert\")\n .domainName(\"www.example.com\")\n .hostedZone(hostedZone)\n .build();\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new S3Origin(myBucket)).build())\n .domainNames(List.of(\"www.example.com\"))\n .certificate(myCertificate)\n .build();",
200 "version": "1"
201 },
202 "go": {
203 "source": "// To use your own domain name in a Distribution, you must associate a certificate\nimport acm \"github.com/aws-samples/dummy/awscdkawscertificatemanager\"\nimport route53 \"github.com/aws-samples/dummy/awscdkawsroute53\"\n\nvar hostedZone hostedZone\n\nvar myBucket bucket\n\nmyCertificate := acm.NewDnsValidatedCertificate(this, jsii.String(\"mySiteCert\"), &dnsValidatedCertificateProps{\n\tdomainName: jsii.String(\"www.example.com\"),\n\thostedZone: hostedZone,\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t},\n\tdomainNames: []*string{\n\t\tjsii.String(\"www.example.com\"),\n\t},\n\tcertificate: myCertificate,\n})",
204 "version": "1"
205 },
206 "$": {
207 "source": "// To use your own domain name in a Distribution, you must associate a certificate\nimport * as acm from '@aws-cdk/aws-certificatemanager';\nimport * as route53 from '@aws-cdk/aws-route53';\n\ndeclare const hostedZone: route53.HostedZone;\nconst myCertificate = new acm.DnsValidatedCertificate(this, 'mySiteCert', {\n domainName: 'www.example.com',\n hostedZone,\n});\n\ndeclare const myBucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.S3Origin(myBucket) },\n domainNames: ['www.example.com'],\n certificate: myCertificate,\n});",
208 "version": "0"
209 }
210 },
211 "location": {
212 "api": {
213 "api": "moduleReadme",
214 "moduleFqn": "@aws-cdk/aws-cloudfront"
215 },
216 "field": {
217 "field": "markdown",
218 "line": 96
219 }
220 },
221 "didCompile": true,
222 "fqnsReferenced": [
223 "@aws-cdk/aws-certificatemanager.DnsValidatedCertificate",
224 "@aws-cdk/aws-certificatemanager.DnsValidatedCertificateProps",
225 "@aws-cdk/aws-certificatemanager.ICertificate",
226 "@aws-cdk/aws-cloudfront-origins.S3Origin",
227 "@aws-cdk/aws-cloudfront.BehaviorOptions",
228 "@aws-cdk/aws-cloudfront.Distribution",
229 "@aws-cdk/aws-cloudfront.DistributionProps",
230 "@aws-cdk/aws-cloudfront.IOrigin",
231 "@aws-cdk/aws-route53.IHostedZone",
232 "@aws-cdk/aws-s3.IBucket",
233 "constructs.Construct"
234 ],
235 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// To use your own domain name in a Distribution, you must associate a certificate\nimport * as acm from '@aws-cdk/aws-certificatemanager';\nimport * as route53 from '@aws-cdk/aws-route53';\n\ndeclare const hostedZone: route53.HostedZone;\n\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myCertificate = new acm.DnsValidatedCertificate(this, 'mySiteCert', {\n domainName: 'www.example.com',\n hostedZone,\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.S3Origin(myBucket) },\n domainNames: ['www.example.com'],\n certificate: myCertificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
236 "syntaxKindCounter": {
237 "10": 6,
238 "75": 23,
239 "104": 2,
240 "130": 2,
241 "153": 2,
242 "169": 2,
243 "192": 1,
244 "193": 3,
245 "194": 3,
246 "197": 3,
247 "225": 3,
248 "226": 1,
249 "242": 3,
250 "243": 3,
251 "254": 2,
252 "255": 2,
253 "256": 2,
254 "281": 5,
255 "282": 1,
256 "290": 1
257 },
258 "fqnsFingerprint": "b3d42a7e82a953feb554a11491f0f0d5b1ad75a47a1c8ea8331d466d1bc807c8"
259 },
260 "60e33da81d7b188ed87bff364c5b18f6f846e155127f116834ecba505a4a06e9": {
261 "translations": {
262 "python": {
263 "source": "# Create a Distribution with a custom domain name and a minimum protocol version.\n# my_bucket: s3.Bucket\n\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.S3Origin(my_bucket)),\n domain_names=[\"www.example.com\"],\n minimum_protocol_version=cloudfront.SecurityPolicyProtocol.TLS_V1_2016,\n ssl_support_method=cloudfront.SSLMethod.SNI\n)",
264 "version": "2"
265 },
266 "csharp": {
267 "source": "// Create a Distribution with a custom domain name and a minimum protocol version.\nBucket myBucket;\n\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new S3Origin(myBucket) },\n DomainNames = new [] { \"www.example.com\" },\n MinimumProtocolVersion = SecurityPolicyProtocol.TLS_V1_2016,\n SslSupportMethod = SSLMethod.SNI\n});",
268 "version": "1"
269 },
270 "java": {
271 "source": "// Create a Distribution with a custom domain name and a minimum protocol version.\nBucket myBucket;\n\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new S3Origin(myBucket)).build())\n .domainNames(List.of(\"www.example.com\"))\n .minimumProtocolVersion(SecurityPolicyProtocol.TLS_V1_2016)\n .sslSupportMethod(SSLMethod.SNI)\n .build();",
272 "version": "1"
273 },
274 "go": {
275 "source": "// Create a Distribution with a custom domain name and a minimum protocol version.\nvar myBucket bucket\n\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t},\n\tdomainNames: []*string{\n\t\tjsii.String(\"www.example.com\"),\n\t},\n\tminimumProtocolVersion: cloudfront.securityPolicyProtocol_TLS_V1_2016,\n\tsslSupportMethod: cloudfront.sSLMethod_SNI,\n})",
276 "version": "1"
277 },
278 "$": {
279 "source": "// Create a Distribution with a custom domain name and a minimum protocol version.\ndeclare const myBucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.S3Origin(myBucket) },\n domainNames: ['www.example.com'],\n minimumProtocolVersion: cloudfront.SecurityPolicyProtocol.TLS_V1_2016,\n sslSupportMethod: cloudfront.SSLMethod.SNI,\n});",
280 "version": "0"
281 }
282 },
283 "location": {
284 "api": {
285 "api": "moduleReadme",
286 "moduleFqn": "@aws-cdk/aws-cloudfront"
287 },
288 "field": {
289 "field": "markdown",
290 "line": 117
291 }
292 },
293 "didCompile": true,
294 "fqnsReferenced": [
295 "@aws-cdk/aws-cloudfront-origins.S3Origin",
296 "@aws-cdk/aws-cloudfront.BehaviorOptions",
297 "@aws-cdk/aws-cloudfront.Distribution",
298 "@aws-cdk/aws-cloudfront.DistributionProps",
299 "@aws-cdk/aws-cloudfront.IOrigin",
300 "@aws-cdk/aws-cloudfront.SSLMethod",
301 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
302 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
303 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#TLS_V1_2016",
304 "@aws-cdk/aws-s3.IBucket",
305 "constructs.Construct"
306 ],
307 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Create a Distribution with a custom domain name and a minimum protocol version.\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.S3Origin(myBucket) },\n domainNames: ['www.example.com'],\n minimumProtocolVersion: cloudfront.SecurityPolicyProtocol.TLS_V1_2016,\n sslSupportMethod: cloudfront.SSLMethod.SNI,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
308 "syntaxKindCounter": {
309 "10": 2,
310 "75": 19,
311 "104": 1,
312 "130": 1,
313 "153": 1,
314 "169": 1,
315 "192": 1,
316 "193": 2,
317 "194": 6,
318 "197": 2,
319 "225": 1,
320 "226": 1,
321 "242": 1,
322 "243": 1,
323 "281": 5,
324 "290": 1
325 },
326 "fqnsFingerprint": "b5076c304f4d95e1d23ca6a7eb322d7cc88e04d6de70b8eaacc21588fe93797a"
327 },
328 "b31553e50f4abe07077cb3c2b53a0a33d2f29893a1cec5199b849a4ec7f1204d": {
329 "translations": {
330 "python": {
331 "source": "# Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\n# my_bucket: s3.Bucket\n\nmy_web_distribution = cloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n allowed_methods=cloudfront.AllowedMethods.ALLOW_ALL,\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n )\n)",
332 "version": "2"
333 },
334 "csharp": {
335 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nBucket myBucket;\n\nDistribution myWebDistribution = new Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n AllowedMethods = AllowedMethods.ALLOW_ALL,\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n }\n});",
336 "version": "1"
337 },
338 "java": {
339 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nBucket myBucket;\n\nDistribution myWebDistribution = Distribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .allowedMethods(AllowedMethods.ALLOW_ALL)\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build())\n .build();",
340 "version": "1"
341 },
342 "go": {
343 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nvar myBucket bucket\n\nmyWebDistribution := cloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tallowedMethods: cloudfront.allowedMethods_ALLOW_ALL(),\n\t\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n\t},\n})",
344 "version": "1"
345 },
346 "$": {
347 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\ndeclare const myBucket: s3.Bucket;\nconst myWebDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n});",
348 "version": "0"
349 }
350 },
351 "location": {
352 "api": {
353 "api": "moduleReadme",
354 "moduleFqn": "@aws-cdk/aws-cloudfront"
355 },
356 "field": {
357 "field": "markdown",
358 "line": 137
359 }
360 },
361 "didCompile": true,
362 "fqnsReferenced": [
363 "@aws-cdk/aws-cloudfront-origins.S3Origin",
364 "@aws-cdk/aws-cloudfront.AllowedMethods",
365 "@aws-cdk/aws-cloudfront.AllowedMethods#ALLOW_ALL",
366 "@aws-cdk/aws-cloudfront.BehaviorOptions",
367 "@aws-cdk/aws-cloudfront.Distribution",
368 "@aws-cdk/aws-cloudfront.DistributionProps",
369 "@aws-cdk/aws-cloudfront.IOrigin",
370 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
371 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
372 "@aws-cdk/aws-s3.IBucket",
373 "constructs.Construct"
374 ],
375 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myWebDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
376 "syntaxKindCounter": {
377 "10": 1,
378 "75": 19,
379 "104": 1,
380 "130": 1,
381 "153": 1,
382 "169": 1,
383 "193": 2,
384 "194": 6,
385 "197": 2,
386 "225": 2,
387 "242": 2,
388 "243": 2,
389 "281": 4,
390 "290": 1
391 },
392 "fqnsFingerprint": "50620db3ad080e54f01a59a38a6a5c8fb0c235dcdf48e49e85c101f75cb744ce"
393 },
394 "ee481812c9e0ba0fa7206118893206e3c448d74d688840df077d04a7086a15df": {
395 "translations": {
396 "python": {
397 "source": "# Add a behavior to a Distribution after initial creation.\n# my_bucket: s3.Bucket\n# my_web_distribution: cloudfront.Distribution\n\nmy_web_distribution.add_behavior(\"/images/*.jpg\", origins.S3Origin(my_bucket),\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n)",
398 "version": "2"
399 },
400 "csharp": {
401 "source": "// Add a behavior to a Distribution after initial creation.\nBucket myBucket;\nDistribution myWebDistribution;\n\nmyWebDistribution.AddBehavior(\"/images/*.jpg\", new S3Origin(myBucket), new AddBehaviorOptions {\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n});",
402 "version": "1"
403 },
404 "java": {
405 "source": "// Add a behavior to a Distribution after initial creation.\nBucket myBucket;\nDistribution myWebDistribution;\n\nmyWebDistribution.addBehavior(\"/images/*.jpg\", new S3Origin(myBucket), AddBehaviorOptions.builder()\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build());",
406 "version": "1"
407 },
408 "go": {
409 "source": "// Add a behavior to a Distribution after initial creation.\nvar myBucket bucket\nvar myWebDistribution distribution\n\nmyWebDistribution.addBehavior(jsii.String(\"/images/*.jpg\"), origins.NewS3Origin(myBucket), &addBehaviorOptions{\n\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n})",
410 "version": "1"
411 },
412 "$": {
413 "source": "// Add a behavior to a Distribution after initial creation.\ndeclare const myBucket: s3.Bucket;\ndeclare const myWebDistribution: cloudfront.Distribution;\nmyWebDistribution.addBehavior('/images/*.jpg', new origins.S3Origin(myBucket), {\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n});",
414 "version": "0"
415 }
416 },
417 "location": {
418 "api": {
419 "api": "moduleReadme",
420 "moduleFqn": "@aws-cdk/aws-cloudfront"
421 },
422 "field": {
423 "field": "markdown",
424 "line": 153
425 }
426 },
427 "didCompile": true,
428 "fqnsReferenced": [
429 "@aws-cdk/aws-cloudfront-origins.S3Origin",
430 "@aws-cdk/aws-cloudfront.AddBehaviorOptions",
431 "@aws-cdk/aws-cloudfront.Distribution#addBehavior",
432 "@aws-cdk/aws-cloudfront.IOrigin",
433 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
434 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
435 "@aws-cdk/aws-s3.IBucket"
436 ],
437 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Add a behavior to a Distribution after initial creation.\ndeclare const myBucket: s3.Bucket;\ndeclare const myWebDistribution: cloudfront.Distribution;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nmyWebDistribution.addBehavior('/images/*.jpg', new origins.S3Origin(myBucket), {\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
438 "syntaxKindCounter": {
439 "10": 1,
440 "75": 15,
441 "130": 2,
442 "153": 2,
443 "169": 2,
444 "193": 1,
445 "194": 4,
446 "196": 1,
447 "197": 1,
448 "225": 2,
449 "226": 1,
450 "242": 2,
451 "243": 2,
452 "281": 1,
453 "290": 1
454 },
455 "fqnsFingerprint": "b9b3498bcb1a5ffdb7676e952efcc6329c8dc4456407e8b4e6f5a84fa87b77e9"
456 },
457 "3c209d169258e09da4dd7e751c2e8e6acfe3a0f7203538907d8ac233df5cdaed": {
458 "translations": {
459 "python": {
460 "source": "# Create a Distribution with additional behaviors at creation time.\n# my_bucket: s3.Bucket\n\nbucket_origin = origins.S3Origin(my_bucket)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n allowed_methods=cloudfront.AllowedMethods.ALLOW_ALL,\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n ),\n additional_behaviors={\n \"/images/*.jpg\": cloudfront.BehaviorOptions(\n origin=bucket_origin,\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n )\n }\n)",
461 "version": "2"
462 },
463 "csharp": {
464 "source": "// Create a Distribution with additional behaviors at creation time.\nBucket myBucket;\n\nS3Origin bucketOrigin = new S3Origin(myBucket);\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n AllowedMethods = AllowedMethods.ALLOW_ALL,\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n },\n AdditionalBehaviors = new Dictionary<string, BehaviorOptions> {\n { \"/images/*.jpg\", new BehaviorOptions {\n Origin = bucketOrigin,\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n } }\n }\n});",
465 "version": "1"
466 },
467 "java": {
468 "source": "// Create a Distribution with additional behaviors at creation time.\nBucket myBucket;\n\nS3Origin bucketOrigin = new S3Origin(myBucket);\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .allowedMethods(AllowedMethods.ALLOW_ALL)\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build())\n .additionalBehaviors(Map.of(\n \"/images/*.jpg\", BehaviorOptions.builder()\n .origin(bucketOrigin)\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build()))\n .build();",
469 "version": "1"
470 },
471 "go": {
472 "source": "// Create a Distribution with additional behaviors at creation time.\nvar myBucket bucket\n\nbucketOrigin := origins.NewS3Origin(myBucket)\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tallowedMethods: cloudfront.allowedMethods_ALLOW_ALL(),\n\t\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n\t},\n\tadditionalBehaviors: map[string]*behaviorOptions{\n\t\t\"/images/*.jpg\": &behaviorOptions{\n\t\t\t\"origin\": bucketOrigin,\n\t\t\t\"viewerProtocolPolicy\": cloudfront.*viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n\t\t},\n\t},\n})",
473 "version": "1"
474 },
475 "$": {
476 "source": "// Create a Distribution with additional behaviors at creation time.\ndeclare const myBucket: s3.Bucket;\nconst bucketOrigin = new origins.S3Origin(myBucket);\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: bucketOrigin,\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n additionalBehaviors: {\n '/images/*.jpg': {\n origin: bucketOrigin,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n },\n});",
477 "version": "0"
478 }
479 },
480 "location": {
481 "api": {
482 "api": "moduleReadme",
483 "moduleFqn": "@aws-cdk/aws-cloudfront"
484 },
485 "field": {
486 "field": "markdown",
487 "line": 164
488 }
489 },
490 "didCompile": true,
491 "fqnsReferenced": [
492 "@aws-cdk/aws-cloudfront-origins.S3Origin",
493 "@aws-cdk/aws-cloudfront.AllowedMethods",
494 "@aws-cdk/aws-cloudfront.AllowedMethods#ALLOW_ALL",
495 "@aws-cdk/aws-cloudfront.BehaviorOptions",
496 "@aws-cdk/aws-cloudfront.Distribution",
497 "@aws-cdk/aws-cloudfront.DistributionProps",
498 "@aws-cdk/aws-cloudfront.IOrigin",
499 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
500 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
501 "@aws-cdk/aws-s3.IBucket",
502 "constructs.Construct"
503 ],
504 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Create a Distribution with additional behaviors at creation time.\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 bucketOrigin = new origins.S3Origin(myBucket);\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: bucketOrigin,\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n additionalBehaviors: {\n '/images/*.jpg': {\n origin: bucketOrigin,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
505 "syntaxKindCounter": {
506 "10": 2,
507 "75": 27,
508 "104": 1,
509 "130": 1,
510 "153": 1,
511 "169": 1,
512 "193": 4,
513 "194": 8,
514 "197": 2,
515 "225": 2,
516 "226": 1,
517 "242": 2,
518 "243": 2,
519 "281": 8,
520 "290": 1
521 },
522 "fqnsFingerprint": "50620db3ad080e54f01a59a38a6a5c8fb0c235dcdf48e49e85c101f75cb744ce"
523 },
524 "160ef535872897af2c865f7d27f5730b5c555eb9d7fa69432177420b52092196": {
525 "translations": {
526 "python": {
527 "source": "# Using an existing cache policy for a Distribution\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=cloudfront.CachePolicy.CACHING_OPTIMIZED\n )\n)",
528 "version": "2"
529 },
530 "csharp": {
531 "source": "// Using an existing cache policy for a Distribution\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = CachePolicy.CACHING_OPTIMIZED\n }\n});",
532 "version": "1"
533 },
534 "java": {
535 "source": "// Using an existing cache policy for a Distribution\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(CachePolicy.CACHING_OPTIMIZED)\n .build())\n .build();",
536 "version": "1"
537 },
538 "go": {
539 "source": "// Using an existing cache policy for a Distribution\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: cloudfront.cachePolicy_CACHING_OPTIMIZED(),\n\t},\n})",
540 "version": "1"
541 },
542 "$": {
543 "source": "// Using an existing cache policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: cloudfront.CachePolicy.CACHING_OPTIMIZED,\n },\n});",
544 "version": "0"
545 }
546 },
547 "location": {
548 "api": {
549 "api": "moduleReadme",
550 "moduleFqn": "@aws-cdk/aws-cloudfront"
551 },
552 "field": {
553 "field": "markdown",
554 "line": 191
555 }
556 },
557 "didCompile": true,
558 "fqnsReferenced": [
559 "@aws-cdk/aws-cloudfront.BehaviorOptions",
560 "@aws-cdk/aws-cloudfront.CachePolicy",
561 "@aws-cdk/aws-cloudfront.CachePolicy#CACHING_OPTIMIZED",
562 "@aws-cdk/aws-cloudfront.Distribution",
563 "@aws-cdk/aws-cloudfront.DistributionProps",
564 "@aws-cdk/aws-cloudfront.ICachePolicy",
565 "@aws-cdk/aws-cloudfront.IOrigin",
566 "constructs.Construct"
567 ],
568 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing cache policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: cloudfront.CachePolicy.CACHING_OPTIMIZED,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
569 "syntaxKindCounter": {
570 "10": 1,
571 "75": 12,
572 "104": 1,
573 "130": 1,
574 "153": 1,
575 "169": 1,
576 "193": 2,
577 "194": 3,
578 "197": 1,
579 "225": 1,
580 "226": 1,
581 "242": 1,
582 "243": 1,
583 "281": 3,
584 "290": 1
585 },
586 "fqnsFingerprint": "63646c469d057face3493b8b3fc84d3aec7e3b2e47c724b72cefb4aeaa70618b"
587 },
588 "08d6d241625c0a27be8c3d900148462ef0cc763ad7b076753f787479b5f95625": {
589 "translations": {
590 "python": {
591 "source": "# Creating a custom cache policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_cache_policy = cloudfront.CachePolicy(self, \"myCachePolicy\",\n cache_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n default_ttl=Duration.days(2),\n min_ttl=Duration.minutes(1),\n max_ttl=Duration.days(10),\n cookie_behavior=cloudfront.CacheCookieBehavior.all(),\n header_behavior=cloudfront.CacheHeaderBehavior.allow_list(\"X-CustomHeader\"),\n query_string_behavior=cloudfront.CacheQueryStringBehavior.deny_list(\"username\"),\n enable_accept_encoding_gzip=True,\n enable_accept_encoding_brotli=True\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=my_cache_policy\n )\n)",
592 "version": "2"
593 },
594 "csharp": {
595 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = new CachePolicy(this, \"myCachePolicy\", new CachePolicyProps {\n CachePolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n DefaultTtl = Duration.Days(2),\n MinTtl = Duration.Minutes(1),\n MaxTtl = Duration.Days(10),\n CookieBehavior = CacheCookieBehavior.All(),\n HeaderBehavior = CacheHeaderBehavior.AllowList(\"X-CustomHeader\"),\n QueryStringBehavior = CacheQueryStringBehavior.DenyList(\"username\"),\n EnableAcceptEncodingGzip = true,\n EnableAcceptEncodingBrotli = true\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = myCachePolicy\n }\n});",
596 "version": "1"
597 },
598 "java": {
599 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = CachePolicy.Builder.create(this, \"myCachePolicy\")\n .cachePolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .defaultTtl(Duration.days(2))\n .minTtl(Duration.minutes(1))\n .maxTtl(Duration.days(10))\n .cookieBehavior(CacheCookieBehavior.all())\n .headerBehavior(CacheHeaderBehavior.allowList(\"X-CustomHeader\"))\n .queryStringBehavior(CacheQueryStringBehavior.denyList(\"username\"))\n .enableAcceptEncodingGzip(true)\n .enableAcceptEncodingBrotli(true)\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(myCachePolicy)\n .build())\n .build();",
600 "version": "1"
601 },
602 "go": {
603 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyCachePolicy := cloudfront.NewCachePolicy(this, jsii.String(\"myCachePolicy\"), &cachePolicyProps{\n\tcachePolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tdefaultTtl: *awscdkcore.Duration.days(jsii.Number(2)),\n\tminTtl: *awscdkcore.Duration.minutes(jsii.Number(1)),\n\tmaxTtl: *awscdkcore.Duration.days(jsii.Number(10)),\n\tcookieBehavior: cloudfront.cacheCookieBehavior.all(),\n\theaderBehavior: cloudfront.cacheHeaderBehavior.allowList(jsii.String(\"X-CustomHeader\")),\n\tqueryStringBehavior: cloudfront.cacheQueryStringBehavior.denyList(jsii.String(\"username\")),\n\tenableAcceptEncodingGzip: jsii.Boolean(true),\n\tenableAcceptEncodingBrotli: jsii.Boolean(true),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: myCachePolicy,\n\t},\n})",
604 "version": "1"
605 },
606 "$": {
607 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});",
608 "version": "0"
609 }
610 },
611 "location": {
612 "api": {
613 "api": "moduleReadme",
614 "moduleFqn": "@aws-cdk/aws-cloudfront"
615 },
616 "field": {
617 "field": "markdown",
618 "line": 202
619 }
620 },
621 "didCompile": true,
622 "fqnsReferenced": [
623 "@aws-cdk/aws-cloudfront.BehaviorOptions",
624 "@aws-cdk/aws-cloudfront.CacheCookieBehavior",
625 "@aws-cdk/aws-cloudfront.CacheCookieBehavior#all",
626 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior",
627 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior#allowList",
628 "@aws-cdk/aws-cloudfront.CachePolicy",
629 "@aws-cdk/aws-cloudfront.CachePolicyProps",
630 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior",
631 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior#denyList",
632 "@aws-cdk/aws-cloudfront.Distribution",
633 "@aws-cdk/aws-cloudfront.DistributionProps",
634 "@aws-cdk/aws-cloudfront.ICachePolicy",
635 "@aws-cdk/aws-cloudfront.IOrigin",
636 "@aws-cdk/core.Duration",
637 "@aws-cdk/core.Duration#days",
638 "@aws-cdk/core.Duration#minutes",
639 "constructs.Construct"
640 ],
641 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
642 "syntaxKindCounter": {
643 "8": 3,
644 "10": 6,
645 "75": 38,
646 "104": 2,
647 "106": 2,
648 "130": 1,
649 "153": 1,
650 "169": 1,
651 "193": 3,
652 "194": 11,
653 "196": 6,
654 "197": 2,
655 "225": 2,
656 "226": 1,
657 "242": 2,
658 "243": 2,
659 "281": 13,
660 "290": 1
661 },
662 "fqnsFingerprint": "851e6039c3b10f9f5796b96b5a647776847d78c524a226036048783bcdc9df22"
663 },
664 "ffe3421a8c1a8ba18ce437e9871b55c1c73931deeec884d8eb294d1dac19d420": {
665 "translations": {
666 "python": {
667 "source": "# Using an existing origin request policy for a Distribution\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN\n )\n)",
668 "version": "2"
669 },
670 "csharp": {
671 "source": "// Using an existing origin request policy for a Distribution\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = OriginRequestPolicy.CORS_S3_ORIGIN\n }\n});",
672 "version": "1"
673 },
674 "java": {
675 "source": "// Using an existing origin request policy for a Distribution\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(OriginRequestPolicy.CORS_S3_ORIGIN)\n .build())\n .build();",
676 "version": "1"
677 },
678 "go": {
679 "source": "// Using an existing origin request policy for a Distribution\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: cloudfront.originRequestPolicy_CORS_S3_ORIGIN(),\n\t},\n})",
680 "version": "1"
681 },
682 "$": {
683 "source": "// Using an existing origin request policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN,\n },\n});",
684 "version": "0"
685 }
686 },
687 "location": {
688 "api": {
689 "api": "moduleReadme",
690 "moduleFqn": "@aws-cdk/aws-cloudfront"
691 },
692 "field": {
693 "field": "markdown",
694 "line": 234
695 }
696 },
697 "didCompile": true,
698 "fqnsReferenced": [
699 "@aws-cdk/aws-cloudfront.BehaviorOptions",
700 "@aws-cdk/aws-cloudfront.Distribution",
701 "@aws-cdk/aws-cloudfront.DistributionProps",
702 "@aws-cdk/aws-cloudfront.IOrigin",
703 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
704 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
705 "@aws-cdk/aws-cloudfront.OriginRequestPolicy#CORS_S3_ORIGIN",
706 "constructs.Construct"
707 ],
708 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing origin request policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
709 "syntaxKindCounter": {
710 "10": 1,
711 "75": 12,
712 "104": 1,
713 "130": 1,
714 "153": 1,
715 "169": 1,
716 "193": 2,
717 "194": 3,
718 "197": 1,
719 "225": 1,
720 "226": 1,
721 "242": 1,
722 "243": 1,
723 "281": 3,
724 "290": 1
725 },
726 "fqnsFingerprint": "22707050c1349ad0b5deb3a9f2da316eac917ed5911941bc8551604ff6652d2c"
727 },
728 "34d891b0103ddd4e8a0d9994eacfe606a83eb36968d7665bb25a6209b0a12656": {
729 "translations": {
730 "python": {
731 "source": "# Creating a custom origin request policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_origin_request_policy = cloudfront.OriginRequestPolicy(self, \"OriginRequestPolicy\",\n origin_request_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cookie_behavior=cloudfront.OriginRequestCookieBehavior.none(),\n header_behavior=cloudfront.OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"),\n query_string_behavior=cloudfront.OriginRequestQueryStringBehavior.allow_list(\"username\")\n)\n\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=my_origin_request_policy\n )\n)",
732 "version": "2"
733 },
734 "csharp": {
735 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = new OriginRequestPolicy(this, \"OriginRequestPolicy\", new OriginRequestPolicyProps {\n OriginRequestPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CookieBehavior = OriginRequestCookieBehavior.None(),\n HeaderBehavior = OriginRequestHeaderBehavior.All(\"CloudFront-Is-Android-Viewer\"),\n QueryStringBehavior = OriginRequestQueryStringBehavior.AllowList(\"username\")\n});\n\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = myOriginRequestPolicy\n }\n});",
736 "version": "1"
737 },
738 "java": {
739 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = OriginRequestPolicy.Builder.create(this, \"OriginRequestPolicy\")\n .originRequestPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .cookieBehavior(OriginRequestCookieBehavior.none())\n .headerBehavior(OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"))\n .queryStringBehavior(OriginRequestQueryStringBehavior.allowList(\"username\"))\n .build();\n\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(myOriginRequestPolicy)\n .build())\n .build();",
740 "version": "1"
741 },
742 "go": {
743 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyOriginRequestPolicy := cloudfront.NewOriginRequestPolicy(this, jsii.String(\"OriginRequestPolicy\"), &originRequestPolicyProps{\n\toriginRequestPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcookieBehavior: cloudfront.originRequestCookieBehavior.none(),\n\theaderBehavior: cloudfront.originRequestHeaderBehavior.all(jsii.String(\"CloudFront-Is-Android-Viewer\")),\n\tqueryStringBehavior: cloudfront.originRequestQueryStringBehavior.allowList(jsii.String(\"username\")),\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: myOriginRequestPolicy,\n\t},\n})",
744 "version": "1"
745 },
746 "$": {
747 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});",
748 "version": "0"
749 }
750 },
751 "location": {
752 "api": {
753 "api": "moduleReadme",
754 "moduleFqn": "@aws-cdk/aws-cloudfront"
755 },
756 "field": {
757 "field": "markdown",
758 "line": 245
759 }
760 },
761 "didCompile": true,
762 "fqnsReferenced": [
763 "@aws-cdk/aws-cloudfront.BehaviorOptions",
764 "@aws-cdk/aws-cloudfront.Distribution",
765 "@aws-cdk/aws-cloudfront.DistributionProps",
766 "@aws-cdk/aws-cloudfront.IOrigin",
767 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
768 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
769 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
770 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
771 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
772 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
773 "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
774 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
775 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
776 "constructs.Construct"
777 ],
778 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
779 "syntaxKindCounter": {
780 "10": 6,
781 "75": 27,
782 "104": 2,
783 "130": 1,
784 "153": 1,
785 "169": 1,
786 "193": 3,
787 "194": 8,
788 "196": 3,
789 "197": 2,
790 "225": 2,
791 "226": 1,
792 "242": 2,
793 "243": 2,
794 "281": 8,
795 "290": 1
796 },
797 "fqnsFingerprint": "05968f9212199cb0b55a64aeb9510210d75a639e64dfcf91901cc1f201662d76"
798 },
799 "4e8538e36deaef58b5e374314b127f0cd32ef6e316c584e18cbc9c4ffcf5ff9d": {
800 "translations": {
801 "python": {
802 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
803 "version": "2"
804 },
805 "csharp": {
806 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
807 "version": "1"
808 },
809 "java": {
810 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
811 "version": "1"
812 },
813 "go": {
814 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
815 "version": "1"
816 },
817 "$": {
818 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
819 "version": "0"
820 }
821 },
822 "location": {
823 "api": {
824 "api": "moduleReadme",
825 "moduleFqn": "@aws-cdk/aws-cloudfront"
826 },
827 "field": {
828 "field": "markdown",
829 "line": 270
830 }
831 },
832 "didCompile": true,
833 "fqnsReferenced": [
834 "@aws-cdk/aws-cloudfront.BehaviorOptions",
835 "@aws-cdk/aws-cloudfront.Distribution",
836 "@aws-cdk/aws-cloudfront.DistributionProps",
837 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
838 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
839 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
840 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
841 "@aws-cdk/aws-cloudfront.IOrigin",
842 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
843 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
844 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
845 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
846 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
847 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
848 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
849 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
850 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
851 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
852 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
853 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
854 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
855 "@aws-cdk/core.Duration",
856 "@aws-cdk/core.Duration#seconds",
857 "constructs.Construct"
858 ],
859 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
860 "syntaxKindCounter": {
861 "8": 2,
862 "10": 18,
863 "75": 71,
864 "91": 2,
865 "104": 3,
866 "106": 11,
867 "130": 1,
868 "153": 1,
869 "169": 1,
870 "192": 5,
871 "193": 16,
872 "194": 11,
873 "196": 2,
874 "197": 3,
875 "225": 2,
876 "226": 2,
877 "242": 2,
878 "243": 2,
879 "281": 45,
880 "290": 1
881 },
882 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
883 },
884 "bb2366809c65054044c134b74d7a56ed027185b2ec1ae9889a42a21c4280df99": {
885 "translations": {
886 "python": {
887 "source": "# Validating signed URLs or signed cookies with Trusted Key Groups\n\n# public key in PEM format\n# public_key: str\n\npub_key = cloudfront.PublicKey(self, \"MyPubKey\",\n encoded_key=public_key\n)\n\nkey_group = cloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[pub_key\n ]\n)\n\ncloudfront.Distribution(self, \"Dist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.HttpOrigin(\"www.example.com\"),\n trusted_key_groups=[key_group\n ]\n )\n)",
888 "version": "2"
889 },
890 "csharp": {
891 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nstring publicKey;\n\nPublicKey pubKey = new PublicKey(this, \"MyPubKey\", new PublicKeyProps {\n EncodedKey = publicKey\n});\n\nKeyGroup keyGroup = new KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] { pubKey }\n});\n\nnew Distribution(this, \"Dist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new HttpOrigin(\"www.example.com\"),\n TrustedKeyGroups = new [] { keyGroup }\n }\n});",
892 "version": "1"
893 },
894 "java": {
895 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nString publicKey;\n\nPublicKey pubKey = PublicKey.Builder.create(this, \"MyPubKey\")\n .encodedKey(publicKey)\n .build();\n\nKeyGroup keyGroup = KeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(pubKey))\n .build();\n\nDistribution.Builder.create(this, \"Dist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new HttpOrigin(\"www.example.com\"))\n .trustedKeyGroups(List.of(keyGroup))\n .build())\n .build();",
896 "version": "1"
897 },
898 "go": {
899 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nvar publicKey string\n\npubKey := cloudfront.NewPublicKey(this, jsii.String(\"MyPubKey\"), &publicKeyProps{\n\tencodedKey: publicKey,\n})\n\nkeyGroup := cloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tpubKey,\n\t},\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"Dist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\tkeyGroup,\n\t\t},\n\t},\n})",
900 "version": "1"
901 },
902 "$": {
903 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\nconst pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});",
904 "version": "0"
905 }
906 },
907 "location": {
908 "api": {
909 "api": "moduleReadme",
910 "moduleFqn": "@aws-cdk/aws-cloudfront"
911 },
912 "field": {
913 "field": "markdown",
914 "line": 322
915 }
916 },
917 "didCompile": true,
918 "fqnsReferenced": [
919 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
920 "@aws-cdk/aws-cloudfront.BehaviorOptions",
921 "@aws-cdk/aws-cloudfront.Distribution",
922 "@aws-cdk/aws-cloudfront.DistributionProps",
923 "@aws-cdk/aws-cloudfront.IOrigin",
924 "@aws-cdk/aws-cloudfront.KeyGroup",
925 "@aws-cdk/aws-cloudfront.KeyGroupProps",
926 "@aws-cdk/aws-cloudfront.PublicKey",
927 "@aws-cdk/aws-cloudfront.PublicKeyProps",
928 "constructs.Construct"
929 ],
930 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
931 "syntaxKindCounter": {
932 "10": 4,
933 "75": 19,
934 "104": 3,
935 "130": 1,
936 "143": 1,
937 "192": 2,
938 "193": 4,
939 "194": 4,
940 "197": 4,
941 "225": 3,
942 "226": 1,
943 "242": 3,
944 "243": 3,
945 "281": 5,
946 "290": 1
947 },
948 "fqnsFingerprint": "3ad307a97cef2618550323674a3aca38ac179d755c6f984025a53a1d879abe6a"
949 },
950 "bdf94de411da6dadcbbc912092e60175db02b8b1bccac5129fd6212c5f72f9ab": {
951 "translations": {
952 "python": {
953 "source": "# my_bucket: s3.Bucket\n# A Lambda@Edge function added to default behavior of a Distribution\n# and triggered on every request\nmy_func = cloudfront.experimental.EdgeFunction(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=my_func.current_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
954 "version": "2"
955 },
956 "csharp": {
957 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = new Experimental.EdgeFunction(this, \"MyFunction\", new EdgeFunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\"))\n});\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = myFunc.CurrentVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
958 "version": "1"
959 },
960 "java": {
961 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = EdgeFunction.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .build();\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(myFunc.getCurrentVersion())\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
962 "version": "1"
963 },
964 "go": {
965 "source": "var myBucket bucket\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nmyFunc := #error#.NewEdgeFunction(this, jsii.String(\"MyFunction\"), &edgeFunctionProps{\n\truntime: lambda.runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler\"))),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: myFunc.currentVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
966 "version": "1"
967 },
968 "$": {
969 "source": "// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\ndeclare const myBucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});",
970 "version": "0"
971 }
972 },
973 "location": {
974 "api": {
975 "api": "moduleReadme",
976 "moduleFqn": "@aws-cdk/aws-cloudfront"
977 },
978 "field": {
979 "field": "markdown",
980 "line": 360
981 }
982 },
983 "didCompile": true,
984 "fqnsReferenced": [
985 "@aws-cdk/aws-cloudfront-origins.S3Origin",
986 "@aws-cdk/aws-cloudfront.BehaviorOptions",
987 "@aws-cdk/aws-cloudfront.Distribution",
988 "@aws-cdk/aws-cloudfront.DistributionProps",
989 "@aws-cdk/aws-cloudfront.IOrigin",
990 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
991 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
992 "@aws-cdk/aws-cloudfront.experimental",
993 "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
994 "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
995 "@aws-cdk/aws-lambda.Code",
996 "@aws-cdk/aws-lambda.Code#fromAsset",
997 "@aws-cdk/aws-lambda.IVersion",
998 "@aws-cdk/aws-lambda.Runtime",
999 "@aws-cdk/aws-lambda.Runtime#NODEJS_14_X",
1000 "@aws-cdk/aws-s3.IBucket",
1001 "constructs.Construct"
1002 ],
1003 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1004 "syntaxKindCounter": {
1005 "10": 4,
1006 "75": 34,
1007 "104": 2,
1008 "130": 1,
1009 "153": 1,
1010 "169": 1,
1011 "192": 1,
1012 "193": 4,
1013 "194": 12,
1014 "196": 2,
1015 "197": 3,
1016 "225": 2,
1017 "226": 1,
1018 "242": 2,
1019 "243": 2,
1020 "281": 8,
1021 "290": 1
1022 },
1023 "fqnsFingerprint": "02b892326549a952196fa477919f4801bcdca3d61c99b33c78df9a86e00a9d31"
1024 },
1025 "0199bfebdbb2ac42d5872c4fcbccadfdce36749ffc888d932bf7fca49c57a7e7": {
1026 "translations": {
1027 "python": {
1028 "source": "# Using a lambda Function instead of an EdgeFunction for stacks in `us-east-`.\nmy_func = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n)",
1029 "version": "2"
1030 },
1031 "csharp": {
1032 "source": "// Using a lambda Function instead of an EdgeFunction for stacks in `us-east-`.\nFunction myFunc = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\"))\n});",
1033 "version": "1"
1034 },
1035 "java": {
1036 "source": "// Using a lambda Function instead of an EdgeFunction for stacks in `us-east-`.\nFunction myFunc = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .build();",
1037 "version": "1"
1038 },
1039 "go": {
1040 "source": "// Using a lambda Function instead of an EdgeFunction for stacks in `us-east-`.\nmyFunc := lambda.NewFunction(this, jsii.String(\"MyFunction\"), &functionProps{\n\truntime: lambda.runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler\"))),\n})",
1041 "version": "1"
1042 },
1043 "$": {
1044 "source": "// Using a lambda Function instead of an EdgeFunction for stacks in `us-east-`.\nconst myFunc = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});",
1045 "version": "0"
1046 }
1047 },
1048 "location": {
1049 "api": {
1050 "api": "moduleReadme",
1051 "moduleFqn": "@aws-cdk/aws-cloudfront"
1052 },
1053 "field": {
1054 "field": "markdown",
1055 "line": 392
1056 }
1057 },
1058 "didCompile": true,
1059 "fqnsReferenced": [
1060 "@aws-cdk/aws-lambda.Code",
1061 "@aws-cdk/aws-lambda.Code#fromAsset",
1062 "@aws-cdk/aws-lambda.Function",
1063 "@aws-cdk/aws-lambda.FunctionProps",
1064 "@aws-cdk/aws-lambda.Runtime",
1065 "@aws-cdk/aws-lambda.Runtime#NODEJS_14_X",
1066 "constructs.Construct"
1067 ],
1068 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Using a lambda Function instead of an EdgeFunction for stacks in `us-east-`.\nconst myFunc = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1069 "syntaxKindCounter": {
1070 "10": 3,
1071 "75": 15,
1072 "104": 1,
1073 "193": 1,
1074 "194": 6,
1075 "196": 2,
1076 "197": 1,
1077 "225": 1,
1078 "242": 1,
1079 "243": 1,
1080 "281": 3
1081 },
1082 "fqnsFingerprint": "e00223af093e99e80e462bae40c11d772ede52f97cfbf201ecdcfe477cb57249"
1083 },
1084 "0e011610e11382dc1691755d3d5f1d0a3df8d2a7f1e5d60ce468b0cb0f8e4a28": {
1085 "translations": {
1086 "python": {
1087 "source": "# Setting stackIds for EdgeFunctions that can be referenced from different applications\n# on the same account.\nmy_func1 = cloudfront.experimental.EdgeFunction(self, \"MyFunction1\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler1\")),\n stack_id=\"edge-lambda-stack-id-1\"\n)\n\nmy_func2 = cloudfront.experimental.EdgeFunction(self, \"MyFunction2\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler2\")),\n stack_id=\"edge-lambda-stack-id-2\"\n)",
1088 "version": "2"
1089 },
1090 "csharp": {
1091 "source": "// Setting stackIds for EdgeFunctions that can be referenced from different applications\n// on the same account.\nEdgeFunction myFunc1 = new Experimental.EdgeFunction(this, \"MyFunction1\", new EdgeFunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler1\")),\n StackId = \"edge-lambda-stack-id-1\"\n});\n\nEdgeFunction myFunc2 = new Experimental.EdgeFunction(this, \"MyFunction2\", new EdgeFunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler2\")),\n StackId = \"edge-lambda-stack-id-2\"\n});",
1092 "version": "1"
1093 },
1094 "java": {
1095 "source": "// Setting stackIds for EdgeFunctions that can be referenced from different applications\n// on the same account.\nEdgeFunction myFunc1 = EdgeFunction.Builder.create(this, \"MyFunction1\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler1\")))\n .stackId(\"edge-lambda-stack-id-1\")\n .build();\n\nEdgeFunction myFunc2 = EdgeFunction.Builder.create(this, \"MyFunction2\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler2\")))\n .stackId(\"edge-lambda-stack-id-2\")\n .build();",
1096 "version": "1"
1097 },
1098 "go": {
1099 "source": "// Setting stackIds for EdgeFunctions that can be referenced from different applications\n// on the same account.\nmyFunc1 := #error#.NewEdgeFunction(this, jsii.String(\"MyFunction1\"), &edgeFunctionProps{\n\truntime: lambda.runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler1\"))),\n\tstackId: jsii.String(\"edge-lambda-stack-id-1\"),\n})\n\nmyFunc2 := #error#.NewEdgeFunction(this, jsii.String(\"MyFunction2\"), &edgeFunctionProps{\n\truntime: lambda.*runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.*code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler2\"))),\n\tstackId: jsii.String(\"edge-lambda-stack-id-2\"),\n})",
1100 "version": "1"
1101 },
1102 "$": {
1103 "source": "// Setting stackIds for EdgeFunctions that can be referenced from different applications\n// on the same account.\nconst myFunc1 = new cloudfront.experimental.EdgeFunction(this, 'MyFunction1', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler1')),\n stackId: 'edge-lambda-stack-id-1',\n});\n\nconst myFunc2 = new cloudfront.experimental.EdgeFunction(this, 'MyFunction2', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler2')),\n stackId: 'edge-lambda-stack-id-2',\n});",
1104 "version": "0"
1105 }
1106 },
1107 "location": {
1108 "api": {
1109 "api": "moduleReadme",
1110 "moduleFqn": "@aws-cdk/aws-cloudfront"
1111 },
1112 "field": {
1113 "field": "markdown",
1114 "line": 404
1115 }
1116 },
1117 "didCompile": true,
1118 "fqnsReferenced": [
1119 "@aws-cdk/aws-cloudfront.experimental",
1120 "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
1121 "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
1122 "@aws-cdk/aws-lambda.Code",
1123 "@aws-cdk/aws-lambda.Code#fromAsset",
1124 "@aws-cdk/aws-lambda.Runtime",
1125 "@aws-cdk/aws-lambda.Runtime#NODEJS_14_X",
1126 "constructs.Construct"
1127 ],
1128 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Setting stackIds for EdgeFunctions that can be referenced from different applications\n// on the same account.\nconst myFunc1 = new cloudfront.experimental.EdgeFunction(this, 'MyFunction1', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler1')),\n stackId: 'edge-lambda-stack-id-1',\n});\n\nconst myFunc2 = new cloudfront.experimental.EdgeFunction(this, 'MyFunction2', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler2')),\n stackId: 'edge-lambda-stack-id-2',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1129 "syntaxKindCounter": {
1130 "10": 8,
1131 "75": 34,
1132 "104": 2,
1133 "193": 2,
1134 "194": 14,
1135 "196": 4,
1136 "197": 2,
1137 "225": 2,
1138 "242": 2,
1139 "243": 2,
1140 "281": 8
1141 },
1142 "fqnsFingerprint": "2334555bc474ee5398d6600daceff5b919066b389f34bf6aaf7b1d55ebaa593a"
1143 },
1144 "53df40a93223ec6e91d5e2794825f738a4eb41d799a22153af0c838c2e262e52": {
1145 "translations": {
1146 "python": {
1147 "source": "# Associating a Lambda@Edge function with additional behaviors.\n\n# my_func: cloudfront.experimental.EdgeFunction\n# assigning at Distribution creation\n# my_bucket: s3.Bucket\n\nmy_origin = origins.S3Origin(my_bucket)\nmy_distribution = cloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=my_origin),\n additional_behaviors={\n \"images/*\": cloudfront.BehaviorOptions(\n origin=my_origin,\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=my_func.current_version,\n event_type=cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n include_body=True\n )\n ]\n )\n }\n)\n\n# assigning after creation\nmy_distribution.add_behavior(\"images/*\", my_origin,\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=my_func.current_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_RESPONSE\n )\n ]\n)",
1148 "version": "2"
1149 },
1150 "csharp": {
1151 "source": "// Associating a Lambda@Edge function with additional behaviors.\n\nEdgeFunction myFunc;\n// assigning at Distribution creation\nBucket myBucket;\n\nS3Origin myOrigin = new S3Origin(myBucket);\nDistribution myDistribution = new Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = myOrigin },\n AdditionalBehaviors = new Dictionary<string, BehaviorOptions> {\n { \"images/*\", new BehaviorOptions {\n Origin = myOrigin,\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = myFunc.CurrentVersion,\n EventType = LambdaEdgeEventType.ORIGIN_REQUEST,\n IncludeBody = true\n } }\n } }\n }\n});\n\n// assigning after creation\nmyDistribution.AddBehavior(\"images/*\", myOrigin, new AddBehaviorOptions {\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = myFunc.CurrentVersion,\n EventType = LambdaEdgeEventType.VIEWER_RESPONSE\n } }\n});",
1152 "version": "1"
1153 },
1154 "java": {
1155 "source": "// Associating a Lambda@Edge function with additional behaviors.\n\nEdgeFunction myFunc;\n// assigning at Distribution creation\nBucket myBucket;\n\nS3Origin myOrigin = new S3Origin(myBucket);\nDistribution myDistribution = Distribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(myOrigin).build())\n .additionalBehaviors(Map.of(\n \"images/*\", BehaviorOptions.builder()\n .origin(myOrigin)\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(myFunc.getCurrentVersion())\n .eventType(LambdaEdgeEventType.ORIGIN_REQUEST)\n .includeBody(true)\n .build()))\n .build()))\n .build();\n\n// assigning after creation\nmyDistribution.addBehavior(\"images/*\", myOrigin, AddBehaviorOptions.builder()\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(myFunc.getCurrentVersion())\n .eventType(LambdaEdgeEventType.VIEWER_RESPONSE)\n .build()))\n .build());",
1156 "version": "1"
1157 },
1158 "go": {
1159 "source": "// Associating a Lambda@Edge function with additional behaviors.\n\nvar myFunc edgeFunction\n// assigning at Distribution creation\nvar myBucket bucket\n\nmyOrigin := origins.NewS3Origin(myBucket)\nmyDistribution := cloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: myOrigin,\n\t},\n\tadditionalBehaviors: map[string]*behaviorOptions{\n\t\t\"images/*\": &behaviorOptions{\n\t\t\t\"origin\": myOrigin,\n\t\t\t\"edgeLambdas\": []EdgeLambda{\n\t\t\t\t&EdgeLambda{\n\t\t\t\t\t\"functionVersion\": myFunc.currentVersion,\n\t\t\t\t\t\"eventType\": cloudfront.LambdaEdgeEventType_ORIGIN_REQUEST,\n\t\t\t\t\t\"includeBody\": jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})\n\n// assigning after creation\nmyDistribution.addBehavior(jsii.String(\"images/*\"), myOrigin, &addBehaviorOptions{\n\tedgeLambdas: []edgeLambda{\n\t\t&edgeLambda{\n\t\t\tfunctionVersion: myFunc.currentVersion,\n\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_RESPONSE,\n\t\t},\n\t},\n})",
1160 "version": "1"
1161 },
1162 "$": {
1163 "source": "// Associating a Lambda@Edge function with additional behaviors.\n\ndeclare const myFunc: cloudfront.experimental.EdgeFunction;\n// assigning at Distribution creation\ndeclare const myBucket: s3.Bucket;\nconst myOrigin = new origins.S3Origin(myBucket);\nconst myDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: myOrigin },\n additionalBehaviors: {\n 'images/*': {\n origin: myOrigin,\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n includeBody: true, // Optional - defaults to false\n },\n ],\n },\n },\n});\n\n// assigning after creation\nmyDistribution.addBehavior('images/*', myOrigin, {\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_RESPONSE,\n },\n ],\n});",
1164 "version": "0"
1165 }
1166 },
1167 "location": {
1168 "api": {
1169 "api": "moduleReadme",
1170 "moduleFqn": "@aws-cdk/aws-cloudfront"
1171 },
1172 "field": {
1173 "field": "markdown",
1174 "line": 425
1175 }
1176 },
1177 "didCompile": true,
1178 "fqnsReferenced": [
1179 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1180 "@aws-cdk/aws-cloudfront.AddBehaviorOptions",
1181 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1182 "@aws-cdk/aws-cloudfront.Distribution",
1183 "@aws-cdk/aws-cloudfront.Distribution#addBehavior",
1184 "@aws-cdk/aws-cloudfront.DistributionProps",
1185 "@aws-cdk/aws-cloudfront.IOrigin",
1186 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
1187 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
1188 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_RESPONSE",
1189 "@aws-cdk/aws-lambda.IVersion",
1190 "@aws-cdk/aws-s3.IBucket",
1191 "constructs.Construct"
1192 ],
1193 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Associating a Lambda@Edge function with additional behaviors.\n\ndeclare const myFunc: cloudfront.experimental.EdgeFunction;\n// assigning at Distribution creation\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myOrigin = new origins.S3Origin(myBucket);\nconst myDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: myOrigin },\n additionalBehaviors: {\n 'images/*': {\n origin: myOrigin,\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n includeBody: true, // Optional - defaults to false\n },\n ],\n },\n },\n});\n\n// assigning after creation\nmyDistribution.addBehavior('images/*', myOrigin, {\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_RESPONSE,\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1194 "syntaxKindCounter": {
1195 "10": 3,
1196 "75": 40,
1197 "104": 1,
1198 "106": 1,
1199 "130": 2,
1200 "153": 3,
1201 "169": 2,
1202 "192": 2,
1203 "193": 7,
1204 "194": 9,
1205 "196": 1,
1206 "197": 2,
1207 "225": 4,
1208 "226": 1,
1209 "242": 4,
1210 "243": 4,
1211 "281": 12,
1212 "290": 1
1213 },
1214 "fqnsFingerprint": "b69f4e8bc2a1d746ce9fe5a05f2a533c71db9e6f810f5ac2d50f1ff4339f78dd"
1215 },
1216 "f22d1f0b7ef4eaea5be65528986ee430d377a85fc51b36bdc531ac1d5985e904": {
1217 "translations": {
1218 "python": {
1219 "source": "# Adding an existing Lambda@Edge function created in a different stack\n# to a CloudFront distribution.\n# s3_bucket: s3.Bucket\n\nfunction_version = lambda_.Version.from_version_arn(self, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\")\n\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=function_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
1220 "version": "2"
1221 },
1222 "csharp": {
1223 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.FromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = functionVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
1224 "version": "1"
1225 },
1226 "java": {
1227 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.fromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(functionVersion)\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
1228 "version": "1"
1229 },
1230 "go": {
1231 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nvar s3Bucket bucket\n\nfunctionVersion := lambda.version.fromVersionArn(this, jsii.String(\"Version\"), jsii.String(\"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\"))\n\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: functionVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
1232 "version": "1"
1233 },
1234 "$": {
1235 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\nconst functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});",
1236 "version": "0"
1237 }
1238 },
1239 "location": {
1240 "api": {
1241 "api": "moduleReadme",
1242 "moduleFqn": "@aws-cdk/aws-cloudfront"
1243 },
1244 "field": {
1245 "field": "markdown",
1246 "line": 461
1247 }
1248 },
1249 "didCompile": true,
1250 "fqnsReferenced": [
1251 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1252 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1253 "@aws-cdk/aws-cloudfront.Distribution",
1254 "@aws-cdk/aws-cloudfront.DistributionProps",
1255 "@aws-cdk/aws-cloudfront.IOrigin",
1256 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
1257 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
1258 "@aws-cdk/aws-lambda.IVersion",
1259 "@aws-cdk/aws-lambda.Version",
1260 "@aws-cdk/aws-lambda.Version#fromVersionArn",
1261 "@aws-cdk/aws-s3.IBucket",
1262 "constructs.Construct"
1263 ],
1264 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1265 "syntaxKindCounter": {
1266 "10": 3,
1267 "75": 20,
1268 "104": 2,
1269 "130": 1,
1270 "153": 1,
1271 "169": 1,
1272 "192": 1,
1273 "193": 3,
1274 "194": 6,
1275 "196": 1,
1276 "197": 2,
1277 "225": 2,
1278 "226": 1,
1279 "242": 2,
1280 "243": 2,
1281 "281": 4,
1282 "282": 1,
1283 "290": 1
1284 },
1285 "fqnsFingerprint": "ed7d20f26b1f4e4dbade5657199847f143c35c149fbeb49e54402db9c319793a"
1286 },
1287 "9e526c1bf5adf2d31cf667b33ee2abd72027fa818ba9539535d86c90e12769fe": {
1288 "translations": {
1289 "python": {
1290 "source": "# s3_bucket: s3.Bucket\n# Add a cloudfront Function to a Distribution\ncf_function = cloudfront.Function(self, \"Function\",\n code=cloudfront.FunctionCode.from_inline(\"function handler(event) { return event.request }\")\n)\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n function_associations=[cloudfront.FunctionAssociation(\n function=cf_function,\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST\n )]\n )\n)",
1291 "version": "2"
1292 },
1293 "csharp": {
1294 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = new Function(this, \"Function\", new FunctionProps {\n Code = FunctionCode.FromInline(\"function handler(event) { return event.request }\")\n});\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n FunctionAssociations = new [] { new FunctionAssociation {\n Function = cfFunction,\n EventType = FunctionEventType.VIEWER_REQUEST\n } }\n }\n});",
1295 "version": "1"
1296 },
1297 "java": {
1298 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = Function.Builder.create(this, \"Function\")\n .code(FunctionCode.fromInline(\"function handler(event) { return event.request }\"))\n .build();\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .functionAssociations(List.of(FunctionAssociation.builder()\n .function(cfFunction)\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
1299 "version": "1"
1300 },
1301 "go": {
1302 "source": "var s3Bucket bucket\n// Add a cloudfront Function to a Distribution\ncfFunction := cloudfront.NewFunction(this, jsii.String(\"Function\"), &functionProps{\n\tcode: cloudfront.functionCode.fromInline(jsii.String(\"function handler(event) { return event.request }\")),\n})\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tfunctionAssociations: []functionAssociation{\n\t\t\t&functionAssociation{\n\t\t\t\tfunction: cfFunction,\n\t\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
1303 "version": "1"
1304 },
1305 "$": {
1306 "source": "// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\n\ndeclare const s3Bucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});",
1307 "version": "0"
1308 }
1309 },
1310 "location": {
1311 "api": {
1312 "api": "moduleReadme",
1313 "moduleFqn": "@aws-cdk/aws-cloudfront"
1314 },
1315 "field": {
1316 "field": "markdown",
1317 "line": 484
1318 }
1319 },
1320 "didCompile": true,
1321 "fqnsReferenced": [
1322 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1323 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1324 "@aws-cdk/aws-cloudfront.Distribution",
1325 "@aws-cdk/aws-cloudfront.DistributionProps",
1326 "@aws-cdk/aws-cloudfront.Function",
1327 "@aws-cdk/aws-cloudfront.FunctionCode",
1328 "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
1329 "@aws-cdk/aws-cloudfront.FunctionEventType",
1330 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
1331 "@aws-cdk/aws-cloudfront.FunctionProps",
1332 "@aws-cdk/aws-cloudfront.IFunction",
1333 "@aws-cdk/aws-cloudfront.IOrigin",
1334 "@aws-cdk/aws-s3.IBucket",
1335 "constructs.Construct"
1336 ],
1337 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1338 "syntaxKindCounter": {
1339 "10": 3,
1340 "75": 24,
1341 "104": 2,
1342 "130": 1,
1343 "153": 1,
1344 "169": 1,
1345 "192": 1,
1346 "193": 4,
1347 "194": 7,
1348 "196": 1,
1349 "197": 3,
1350 "225": 2,
1351 "226": 1,
1352 "242": 2,
1353 "243": 2,
1354 "281": 6,
1355 "290": 1
1356 },
1357 "fqnsFingerprint": "eb23cdf87f7e3c03f6b84e9ed8bce59909e06e2a1c978943e56f1a80a18b4bd8"
1358 },
1359 "41f52ac8e150a3a991f9e83ad772b55a2087020623667e37e1ddb5e9faafdc68": {
1360 "translations": {
1361 "python": {
1362 "source": "# Configure logging for Distributions\n\n# Simplest form - creates a new bucket and logs to it.\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.HttpOrigin(\"www.example.com\")),\n enable_logging=True\n)\n\n# You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(origin=origins.HttpOrigin(\"www.example.com\")),\n enable_logging=True, # Optional, this is implied if logBucket is specified\n log_bucket=s3.Bucket(self, \"LogBucket\"),\n log_file_prefix=\"distribution-access-logs/\",\n log_includes_cookies=True\n)",
1363 "version": "2"
1364 },
1365 "csharp": {
1366 "source": "// Configure logging for Distributions\n\n// Simplest form - creates a new bucket and logs to it.\n// Configure logging for Distributions\n// Simplest form - creates a new bucket and logs to it.\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new HttpOrigin(\"www.example.com\") },\n EnableLogging = true\n});\n\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions { Origin = new HttpOrigin(\"www.example.com\") },\n EnableLogging = true, // Optional, this is implied if logBucket is specified\n LogBucket = new Bucket(this, \"LogBucket\"),\n LogFilePrefix = \"distribution-access-logs/\",\n LogIncludesCookies = true\n});",
1367 "version": "1"
1368 },
1369 "java": {
1370 "source": "// Configure logging for Distributions\n\n// Simplest form - creates a new bucket and logs to it.\n// Configure logging for Distributions\n// Simplest form - creates a new bucket and logs to it.\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new HttpOrigin(\"www.example.com\")).build())\n .enableLogging(true)\n .build();\n\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder().origin(new HttpOrigin(\"www.example.com\")).build())\n .enableLogging(true) // Optional, this is implied if logBucket is specified\n .logBucket(new Bucket(this, \"LogBucket\"))\n .logFilePrefix(\"distribution-access-logs/\")\n .logIncludesCookies(true)\n .build();",
1371 "version": "1"
1372 },
1373 "go": {
1374 "source": "// Configure logging for Distributions\n\n// Simplest form - creates a new bucket and logs to it.\n// Configure logging for Distributions\n// Simplest form - creates a new bucket and logs to it.\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t},\n\tenableLogging: jsii.Boolean(true),\n})\n\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t},\n\tenableLogging: jsii.Boolean(true),\n\t // Optional, this is implied if logBucket is specified\n\tlogBucket: s3.NewBucket(this, jsii.String(\"LogBucket\")),\n\tlogFilePrefix: jsii.String(\"distribution-access-logs/\"),\n\tlogIncludesCookies: jsii.Boolean(true),\n})",
1375 "version": "1"
1376 },
1377 "$": {
1378 "source": "// Configure logging for Distributions\n\n// Simplest form - creates a new bucket and logs to it.\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') },\n enableLogging: true,\n});\n\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') },\n enableLogging: true, // Optional, this is implied if logBucket is specified\n logBucket: new s3.Bucket(this, 'LogBucket'),\n logFilePrefix: 'distribution-access-logs/',\n logIncludesCookies: true,\n});",
1379 "version": "0"
1380 }
1381 },
1382 "location": {
1383 "api": {
1384 "api": "moduleReadme",
1385 "moduleFqn": "@aws-cdk/aws-cloudfront"
1386 },
1387 "field": {
1388 "field": "markdown",
1389 "line": 511
1390 }
1391 },
1392 "didCompile": true,
1393 "fqnsReferenced": [
1394 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
1395 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1396 "@aws-cdk/aws-cloudfront.Distribution",
1397 "@aws-cdk/aws-cloudfront.DistributionProps",
1398 "@aws-cdk/aws-cloudfront.IOrigin",
1399 "@aws-cdk/aws-s3.Bucket",
1400 "@aws-cdk/aws-s3.IBucket",
1401 "constructs.Construct"
1402 ],
1403 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Configure logging for Distributions\n\n// Simplest form - creates a new bucket and logs to it.\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') },\n enableLogging: true,\n});\n\n// You can optionally log to a specific bucket, configure whether cookies are logged, and give the log files a prefix.\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') },\n enableLogging: true, // Optional, this is implied if logBucket is specified\n logBucket: new s3.Bucket(this, 'LogBucket'),\n logFilePrefix: 'distribution-access-logs/',\n logIncludesCookies: true,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1404 "syntaxKindCounter": {
1405 "10": 6,
1406 "75": 19,
1407 "104": 3,
1408 "106": 3,
1409 "193": 4,
1410 "194": 5,
1411 "197": 5,
1412 "226": 2,
1413 "281": 9
1414 },
1415 "fqnsFingerprint": "fd069b302c61004765f73ebc665aefbc81f53c6742b64c4aa765e51863f41c5e"
1416 },
1417 "b9012789b445bb22245a1dcf53ecb8556a69d867f5aa221a7324450ef06dcfcb": {
1418 "translations": {
1419 "python": {
1420 "source": "# Using a reference to an imported Distribution\ndistribution = cloudfront.Distribution.from_distribution_attributes(self, \"ImportedDist\",\n domain_name=\"d111111abcdef8.cloudfront.net\",\n distribution_id=\"012345ABCDEF\"\n)",
1421 "version": "2"
1422 },
1423 "csharp": {
1424 "source": "// Using a reference to an imported Distribution\nIDistribution distribution = Distribution.FromDistributionAttributes(this, \"ImportedDist\", new DistributionAttributes {\n DomainName = \"d111111abcdef8.cloudfront.net\",\n DistributionId = \"012345ABCDEF\"\n});",
1425 "version": "1"
1426 },
1427 "java": {
1428 "source": "// Using a reference to an imported Distribution\nIDistribution distribution = Distribution.fromDistributionAttributes(this, \"ImportedDist\", DistributionAttributes.builder()\n .domainName(\"d111111abcdef8.cloudfront.net\")\n .distributionId(\"012345ABCDEF\")\n .build());",
1429 "version": "1"
1430 },
1431 "go": {
1432 "source": "// Using a reference to an imported Distribution\ndistribution := cloudfront.distribution.fromDistributionAttributes(this, jsii.String(\"ImportedDist\"), &distributionAttributes{\n\tdomainName: jsii.String(\"d111111abcdef8.cloudfront.net\"),\n\tdistributionId: jsii.String(\"012345ABCDEF\"),\n})",
1433 "version": "1"
1434 },
1435 "$": {
1436 "source": "// Using a reference to an imported Distribution\nconst distribution = cloudfront.Distribution.fromDistributionAttributes(this, 'ImportedDist', {\n domainName: 'd111111abcdef8.cloudfront.net',\n distributionId: '012345ABCDEF',\n});",
1437 "version": "0"
1438 }
1439 },
1440 "location": {
1441 "api": {
1442 "api": "moduleReadme",
1443 "moduleFqn": "@aws-cdk/aws-cloudfront"
1444 },
1445 "field": {
1446 "field": "markdown",
1447 "line": 535
1448 }
1449 },
1450 "didCompile": true,
1451 "fqnsReferenced": [
1452 "@aws-cdk/aws-cloudfront.Distribution",
1453 "@aws-cdk/aws-cloudfront.Distribution#fromDistributionAttributes",
1454 "@aws-cdk/aws-cloudfront.DistributionAttributes",
1455 "@aws-cdk/aws-cloudfront.IDistribution",
1456 "constructs.Construct"
1457 ],
1458 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Using a reference to an imported Distribution\nconst distribution = cloudfront.Distribution.fromDistributionAttributes(this, 'ImportedDist', {\n domainName: 'd111111abcdef8.cloudfront.net',\n distributionId: '012345ABCDEF',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1459 "syntaxKindCounter": {
1460 "10": 3,
1461 "75": 6,
1462 "104": 1,
1463 "193": 1,
1464 "194": 2,
1465 "196": 1,
1466 "225": 1,
1467 "242": 1,
1468 "243": 1,
1469 "281": 2
1470 },
1471 "fqnsFingerprint": "8d06d4f4f8c8554f131e9859c2581f56f35e2e925571fef3b0bc6fc3ad66631f"
1472 },
1473 "e0bf7333b0c8b3d8057440f282c49c8148cfd5305e8b75e1d855e0f98ecf9f20": {
1474 "translations": {
1475 "python": {
1476 "source": "# source_bucket: s3.Bucket\n\n\nmy_distribution = cloudfront.Distribution(self, \"MyCfWebDistribution\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(source_bucket)\n )\n)\ncfn_distribution = my_distribution.node.default_child\ncfn_distribution.override_logical_id(\"MyDistributionCFDistribution3H55TI9Q\")",
1477 "version": "2"
1478 },
1479 "csharp": {
1480 "source": "Bucket sourceBucket;\n\n\nDistribution myDistribution = new Distribution(this, \"MyCfWebDistribution\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(sourceBucket)\n }\n});\nCfnDistribution cfnDistribution = (CfnDistribution)myDistribution.Node.DefaultChild;\ncfnDistribution.OverrideLogicalId(\"MyDistributionCFDistribution3H55TI9Q\");",
1481 "version": "1"
1482 },
1483 "java": {
1484 "source": "Bucket sourceBucket;\n\n\nDistribution myDistribution = Distribution.Builder.create(this, \"MyCfWebDistribution\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(sourceBucket))\n .build())\n .build();\nCfnDistribution cfnDistribution = (CfnDistribution)myDistribution.getNode().getDefaultChild();\ncfnDistribution.overrideLogicalId(\"MyDistributionCFDistribution3H55TI9Q\");",
1485 "version": "1"
1486 },
1487 "go": {
1488 "source": "var sourceBucket bucket\n\n\nmyDistribution := cloudfront.NewDistribution(this, jsii.String(\"MyCfWebDistribution\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(sourceBucket),\n\t},\n})\ncfnDistribution := myDistribution.node.defaultChild.(cfnDistribution)\ncfnDistribution.overrideLogicalId(jsii.String(\"MyDistributionCFDistribution3H55TI9Q\"))",
1489 "version": "1"
1490 },
1491 "$": {
1492 "source": "declare const sourceBucket: s3.Bucket;\n\nconst myDistribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n});\nconst cfnDistribution = myDistribution.node.defaultChild as cloudfront.CfnDistribution;\ncfnDistribution.overrideLogicalId('MyDistributionCFDistribution3H55TI9Q');",
1493 "version": "0"
1494 }
1495 },
1496 "location": {
1497 "api": {
1498 "api": "moduleReadme",
1499 "moduleFqn": "@aws-cdk/aws-cloudfront"
1500 },
1501 "field": {
1502 "field": "markdown",
1503 "line": 566
1504 }
1505 },
1506 "didCompile": true,
1507 "fqnsReferenced": [
1508 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1509 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1510 "@aws-cdk/aws-cloudfront.CfnDistribution",
1511 "@aws-cdk/aws-cloudfront.Distribution",
1512 "@aws-cdk/aws-cloudfront.DistributionProps",
1513 "@aws-cdk/aws-cloudfront.IOrigin",
1514 "@aws-cdk/aws-s3.IBucket",
1515 "@aws-cdk/core.CfnElement#overrideLogicalId",
1516 "@aws-cdk/core.Construct#node",
1517 "constructs.Construct"
1518 ],
1519 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myDistribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n});\nconst cfnDistribution = myDistribution.node.defaultChild as cloudfront.CfnDistribution;\ncfnDistribution.overrideLogicalId('MyDistributionCFDistribution3H55TI9Q');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1520 "syntaxKindCounter": {
1521 "10": 2,
1522 "75": 19,
1523 "104": 1,
1524 "130": 1,
1525 "153": 2,
1526 "169": 2,
1527 "193": 2,
1528 "194": 5,
1529 "196": 1,
1530 "197": 2,
1531 "217": 1,
1532 "225": 3,
1533 "226": 1,
1534 "242": 3,
1535 "243": 3,
1536 "281": 2,
1537 "290": 1
1538 },
1539 "fqnsFingerprint": "c25040012f6c2c2093052d3d4ed9476241d84f82e16b7c8a7c510fc67b6ef93f"
1540 },
1541 "630aa5be51275fea8101fbb3f58ae923959ae82995f63c17386212caa64351b2": {
1542 "translations": {
1543 "python": {
1544 "source": "# source_bucket: s3.Bucket\n# oai: cloudfront.OriginAccessIdentity\n\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket,\n origin_access_identity=oai\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ]\n)",
1545 "version": "2"
1546 },
1547 "csharp": {
1548 "source": "Bucket sourceBucket;\nOriginAccessIdentity oai;\n\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket,\n OriginAccessIdentity = oai\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } }\n});",
1549 "version": "1"
1550 },
1551 "java": {
1552 "source": "Bucket sourceBucket;\nOriginAccessIdentity oai;\n\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .originAccessIdentity(oai)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .build();",
1553 "version": "1"
1554 },
1555 "go": {
1556 "source": "var sourceBucket bucket\nvar oai originAccessIdentity\n\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t\toriginAccessIdentity: oai,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
1557 "version": "1"
1558 },
1559 "$": {
1560 "source": "declare const sourceBucket: s3.Bucket;\ndeclare const oai: cloudfront.OriginAccessIdentity;\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n originAccessIdentity: oai,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n});",
1561 "version": "0"
1562 }
1563 },
1564 "location": {
1565 "api": {
1566 "api": "moduleReadme",
1567 "moduleFqn": "@aws-cdk/aws-cloudfront"
1568 },
1569 "field": {
1570 "field": "markdown",
1571 "line": 582
1572 }
1573 },
1574 "didCompile": true,
1575 "fqnsReferenced": [
1576 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
1577 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
1578 "@aws-cdk/aws-cloudfront.IOriginAccessIdentity",
1579 "@aws-cdk/aws-cloudfront.S3OriginConfig",
1580 "@aws-cdk/aws-s3.IBucket",
1581 "constructs.Construct"
1582 ],
1583 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\ndeclare const oai: cloudfront.OriginAccessIdentity;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n originAccessIdentity: oai,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1584 "syntaxKindCounter": {
1585 "10": 1,
1586 "75": 16,
1587 "104": 1,
1588 "106": 1,
1589 "130": 2,
1590 "153": 2,
1591 "169": 2,
1592 "192": 2,
1593 "193": 4,
1594 "194": 1,
1595 "197": 1,
1596 "225": 2,
1597 "226": 1,
1598 "242": 2,
1599 "243": 2,
1600 "281": 6,
1601 "290": 1
1602 },
1603 "fqnsFingerprint": "b06fa71edbdffbdf690f8b83cfec5c1aeb4eda3e87eebddd508d7c35d9863e3f"
1604 },
1605 "507456ca199cb2a94182e8aa35334aecbd935c9bf55779197d56775ba3da6bc9": {
1606 "translations": {
1607 "python": {
1608 "source": "# source_bucket: s3.Bucket\n\n\ndistribution = cloudfront.Distribution(self, \"MyCfWebDistribution\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(source_bucket)\n )\n)",
1609 "version": "2"
1610 },
1611 "csharp": {
1612 "source": "Bucket sourceBucket;\n\n\nDistribution distribution = new Distribution(this, \"MyCfWebDistribution\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(sourceBucket)\n }\n});",
1613 "version": "1"
1614 },
1615 "java": {
1616 "source": "Bucket sourceBucket;\n\n\nDistribution distribution = Distribution.Builder.create(this, \"MyCfWebDistribution\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(sourceBucket))\n .build())\n .build();",
1617 "version": "1"
1618 },
1619 "go": {
1620 "source": "var sourceBucket bucket\n\n\ndistribution := cloudfront.NewDistribution(this, jsii.String(\"MyCfWebDistribution\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(sourceBucket),\n\t},\n})",
1621 "version": "1"
1622 },
1623 "$": {
1624 "source": "declare const sourceBucket: s3.Bucket;\n\nconst distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket) // This class automatically creates an Origin Access Identity\n },\n});",
1625 "version": "0"
1626 }
1627 },
1628 "location": {
1629 "api": {
1630 "api": "moduleReadme",
1631 "moduleFqn": "@aws-cdk/aws-cloudfront"
1632 },
1633 "field": {
1634 "field": "markdown",
1635 "line": 601
1636 }
1637 },
1638 "didCompile": true,
1639 "fqnsReferenced": [
1640 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1641 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1642 "@aws-cdk/aws-cloudfront.Distribution",
1643 "@aws-cdk/aws-cloudfront.DistributionProps",
1644 "@aws-cdk/aws-cloudfront.IOrigin",
1645 "@aws-cdk/aws-s3.IBucket",
1646 "constructs.Construct"
1647 ],
1648 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket) // This class automatically creates an Origin Access Identity\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1649 "syntaxKindCounter": {
1650 "10": 1,
1651 "75": 11,
1652 "104": 1,
1653 "130": 1,
1654 "153": 1,
1655 "169": 1,
1656 "193": 2,
1657 "194": 2,
1658 "197": 2,
1659 "225": 2,
1660 "242": 2,
1661 "243": 2,
1662 "281": 2,
1663 "290": 1
1664 },
1665 "fqnsFingerprint": "e11ab7a78f4d08460f7652897f29a0ec477367e62990049550ab0375cd2bb34a"
1666 },
1667 "fe8971be3a86974f75b8df0e025514292ae0f4e71f2fd14f2ddb31b043391987": {
1668 "translations": {
1669 "python": {
1670 "source": "# source_bucket: s3.Bucket\n# oai: cloudfront.OriginAccessIdentity\n\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket,\n origin_access_identity=oai\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n ), cloudfront.SourceConfiguration(\n custom_origin_source=cloudfront.CustomOriginConfig(\n domain_name=\"MYALIAS\"\n ),\n behaviors=[cloudfront.Behavior(path_pattern=\"/somewhere\")]\n )\n ]\n)",
1671 "version": "2"
1672 },
1673 "csharp": {
1674 "source": "Bucket sourceBucket;\nOriginAccessIdentity oai;\n\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket,\n OriginAccessIdentity = oai\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n }, new SourceConfiguration {\n CustomOriginSource = new CustomOriginConfig {\n DomainName = \"MYALIAS\"\n },\n Behaviors = new [] { new Behavior { PathPattern = \"/somewhere\" } }\n } }\n});",
1675 "version": "1"
1676 },
1677 "java": {
1678 "source": "Bucket sourceBucket;\nOriginAccessIdentity oai;\n\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .originAccessIdentity(oai)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build(), SourceConfiguration.builder()\n .customOriginSource(CustomOriginConfig.builder()\n .domainName(\"MYALIAS\")\n .build())\n .behaviors(List.of(Behavior.builder().pathPattern(\"/somewhere\").build()))\n .build()))\n .build();",
1679 "version": "1"
1680 },
1681 "go": {
1682 "source": "var sourceBucket bucket\nvar oai originAccessIdentity\n\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t\toriginAccessIdentity: oai,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t&sourceConfiguration{\n\t\t\tcustomOriginSource: &customOriginConfig{\n\t\t\t\tdomainName: jsii.String(\"MYALIAS\"),\n\t\t\t},\n\t\t\tbehaviors: []*behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tpathPattern: jsii.String(\"/somewhere\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
1683 "version": "1"
1684 },
1685 "$": {
1686 "source": "declare const sourceBucket: s3.Bucket;\ndeclare const oai: cloudfront.OriginAccessIdentity;\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n originAccessIdentity: oai,\n },\n behaviors: [ {isDefaultBehavior: true}],\n },\n {\n customOriginSource: {\n domainName: 'MYALIAS',\n },\n behaviors: [{ pathPattern: '/somewhere' }]\n }\n ],\n});",
1687 "version": "0"
1688 }
1689 },
1690 "location": {
1691 "api": {
1692 "api": "moduleReadme",
1693 "moduleFqn": "@aws-cdk/aws-cloudfront"
1694 },
1695 "field": {
1696 "field": "markdown",
1697 "line": 613
1698 }
1699 },
1700 "didCompile": true,
1701 "fqnsReferenced": [
1702 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
1703 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
1704 "@aws-cdk/aws-cloudfront.CustomOriginConfig",
1705 "@aws-cdk/aws-cloudfront.IOriginAccessIdentity",
1706 "@aws-cdk/aws-cloudfront.S3OriginConfig",
1707 "@aws-cdk/aws-s3.IBucket",
1708 "constructs.Construct"
1709 ],
1710 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\ndeclare const oai: cloudfront.OriginAccessIdentity;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n originAccessIdentity: oai,\n },\n behaviors: [ {isDefaultBehavior: true}],\n },\n {\n customOriginSource: {\n domainName: 'MYALIAS',\n },\n behaviors: [{ pathPattern: '/somewhere' }]\n }\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1711 "syntaxKindCounter": {
1712 "10": 3,
1713 "75": 20,
1714 "104": 1,
1715 "106": 1,
1716 "130": 2,
1717 "153": 2,
1718 "169": 2,
1719 "192": 3,
1720 "193": 7,
1721 "194": 1,
1722 "197": 1,
1723 "225": 2,
1724 "226": 1,
1725 "242": 2,
1726 "243": 2,
1727 "281": 10,
1728 "290": 1
1729 },
1730 "fqnsFingerprint": "e42b6ad2904ab97cd49ef90216e6fbe6881d2117a01768be093280982f9b66b3"
1731 },
1732 "b4cdbe7de60753e1b1efe038d7536325cf4ce1a59486d8444b36a20acd456233": {
1733 "translations": {
1734 "python": {
1735 "source": "# source_bucket: s3.Bucket\n\n\ndistribution = cloudfront.Distribution(self, \"MyCfWebDistribution\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(source_bucket)\n ),\n additional_behaviors={\n \"/somewhere\": cloudfront.BehaviorOptions(\n origin=origins.HttpOrigin(\"MYALIAS\")\n )\n }\n)",
1736 "version": "2"
1737 },
1738 "csharp": {
1739 "source": "Bucket sourceBucket;\n\n\nDistribution distribution = new Distribution(this, \"MyCfWebDistribution\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(sourceBucket)\n },\n AdditionalBehaviors = new Dictionary<string, BehaviorOptions> {\n { \"/somewhere\", new BehaviorOptions {\n Origin = new HttpOrigin(\"MYALIAS\")\n } }\n }\n});",
1740 "version": "1"
1741 },
1742 "java": {
1743 "source": "Bucket sourceBucket;\n\n\nDistribution distribution = Distribution.Builder.create(this, \"MyCfWebDistribution\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(sourceBucket))\n .build())\n .additionalBehaviors(Map.of(\n \"/somewhere\", BehaviorOptions.builder()\n .origin(new HttpOrigin(\"MYALIAS\"))\n .build()))\n .build();",
1744 "version": "1"
1745 },
1746 "go": {
1747 "source": "var sourceBucket bucket\n\n\ndistribution := cloudfront.NewDistribution(this, jsii.String(\"MyCfWebDistribution\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(sourceBucket),\n\t},\n\tadditionalBehaviors: map[string]*behaviorOptions{\n\t\t\"/somewhere\": &behaviorOptions{\n\t\t\t\"origin\": origins.NewHttpOrigin(jsii.String(\"MYALIAS\")),\n\t\t},\n\t},\n})",
1748 "version": "1"
1749 },
1750 "$": {
1751 "source": "declare const sourceBucket: s3.Bucket;\n\nconst distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket) // This class automatically creates an Origin Access Identity\n },\n additionalBehaviors: {\n '/somewhere': {\n origin: new origins.HttpOrigin('MYALIAS'),\n }\n }\n});",
1752 "version": "0"
1753 }
1754 },
1755 "location": {
1756 "api": {
1757 "api": "moduleReadme",
1758 "moduleFqn": "@aws-cdk/aws-cloudfront"
1759 },
1760 "field": {
1761 "field": "markdown",
1762 "line": 638
1763 }
1764 },
1765 "didCompile": true,
1766 "fqnsReferenced": [
1767 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
1768 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1769 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1770 "@aws-cdk/aws-cloudfront.Distribution",
1771 "@aws-cdk/aws-cloudfront.DistributionProps",
1772 "@aws-cdk/aws-cloudfront.IOrigin",
1773 "@aws-cdk/aws-s3.IBucket",
1774 "constructs.Construct"
1775 ],
1776 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket) // This class automatically creates an Origin Access Identity\n },\n additionalBehaviors: {\n '/somewhere': {\n origin: new origins.HttpOrigin('MYALIAS'),\n }\n }\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1777 "syntaxKindCounter": {
1778 "10": 3,
1779 "75": 15,
1780 "104": 1,
1781 "130": 1,
1782 "153": 1,
1783 "169": 1,
1784 "193": 4,
1785 "194": 3,
1786 "197": 3,
1787 "225": 2,
1788 "242": 2,
1789 "243": 2,
1790 "281": 5,
1791 "290": 1
1792 },
1793 "fqnsFingerprint": "d1e4fa629b938e3463f6d28f45f0c749acd28d84f49e914b30937156f9eda88a"
1794 },
1795 "afc346a0d65703fc2e56349cdcbdca4da3c0c69b57ee8da8132aae95c7032ae3": {
1796 "translations": {
1797 "python": {
1798 "source": "import aws_cdk.aws_certificatemanager as acm\n# certificate: acm.Certificate\n# source_bucket: s3.Bucket\n\n\nviewer_certificate = cloudfront.ViewerCertificate.from_acm_certificate(certificate,\n aliases=[\"MYALIAS\"]\n)\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n viewer_certificate=viewer_certificate\n)",
1799 "version": "2"
1800 },
1801 "csharp": {
1802 "source": "using Amazon.CDK.AWS.CertificateManager;\nCertificate certificate;\nBucket sourceBucket;\n\n\nViewerCertificate viewerCertificate = ViewerCertificate.FromAcmCertificate(certificate, new ViewerCertificateOptions {\n Aliases = new [] { \"MYALIAS\" }\n});\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = viewerCertificate\n});",
1803 "version": "1"
1804 },
1805 "java": {
1806 "source": "import software.amazon.awscdk.services.certificatemanager.*;\nCertificate certificate;\nBucket sourceBucket;\n\n\nViewerCertificate viewerCertificate = ViewerCertificate.fromAcmCertificate(certificate, ViewerCertificateOptions.builder()\n .aliases(List.of(\"MYALIAS\"))\n .build());\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(viewerCertificate)\n .build();",
1807 "version": "1"
1808 },
1809 "go": {
1810 "source": "import acm \"github.com/aws-samples/dummy/awscdkawscertificatemanager\"\nvar certificate certificate\nvar sourceBucket bucket\n\n\nviewerCertificate := cloudfront.viewerCertificate.fromAcmCertificate(certificate, &viewerCertificateOptions{\n\taliases: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n})\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: viewerCertificate,\n})",
1811 "version": "1"
1812 },
1813 "$": {
1814 "source": "import * as acm from '@aws-cdk/aws-certificatemanager';\ndeclare const certificate: acm.Certificate;\ndeclare const sourceBucket: s3.Bucket;\n\nconst viewerCertificate = cloudfront.ViewerCertificate.fromAcmCertificate(certificate, {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});",
1815 "version": "0"
1816 }
1817 },
1818 "location": {
1819 "api": {
1820 "api": "moduleReadme",
1821 "moduleFqn": "@aws-cdk/aws-cloudfront"
1822 },
1823 "field": {
1824 "field": "markdown",
1825 "line": 658
1826 }
1827 },
1828 "didCompile": true,
1829 "fqnsReferenced": [
1830 "@aws-cdk/aws-certificatemanager.ICertificate",
1831 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
1832 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
1833 "@aws-cdk/aws-cloudfront.S3OriginConfig",
1834 "@aws-cdk/aws-cloudfront.ViewerCertificate",
1835 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromAcmCertificate",
1836 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
1837 "@aws-cdk/aws-s3.IBucket",
1838 "constructs.Construct"
1839 ],
1840 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as acm from '@aws-cdk/aws-certificatemanager';\ndeclare const certificate: acm.Certificate;\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 viewerCertificate = cloudfront.ViewerCertificate.fromAcmCertificate(certificate, {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1841 "syntaxKindCounter": {
1842 "10": 3,
1843 "75": 23,
1844 "104": 1,
1845 "106": 1,
1846 "130": 2,
1847 "153": 2,
1848 "169": 2,
1849 "192": 3,
1850 "193": 5,
1851 "194": 3,
1852 "196": 1,
1853 "197": 1,
1854 "225": 3,
1855 "226": 1,
1856 "242": 3,
1857 "243": 3,
1858 "254": 1,
1859 "255": 1,
1860 "256": 1,
1861 "281": 7,
1862 "290": 1
1863 },
1864 "fqnsFingerprint": "ea2f660b81f3a58b2a318d88a3062973e550bfdbb5d86d1e66877d751c5c45f1"
1865 },
1866 "86bb8ed762c779ff06069d12206b99418cc8f437d4ec8ba5db4d3bbcca295b6a": {
1867 "translations": {
1868 "python": {
1869 "source": "import aws_cdk.aws_certificatemanager as acm\n# certificate: acm.Certificate\n# source_bucket: s3.Bucket\n\n\ndistribution = cloudfront.Distribution(self, \"MyCfWebDistribution\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(source_bucket)\n ),\n domain_names=[\"MYALIAS\"],\n certificate=certificate\n)",
1870 "version": "2"
1871 },
1872 "csharp": {
1873 "source": "using Amazon.CDK.AWS.CertificateManager;\nCertificate certificate;\nBucket sourceBucket;\n\n\nDistribution distribution = new Distribution(this, \"MyCfWebDistribution\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(sourceBucket)\n },\n DomainNames = new [] { \"MYALIAS\" },\n Certificate = certificate\n});",
1874 "version": "1"
1875 },
1876 "java": {
1877 "source": "import software.amazon.awscdk.services.certificatemanager.*;\nCertificate certificate;\nBucket sourceBucket;\n\n\nDistribution distribution = Distribution.Builder.create(this, \"MyCfWebDistribution\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(sourceBucket))\n .build())\n .domainNames(List.of(\"MYALIAS\"))\n .certificate(certificate)\n .build();",
1878 "version": "1"
1879 },
1880 "go": {
1881 "source": "import acm \"github.com/aws-samples/dummy/awscdkawscertificatemanager\"\nvar certificate certificate\nvar sourceBucket bucket\n\n\ndistribution := cloudfront.NewDistribution(this, jsii.String(\"MyCfWebDistribution\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(sourceBucket),\n\t},\n\tdomainNames: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n\tcertificate: certificate,\n})",
1882 "version": "1"
1883 },
1884 "$": {
1885 "source": "import * as acm from '@aws-cdk/aws-certificatemanager';\ndeclare const certificate: acm.Certificate;\ndeclare const sourceBucket: s3.Bucket;\n\nconst distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n domainNames: ['MYALIAS'],\n certificate: certificate,\n});",
1886 "version": "0"
1887 }
1888 },
1889 "location": {
1890 "api": {
1891 "api": "moduleReadme",
1892 "moduleFqn": "@aws-cdk/aws-cloudfront"
1893 },
1894 "field": {
1895 "field": "markdown",
1896 "line": 682
1897 }
1898 },
1899 "didCompile": true,
1900 "fqnsReferenced": [
1901 "@aws-cdk/aws-certificatemanager.ICertificate",
1902 "@aws-cdk/aws-cloudfront-origins.S3Origin",
1903 "@aws-cdk/aws-cloudfront.BehaviorOptions",
1904 "@aws-cdk/aws-cloudfront.Distribution",
1905 "@aws-cdk/aws-cloudfront.DistributionProps",
1906 "@aws-cdk/aws-cloudfront.IOrigin",
1907 "@aws-cdk/aws-s3.IBucket",
1908 "constructs.Construct"
1909 ],
1910 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as acm from '@aws-cdk/aws-certificatemanager';\ndeclare const certificate: acm.Certificate;\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n domainNames: ['MYALIAS'],\n certificate: certificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1911 "syntaxKindCounter": {
1912 "10": 3,
1913 "75": 18,
1914 "104": 1,
1915 "130": 2,
1916 "153": 2,
1917 "169": 2,
1918 "192": 1,
1919 "193": 2,
1920 "194": 2,
1921 "197": 2,
1922 "225": 3,
1923 "242": 3,
1924 "243": 3,
1925 "254": 1,
1926 "255": 1,
1927 "256": 1,
1928 "281": 4,
1929 "290": 1
1930 },
1931 "fqnsFingerprint": "12061b2be7b25a600a050d2aec40b0085cda321e7e6ff21f2acea7dfeffe1cb1"
1932 },
1933 "137f2657e80c88efa7627f8643996098a0b2119cc90e4e91ffc84f481af0acad": {
1934 "translations": {
1935 "python": {
1936 "source": "# source_bucket: s3.Bucket\n\nviewer_certificate = cloudfront.ViewerCertificate.from_iam_certificate(\"MYIAMROLEIDENTIFIER\",\n aliases=[\"MYALIAS\"]\n)\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n viewer_certificate=viewer_certificate\n)",
1937 "version": "2"
1938 },
1939 "csharp": {
1940 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.FromIamCertificate(\"MYIAMROLEIDENTIFIER\", new ViewerCertificateOptions {\n Aliases = new [] { \"MYALIAS\" }\n});\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = viewerCertificate\n});",
1941 "version": "1"
1942 },
1943 "java": {
1944 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.fromIamCertificate(\"MYIAMROLEIDENTIFIER\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"MYALIAS\"))\n .build());\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(viewerCertificate)\n .build();",
1945 "version": "1"
1946 },
1947 "go": {
1948 "source": "var sourceBucket bucket\n\nviewerCertificate := cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"MYIAMROLEIDENTIFIER\"), &viewerCertificateOptions{\n\taliases: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n})\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: viewerCertificate,\n})",
1949 "version": "1"
1950 },
1951 "$": {
1952 "source": "declare const sourceBucket: s3.Bucket;\nconst viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});",
1953 "version": "0"
1954 }
1955 },
1956 "location": {
1957 "api": {
1958 "api": "moduleReadme",
1959 "moduleFqn": "@aws-cdk/aws-cloudfront"
1960 },
1961 "field": {
1962 "field": "markdown",
1963 "line": 698
1964 }
1965 },
1966 "didCompile": true,
1967 "fqnsReferenced": [
1968 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
1969 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
1970 "@aws-cdk/aws-cloudfront.S3OriginConfig",
1971 "@aws-cdk/aws-cloudfront.ViewerCertificate",
1972 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
1973 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
1974 "@aws-cdk/aws-s3.IBucket",
1975 "constructs.Construct"
1976 ],
1977 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
1978 "syntaxKindCounter": {
1979 "10": 3,
1980 "75": 18,
1981 "104": 1,
1982 "106": 1,
1983 "130": 1,
1984 "153": 1,
1985 "169": 1,
1986 "192": 3,
1987 "193": 5,
1988 "194": 3,
1989 "196": 1,
1990 "197": 1,
1991 "225": 2,
1992 "226": 1,
1993 "242": 2,
1994 "243": 2,
1995 "281": 7,
1996 "290": 1
1997 },
1998 "fqnsFingerprint": "dc85e0e66756c7ca4ca260fa52258db75a8634baf4e3cb2bd68bffa4dc45a896"
1999 },
2000 "55a82401ba8e473f44485582df98d9a2aee696083e52f1bf8c4d52830d854d44": {
2001 "translations": {
2002 "python": {
2003 "source": "# source_bucket: s3.Bucket\n\ndistribution = cloudfront.Distribution(self, \"MyCfWebDistribution\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(source_bucket)\n ),\n domain_names=[\"MYALIAS\"]\n)\n\ncfn_distribution = distribution.node.default_child\n\ncfn_distribution.add_property_override(\"ViewerCertificate.IamCertificateId\", \"MYIAMROLEIDENTIFIER\")\ncfn_distribution.add_property_override(\"ViewerCertificate.SslSupportMethod\", \"sni-only\")",
2004 "version": "2"
2005 },
2006 "csharp": {
2007 "source": "Bucket sourceBucket;\n\nDistribution distribution = new Distribution(this, \"MyCfWebDistribution\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(sourceBucket)\n },\n DomainNames = new [] { \"MYALIAS\" }\n});\n\nCfnDistribution cfnDistribution = (CfnDistribution)distribution.Node.DefaultChild;\n\ncfnDistribution.AddPropertyOverride(\"ViewerCertificate.IamCertificateId\", \"MYIAMROLEIDENTIFIER\");\ncfnDistribution.AddPropertyOverride(\"ViewerCertificate.SslSupportMethod\", \"sni-only\");",
2008 "version": "1"
2009 },
2010 "java": {
2011 "source": "Bucket sourceBucket;\n\nDistribution distribution = Distribution.Builder.create(this, \"MyCfWebDistribution\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(sourceBucket))\n .build())\n .domainNames(List.of(\"MYALIAS\"))\n .build();\n\nCfnDistribution cfnDistribution = (CfnDistribution)distribution.getNode().getDefaultChild();\n\ncfnDistribution.addPropertyOverride(\"ViewerCertificate.IamCertificateId\", \"MYIAMROLEIDENTIFIER\");\ncfnDistribution.addPropertyOverride(\"ViewerCertificate.SslSupportMethod\", \"sni-only\");",
2012 "version": "1"
2013 },
2014 "go": {
2015 "source": "var sourceBucket bucket\n\ndistribution := cloudfront.NewDistribution(this, jsii.String(\"MyCfWebDistribution\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(sourceBucket),\n\t},\n\tdomainNames: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n})\n\ncfnDistribution := distribution.node.defaultChild.(cfnDistribution)\n\ncfnDistribution.addPropertyOverride(jsii.String(\"ViewerCertificate.IamCertificateId\"), jsii.String(\"MYIAMROLEIDENTIFIER\"))\ncfnDistribution.addPropertyOverride(jsii.String(\"ViewerCertificate.SslSupportMethod\"), jsii.String(\"sni-only\"))",
2016 "version": "1"
2017 },
2018 "$": {
2019 "source": "declare const sourceBucket: s3.Bucket;\nconst distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n domainNames: ['MYALIAS'],\n});\n\nconst cfnDistribution = distribution.node.defaultChild as cloudfront.CfnDistribution;\n\ncfnDistribution.addPropertyOverride('ViewerCertificate.IamCertificateId', 'MYIAMROLEIDENTIFIER');\ncfnDistribution.addPropertyOverride('ViewerCertificate.SslSupportMethod', 'sni-only');",
2020 "version": "0"
2021 }
2022 },
2023 "location": {
2024 "api": {
2025 "api": "moduleReadme",
2026 "moduleFqn": "@aws-cdk/aws-cloudfront"
2027 },
2028 "field": {
2029 "field": "markdown",
2030 "line": 719
2031 }
2032 },
2033 "didCompile": true,
2034 "fqnsReferenced": [
2035 "@aws-cdk/aws-cloudfront-origins.S3Origin",
2036 "@aws-cdk/aws-cloudfront.BehaviorOptions",
2037 "@aws-cdk/aws-cloudfront.CfnDistribution",
2038 "@aws-cdk/aws-cloudfront.Distribution",
2039 "@aws-cdk/aws-cloudfront.DistributionProps",
2040 "@aws-cdk/aws-cloudfront.IOrigin",
2041 "@aws-cdk/aws-s3.IBucket",
2042 "@aws-cdk/core.CfnResource#addPropertyOverride",
2043 "@aws-cdk/core.Construct#node",
2044 "constructs.Construct"
2045 ],
2046 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 distribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n domainNames: ['MYALIAS'],\n});\n\nconst cfnDistribution = distribution.node.defaultChild as cloudfront.CfnDistribution;\n\ncfnDistribution.addPropertyOverride('ViewerCertificate.IamCertificateId', 'MYIAMROLEIDENTIFIER');\ncfnDistribution.addPropertyOverride('ViewerCertificate.SslSupportMethod', 'sni-only');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2047 "syntaxKindCounter": {
2048 "10": 6,
2049 "75": 22,
2050 "104": 1,
2051 "130": 1,
2052 "153": 2,
2053 "169": 2,
2054 "192": 1,
2055 "193": 2,
2056 "194": 6,
2057 "196": 2,
2058 "197": 2,
2059 "217": 1,
2060 "225": 3,
2061 "226": 2,
2062 "242": 3,
2063 "243": 3,
2064 "281": 3,
2065 "290": 1
2066 },
2067 "fqnsFingerprint": "1f0f31860fe44daff1e052f26060aa9f91d63d7e7b5ffbcc8a1eda42e93874f2"
2068 },
2069 "5c430625d5d51ba98093c8a71467d98c285d4b498cd6e2b2f3ea675339ec40cd": {
2070 "translations": {
2071 "python": {
2072 "source": "# Using a CloudFrontWebDistribution construct.\n\n# source_bucket: s3.Bucket\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"MyDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ]\n)",
2073 "version": "2"
2074 },
2075 "csharp": {
2076 "source": "// Using a CloudFrontWebDistribution construct.\n\nBucket sourceBucket;\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"MyDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } }\n});",
2077 "version": "1"
2078 },
2079 "java": {
2080 "source": "// Using a CloudFrontWebDistribution construct.\n\nBucket sourceBucket;\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"MyDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .build();",
2081 "version": "1"
2082 },
2083 "go": {
2084 "source": "// Using a CloudFrontWebDistribution construct.\n\nvar sourceBucket bucket\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
2085 "version": "1"
2086 },
2087 "$": {
2088 "source": "// Using a CloudFrontWebDistribution construct.\n\ndeclare const sourceBucket: s3.Bucket;\nconst distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n});",
2089 "version": "0"
2090 }
2091 },
2092 "location": {
2093 "api": {
2094 "api": "moduleReadme",
2095 "moduleFqn": "@aws-cdk/aws-cloudfront"
2096 },
2097 "field": {
2098 "field": "markdown",
2099 "line": 747
2100 }
2101 },
2102 "didCompile": true,
2103 "fqnsReferenced": [
2104 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2105 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2106 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2107 "@aws-cdk/aws-s3.IBucket",
2108 "constructs.Construct"
2109 ],
2110 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using a CloudFrontWebDistribution construct.\n\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2111 "syntaxKindCounter": {
2112 "10": 1,
2113 "75": 12,
2114 "104": 1,
2115 "106": 1,
2116 "130": 1,
2117 "153": 1,
2118 "169": 1,
2119 "192": 2,
2120 "193": 4,
2121 "194": 1,
2122 "197": 1,
2123 "225": 2,
2124 "242": 2,
2125 "243": 2,
2126 "281": 5,
2127 "290": 1
2128 },
2129 "fqnsFingerprint": "b89366c2ce8bfd748e4569ca8f4aedddc903f1bc0385ec0b33bfb8c45d7174e0"
2130 },
2131 "9009b3b7e72025b8d5039f8809659af96c26a8746adb6a6534c795d1776ea357": {
2132 "translations": {
2133 "python": {
2134 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_cloud_front_default_certificate(\"www.example.com\")\n)",
2135 "version": "2"
2136 },
2137 "csharp": {
2138 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromCloudFrontDefaultCertificate(\"www.example.com\")\n});",
2139 "version": "1"
2140 },
2141 "java": {
2142 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromCloudFrontDefaultCertificate(\"www.example.com\"))\n .build();",
2143 "version": "1"
2144 },
2145 "go": {
2146 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromCloudFrontDefaultCertificate(jsii.String(\"www.example.com\")),\n})",
2147 "version": "1"
2148 },
2149 "$": {
2150 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromCloudFrontDefaultCertificate(\n 'www.example.com',\n ),\n });",
2151 "version": "0"
2152 }
2153 },
2154 "location": {
2155 "api": {
2156 "api": "moduleReadme",
2157 "moduleFqn": "@aws-cdk/aws-cloudfront"
2158 },
2159 "field": {
2160 "field": "markdown",
2161 "line": 777
2162 }
2163 },
2164 "didCompile": true,
2165 "fqnsReferenced": [
2166 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2167 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2168 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2169 "@aws-cdk/aws-cloudfront.ViewerCertificate",
2170 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromCloudFrontDefaultCertificate",
2171 "@aws-cdk/aws-s3.Bucket",
2172 "@aws-cdk/aws-s3.IBucket",
2173 "constructs.Construct"
2174 ],
2175 "fullSource": "import * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromCloudFrontDefaultCertificate(\n 'www.example.com',\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
2176 "syntaxKindCounter": {
2177 "10": 3,
2178 "75": 15,
2179 "104": 2,
2180 "106": 1,
2181 "192": 2,
2182 "193": 4,
2183 "194": 4,
2184 "196": 1,
2185 "197": 2,
2186 "225": 2,
2187 "242": 2,
2188 "243": 2,
2189 "281": 5,
2190 "282": 1
2191 },
2192 "fqnsFingerprint": "904093642e1c6e7f50e877e6d28863e2f8655a9194d010b68f984883a2c14fc2"
2193 },
2194 "34a0cd545bf5a1dcafc40aefb926b7449dd3d37488cf74126ef7c21cfb50a735": {
2195 "translations": {
2196 "python": {
2197 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ncertificate = certificatemanager.Certificate(self, \"Certificate\",\n domain_name=\"example.com\",\n subject_alternative_names=[\"*.example.com\"]\n)\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_acm_certificate(certificate,\n aliases=[\"example.com\", \"www.example.com\"],\n security_policy=cloudfront.SecurityPolicyProtocol.TLS_V1, # default\n ssl_method=cloudfront.SSLMethod.SNI\n )\n)",
2198 "version": "2"
2199 },
2200 "csharp": {
2201 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCertificate certificate = new Certificate(this, \"Certificate\", new CertificateProps {\n DomainName = \"example.com\",\n SubjectAlternativeNames = new [] { \"*.example.com\" }\n});\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromAcmCertificate(certificate, new ViewerCertificateOptions {\n Aliases = new [] { \"example.com\", \"www.example.com\" },\n SecurityPolicy = SecurityPolicyProtocol.TLS_V1, // default\n SslMethod = SSLMethod.SNI\n })\n});",
2202 "version": "1"
2203 },
2204 "java": {
2205 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCertificate certificate = Certificate.Builder.create(this, \"Certificate\")\n .domainName(\"example.com\")\n .subjectAlternativeNames(List.of(\"*.example.com\"))\n .build();\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromAcmCertificate(certificate, ViewerCertificateOptions.builder()\n .aliases(List.of(\"example.com\", \"www.example.com\"))\n .securityPolicy(SecurityPolicyProtocol.TLS_V1) // default\n .sslMethod(SSLMethod.SNI)\n .build()))\n .build();",
2206 "version": "1"
2207 },
2208 "go": {
2209 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ncertificate := certificatemanager.NewCertificate(this, jsii.String(\"Certificate\"), &certificateProps{\n\tdomainName: jsii.String(\"example.com\"),\n\tsubjectAlternativeNames: []*string{\n\t\tjsii.String(\"*.example.com\"),\n\t},\n})\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromAcmCertificate(certificate, &viewerCertificateOptions{\n\t\taliases: []*string{\n\t\t\tjsii.String(\"example.com\"),\n\t\t\tjsii.String(\"www.example.com\"),\n\t\t},\n\t\tsecurityPolicy: cloudfront.securityPolicyProtocol_TLS_V1,\n\t\t // default\n\t\tsslMethod: cloudfront.sSLMethod_SNI,\n\t}),\n})",
2210 "version": "1"
2211 },
2212 "$": {
2213 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const certificate = new certificatemanager.Certificate(this, 'Certificate', {\n domainName: 'example.com',\n subjectAlternativeNames: ['*.example.com'],\n });\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromAcmCertificate(\n certificate,\n {\n aliases: ['example.com', 'www.example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.TLS_V1, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });",
2214 "version": "0"
2215 }
2216 },
2217 "location": {
2218 "api": {
2219 "api": "moduleReadme",
2220 "moduleFqn": "@aws-cdk/aws-cloudfront"
2221 },
2222 "field": {
2223 "field": "markdown",
2224 "line": 803
2225 }
2226 },
2227 "didCompile": true,
2228 "fqnsReferenced": [
2229 "@aws-cdk/aws-certificatemanager.Certificate",
2230 "@aws-cdk/aws-certificatemanager.CertificateProps",
2231 "@aws-cdk/aws-certificatemanager.ICertificate",
2232 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2233 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2234 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2235 "@aws-cdk/aws-cloudfront.SSLMethod",
2236 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
2237 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
2238 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#TLS_V1",
2239 "@aws-cdk/aws-cloudfront.ViewerCertificate",
2240 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromAcmCertificate",
2241 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
2242 "@aws-cdk/aws-s3.Bucket",
2243 "@aws-cdk/aws-s3.IBucket",
2244 "constructs.Construct"
2245 ],
2246 "fullSource": "import * as certificatemanager from '@aws-cdk/aws-certificatemanager';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const certificate = new certificatemanager.Certificate(this, 'Certificate', {\n domainName: 'example.com',\n subjectAlternativeNames: ['*.example.com'],\n });\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromAcmCertificate(\n certificate,\n {\n aliases: ['example.com', 'www.example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.TLS_V1, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(certificate);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
2247 "syntaxKindCounter": {
2248 "10": 7,
2249 "75": 30,
2250 "104": 3,
2251 "106": 1,
2252 "192": 4,
2253 "193": 6,
2254 "194": 9,
2255 "196": 1,
2256 "197": 3,
2257 "225": 3,
2258 "242": 3,
2259 "243": 3,
2260 "281": 10,
2261 "282": 1
2262 },
2263 "fqnsFingerprint": "e35872587824506ebd902707371ab567066773b1f2a6f68c57e8e03966be5d56"
2264 },
2265 "3beaf5a9271eea4efdd84ea93b388aa3eafdec3d8bb5f4f2e70c27d6b3736f2b": {
2266 "translations": {
2267 "python": {
2268 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_iam_certificate(\"certificateId\",\n aliases=[\"example.com\"],\n security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3, # default\n ssl_method=cloudfront.SSLMethod.SNI\n )\n)",
2269 "version": "2"
2270 },
2271 "csharp": {
2272 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromIamCertificate(\"certificateId\", new ViewerCertificateOptions {\n Aliases = new [] { \"example.com\" },\n SecurityPolicy = SecurityPolicyProtocol.SSL_V3, // default\n SslMethod = SSLMethod.SNI\n })\n});",
2273 "version": "1"
2274 },
2275 "java": {
2276 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromIamCertificate(\"certificateId\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"example.com\"))\n .securityPolicy(SecurityPolicyProtocol.SSL_V3) // default\n .sslMethod(SSLMethod.SNI)\n .build()))\n .build();",
2277 "version": "1"
2278 },
2279 "go": {
2280 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"certificateId\"), &viewerCertificateOptions{\n\t\taliases: []*string{\n\t\t\tjsii.String(\"example.com\"),\n\t\t},\n\t\tsecurityPolicy: cloudfront.securityPolicyProtocol_SSL_V3,\n\t\t // default\n\t\tsslMethod: cloudfront.sSLMethod_SNI,\n\t}),\n})",
2281 "version": "1"
2282 },
2283 "$": {
2284 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });",
2285 "version": "0"
2286 }
2287 },
2288 "location": {
2289 "api": {
2290 "api": "moduleReadme",
2291 "moduleFqn": "@aws-cdk/aws-cloudfront"
2292 },
2293 "field": {
2294 "field": "markdown",
2295 "line": 835
2296 }
2297 },
2298 "didCompile": true,
2299 "fqnsReferenced": [
2300 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2301 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2302 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2303 "@aws-cdk/aws-cloudfront.SSLMethod",
2304 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
2305 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
2306 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
2307 "@aws-cdk/aws-cloudfront.ViewerCertificate",
2308 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
2309 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
2310 "@aws-cdk/aws-s3.Bucket",
2311 "@aws-cdk/aws-s3.IBucket",
2312 "constructs.Construct"
2313 ],
2314 "fullSource": "import * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
2315 "syntaxKindCounter": {
2316 "10": 4,
2317 "75": 24,
2318 "104": 2,
2319 "106": 1,
2320 "192": 3,
2321 "193": 5,
2322 "194": 8,
2323 "196": 1,
2324 "197": 2,
2325 "225": 2,
2326 "242": 2,
2327 "243": 2,
2328 "281": 8,
2329 "282": 1
2330 },
2331 "fqnsFingerprint": "553e0e84141237f23233031cbf607034ad3d9c6bd9373a50a3b4012e74732b57"
2332 },
2333 "3c2c6734aeca72056919b23c683818365f4e450ef7634dddecd536a1ab10d5d5": {
2334 "translations": {
2335 "python": {
2336 "source": "# Using trusted key groups for Cloudfront Web Distributions.\n# source_bucket: s3.Bucket\n# public_key: str\n\npub_key = cloudfront.PublicKey(self, \"MyPubKey\",\n encoded_key=public_key\n)\n\nkey_group = cloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[pub_key\n ]\n)\n\ncloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(\n is_default_behavior=True,\n trusted_key_groups=[key_group\n ]\n )\n ]\n )\n ]\n)",
2337 "version": "2"
2338 },
2339 "csharp": {
2340 "source": "// Using trusted key groups for Cloudfront Web Distributions.\nBucket sourceBucket;\nstring publicKey;\n\nPublicKey pubKey = new PublicKey(this, \"MyPubKey\", new PublicKeyProps {\n EncodedKey = publicKey\n});\n\nKeyGroup keyGroup = new KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] { pubKey }\n});\n\nnew CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior {\n IsDefaultBehavior = true,\n TrustedKeyGroups = new [] { keyGroup }\n } }\n } }\n});",
2341 "version": "1"
2342 },
2343 "java": {
2344 "source": "// Using trusted key groups for Cloudfront Web Distributions.\nBucket sourceBucket;\nString publicKey;\n\nPublicKey pubKey = PublicKey.Builder.create(this, \"MyPubKey\")\n .encodedKey(publicKey)\n .build();\n\nKeyGroup keyGroup = KeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(pubKey))\n .build();\n\nCloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder()\n .isDefaultBehavior(true)\n .trustedKeyGroups(List.of(keyGroup))\n .build()))\n .build()))\n .build();",
2345 "version": "1"
2346 },
2347 "go": {
2348 "source": "// Using trusted key groups for Cloudfront Web Distributions.\nvar sourceBucket bucket\nvar publicKey string\n\npubKey := cloudfront.NewPublicKey(this, jsii.String(\"MyPubKey\"), &publicKeyProps{\n\tencodedKey: publicKey,\n})\n\nkeyGroup := cloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tpubKey,\n\t},\n})\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\t\t\t\tkeyGroup,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
2349 "version": "1"
2350 },
2351 "$": {
2352 "source": "// Using trusted key groups for Cloudfront Web Distributions.\ndeclare const sourceBucket: s3.Bucket;\ndeclare const publicKey: string;\nconst pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors: [\n {\n isDefaultBehavior: true,\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n ],\n },\n ],\n});",
2353 "version": "0"
2354 }
2355 },
2356 "location": {
2357 "api": {
2358 "api": "moduleReadme",
2359 "moduleFqn": "@aws-cdk/aws-cloudfront"
2360 },
2361 "field": {
2362 "field": "markdown",
2363 "line": 861
2364 }
2365 },
2366 "didCompile": true,
2367 "fqnsReferenced": [
2368 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2369 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2370 "@aws-cdk/aws-cloudfront.KeyGroup",
2371 "@aws-cdk/aws-cloudfront.KeyGroupProps",
2372 "@aws-cdk/aws-cloudfront.PublicKey",
2373 "@aws-cdk/aws-cloudfront.PublicKeyProps",
2374 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2375 "@aws-cdk/aws-s3.IBucket",
2376 "constructs.Construct"
2377 ],
2378 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using trusted key groups for Cloudfront Web Distributions.\ndeclare const sourceBucket: s3.Bucket;\ndeclare const publicKey: string;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors: [\n {\n isDefaultBehavior: true,\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n ],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2379 "syntaxKindCounter": {
2380 "10": 3,
2381 "75": 24,
2382 "104": 3,
2383 "106": 1,
2384 "130": 2,
2385 "143": 1,
2386 "153": 1,
2387 "169": 1,
2388 "192": 4,
2389 "193": 6,
2390 "194": 3,
2391 "197": 3,
2392 "225": 4,
2393 "226": 1,
2394 "242": 4,
2395 "243": 4,
2396 "281": 8,
2397 "290": 1
2398 },
2399 "fqnsFingerprint": "86f592a692c792709050fa4cfac5ed3fa0563493fd1f9c88f7e833f0d8d41b45"
2400 },
2401 "4340fae2e721d2ce815b4d6b0f2d483d964388d6f6cba94f7af8634b458a169a": {
2402 "translations": {
2403 "python": {
2404 "source": "# Adding restrictions to a Cloudfront Web Distribution.\n# source_bucket: s3.Bucket\n\ncloudfront.CloudFrontWebDistribution(self, \"MyDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n geo_restriction=cloudfront.GeoRestriction.allowlist(\"US\", \"GB\")\n)",
2405 "version": "2"
2406 },
2407 "csharp": {
2408 "source": "// Adding restrictions to a Cloudfront Web Distribution.\nBucket sourceBucket;\n\nnew CloudFrontWebDistribution(this, \"MyDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n GeoRestriction = GeoRestriction.Allowlist(\"US\", \"GB\")\n});",
2409 "version": "1"
2410 },
2411 "java": {
2412 "source": "// Adding restrictions to a Cloudfront Web Distribution.\nBucket sourceBucket;\n\nCloudFrontWebDistribution.Builder.create(this, \"MyDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .geoRestriction(GeoRestriction.allowlist(\"US\", \"GB\"))\n .build();",
2413 "version": "1"
2414 },
2415 "go": {
2416 "source": "// Adding restrictions to a Cloudfront Web Distribution.\nvar sourceBucket bucket\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tgeoRestriction: cloudfront.geoRestriction.allowlist(jsii.String(\"US\"), jsii.String(\"GB\")),\n})",
2417 "version": "1"
2418 },
2419 "$": {
2420 "source": "// Adding restrictions to a Cloudfront Web Distribution.\ndeclare const sourceBucket: s3.Bucket;\nnew cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n geoRestriction: cloudfront.GeoRestriction.allowlist('US', 'GB'),\n});",
2421 "version": "0"
2422 }
2423 },
2424 "location": {
2425 "api": {
2426 "api": "moduleReadme",
2427 "moduleFqn": "@aws-cdk/aws-cloudfront"
2428 },
2429 "field": {
2430 "field": "markdown",
2431 "line": 902
2432 }
2433 },
2434 "didCompile": true,
2435 "fqnsReferenced": [
2436 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2437 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2438 "@aws-cdk/aws-cloudfront.GeoRestriction",
2439 "@aws-cdk/aws-cloudfront.GeoRestriction#allowlist",
2440 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2441 "@aws-cdk/aws-s3.IBucket",
2442 "constructs.Construct"
2443 ],
2444 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Adding restrictions to a Cloudfront Web Distribution.\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n geoRestriction: cloudfront.GeoRestriction.allowlist('US', 'GB'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2445 "syntaxKindCounter": {
2446 "10": 3,
2447 "75": 15,
2448 "104": 1,
2449 "106": 1,
2450 "130": 1,
2451 "153": 1,
2452 "169": 1,
2453 "192": 2,
2454 "193": 4,
2455 "194": 3,
2456 "196": 1,
2457 "197": 1,
2458 "225": 1,
2459 "226": 1,
2460 "242": 1,
2461 "243": 1,
2462 "281": 6,
2463 "290": 1
2464 },
2465 "fqnsFingerprint": "79eb242a60769e400095abf3210d66d01bb3d0c863504047525dc7288aca90b0"
2466 },
2467 "9a4e15d9eb5dc6666d8b44390b49b9fef74a233abb2a491451f1272a15868213": {
2468 "translations": {
2469 "python": {
2470 "source": "# Configuring connection behaviors between Cloudfront and your origin\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"MyDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n connection_attempts=3,\n connection_timeout=Duration.seconds(10),\n behaviors=[cloudfront.Behavior(\n is_default_behavior=True\n )\n ]\n )\n ]\n)",
2471 "version": "2"
2472 },
2473 "csharp": {
2474 "source": "// Configuring connection behaviors between Cloudfront and your origin\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"MyDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n ConnectionAttempts = 3,\n ConnectionTimeout = Duration.Seconds(10),\n Behaviors = new [] { new Behavior {\n IsDefaultBehavior = true\n } }\n } }\n});",
2475 "version": "1"
2476 },
2477 "java": {
2478 "source": "// Configuring connection behaviors between Cloudfront and your origin\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"MyDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .connectionAttempts(3)\n .connectionTimeout(Duration.seconds(10))\n .behaviors(List.of(Behavior.builder()\n .isDefaultBehavior(true)\n .build()))\n .build()))\n .build();",
2479 "version": "1"
2480 },
2481 "go": {
2482 "source": "// Configuring connection behaviors between Cloudfront and your origin\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\tconnectionAttempts: jsii.Number(3),\n\t\t\tconnectionTimeout: *awscdkcore.Duration.seconds(jsii.Number(10)),\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
2483 "version": "1"
2484 },
2485 "$": {
2486 "source": "// Configuring connection behaviors between Cloudfront and your origin\nconst distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n connectionAttempts: 3,\n connectionTimeout: Duration.seconds(10),\n behaviors: [\n {\n isDefaultBehavior: true,\n },\n ],\n },\n ],\n});",
2487 "version": "0"
2488 }
2489 },
2490 "location": {
2491 "api": {
2492 "api": "moduleReadme",
2493 "moduleFqn": "@aws-cdk/aws-cloudfront"
2494 },
2495 "field": {
2496 "field": "markdown",
2497 "line": 929
2498 }
2499 },
2500 "didCompile": true,
2501 "fqnsReferenced": [
2502 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2503 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2504 "@aws-cdk/core.Duration",
2505 "@aws-cdk/core.Duration#seconds",
2506 "constructs.Construct"
2507 ],
2508 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Configuring connection behaviors between Cloudfront and your origin\nconst distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n connectionAttempts: 3,\n connectionTimeout: Duration.seconds(10),\n behaviors: [\n {\n isDefaultBehavior: true,\n },\n ],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2509 "syntaxKindCounter": {
2510 "8": 2,
2511 "10": 1,
2512 "75": 10,
2513 "104": 1,
2514 "106": 1,
2515 "192": 2,
2516 "193": 3,
2517 "194": 2,
2518 "196": 1,
2519 "197": 1,
2520 "225": 1,
2521 "242": 1,
2522 "243": 1,
2523 "281": 5
2524 },
2525 "fqnsFingerprint": "ef1d1903d4d7b392bd386962c09e51a6fe1bc6647f175fe3ed3a0e6a5aa5d247"
2526 },
2527 "ec35ea62c72f95a7ae4f5cb0b3c1021e37cf463c2891265dd82e450c810b1bd5": {
2528 "translations": {
2529 "python": {
2530 "source": "# Configuring origin fallback options for the CloudFrontWebDistribution\ncloudfront.CloudFrontWebDistribution(self, \"ADistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=s3.Bucket.from_bucket_name(self, \"aBucket\", \"myoriginbucket\"),\n origin_path=\"/\",\n origin_headers={\n \"myHeader\": \"42\"\n },\n origin_shield_region=\"us-west-2\"\n ),\n failover_s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=s3.Bucket.from_bucket_name(self, \"aBucketFallback\", \"myoriginbucketfallback\"),\n origin_path=\"/somewhere\",\n origin_headers={\n \"myHeader2\": \"21\"\n },\n origin_shield_region=\"us-east-1\"\n ),\n failover_criteria_status_codes=[cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR],\n behaviors=[cloudfront.Behavior(\n is_default_behavior=True\n )\n ]\n )\n ]\n)",
2531 "version": "2"
2532 },
2533 "csharp": {
2534 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\n// Configuring origin fallback options for the CloudFrontWebDistribution\nnew CloudFrontWebDistribution(this, \"ADistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = Bucket.FromBucketName(this, \"aBucket\", \"myoriginbucket\"),\n OriginPath = \"/\",\n OriginHeaders = new Dictionary<string, string> {\n { \"myHeader\", \"42\" }\n },\n OriginShieldRegion = \"us-west-2\"\n },\n FailoverS3OriginSource = new S3OriginConfig {\n S3BucketSource = Bucket.FromBucketName(this, \"aBucketFallback\", \"myoriginbucketfallback\"),\n OriginPath = \"/somewhere\",\n OriginHeaders = new Dictionary<string, string> {\n { \"myHeader2\", \"21\" }\n },\n OriginShieldRegion = \"us-east-1\"\n },\n FailoverCriteriaStatusCodes = new [] { FailoverStatusCode.INTERNAL_SERVER_ERROR },\n Behaviors = new [] { new Behavior {\n IsDefaultBehavior = true\n } }\n } }\n});",
2535 "version": "1"
2536 },
2537 "java": {
2538 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\n// Configuring origin fallback options for the CloudFrontWebDistribution\nCloudFrontWebDistribution.Builder.create(this, \"ADistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(Bucket.fromBucketName(this, \"aBucket\", \"myoriginbucket\"))\n .originPath(\"/\")\n .originHeaders(Map.of(\n \"myHeader\", \"42\"))\n .originShieldRegion(\"us-west-2\")\n .build())\n .failoverS3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(Bucket.fromBucketName(this, \"aBucketFallback\", \"myoriginbucketfallback\"))\n .originPath(\"/somewhere\")\n .originHeaders(Map.of(\n \"myHeader2\", \"21\"))\n .originShieldRegion(\"us-east-1\")\n .build())\n .failoverCriteriaStatusCodes(List.of(FailoverStatusCode.INTERNAL_SERVER_ERROR))\n .behaviors(List.of(Behavior.builder()\n .isDefaultBehavior(true)\n .build()))\n .build()))\n .build();",
2539 "version": "1"
2540 },
2541 "go": {
2542 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\n// Configuring origin fallback options for the CloudFrontWebDistribution\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"ADistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3.bucket.fromBucketName(this, jsii.String(\"aBucket\"), jsii.String(\"myoriginbucket\")),\n\t\t\t\toriginPath: jsii.String(\"/\"),\n\t\t\t\toriginHeaders: map[string]*string{\n\t\t\t\t\t\"myHeader\": jsii.String(\"42\"),\n\t\t\t\t},\n\t\t\t\toriginShieldRegion: jsii.String(\"us-west-2\"),\n\t\t\t},\n\t\t\tfailoverS3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3.*bucket.fromBucketName(this, jsii.String(\"aBucketFallback\"), jsii.String(\"myoriginbucketfallback\")),\n\t\t\t\toriginPath: jsii.String(\"/somewhere\"),\n\t\t\t\toriginHeaders: map[string]*string{\n\t\t\t\t\t\"myHeader2\": jsii.String(\"21\"),\n\t\t\t\t},\n\t\t\t\toriginShieldRegion: jsii.String(\"us-east-1\"),\n\t\t\t},\n\t\t\tfailoverCriteriaStatusCodes: []failoverStatusCode{\n\t\t\t\tcloudfront.*failoverStatusCode_INTERNAL_SERVER_ERROR,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
2543 "version": "1"
2544 },
2545 "$": {
2546 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\nnew cloudfront.CloudFrontWebDistribution(this, 'ADistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucket', 'myoriginbucket'),\n originPath: '/',\n originHeaders: {\n 'myHeader': '42',\n },\n originShieldRegion: 'us-west-2',\n },\n failoverS3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucketFallback', 'myoriginbucketfallback'),\n originPath: '/somewhere',\n originHeaders: {\n 'myHeader2': '21',\n },\n originShieldRegion: 'us-east-1',\n },\n failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR],\n behaviors: [\n {\n isDefaultBehavior: true,\n },\n ],\n },\n ],\n});",
2547 "version": "0"
2548 }
2549 },
2550 "location": {
2551 "api": {
2552 "api": "moduleReadme",
2553 "moduleFqn": "@aws-cdk/aws-cloudfront"
2554 },
2555 "field": {
2556 "field": "markdown",
2557 "line": 951
2558 }
2559 },
2560 "didCompile": true,
2561 "fqnsReferenced": [
2562 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
2563 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
2564 "@aws-cdk/aws-cloudfront.FailoverStatusCode",
2565 "@aws-cdk/aws-cloudfront.FailoverStatusCode#INTERNAL_SERVER_ERROR",
2566 "@aws-cdk/aws-cloudfront.S3OriginConfig",
2567 "@aws-cdk/aws-s3.Bucket",
2568 "@aws-cdk/aws-s3.Bucket#fromBucketName",
2569 "@aws-cdk/aws-s3.IBucket",
2570 "constructs.Construct"
2571 ],
2572 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Configuring origin fallback options for the CloudFrontWebDistribution\nnew cloudfront.CloudFrontWebDistribution(this, 'ADistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucket', 'myoriginbucket'),\n originPath: '/',\n originHeaders: {\n 'myHeader': '42',\n },\n originShieldRegion: 'us-west-2',\n },\n failoverS3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucketFallback', 'myoriginbucketfallback'),\n originPath: '/somewhere',\n originHeaders: {\n 'myHeader2': '21',\n },\n originShieldRegion: 'us-east-1',\n },\n failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR],\n behaviors: [\n {\n isDefaultBehavior: true,\n },\n ],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2573 "syntaxKindCounter": {
2574 "10": 13,
2575 "75": 25,
2576 "104": 3,
2577 "106": 1,
2578 "192": 3,
2579 "193": 7,
2580 "194": 7,
2581 "196": 2,
2582 "197": 1,
2583 "226": 1,
2584 "281": 16
2585 },
2586 "fqnsFingerprint": "82356cd08f3db635ce3f6185909729045ed304c0947e473c176aec42dbc62507"
2587 },
2588 "da74c7c69e1edc96abcab7d325732b86f0d9d3dd957d13aad1ab977223e07edc": {
2589 "translations": {
2590 "python": {
2591 "source": "# Create a key group to use with CloudFront signed URLs and signed cookies.\ncloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[\n cloudfront.PublicKey(self, \"MyPublicKey\",\n encoded_key=\"...\"\n )\n ]\n)",
2592 "version": "2"
2593 },
2594 "csharp": {
2595 "source": "// Create a key group to use with CloudFront signed URLs and signed cookies.\n// Create a key group to use with CloudFront signed URLs and signed cookies.\nnew KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] {\n new PublicKey(this, \"MyPublicKey\", new PublicKeyProps {\n EncodedKey = \"...\"\n }) }\n});",
2596 "version": "1"
2597 },
2598 "java": {
2599 "source": "// Create a key group to use with CloudFront signed URLs and signed cookies.\n// Create a key group to use with CloudFront signed URLs and signed cookies.\nKeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(\n PublicKey.Builder.create(this, \"MyPublicKey\")\n .encodedKey(\"...\")\n .build()))\n .build();",
2600 "version": "1"
2601 },
2602 "go": {
2603 "source": "// Create a key group to use with CloudFront signed URLs and signed cookies.\n// Create a key group to use with CloudFront signed URLs and signed cookies.\ncloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tcloudfront.NewPublicKey(this, jsii.String(\"MyPublicKey\"), &publicKeyProps{\n\t\t\tencodedKey: jsii.String(\"...\"),\n\t\t}),\n\t},\n})",
2604 "version": "1"
2605 },
2606 "$": {
2607 "source": "// Create a key group to use with CloudFront signed URLs and signed cookies.\nnew cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n new cloudfront.PublicKey(this, 'MyPublicKey', {\n encodedKey: '...', // contents of public_key.pem file\n // comment: 'Key is expiring on ...',\n }),\n ],\n // comment: 'Key group containing public keys ...',\n});",
2608 "version": "0"
2609 }
2610 },
2611 "location": {
2612 "api": {
2613 "api": "moduleReadme",
2614 "moduleFqn": "@aws-cdk/aws-cloudfront"
2615 },
2616 "field": {
2617 "field": "markdown",
2618 "line": 1004
2619 }
2620 },
2621 "didCompile": true,
2622 "fqnsReferenced": [
2623 "@aws-cdk/aws-cloudfront.KeyGroup",
2624 "@aws-cdk/aws-cloudfront.KeyGroupProps",
2625 "@aws-cdk/aws-cloudfront.PublicKey",
2626 "@aws-cdk/aws-cloudfront.PublicKeyProps",
2627 "constructs.Construct"
2628 ],
2629 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Create a key group to use with CloudFront signed URLs and signed cookies.\nnew cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n new cloudfront.PublicKey(this, 'MyPublicKey', {\n encodedKey: '...', // contents of public_key.pem file\n // comment: 'Key is expiring on ...',\n }),\n ],\n // comment: 'Key group containing public keys ...',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2630 "syntaxKindCounter": {
2631 "10": 3,
2632 "75": 6,
2633 "104": 2,
2634 "192": 1,
2635 "193": 2,
2636 "194": 2,
2637 "197": 2,
2638 "226": 1,
2639 "281": 2
2640 },
2641 "fqnsFingerprint": "e737c67dcc1d08abb41cbb543795a7ef1d082ee3a6a08a0a0af76995fa923f02"
2642 },
2643 "2a372a835478ba2d59830f53996c1aa60af1e11b37c5b2f36f83dccf3c6744fd": {
2644 "translations": {
2645 "python": {
2646 "source": "# Add a behavior to a Distribution after initial creation.\n# my_bucket: s3.Bucket\n# my_web_distribution: cloudfront.Distribution\n\nmy_web_distribution.add_behavior(\"/images/*.jpg\", origins.S3Origin(my_bucket),\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n)",
2647 "version": "2"
2648 },
2649 "csharp": {
2650 "source": "// Add a behavior to a Distribution after initial creation.\nBucket myBucket;\nDistribution myWebDistribution;\n\nmyWebDistribution.AddBehavior(\"/images/*.jpg\", new S3Origin(myBucket), new AddBehaviorOptions {\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n});",
2651 "version": "1"
2652 },
2653 "java": {
2654 "source": "// Add a behavior to a Distribution after initial creation.\nBucket myBucket;\nDistribution myWebDistribution;\n\nmyWebDistribution.addBehavior(\"/images/*.jpg\", new S3Origin(myBucket), AddBehaviorOptions.builder()\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build());",
2655 "version": "1"
2656 },
2657 "go": {
2658 "source": "// Add a behavior to a Distribution after initial creation.\nvar myBucket bucket\nvar myWebDistribution distribution\n\nmyWebDistribution.addBehavior(jsii.String(\"/images/*.jpg\"), origins.NewS3Origin(myBucket), &addBehaviorOptions{\n\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n})",
2659 "version": "1"
2660 },
2661 "$": {
2662 "source": "// Add a behavior to a Distribution after initial creation.\ndeclare const myBucket: s3.Bucket;\ndeclare const myWebDistribution: cloudfront.Distribution;\nmyWebDistribution.addBehavior('/images/*.jpg', new origins.S3Origin(myBucket), {\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n});",
2663 "version": "0"
2664 }
2665 },
2666 "location": {
2667 "api": {
2668 "api": "type",
2669 "fqn": "@aws-cdk/aws-cloudfront.AddBehaviorOptions"
2670 },
2671 "field": {
2672 "field": "example"
2673 }
2674 },
2675 "didCompile": true,
2676 "fqnsReferenced": [
2677 "@aws-cdk/aws-cloudfront-origins.S3Origin",
2678 "@aws-cdk/aws-cloudfront.AddBehaviorOptions",
2679 "@aws-cdk/aws-cloudfront.Distribution#addBehavior",
2680 "@aws-cdk/aws-cloudfront.IOrigin",
2681 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
2682 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
2683 "@aws-cdk/aws-s3.IBucket"
2684 ],
2685 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Add a behavior to a Distribution after initial creation.\ndeclare const myBucket: s3.Bucket;\ndeclare const myWebDistribution: cloudfront.Distribution;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nmyWebDistribution.addBehavior('/images/*.jpg', new origins.S3Origin(myBucket), {\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2686 "syntaxKindCounter": {
2687 "10": 1,
2688 "75": 15,
2689 "130": 2,
2690 "153": 2,
2691 "169": 2,
2692 "193": 1,
2693 "194": 4,
2694 "196": 1,
2695 "197": 1,
2696 "225": 2,
2697 "226": 1,
2698 "242": 2,
2699 "243": 2,
2700 "281": 1,
2701 "290": 1
2702 },
2703 "fqnsFingerprint": "b9b3498bcb1a5ffdb7676e952efcc6329c8dc4456407e8b4e6f5a84fa87b77e9"
2704 },
2705 "02562864f093063527d5fe750badb4240e66aeff82759c1a179fa9d85ea27def": {
2706 "translations": {
2707 "python": {
2708 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nalias_configuration = cloudfront.AliasConfiguration(\n acm_cert_ref=\"acmCertRef\",\n names=[\"names\"],\n\n # the properties below are optional\n security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3,\n ssl_method=cloudfront.SSLMethod.SNI\n)",
2709 "version": "2"
2710 },
2711 "csharp": {
2712 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nAliasConfiguration aliasConfiguration = new AliasConfiguration {\n AcmCertRef = \"acmCertRef\",\n Names = new [] { \"names\" },\n\n // the properties below are optional\n SecurityPolicy = SecurityPolicyProtocol.SSL_V3,\n SslMethod = SSLMethod.SNI\n};",
2713 "version": "1"
2714 },
2715 "java": {
2716 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nAliasConfiguration aliasConfiguration = AliasConfiguration.builder()\n .acmCertRef(\"acmCertRef\")\n .names(List.of(\"names\"))\n\n // the properties below are optional\n .securityPolicy(SecurityPolicyProtocol.SSL_V3)\n .sslMethod(SSLMethod.SNI)\n .build();",
2717 "version": "1"
2718 },
2719 "go": {
2720 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\naliasConfiguration := &aliasConfiguration{\n\tacmCertRef: jsii.String(\"acmCertRef\"),\n\tnames: []*string{\n\t\tjsii.String(\"names\"),\n\t},\n\n\t// the properties below are optional\n\tsecurityPolicy: cloudfront.securityPolicyProtocol_SSL_V3,\n\tsslMethod: cloudfront.sSLMethod_SNI,\n}",
2721 "version": "1"
2722 },
2723 "$": {
2724 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst aliasConfiguration: cloudfront.AliasConfiguration = {\n acmCertRef: 'acmCertRef',\n names: ['names'],\n\n // the properties below are optional\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3,\n sslMethod: cloudfront.SSLMethod.SNI,\n};",
2725 "version": "0"
2726 }
2727 },
2728 "location": {
2729 "api": {
2730 "api": "type",
2731 "fqn": "@aws-cdk/aws-cloudfront.AliasConfiguration"
2732 },
2733 "field": {
2734 "field": "example"
2735 }
2736 },
2737 "didCompile": true,
2738 "fqnsReferenced": [
2739 "@aws-cdk/aws-cloudfront.AliasConfiguration",
2740 "@aws-cdk/aws-cloudfront.SSLMethod",
2741 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
2742 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
2743 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3"
2744 ],
2745 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst aliasConfiguration: cloudfront.AliasConfiguration = {\n acmCertRef: 'acmCertRef',\n names: ['names'],\n\n // the properties below are optional\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3,\n sslMethod: cloudfront.SSLMethod.SNI,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
2746 "syntaxKindCounter": {
2747 "10": 3,
2748 "75": 14,
2749 "153": 1,
2750 "169": 1,
2751 "192": 1,
2752 "193": 1,
2753 "194": 4,
2754 "225": 1,
2755 "242": 1,
2756 "243": 1,
2757 "254": 1,
2758 "255": 1,
2759 "256": 1,
2760 "281": 4,
2761 "290": 1
2762 },
2763 "fqnsFingerprint": "262fd57018b60ff300d3e05a0cff95e87976fc26c7fddb464a6b51674ba081d8"
2764 },
2765 "e1e732849b2a56fcc8331352df136c60ec72a9b09ee3816661337dae68d6e904": {
2766 "translations": {
2767 "python": {
2768 "source": "# Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\n# my_bucket: s3.Bucket\n\nmy_web_distribution = cloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n allowed_methods=cloudfront.AllowedMethods.ALLOW_ALL,\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n )\n)",
2769 "version": "2"
2770 },
2771 "csharp": {
2772 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nBucket myBucket;\n\nDistribution myWebDistribution = new Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n AllowedMethods = AllowedMethods.ALLOW_ALL,\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n }\n});",
2773 "version": "1"
2774 },
2775 "java": {
2776 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nBucket myBucket;\n\nDistribution myWebDistribution = Distribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .allowedMethods(AllowedMethods.ALLOW_ALL)\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build())\n .build();",
2777 "version": "1"
2778 },
2779 "go": {
2780 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nvar myBucket bucket\n\nmyWebDistribution := cloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tallowedMethods: cloudfront.allowedMethods_ALLOW_ALL(),\n\t\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n\t},\n})",
2781 "version": "1"
2782 },
2783 "$": {
2784 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\ndeclare const myBucket: s3.Bucket;\nconst myWebDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n});",
2785 "version": "0"
2786 }
2787 },
2788 "location": {
2789 "api": {
2790 "api": "type",
2791 "fqn": "@aws-cdk/aws-cloudfront.AllowedMethods"
2792 },
2793 "field": {
2794 "field": "example"
2795 }
2796 },
2797 "didCompile": true,
2798 "fqnsReferenced": [
2799 "@aws-cdk/aws-cloudfront-origins.S3Origin",
2800 "@aws-cdk/aws-cloudfront.AllowedMethods",
2801 "@aws-cdk/aws-cloudfront.AllowedMethods#ALLOW_ALL",
2802 "@aws-cdk/aws-cloudfront.BehaviorOptions",
2803 "@aws-cdk/aws-cloudfront.Distribution",
2804 "@aws-cdk/aws-cloudfront.DistributionProps",
2805 "@aws-cdk/aws-cloudfront.IOrigin",
2806 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
2807 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
2808 "@aws-cdk/aws-s3.IBucket",
2809 "constructs.Construct"
2810 ],
2811 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myWebDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2812 "syntaxKindCounter": {
2813 "10": 1,
2814 "75": 19,
2815 "104": 1,
2816 "130": 1,
2817 "153": 1,
2818 "169": 1,
2819 "193": 2,
2820 "194": 6,
2821 "197": 2,
2822 "225": 2,
2823 "242": 2,
2824 "243": 2,
2825 "281": 4,
2826 "290": 1
2827 },
2828 "fqnsFingerprint": "50620db3ad080e54f01a59a38a6a5c8fb0c235dcdf48e49e85c101f75cb744ce"
2829 },
2830 "69b40b13e4e07b1700f224446914bd03e4177ce656b9a887eae8ddd62ff2967f": {
2831 "translations": {
2832 "python": {
2833 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.aws_lambda as lambda_\nimport aws_cdk.core as cdk\n\n# function_: cloudfront.Function\n# key_group: cloudfront.KeyGroup\n# version: lambda.Version\n\nbehavior = cloudfront.Behavior(\n allowed_methods=cloudfront.CloudFrontAllowedMethods.GET_HEAD,\n cached_methods=cloudfront.CloudFrontAllowedCachedMethods.GET_HEAD,\n compress=False,\n default_ttl=cdk.Duration.minutes(30),\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.FunctionAssociation(\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST,\n function=function_\n )],\n is_default_behavior=False,\n lambda_function_associations=[cloudfront.LambdaFunctionAssociation(\n event_type=cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambda_function=version,\n\n # the properties below are optional\n include_body=False\n )],\n max_ttl=cdk.Duration.minutes(30),\n min_ttl=cdk.Duration.minutes(30),\n path_pattern=\"pathPattern\",\n trusted_key_groups=[key_group],\n trusted_signers=[\"trustedSigners\"],\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.HTTPS_ONLY\n)",
2834 "version": "2"
2835 },
2836 "csharp": {
2837 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK.AWS.Lambda;\nusing Amazon.CDK;\n\nFunction function_;\nKeyGroup keyGroup;\nVersion version;\nBehavior behavior = new Behavior {\n AllowedMethods = CloudFrontAllowedMethods.GET_HEAD,\n CachedMethods = CloudFrontAllowedCachedMethods.GET_HEAD,\n Compress = false,\n DefaultTtl = Duration.Minutes(30),\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociation {\n EventType = FunctionEventType.VIEWER_REQUEST,\n Function = function_\n } },\n IsDefaultBehavior = false,\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociation {\n EventType = LambdaEdgeEventType.ORIGIN_REQUEST,\n LambdaFunction = version,\n\n // the properties below are optional\n IncludeBody = false\n } },\n MaxTtl = Duration.Minutes(30),\n MinTtl = Duration.Minutes(30),\n PathPattern = \"pathPattern\",\n TrustedKeyGroups = new [] { keyGroup },\n TrustedSigners = new [] { \"trustedSigners\" },\n ViewerProtocolPolicy = ViewerProtocolPolicy.HTTPS_ONLY\n};",
2838 "version": "1"
2839 },
2840 "java": {
2841 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.services.lambda.*;\nimport software.amazon.awscdk.core.*;\n\nFunction function_;\nKeyGroup keyGroup;\nVersion version;\n\nBehavior behavior = Behavior.builder()\n .allowedMethods(CloudFrontAllowedMethods.GET_HEAD)\n .cachedMethods(CloudFrontAllowedCachedMethods.GET_HEAD)\n .compress(false)\n .defaultTtl(Duration.minutes(30))\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociation.builder()\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .function(function_)\n .build()))\n .isDefaultBehavior(false)\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociation.builder()\n .eventType(LambdaEdgeEventType.ORIGIN_REQUEST)\n .lambdaFunction(version)\n\n // the properties below are optional\n .includeBody(false)\n .build()))\n .maxTtl(Duration.minutes(30))\n .minTtl(Duration.minutes(30))\n .pathPattern(\"pathPattern\")\n .trustedKeyGroups(List.of(keyGroup))\n .trustedSigners(List.of(\"trustedSigners\"))\n .viewerProtocolPolicy(ViewerProtocolPolicy.HTTPS_ONLY)\n .build();",
2842 "version": "1"
2843 },
2844 "go": {
2845 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar function_ function\nvar keyGroup keyGroup\nvar version version\n\nbehavior := &behavior{\n\tallowedMethods: cloudfront.cloudFrontAllowedMethods_GET_HEAD,\n\tcachedMethods: cloudfront.cloudFrontAllowedCachedMethods_GET_HEAD,\n\tcompress: jsii.Boolean(false),\n\tdefaultTtl: cdk.duration.minutes(jsii.Number(30)),\n\tforwardedValues: &forwardedValuesProperty{\n\t\tqueryString: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tcookies: &cookiesProperty{\n\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t// the properties below are optional\n\t\t\twhitelistedNames: []*string{\n\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t},\n\t\t},\n\t\theaders: []*string{\n\t\t\tjsii.String(\"headers\"),\n\t\t},\n\t\tqueryStringCacheKeys: []*string{\n\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t},\n\t},\n\tfunctionAssociations: []functionAssociation{\n\t\t&functionAssociation{\n\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\tfunction: function_,\n\t\t},\n\t},\n\tisDefaultBehavior: jsii.Boolean(false),\n\tlambdaFunctionAssociations: []lambdaFunctionAssociation{\n\t\t&lambdaFunctionAssociation{\n\t\t\teventType: cloudfront.lambdaEdgeEventType_ORIGIN_REQUEST,\n\t\t\tlambdaFunction: version,\n\n\t\t\t// the properties below are optional\n\t\t\tincludeBody: jsii.Boolean(false),\n\t\t},\n\t},\n\tmaxTtl: cdk.*duration.minutes(jsii.Number(30)),\n\tminTtl: cdk.*duration.minutes(jsii.Number(30)),\n\tpathPattern: jsii.String(\"pathPattern\"),\n\ttrustedKeyGroups: []iKeyGroup{\n\t\tkeyGroup,\n\t},\n\ttrustedSigners: []*string{\n\t\tjsii.String(\"trustedSigners\"),\n\t},\n\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_HTTPS_ONLY,\n}",
2846 "version": "1"
2847 },
2848 "$": {
2849 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const function_: cloudfront.Function;\ndeclare const keyGroup: cloudfront.KeyGroup;\ndeclare const version: lambda.Version;\nconst behavior: cloudfront.Behavior = {\n allowedMethods: cloudfront.CloudFrontAllowedMethods.GET_HEAD,\n cachedMethods: cloudfront.CloudFrontAllowedCachedMethods.GET_HEAD,\n compress: false,\n defaultTtl: cdk.Duration.minutes(30),\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n function: function_,\n }],\n isDefaultBehavior: false,\n lambdaFunctionAssociations: [{\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambdaFunction: version,\n\n // the properties below are optional\n includeBody: false,\n }],\n maxTtl: cdk.Duration.minutes(30),\n minTtl: cdk.Duration.minutes(30),\n pathPattern: 'pathPattern',\n trustedKeyGroups: [keyGroup],\n trustedSigners: ['trustedSigners'],\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.HTTPS_ONLY,\n};",
2850 "version": "0"
2851 }
2852 },
2853 "location": {
2854 "api": {
2855 "api": "type",
2856 "fqn": "@aws-cdk/aws-cloudfront.Behavior"
2857 },
2858 "field": {
2859 "field": "example"
2860 }
2861 },
2862 "didCompile": true,
2863 "fqnsReferenced": [
2864 "@aws-cdk/aws-cloudfront.Behavior",
2865 "@aws-cdk/aws-cloudfront.CfnDistribution.ForwardedValuesProperty",
2866 "@aws-cdk/aws-cloudfront.CloudFrontAllowedCachedMethods",
2867 "@aws-cdk/aws-cloudfront.CloudFrontAllowedCachedMethods#GET_HEAD",
2868 "@aws-cdk/aws-cloudfront.CloudFrontAllowedMethods",
2869 "@aws-cdk/aws-cloudfront.CloudFrontAllowedMethods#GET_HEAD",
2870 "@aws-cdk/aws-cloudfront.FunctionEventType",
2871 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
2872 "@aws-cdk/aws-cloudfront.IFunction",
2873 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
2874 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
2875 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
2876 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#HTTPS_ONLY",
2877 "@aws-cdk/aws-lambda.IVersion",
2878 "@aws-cdk/core.Duration",
2879 "@aws-cdk/core.Duration#minutes"
2880 ],
2881 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const function_: cloudfront.Function;\ndeclare const keyGroup: cloudfront.KeyGroup;\ndeclare const version: lambda.Version;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst behavior: cloudfront.Behavior = {\n allowedMethods: cloudfront.CloudFrontAllowedMethods.GET_HEAD,\n cachedMethods: cloudfront.CloudFrontAllowedCachedMethods.GET_HEAD,\n compress: false,\n defaultTtl: cdk.Duration.minutes(30),\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n function: function_,\n }],\n isDefaultBehavior: false,\n lambdaFunctionAssociations: [{\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambdaFunction: version,\n\n // the properties below are optional\n includeBody: false,\n }],\n maxTtl: cdk.Duration.minutes(30),\n minTtl: cdk.Duration.minutes(30),\n pathPattern: 'pathPattern',\n trustedKeyGroups: [keyGroup],\n trustedSigners: ['trustedSigners'],\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.HTTPS_ONLY,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
2882 "syntaxKindCounter": {
2883 "8": 3,
2884 "10": 9,
2885 "75": 67,
2886 "91": 4,
2887 "130": 3,
2888 "153": 4,
2889 "169": 4,
2890 "192": 7,
2891 "193": 5,
2892 "194": 16,
2893 "196": 3,
2894 "225": 4,
2895 "242": 4,
2896 "243": 4,
2897 "254": 3,
2898 "255": 3,
2899 "256": 3,
2900 "281": 25,
2901 "290": 1
2902 },
2903 "fqnsFingerprint": "85d2fa5201054e442223bcfe3f4f12aee88892120afc4b5e098310cb8e583241"
2904 },
2905 "6a0aea7896f15cba047d8fd8d984d73733d47966d5ba361c4c1917efee31a659": {
2906 "translations": {
2907 "python": {
2908 "source": "# Adding an existing Lambda@Edge function created in a different stack\n# to a CloudFront distribution.\n# s3_bucket: s3.Bucket\n\nfunction_version = lambda_.Version.from_version_arn(self, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\")\n\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=function_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
2909 "version": "2"
2910 },
2911 "csharp": {
2912 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.FromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = functionVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
2913 "version": "1"
2914 },
2915 "java": {
2916 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.fromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(functionVersion)\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
2917 "version": "1"
2918 },
2919 "go": {
2920 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nvar s3Bucket bucket\n\nfunctionVersion := lambda.version.fromVersionArn(this, jsii.String(\"Version\"), jsii.String(\"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\"))\n\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: functionVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
2921 "version": "1"
2922 },
2923 "$": {
2924 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\nconst functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});",
2925 "version": "0"
2926 }
2927 },
2928 "location": {
2929 "api": {
2930 "api": "type",
2931 "fqn": "@aws-cdk/aws-cloudfront.BehaviorOptions"
2932 },
2933 "field": {
2934 "field": "example"
2935 }
2936 },
2937 "didCompile": true,
2938 "fqnsReferenced": [
2939 "@aws-cdk/aws-cloudfront-origins.S3Origin",
2940 "@aws-cdk/aws-cloudfront.BehaviorOptions",
2941 "@aws-cdk/aws-cloudfront.Distribution",
2942 "@aws-cdk/aws-cloudfront.DistributionProps",
2943 "@aws-cdk/aws-cloudfront.IOrigin",
2944 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
2945 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
2946 "@aws-cdk/aws-lambda.IVersion",
2947 "@aws-cdk/aws-lambda.Version",
2948 "@aws-cdk/aws-lambda.Version#fromVersionArn",
2949 "@aws-cdk/aws-s3.IBucket",
2950 "constructs.Construct"
2951 ],
2952 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
2953 "syntaxKindCounter": {
2954 "10": 3,
2955 "75": 20,
2956 "104": 2,
2957 "130": 1,
2958 "153": 1,
2959 "169": 1,
2960 "192": 1,
2961 "193": 3,
2962 "194": 6,
2963 "196": 1,
2964 "197": 2,
2965 "225": 2,
2966 "226": 1,
2967 "242": 2,
2968 "243": 2,
2969 "281": 4,
2970 "282": 1,
2971 "290": 1
2972 },
2973 "fqnsFingerprint": "ed7d20f26b1f4e4dbade5657199847f143c35c149fbeb49e54402db9c319793a"
2974 },
2975 "6e1a860f99dfb4e7365dd5cd30137f2e751834c23a3771140986fd380dd2b764": {
2976 "translations": {
2977 "python": {
2978 "source": "# Creating a custom cache policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_cache_policy = cloudfront.CachePolicy(self, \"myCachePolicy\",\n cache_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n default_ttl=Duration.days(2),\n min_ttl=Duration.minutes(1),\n max_ttl=Duration.days(10),\n cookie_behavior=cloudfront.CacheCookieBehavior.all(),\n header_behavior=cloudfront.CacheHeaderBehavior.allow_list(\"X-CustomHeader\"),\n query_string_behavior=cloudfront.CacheQueryStringBehavior.deny_list(\"username\"),\n enable_accept_encoding_gzip=True,\n enable_accept_encoding_brotli=True\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=my_cache_policy\n )\n)",
2979 "version": "2"
2980 },
2981 "csharp": {
2982 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = new CachePolicy(this, \"myCachePolicy\", new CachePolicyProps {\n CachePolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n DefaultTtl = Duration.Days(2),\n MinTtl = Duration.Minutes(1),\n MaxTtl = Duration.Days(10),\n CookieBehavior = CacheCookieBehavior.All(),\n HeaderBehavior = CacheHeaderBehavior.AllowList(\"X-CustomHeader\"),\n QueryStringBehavior = CacheQueryStringBehavior.DenyList(\"username\"),\n EnableAcceptEncodingGzip = true,\n EnableAcceptEncodingBrotli = true\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = myCachePolicy\n }\n});",
2983 "version": "1"
2984 },
2985 "java": {
2986 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = CachePolicy.Builder.create(this, \"myCachePolicy\")\n .cachePolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .defaultTtl(Duration.days(2))\n .minTtl(Duration.minutes(1))\n .maxTtl(Duration.days(10))\n .cookieBehavior(CacheCookieBehavior.all())\n .headerBehavior(CacheHeaderBehavior.allowList(\"X-CustomHeader\"))\n .queryStringBehavior(CacheQueryStringBehavior.denyList(\"username\"))\n .enableAcceptEncodingGzip(true)\n .enableAcceptEncodingBrotli(true)\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(myCachePolicy)\n .build())\n .build();",
2987 "version": "1"
2988 },
2989 "go": {
2990 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyCachePolicy := cloudfront.NewCachePolicy(this, jsii.String(\"myCachePolicy\"), &cachePolicyProps{\n\tcachePolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tdefaultTtl: *awscdkcore.Duration.days(jsii.Number(2)),\n\tminTtl: *awscdkcore.Duration.minutes(jsii.Number(1)),\n\tmaxTtl: *awscdkcore.Duration.days(jsii.Number(10)),\n\tcookieBehavior: cloudfront.cacheCookieBehavior.all(),\n\theaderBehavior: cloudfront.cacheHeaderBehavior.allowList(jsii.String(\"X-CustomHeader\")),\n\tqueryStringBehavior: cloudfront.cacheQueryStringBehavior.denyList(jsii.String(\"username\")),\n\tenableAcceptEncodingGzip: jsii.Boolean(true),\n\tenableAcceptEncodingBrotli: jsii.Boolean(true),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: myCachePolicy,\n\t},\n})",
2991 "version": "1"
2992 },
2993 "$": {
2994 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});",
2995 "version": "0"
2996 }
2997 },
2998 "location": {
2999 "api": {
3000 "api": "type",
3001 "fqn": "@aws-cdk/aws-cloudfront.CacheCookieBehavior"
3002 },
3003 "field": {
3004 "field": "example"
3005 }
3006 },
3007 "didCompile": true,
3008 "fqnsReferenced": [
3009 "@aws-cdk/aws-cloudfront.BehaviorOptions",
3010 "@aws-cdk/aws-cloudfront.CacheCookieBehavior",
3011 "@aws-cdk/aws-cloudfront.CacheCookieBehavior#all",
3012 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior",
3013 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior#allowList",
3014 "@aws-cdk/aws-cloudfront.CachePolicy",
3015 "@aws-cdk/aws-cloudfront.CachePolicyProps",
3016 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior",
3017 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior#denyList",
3018 "@aws-cdk/aws-cloudfront.Distribution",
3019 "@aws-cdk/aws-cloudfront.DistributionProps",
3020 "@aws-cdk/aws-cloudfront.ICachePolicy",
3021 "@aws-cdk/aws-cloudfront.IOrigin",
3022 "@aws-cdk/core.Duration",
3023 "@aws-cdk/core.Duration#days",
3024 "@aws-cdk/core.Duration#minutes",
3025 "constructs.Construct"
3026 ],
3027 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3028 "syntaxKindCounter": {
3029 "8": 3,
3030 "10": 6,
3031 "75": 38,
3032 "104": 2,
3033 "106": 2,
3034 "130": 1,
3035 "153": 1,
3036 "169": 1,
3037 "193": 3,
3038 "194": 11,
3039 "196": 6,
3040 "197": 2,
3041 "225": 2,
3042 "226": 1,
3043 "242": 2,
3044 "243": 2,
3045 "281": 13,
3046 "290": 1
3047 },
3048 "fqnsFingerprint": "851e6039c3b10f9f5796b96b5a647776847d78c524a226036048783bcdc9df22"
3049 },
3050 "c1dbbaddef1efbbaf51515152c8ace81ac473e7c9e5bb320b85545886653f918": {
3051 "translations": {
3052 "python": {
3053 "source": "# Creating a custom cache policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_cache_policy = cloudfront.CachePolicy(self, \"myCachePolicy\",\n cache_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n default_ttl=Duration.days(2),\n min_ttl=Duration.minutes(1),\n max_ttl=Duration.days(10),\n cookie_behavior=cloudfront.CacheCookieBehavior.all(),\n header_behavior=cloudfront.CacheHeaderBehavior.allow_list(\"X-CustomHeader\"),\n query_string_behavior=cloudfront.CacheQueryStringBehavior.deny_list(\"username\"),\n enable_accept_encoding_gzip=True,\n enable_accept_encoding_brotli=True\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=my_cache_policy\n )\n)",
3054 "version": "2"
3055 },
3056 "csharp": {
3057 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = new CachePolicy(this, \"myCachePolicy\", new CachePolicyProps {\n CachePolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n DefaultTtl = Duration.Days(2),\n MinTtl = Duration.Minutes(1),\n MaxTtl = Duration.Days(10),\n CookieBehavior = CacheCookieBehavior.All(),\n HeaderBehavior = CacheHeaderBehavior.AllowList(\"X-CustomHeader\"),\n QueryStringBehavior = CacheQueryStringBehavior.DenyList(\"username\"),\n EnableAcceptEncodingGzip = true,\n EnableAcceptEncodingBrotli = true\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = myCachePolicy\n }\n});",
3058 "version": "1"
3059 },
3060 "java": {
3061 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = CachePolicy.Builder.create(this, \"myCachePolicy\")\n .cachePolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .defaultTtl(Duration.days(2))\n .minTtl(Duration.minutes(1))\n .maxTtl(Duration.days(10))\n .cookieBehavior(CacheCookieBehavior.all())\n .headerBehavior(CacheHeaderBehavior.allowList(\"X-CustomHeader\"))\n .queryStringBehavior(CacheQueryStringBehavior.denyList(\"username\"))\n .enableAcceptEncodingGzip(true)\n .enableAcceptEncodingBrotli(true)\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(myCachePolicy)\n .build())\n .build();",
3062 "version": "1"
3063 },
3064 "go": {
3065 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyCachePolicy := cloudfront.NewCachePolicy(this, jsii.String(\"myCachePolicy\"), &cachePolicyProps{\n\tcachePolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tdefaultTtl: *awscdkcore.Duration.days(jsii.Number(2)),\n\tminTtl: *awscdkcore.Duration.minutes(jsii.Number(1)),\n\tmaxTtl: *awscdkcore.Duration.days(jsii.Number(10)),\n\tcookieBehavior: cloudfront.cacheCookieBehavior.all(),\n\theaderBehavior: cloudfront.cacheHeaderBehavior.allowList(jsii.String(\"X-CustomHeader\")),\n\tqueryStringBehavior: cloudfront.cacheQueryStringBehavior.denyList(jsii.String(\"username\")),\n\tenableAcceptEncodingGzip: jsii.Boolean(true),\n\tenableAcceptEncodingBrotli: jsii.Boolean(true),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: myCachePolicy,\n\t},\n})",
3066 "version": "1"
3067 },
3068 "$": {
3069 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});",
3070 "version": "0"
3071 }
3072 },
3073 "location": {
3074 "api": {
3075 "api": "type",
3076 "fqn": "@aws-cdk/aws-cloudfront.CacheHeaderBehavior"
3077 },
3078 "field": {
3079 "field": "example"
3080 }
3081 },
3082 "didCompile": true,
3083 "fqnsReferenced": [
3084 "@aws-cdk/aws-cloudfront.BehaviorOptions",
3085 "@aws-cdk/aws-cloudfront.CacheCookieBehavior",
3086 "@aws-cdk/aws-cloudfront.CacheCookieBehavior#all",
3087 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior",
3088 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior#allowList",
3089 "@aws-cdk/aws-cloudfront.CachePolicy",
3090 "@aws-cdk/aws-cloudfront.CachePolicyProps",
3091 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior",
3092 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior#denyList",
3093 "@aws-cdk/aws-cloudfront.Distribution",
3094 "@aws-cdk/aws-cloudfront.DistributionProps",
3095 "@aws-cdk/aws-cloudfront.ICachePolicy",
3096 "@aws-cdk/aws-cloudfront.IOrigin",
3097 "@aws-cdk/core.Duration",
3098 "@aws-cdk/core.Duration#days",
3099 "@aws-cdk/core.Duration#minutes",
3100 "constructs.Construct"
3101 ],
3102 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3103 "syntaxKindCounter": {
3104 "8": 3,
3105 "10": 6,
3106 "75": 38,
3107 "104": 2,
3108 "106": 2,
3109 "130": 1,
3110 "153": 1,
3111 "169": 1,
3112 "193": 3,
3113 "194": 11,
3114 "196": 6,
3115 "197": 2,
3116 "225": 2,
3117 "226": 1,
3118 "242": 2,
3119 "243": 2,
3120 "281": 13,
3121 "290": 1
3122 },
3123 "fqnsFingerprint": "851e6039c3b10f9f5796b96b5a647776847d78c524a226036048783bcdc9df22"
3124 },
3125 "895785075f9790d848a9d28e79604e9cb125837f03591d790bd8f83f1326d60a": {
3126 "translations": {
3127 "python": {
3128 "source": "# Using an existing cache policy for a Distribution\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=cloudfront.CachePolicy.CACHING_OPTIMIZED\n )\n)",
3129 "version": "2"
3130 },
3131 "csharp": {
3132 "source": "// Using an existing cache policy for a Distribution\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = CachePolicy.CACHING_OPTIMIZED\n }\n});",
3133 "version": "1"
3134 },
3135 "java": {
3136 "source": "// Using an existing cache policy for a Distribution\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(CachePolicy.CACHING_OPTIMIZED)\n .build())\n .build();",
3137 "version": "1"
3138 },
3139 "go": {
3140 "source": "// Using an existing cache policy for a Distribution\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: cloudfront.cachePolicy_CACHING_OPTIMIZED(),\n\t},\n})",
3141 "version": "1"
3142 },
3143 "$": {
3144 "source": "// Using an existing cache policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: cloudfront.CachePolicy.CACHING_OPTIMIZED,\n },\n});",
3145 "version": "0"
3146 }
3147 },
3148 "location": {
3149 "api": {
3150 "api": "type",
3151 "fqn": "@aws-cdk/aws-cloudfront.CachePolicy"
3152 },
3153 "field": {
3154 "field": "example"
3155 }
3156 },
3157 "didCompile": true,
3158 "fqnsReferenced": [
3159 "@aws-cdk/aws-cloudfront.BehaviorOptions",
3160 "@aws-cdk/aws-cloudfront.CachePolicy",
3161 "@aws-cdk/aws-cloudfront.CachePolicy#CACHING_OPTIMIZED",
3162 "@aws-cdk/aws-cloudfront.Distribution",
3163 "@aws-cdk/aws-cloudfront.DistributionProps",
3164 "@aws-cdk/aws-cloudfront.ICachePolicy",
3165 "@aws-cdk/aws-cloudfront.IOrigin",
3166 "constructs.Construct"
3167 ],
3168 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing cache policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: cloudfront.CachePolicy.CACHING_OPTIMIZED,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3169 "syntaxKindCounter": {
3170 "10": 1,
3171 "75": 12,
3172 "104": 1,
3173 "130": 1,
3174 "153": 1,
3175 "169": 1,
3176 "193": 2,
3177 "194": 3,
3178 "197": 1,
3179 "225": 1,
3180 "226": 1,
3181 "242": 1,
3182 "243": 1,
3183 "281": 3,
3184 "290": 1
3185 },
3186 "fqnsFingerprint": "63646c469d057face3493b8b3fc84d3aec7e3b2e47c724b72cefb4aeaa70618b"
3187 },
3188 "54e8e20a859b8e6e723f1491956098ac1b8632b8f917259e1d8c41ac29c4fef9": {
3189 "translations": {
3190 "python": {
3191 "source": "# Creating a custom cache policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_cache_policy = cloudfront.CachePolicy(self, \"myCachePolicy\",\n cache_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n default_ttl=Duration.days(2),\n min_ttl=Duration.minutes(1),\n max_ttl=Duration.days(10),\n cookie_behavior=cloudfront.CacheCookieBehavior.all(),\n header_behavior=cloudfront.CacheHeaderBehavior.allow_list(\"X-CustomHeader\"),\n query_string_behavior=cloudfront.CacheQueryStringBehavior.deny_list(\"username\"),\n enable_accept_encoding_gzip=True,\n enable_accept_encoding_brotli=True\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=my_cache_policy\n )\n)",
3192 "version": "2"
3193 },
3194 "csharp": {
3195 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = new CachePolicy(this, \"myCachePolicy\", new CachePolicyProps {\n CachePolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n DefaultTtl = Duration.Days(2),\n MinTtl = Duration.Minutes(1),\n MaxTtl = Duration.Days(10),\n CookieBehavior = CacheCookieBehavior.All(),\n HeaderBehavior = CacheHeaderBehavior.AllowList(\"X-CustomHeader\"),\n QueryStringBehavior = CacheQueryStringBehavior.DenyList(\"username\"),\n EnableAcceptEncodingGzip = true,\n EnableAcceptEncodingBrotli = true\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = myCachePolicy\n }\n});",
3196 "version": "1"
3197 },
3198 "java": {
3199 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = CachePolicy.Builder.create(this, \"myCachePolicy\")\n .cachePolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .defaultTtl(Duration.days(2))\n .minTtl(Duration.minutes(1))\n .maxTtl(Duration.days(10))\n .cookieBehavior(CacheCookieBehavior.all())\n .headerBehavior(CacheHeaderBehavior.allowList(\"X-CustomHeader\"))\n .queryStringBehavior(CacheQueryStringBehavior.denyList(\"username\"))\n .enableAcceptEncodingGzip(true)\n .enableAcceptEncodingBrotli(true)\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(myCachePolicy)\n .build())\n .build();",
3200 "version": "1"
3201 },
3202 "go": {
3203 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyCachePolicy := cloudfront.NewCachePolicy(this, jsii.String(\"myCachePolicy\"), &cachePolicyProps{\n\tcachePolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tdefaultTtl: *awscdkcore.Duration.days(jsii.Number(2)),\n\tminTtl: *awscdkcore.Duration.minutes(jsii.Number(1)),\n\tmaxTtl: *awscdkcore.Duration.days(jsii.Number(10)),\n\tcookieBehavior: cloudfront.cacheCookieBehavior.all(),\n\theaderBehavior: cloudfront.cacheHeaderBehavior.allowList(jsii.String(\"X-CustomHeader\")),\n\tqueryStringBehavior: cloudfront.cacheQueryStringBehavior.denyList(jsii.String(\"username\")),\n\tenableAcceptEncodingGzip: jsii.Boolean(true),\n\tenableAcceptEncodingBrotli: jsii.Boolean(true),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: myCachePolicy,\n\t},\n})",
3204 "version": "1"
3205 },
3206 "$": {
3207 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});",
3208 "version": "0"
3209 }
3210 },
3211 "location": {
3212 "api": {
3213 "api": "type",
3214 "fqn": "@aws-cdk/aws-cloudfront.CachePolicyProps"
3215 },
3216 "field": {
3217 "field": "example"
3218 }
3219 },
3220 "didCompile": true,
3221 "fqnsReferenced": [
3222 "@aws-cdk/aws-cloudfront.BehaviorOptions",
3223 "@aws-cdk/aws-cloudfront.CacheCookieBehavior",
3224 "@aws-cdk/aws-cloudfront.CacheCookieBehavior#all",
3225 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior",
3226 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior#allowList",
3227 "@aws-cdk/aws-cloudfront.CachePolicy",
3228 "@aws-cdk/aws-cloudfront.CachePolicyProps",
3229 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior",
3230 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior#denyList",
3231 "@aws-cdk/aws-cloudfront.Distribution",
3232 "@aws-cdk/aws-cloudfront.DistributionProps",
3233 "@aws-cdk/aws-cloudfront.ICachePolicy",
3234 "@aws-cdk/aws-cloudfront.IOrigin",
3235 "@aws-cdk/core.Duration",
3236 "@aws-cdk/core.Duration#days",
3237 "@aws-cdk/core.Duration#minutes",
3238 "constructs.Construct"
3239 ],
3240 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3241 "syntaxKindCounter": {
3242 "8": 3,
3243 "10": 6,
3244 "75": 38,
3245 "104": 2,
3246 "106": 2,
3247 "130": 1,
3248 "153": 1,
3249 "169": 1,
3250 "193": 3,
3251 "194": 11,
3252 "196": 6,
3253 "197": 2,
3254 "225": 2,
3255 "226": 1,
3256 "242": 2,
3257 "243": 2,
3258 "281": 13,
3259 "290": 1
3260 },
3261 "fqnsFingerprint": "851e6039c3b10f9f5796b96b5a647776847d78c524a226036048783bcdc9df22"
3262 },
3263 "0ae7a22190e74c579fa617557d16cf9c5a7288562a7beefb03514831416bae92": {
3264 "translations": {
3265 "python": {
3266 "source": "# Creating a custom cache policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_cache_policy = cloudfront.CachePolicy(self, \"myCachePolicy\",\n cache_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n default_ttl=Duration.days(2),\n min_ttl=Duration.minutes(1),\n max_ttl=Duration.days(10),\n cookie_behavior=cloudfront.CacheCookieBehavior.all(),\n header_behavior=cloudfront.CacheHeaderBehavior.allow_list(\"X-CustomHeader\"),\n query_string_behavior=cloudfront.CacheQueryStringBehavior.deny_list(\"username\"),\n enable_accept_encoding_gzip=True,\n enable_accept_encoding_brotli=True\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n cache_policy=my_cache_policy\n )\n)",
3267 "version": "2"
3268 },
3269 "csharp": {
3270 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = new CachePolicy(this, \"myCachePolicy\", new CachePolicyProps {\n CachePolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n DefaultTtl = Duration.Days(2),\n MinTtl = Duration.Minutes(1),\n MaxTtl = Duration.Days(10),\n CookieBehavior = CacheCookieBehavior.All(),\n HeaderBehavior = CacheHeaderBehavior.AllowList(\"X-CustomHeader\"),\n QueryStringBehavior = CacheQueryStringBehavior.DenyList(\"username\"),\n EnableAcceptEncodingGzip = true,\n EnableAcceptEncodingBrotli = true\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n CachePolicy = myCachePolicy\n }\n});",
3271 "version": "1"
3272 },
3273 "java": {
3274 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nCachePolicy myCachePolicy = CachePolicy.Builder.create(this, \"myCachePolicy\")\n .cachePolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .defaultTtl(Duration.days(2))\n .minTtl(Duration.minutes(1))\n .maxTtl(Duration.days(10))\n .cookieBehavior(CacheCookieBehavior.all())\n .headerBehavior(CacheHeaderBehavior.allowList(\"X-CustomHeader\"))\n .queryStringBehavior(CacheQueryStringBehavior.denyList(\"username\"))\n .enableAcceptEncodingGzip(true)\n .enableAcceptEncodingBrotli(true)\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .cachePolicy(myCachePolicy)\n .build())\n .build();",
3275 "version": "1"
3276 },
3277 "go": {
3278 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyCachePolicy := cloudfront.NewCachePolicy(this, jsii.String(\"myCachePolicy\"), &cachePolicyProps{\n\tcachePolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tdefaultTtl: *awscdkcore.Duration.days(jsii.Number(2)),\n\tminTtl: *awscdkcore.Duration.minutes(jsii.Number(1)),\n\tmaxTtl: *awscdkcore.Duration.days(jsii.Number(10)),\n\tcookieBehavior: cloudfront.cacheCookieBehavior.all(),\n\theaderBehavior: cloudfront.cacheHeaderBehavior.allowList(jsii.String(\"X-CustomHeader\")),\n\tqueryStringBehavior: cloudfront.cacheQueryStringBehavior.denyList(jsii.String(\"username\")),\n\tenableAcceptEncodingGzip: jsii.Boolean(true),\n\tenableAcceptEncodingBrotli: jsii.Boolean(true),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tcachePolicy: myCachePolicy,\n\t},\n})",
3279 "version": "1"
3280 },
3281 "$": {
3282 "source": "// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});",
3283 "version": "0"
3284 }
3285 },
3286 "location": {
3287 "api": {
3288 "api": "type",
3289 "fqn": "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior"
3290 },
3291 "field": {
3292 "field": "example"
3293 }
3294 },
3295 "didCompile": true,
3296 "fqnsReferenced": [
3297 "@aws-cdk/aws-cloudfront.BehaviorOptions",
3298 "@aws-cdk/aws-cloudfront.CacheCookieBehavior",
3299 "@aws-cdk/aws-cloudfront.CacheCookieBehavior#all",
3300 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior",
3301 "@aws-cdk/aws-cloudfront.CacheHeaderBehavior#allowList",
3302 "@aws-cdk/aws-cloudfront.CachePolicy",
3303 "@aws-cdk/aws-cloudfront.CachePolicyProps",
3304 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior",
3305 "@aws-cdk/aws-cloudfront.CacheQueryStringBehavior#denyList",
3306 "@aws-cdk/aws-cloudfront.Distribution",
3307 "@aws-cdk/aws-cloudfront.DistributionProps",
3308 "@aws-cdk/aws-cloudfront.ICachePolicy",
3309 "@aws-cdk/aws-cloudfront.IOrigin",
3310 "@aws-cdk/core.Duration",
3311 "@aws-cdk/core.Duration#days",
3312 "@aws-cdk/core.Duration#minutes",
3313 "constructs.Construct"
3314 ],
3315 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom cache policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myCachePolicy = new cloudfront.CachePolicy(this, 'myCachePolicy', {\n cachePolicyName: 'MyPolicy',\n comment: 'A default policy',\n defaultTtl: Duration.days(2),\n minTtl: Duration.minutes(1),\n maxTtl: Duration.days(10),\n cookieBehavior: cloudfront.CacheCookieBehavior.all(),\n headerBehavior: cloudfront.CacheHeaderBehavior.allowList('X-CustomHeader'),\n queryStringBehavior: cloudfront.CacheQueryStringBehavior.denyList('username'),\n enableAcceptEncodingGzip: true,\n enableAcceptEncodingBrotli: true,\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n cachePolicy: myCachePolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3316 "syntaxKindCounter": {
3317 "8": 3,
3318 "10": 6,
3319 "75": 38,
3320 "104": 2,
3321 "106": 2,
3322 "130": 1,
3323 "153": 1,
3324 "169": 1,
3325 "193": 3,
3326 "194": 11,
3327 "196": 6,
3328 "197": 2,
3329 "225": 2,
3330 "226": 1,
3331 "242": 2,
3332 "243": 2,
3333 "281": 13,
3334 "290": 1
3335 },
3336 "fqnsFingerprint": "851e6039c3b10f9f5796b96b5a647776847d78c524a226036048783bcdc9df22"
3337 },
3338 "0db0c5bde086940f35963201f30370b8a0249dabb2ca2c9864fcc696575ddafa": {
3339 "translations": {
3340 "python": {
3341 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncached_methods = cloudfront.CachedMethods.CACHE_GET_HEAD",
3342 "version": "2"
3343 },
3344 "csharp": {
3345 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCachedMethods cachedMethods = CachedMethods.CACHE_GET_HEAD;",
3346 "version": "1"
3347 },
3348 "java": {
3349 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCachedMethods cachedMethods = CachedMethods.CACHE_GET_HEAD;",
3350 "version": "1"
3351 },
3352 "go": {
3353 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncachedMethods := cloudfront.cachedMethods_CACHE_GET_HEAD()",
3354 "version": "1"
3355 },
3356 "$": {
3357 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cachedMethods = cloudfront.CachedMethods.CACHE_GET_HEAD;",
3358 "version": "0"
3359 }
3360 },
3361 "location": {
3362 "api": {
3363 "api": "type",
3364 "fqn": "@aws-cdk/aws-cloudfront.CachedMethods"
3365 },
3366 "field": {
3367 "field": "example"
3368 }
3369 },
3370 "didCompile": true,
3371 "fqnsReferenced": [
3372 "@aws-cdk/aws-cloudfront.CachedMethods",
3373 "@aws-cdk/aws-cloudfront.CachedMethods#CACHE_GET_HEAD"
3374 ],
3375 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cachedMethods = cloudfront.CachedMethods.CACHE_GET_HEAD;\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3376 "syntaxKindCounter": {
3377 "10": 1,
3378 "75": 5,
3379 "194": 2,
3380 "225": 1,
3381 "242": 1,
3382 "243": 1,
3383 "254": 1,
3384 "255": 1,
3385 "256": 1,
3386 "290": 1
3387 },
3388 "fqnsFingerprint": "86ee01d801f842aa3aad2cbd65c711603d9a5dc26c158d88860bfef7460c23a8"
3389 },
3390 "c2e369bf9d79ecb3adb0422384355f10c90ff256312d38e17f2da20b5689d79c": {
3391 "translations": {
3392 "python": {
3393 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_cache_policy = cloudfront.CfnCachePolicy(self, \"MyCfnCachePolicy\",\n cache_policy_config=cloudfront.CfnCachePolicy.CachePolicyConfigProperty(\n default_ttl=123,\n max_ttl=123,\n min_ttl=123,\n name=\"name\",\n parameters_in_cache_key_and_forwarded_to_origin=cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty(\n cookies_config=cloudfront.CfnCachePolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n enable_accept_encoding_gzip=False,\n headers_config=cloudfront.CfnCachePolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n query_strings_config=cloudfront.CfnCachePolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n enable_accept_encoding_brotli=False\n ),\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
3394 "version": "2"
3395 },
3396 "csharp": {
3397 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnCachePolicy cfnCachePolicy = new CfnCachePolicy(this, \"MyCfnCachePolicy\", new CfnCachePolicyProps {\n CachePolicyConfig = new CachePolicyConfigProperty {\n DefaultTtl = 123,\n MaxTtl = 123,\n MinTtl = 123,\n Name = \"name\",\n ParametersInCacheKeyAndForwardedToOrigin = new ParametersInCacheKeyAndForwardedToOriginProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n EnableAcceptEncodingGzip = false,\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n EnableAcceptEncodingBrotli = false\n },\n\n // the properties below are optional\n Comment = \"comment\"\n }\n});",
3398 "version": "1"
3399 },
3400 "java": {
3401 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnCachePolicy cfnCachePolicy = CfnCachePolicy.Builder.create(this, \"MyCfnCachePolicy\")\n .cachePolicyConfig(CachePolicyConfigProperty.builder()\n .defaultTtl(123)\n .maxTtl(123)\n .minTtl(123)\n .name(\"name\")\n .parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .enableAcceptEncodingGzip(false)\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .enableAcceptEncodingBrotli(false)\n .build())\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
3402 "version": "1"
3403 },
3404 "go": {
3405 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnCachePolicy := cloudfront.NewCfnCachePolicy(this, jsii.String(\"MyCfnCachePolicy\"), &cfnCachePolicyProps{\n\tcachePolicyConfig: &cachePolicyConfigProperty{\n\t\tdefaultTtl: jsii.Number(123),\n\t\tmaxTtl: jsii.Number(123),\n\t\tminTtl: jsii.Number(123),\n\t\tname: jsii.String(\"name\"),\n\t\tparametersInCacheKeyAndForwardedToOrigin: &parametersInCacheKeyAndForwardedToOriginProperty{\n\t\t\tcookiesConfig: &cookiesConfigProperty{\n\t\t\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcookies: []*string{\n\t\t\t\t\tjsii.String(\"cookies\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tenableAcceptEncodingGzip: jsii.Boolean(false),\n\t\t\theadersConfig: &headersConfigProperty{\n\t\t\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\theaders: []*string{\n\t\t\t\t\tjsii.String(\"headers\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\t\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tqueryStrings: []*string{\n\t\t\t\t\tjsii.String(\"queryStrings\"),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tenableAcceptEncodingBrotli: jsii.Boolean(false),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n})",
3406 "version": "1"
3407 },
3408 "$": {
3409 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnCachePolicy = new cloudfront.CfnCachePolicy(this, 'MyCfnCachePolicy', {\n cachePolicyConfig: {\n defaultTtl: 123,\n maxTtl: 123,\n minTtl: 123,\n name: 'name',\n parametersInCacheKeyAndForwardedToOrigin: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n});",
3410 "version": "0"
3411 }
3412 },
3413 "location": {
3414 "api": {
3415 "api": "type",
3416 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicy"
3417 },
3418 "field": {
3419 "field": "example"
3420 }
3421 },
3422 "didCompile": true,
3423 "fqnsReferenced": [
3424 "@aws-cdk/aws-cloudfront.CfnCachePolicy",
3425 "@aws-cdk/aws-cloudfront.CfnCachePolicyProps",
3426 "@aws-cdk/core.Construct"
3427 ],
3428 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCachePolicy = new cloudfront.CfnCachePolicy(this, 'MyCfnCachePolicy', {\n cachePolicyConfig: {\n defaultTtl: 123,\n maxTtl: 123,\n minTtl: 123,\n name: 'name',\n parametersInCacheKeyAndForwardedToOrigin: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3429 "syntaxKindCounter": {
3430 "8": 3,
3431 "10": 10,
3432 "75": 22,
3433 "91": 2,
3434 "104": 1,
3435 "192": 3,
3436 "193": 6,
3437 "194": 1,
3438 "197": 1,
3439 "225": 1,
3440 "242": 1,
3441 "243": 1,
3442 "254": 1,
3443 "255": 1,
3444 "256": 1,
3445 "281": 18,
3446 "290": 1
3447 },
3448 "fqnsFingerprint": "da4dbf6c66c1cf6de062b9c2042346f44d042c03d1e7b0409f1c774293465afa"
3449 },
3450 "2a3a788fe43c00ad0a38e9b30c350b5e94e3015c9a435420a9054949c6d03044": {
3451 "translations": {
3452 "python": {
3453 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncache_policy_config_property = cloudfront.CfnCachePolicy.CachePolicyConfigProperty(\n default_ttl=123,\n max_ttl=123,\n min_ttl=123,\n name=\"name\",\n parameters_in_cache_key_and_forwarded_to_origin=cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty(\n cookies_config=cloudfront.CfnCachePolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n enable_accept_encoding_gzip=False,\n headers_config=cloudfront.CfnCachePolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n query_strings_config=cloudfront.CfnCachePolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n enable_accept_encoding_brotli=False\n ),\n\n # the properties below are optional\n comment=\"comment\"\n)",
3454 "version": "2"
3455 },
3456 "csharp": {
3457 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCachePolicyConfigProperty cachePolicyConfigProperty = new CachePolicyConfigProperty {\n DefaultTtl = 123,\n MaxTtl = 123,\n MinTtl = 123,\n Name = \"name\",\n ParametersInCacheKeyAndForwardedToOrigin = new ParametersInCacheKeyAndForwardedToOriginProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n EnableAcceptEncodingGzip = false,\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n EnableAcceptEncodingBrotli = false\n },\n\n // the properties below are optional\n Comment = \"comment\"\n};",
3458 "version": "1"
3459 },
3460 "java": {
3461 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCachePolicyConfigProperty cachePolicyConfigProperty = CachePolicyConfigProperty.builder()\n .defaultTtl(123)\n .maxTtl(123)\n .minTtl(123)\n .name(\"name\")\n .parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .enableAcceptEncodingGzip(false)\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .enableAcceptEncodingBrotli(false)\n .build())\n\n // the properties below are optional\n .comment(\"comment\")\n .build();",
3462 "version": "1"
3463 },
3464 "go": {
3465 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncachePolicyConfigProperty := &cachePolicyConfigProperty{\n\tdefaultTtl: jsii.Number(123),\n\tmaxTtl: jsii.Number(123),\n\tminTtl: jsii.Number(123),\n\tname: jsii.String(\"name\"),\n\tparametersInCacheKeyAndForwardedToOrigin: &parametersInCacheKeyAndForwardedToOriginProperty{\n\t\tcookiesConfig: &cookiesConfigProperty{\n\t\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\tcookies: []*string{\n\t\t\t\tjsii.String(\"cookies\"),\n\t\t\t},\n\t\t},\n\t\tenableAcceptEncodingGzip: jsii.Boolean(false),\n\t\theadersConfig: &headersConfigProperty{\n\t\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\theaders: []*string{\n\t\t\t\tjsii.String(\"headers\"),\n\t\t\t},\n\t\t},\n\t\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\tqueryStrings: []*string{\n\t\t\t\tjsii.String(\"queryStrings\"),\n\t\t\t},\n\t\t},\n\n\t\t// the properties below are optional\n\t\tenableAcceptEncodingBrotli: jsii.Boolean(false),\n\t},\n\n\t// the properties below are optional\n\tcomment: jsii.String(\"comment\"),\n}",
3466 "version": "1"
3467 },
3468 "$": {
3469 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cachePolicyConfigProperty: cloudfront.CfnCachePolicy.CachePolicyConfigProperty = {\n defaultTtl: 123,\n maxTtl: 123,\n minTtl: 123,\n name: 'name',\n parametersInCacheKeyAndForwardedToOrigin: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n },\n\n // the properties below are optional\n comment: 'comment',\n};",
3470 "version": "0"
3471 }
3472 },
3473 "location": {
3474 "api": {
3475 "api": "type",
3476 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicy.CachePolicyConfigProperty"
3477 },
3478 "field": {
3479 "field": "example"
3480 }
3481 },
3482 "didCompile": true,
3483 "fqnsReferenced": [
3484 "@aws-cdk/aws-cloudfront.CfnCachePolicy.CachePolicyConfigProperty"
3485 ],
3486 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cachePolicyConfigProperty: cloudfront.CfnCachePolicy.CachePolicyConfigProperty = {\n defaultTtl: 123,\n maxTtl: 123,\n minTtl: 123,\n name: 'name',\n parametersInCacheKeyAndForwardedToOrigin: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n },\n\n // the properties below are optional\n comment: 'comment',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3487 "syntaxKindCounter": {
3488 "8": 3,
3489 "10": 9,
3490 "75": 22,
3491 "91": 2,
3492 "153": 2,
3493 "169": 1,
3494 "192": 3,
3495 "193": 5,
3496 "225": 1,
3497 "242": 1,
3498 "243": 1,
3499 "254": 1,
3500 "255": 1,
3501 "256": 1,
3502 "281": 17,
3503 "290": 1
3504 },
3505 "fqnsFingerprint": "813e83d34f07635c69766491aaf696e782878d8a47f88c3151ed5b57c7933a01"
3506 },
3507 "0dad172c0085aa575267e7f2449522d55ec3d315d1d5b5dcc4dbc50f0c1f9c01": {
3508 "translations": {
3509 "python": {
3510 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncookies_config_property = cloudfront.CfnCachePolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n)",
3511 "version": "2"
3512 },
3513 "csharp": {
3514 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCookiesConfigProperty cookiesConfigProperty = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n};",
3515 "version": "1"
3516 },
3517 "java": {
3518 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCookiesConfigProperty cookiesConfigProperty = CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build();",
3519 "version": "1"
3520 },
3521 "go": {
3522 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncookiesConfigProperty := &cookiesConfigProperty{\n\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t// the properties below are optional\n\tcookies: []*string{\n\t\tjsii.String(\"cookies\"),\n\t},\n}",
3523 "version": "1"
3524 },
3525 "$": {
3526 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cookiesConfigProperty: cloudfront.CfnCachePolicy.CookiesConfigProperty = {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n};",
3527 "version": "0"
3528 }
3529 },
3530 "location": {
3531 "api": {
3532 "api": "type",
3533 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicy.CookiesConfigProperty"
3534 },
3535 "field": {
3536 "field": "example"
3537 }
3538 },
3539 "didCompile": true,
3540 "fqnsReferenced": [
3541 "@aws-cdk/aws-cloudfront.CfnCachePolicy.CookiesConfigProperty"
3542 ],
3543 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cookiesConfigProperty: cloudfront.CfnCachePolicy.CookiesConfigProperty = {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3544 "syntaxKindCounter": {
3545 "10": 3,
3546 "75": 7,
3547 "153": 2,
3548 "169": 1,
3549 "192": 1,
3550 "193": 1,
3551 "225": 1,
3552 "242": 1,
3553 "243": 1,
3554 "254": 1,
3555 "255": 1,
3556 "256": 1,
3557 "281": 2,
3558 "290": 1
3559 },
3560 "fqnsFingerprint": "5597de9d712397986cb5fdeab6d9004bd5172d3be4cfab3c196457e450cb04d7"
3561 },
3562 "f2aa4e795faf1e1fb774817ed850d9a3d158bb98ae98fcd40b6af35d13df89d2": {
3563 "translations": {
3564 "python": {
3565 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nheaders_config_property = cloudfront.CfnCachePolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n)",
3566 "version": "2"
3567 },
3568 "csharp": {
3569 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nHeadersConfigProperty headersConfigProperty = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n};",
3570 "version": "1"
3571 },
3572 "java": {
3573 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nHeadersConfigProperty headersConfigProperty = HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build();",
3574 "version": "1"
3575 },
3576 "go": {
3577 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nheadersConfigProperty := &headersConfigProperty{\n\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t// the properties below are optional\n\theaders: []*string{\n\t\tjsii.String(\"headers\"),\n\t},\n}",
3578 "version": "1"
3579 },
3580 "$": {
3581 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst headersConfigProperty: cloudfront.CfnCachePolicy.HeadersConfigProperty = {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n};",
3582 "version": "0"
3583 }
3584 },
3585 "location": {
3586 "api": {
3587 "api": "type",
3588 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicy.HeadersConfigProperty"
3589 },
3590 "field": {
3591 "field": "example"
3592 }
3593 },
3594 "didCompile": true,
3595 "fqnsReferenced": [
3596 "@aws-cdk/aws-cloudfront.CfnCachePolicy.HeadersConfigProperty"
3597 ],
3598 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst headersConfigProperty: cloudfront.CfnCachePolicy.HeadersConfigProperty = {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3599 "syntaxKindCounter": {
3600 "10": 3,
3601 "75": 7,
3602 "153": 2,
3603 "169": 1,
3604 "192": 1,
3605 "193": 1,
3606 "225": 1,
3607 "242": 1,
3608 "243": 1,
3609 "254": 1,
3610 "255": 1,
3611 "256": 1,
3612 "281": 2,
3613 "290": 1
3614 },
3615 "fqnsFingerprint": "905cf6fc1ac7a3a4decdec7676d0f1326c450ee46b90c8515d6db411fdda2741"
3616 },
3617 "4981d98366c16092d63be8f29a8ab5c086a440e55ffd6573f674d1f198866211": {
3618 "translations": {
3619 "python": {
3620 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nparameters_in_cache_key_and_forwarded_to_origin_property = cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty(\n cookies_config=cloudfront.CfnCachePolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n enable_accept_encoding_gzip=False,\n headers_config=cloudfront.CfnCachePolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n query_strings_config=cloudfront.CfnCachePolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n enable_accept_encoding_brotli=False\n)",
3621 "version": "2"
3622 },
3623 "csharp": {
3624 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nParametersInCacheKeyAndForwardedToOriginProperty parametersInCacheKeyAndForwardedToOriginProperty = new ParametersInCacheKeyAndForwardedToOriginProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n EnableAcceptEncodingGzip = false,\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n EnableAcceptEncodingBrotli = false\n};",
3625 "version": "1"
3626 },
3627 "java": {
3628 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nParametersInCacheKeyAndForwardedToOriginProperty parametersInCacheKeyAndForwardedToOriginProperty = ParametersInCacheKeyAndForwardedToOriginProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .enableAcceptEncodingGzip(false)\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .enableAcceptEncodingBrotli(false)\n .build();",
3629 "version": "1"
3630 },
3631 "go": {
3632 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nparametersInCacheKeyAndForwardedToOriginProperty := &parametersInCacheKeyAndForwardedToOriginProperty{\n\tcookiesConfig: &cookiesConfigProperty{\n\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t// the properties below are optional\n\t\tcookies: []*string{\n\t\t\tjsii.String(\"cookies\"),\n\t\t},\n\t},\n\tenableAcceptEncodingGzip: jsii.Boolean(false),\n\theadersConfig: &headersConfigProperty{\n\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t// the properties below are optional\n\t\theaders: []*string{\n\t\t\tjsii.String(\"headers\"),\n\t\t},\n\t},\n\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t// the properties below are optional\n\t\tqueryStrings: []*string{\n\t\t\tjsii.String(\"queryStrings\"),\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tenableAcceptEncodingBrotli: jsii.Boolean(false),\n}",
3633 "version": "1"
3634 },
3635 "$": {
3636 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst parametersInCacheKeyAndForwardedToOriginProperty: cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty = {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n};",
3637 "version": "0"
3638 }
3639 },
3640 "location": {
3641 "api": {
3642 "api": "type",
3643 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty"
3644 },
3645 "field": {
3646 "field": "example"
3647 }
3648 },
3649 "didCompile": true,
3650 "fqnsReferenced": [
3651 "@aws-cdk/aws-cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty"
3652 ],
3653 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst parametersInCacheKeyAndForwardedToOriginProperty: cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty = {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3654 "syntaxKindCounter": {
3655 "10": 7,
3656 "75": 16,
3657 "91": 2,
3658 "153": 2,
3659 "169": 1,
3660 "192": 3,
3661 "193": 4,
3662 "225": 1,
3663 "242": 1,
3664 "243": 1,
3665 "254": 1,
3666 "255": 1,
3667 "256": 1,
3668 "281": 11,
3669 "290": 1
3670 },
3671 "fqnsFingerprint": "29dd6f57deedd0fa028b8f7fe0b0fa8b0b7df2232111edb27b24eb4abff160fe"
3672 },
3673 "d54776c3cc3d6f7dec59864481b7ce4deccb682e7c25123a83f0a20f85f8a9bb": {
3674 "translations": {
3675 "python": {
3676 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nquery_strings_config_property = cloudfront.CfnCachePolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n)",
3677 "version": "2"
3678 },
3679 "csharp": {
3680 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nQueryStringsConfigProperty queryStringsConfigProperty = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n};",
3681 "version": "1"
3682 },
3683 "java": {
3684 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nQueryStringsConfigProperty queryStringsConfigProperty = QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build();",
3685 "version": "1"
3686 },
3687 "go": {
3688 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nqueryStringsConfigProperty := &queryStringsConfigProperty{\n\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t// the properties below are optional\n\tqueryStrings: []*string{\n\t\tjsii.String(\"queryStrings\"),\n\t},\n}",
3689 "version": "1"
3690 },
3691 "$": {
3692 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst queryStringsConfigProperty: cloudfront.CfnCachePolicy.QueryStringsConfigProperty = {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n};",
3693 "version": "0"
3694 }
3695 },
3696 "location": {
3697 "api": {
3698 "api": "type",
3699 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicy.QueryStringsConfigProperty"
3700 },
3701 "field": {
3702 "field": "example"
3703 }
3704 },
3705 "didCompile": true,
3706 "fqnsReferenced": [
3707 "@aws-cdk/aws-cloudfront.CfnCachePolicy.QueryStringsConfigProperty"
3708 ],
3709 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst queryStringsConfigProperty: cloudfront.CfnCachePolicy.QueryStringsConfigProperty = {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3710 "syntaxKindCounter": {
3711 "10": 3,
3712 "75": 7,
3713 "153": 2,
3714 "169": 1,
3715 "192": 1,
3716 "193": 1,
3717 "225": 1,
3718 "242": 1,
3719 "243": 1,
3720 "254": 1,
3721 "255": 1,
3722 "256": 1,
3723 "281": 2,
3724 "290": 1
3725 },
3726 "fqnsFingerprint": "c74adbf5092dfe5d93aa24976d5c81474f18207a0e7e195013261744fad89651"
3727 },
3728 "66dd7e0efc32331bc4d5422acc76c0f3b928ab84c1a5e5e95db73f1b611ba839": {
3729 "translations": {
3730 "python": {
3731 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_cache_policy_props = cloudfront.CfnCachePolicyProps(\n cache_policy_config=cloudfront.CfnCachePolicy.CachePolicyConfigProperty(\n default_ttl=123,\n max_ttl=123,\n min_ttl=123,\n name=\"name\",\n parameters_in_cache_key_and_forwarded_to_origin=cloudfront.CfnCachePolicy.ParametersInCacheKeyAndForwardedToOriginProperty(\n cookies_config=cloudfront.CfnCachePolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n enable_accept_encoding_gzip=False,\n headers_config=cloudfront.CfnCachePolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n query_strings_config=cloudfront.CfnCachePolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n enable_accept_encoding_brotli=False\n ),\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
3732 "version": "2"
3733 },
3734 "csharp": {
3735 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnCachePolicyProps cfnCachePolicyProps = new CfnCachePolicyProps {\n CachePolicyConfig = new CachePolicyConfigProperty {\n DefaultTtl = 123,\n MaxTtl = 123,\n MinTtl = 123,\n Name = \"name\",\n ParametersInCacheKeyAndForwardedToOrigin = new ParametersInCacheKeyAndForwardedToOriginProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n EnableAcceptEncodingGzip = false,\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n EnableAcceptEncodingBrotli = false\n },\n\n // the properties below are optional\n Comment = \"comment\"\n }\n};",
3736 "version": "1"
3737 },
3738 "java": {
3739 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnCachePolicyProps cfnCachePolicyProps = CfnCachePolicyProps.builder()\n .cachePolicyConfig(CachePolicyConfigProperty.builder()\n .defaultTtl(123)\n .maxTtl(123)\n .minTtl(123)\n .name(\"name\")\n .parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .enableAcceptEncodingGzip(false)\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .enableAcceptEncodingBrotli(false)\n .build())\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
3740 "version": "1"
3741 },
3742 "go": {
3743 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnCachePolicyProps := &cfnCachePolicyProps{\n\tcachePolicyConfig: &cachePolicyConfigProperty{\n\t\tdefaultTtl: jsii.Number(123),\n\t\tmaxTtl: jsii.Number(123),\n\t\tminTtl: jsii.Number(123),\n\t\tname: jsii.String(\"name\"),\n\t\tparametersInCacheKeyAndForwardedToOrigin: &parametersInCacheKeyAndForwardedToOriginProperty{\n\t\t\tcookiesConfig: &cookiesConfigProperty{\n\t\t\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcookies: []*string{\n\t\t\t\t\tjsii.String(\"cookies\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tenableAcceptEncodingGzip: jsii.Boolean(false),\n\t\t\theadersConfig: &headersConfigProperty{\n\t\t\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\theaders: []*string{\n\t\t\t\t\tjsii.String(\"headers\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\t\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tqueryStrings: []*string{\n\t\t\t\t\tjsii.String(\"queryStrings\"),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tenableAcceptEncodingBrotli: jsii.Boolean(false),\n\t\t},\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n}",
3744 "version": "1"
3745 },
3746 "$": {
3747 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnCachePolicyProps: cloudfront.CfnCachePolicyProps = {\n cachePolicyConfig: {\n defaultTtl: 123,\n maxTtl: 123,\n minTtl: 123,\n name: 'name',\n parametersInCacheKeyAndForwardedToOrigin: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n};",
3748 "version": "0"
3749 }
3750 },
3751 "location": {
3752 "api": {
3753 "api": "type",
3754 "fqn": "@aws-cdk/aws-cloudfront.CfnCachePolicyProps"
3755 },
3756 "field": {
3757 "field": "example"
3758 }
3759 },
3760 "didCompile": true,
3761 "fqnsReferenced": [
3762 "@aws-cdk/aws-cloudfront.CfnCachePolicyProps"
3763 ],
3764 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCachePolicyProps: cloudfront.CfnCachePolicyProps = {\n cachePolicyConfig: {\n defaultTtl: 123,\n maxTtl: 123,\n minTtl: 123,\n name: 'name',\n parametersInCacheKeyAndForwardedToOrigin: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n enableAcceptEncodingGzip: false,\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n enableAcceptEncodingBrotli: false,\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3765 "syntaxKindCounter": {
3766 "8": 3,
3767 "10": 9,
3768 "75": 22,
3769 "91": 2,
3770 "153": 1,
3771 "169": 1,
3772 "192": 3,
3773 "193": 6,
3774 "225": 1,
3775 "242": 1,
3776 "243": 1,
3777 "254": 1,
3778 "255": 1,
3779 "256": 1,
3780 "281": 18,
3781 "290": 1
3782 },
3783 "fqnsFingerprint": "2880e5d636584758ab576a7bbb62f90bd9c8b3f18756e72e5f53f2792c5343d1"
3784 },
3785 "e7a8f0aea04a4ab517717c2c5d4c3dcf8f0072c9cf980de4b19105b44fda5769": {
3786 "translations": {
3787 "python": {
3788 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_cloud_front_origin_access_identity = cloudfront.CfnCloudFrontOriginAccessIdentity(self, \"MyCfnCloudFrontOriginAccessIdentity\",\n cloud_front_origin_access_identity_config=cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty(\n comment=\"comment\"\n )\n)",
3789 "version": "2"
3790 },
3791 "csharp": {
3792 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnCloudFrontOriginAccessIdentity cfnCloudFrontOriginAccessIdentity = new CfnCloudFrontOriginAccessIdentity(this, \"MyCfnCloudFrontOriginAccessIdentity\", new CfnCloudFrontOriginAccessIdentityProps {\n CloudFrontOriginAccessIdentityConfig = new CloudFrontOriginAccessIdentityConfigProperty {\n Comment = \"comment\"\n }\n});",
3793 "version": "1"
3794 },
3795 "java": {
3796 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnCloudFrontOriginAccessIdentity cfnCloudFrontOriginAccessIdentity = CfnCloudFrontOriginAccessIdentity.Builder.create(this, \"MyCfnCloudFrontOriginAccessIdentity\")\n .cloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfigProperty.builder()\n .comment(\"comment\")\n .build())\n .build();",
3797 "version": "1"
3798 },
3799 "go": {
3800 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnCloudFrontOriginAccessIdentity := cloudfront.NewCfnCloudFrontOriginAccessIdentity(this, jsii.String(\"MyCfnCloudFrontOriginAccessIdentity\"), &cfnCloudFrontOriginAccessIdentityProps{\n\tcloudFrontOriginAccessIdentityConfig: &cloudFrontOriginAccessIdentityConfigProperty{\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n})",
3801 "version": "1"
3802 },
3803 "$": {
3804 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnCloudFrontOriginAccessIdentity = new cloudfront.CfnCloudFrontOriginAccessIdentity(this, 'MyCfnCloudFrontOriginAccessIdentity', {\n cloudFrontOriginAccessIdentityConfig: {\n comment: 'comment',\n },\n});",
3805 "version": "0"
3806 }
3807 },
3808 "location": {
3809 "api": {
3810 "api": "type",
3811 "fqn": "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentity"
3812 },
3813 "field": {
3814 "field": "example"
3815 }
3816 },
3817 "didCompile": true,
3818 "fqnsReferenced": [
3819 "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentity",
3820 "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentityProps",
3821 "@aws-cdk/core.Construct"
3822 ],
3823 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCloudFrontOriginAccessIdentity = new cloudfront.CfnCloudFrontOriginAccessIdentity(this, 'MyCfnCloudFrontOriginAccessIdentity', {\n cloudFrontOriginAccessIdentityConfig: {\n comment: 'comment',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3824 "syntaxKindCounter": {
3825 "10": 3,
3826 "75": 6,
3827 "104": 1,
3828 "193": 2,
3829 "194": 1,
3830 "197": 1,
3831 "225": 1,
3832 "242": 1,
3833 "243": 1,
3834 "254": 1,
3835 "255": 1,
3836 "256": 1,
3837 "281": 2,
3838 "290": 1
3839 },
3840 "fqnsFingerprint": "910a3987a26f9866b407142a819705d9672d990718c8d42012b967713f5c4221"
3841 },
3842 "3610eb83dbc0d09da005b7d55e5415353babb0e3685195b48c9c2ba10bb15606": {
3843 "translations": {
3844 "python": {
3845 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncloud_front_origin_access_identity_config_property = cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty(\n comment=\"comment\"\n)",
3846 "version": "2"
3847 },
3848 "csharp": {
3849 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCloudFrontOriginAccessIdentityConfigProperty cloudFrontOriginAccessIdentityConfigProperty = new CloudFrontOriginAccessIdentityConfigProperty {\n Comment = \"comment\"\n};",
3850 "version": "1"
3851 },
3852 "java": {
3853 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCloudFrontOriginAccessIdentityConfigProperty cloudFrontOriginAccessIdentityConfigProperty = CloudFrontOriginAccessIdentityConfigProperty.builder()\n .comment(\"comment\")\n .build();",
3854 "version": "1"
3855 },
3856 "go": {
3857 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncloudFrontOriginAccessIdentityConfigProperty := &cloudFrontOriginAccessIdentityConfigProperty{\n\tcomment: jsii.String(\"comment\"),\n}",
3858 "version": "1"
3859 },
3860 "$": {
3861 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cloudFrontOriginAccessIdentityConfigProperty: cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty = {\n comment: 'comment',\n};",
3862 "version": "0"
3863 }
3864 },
3865 "location": {
3866 "api": {
3867 "api": "type",
3868 "fqn": "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty"
3869 },
3870 "field": {
3871 "field": "example"
3872 }
3873 },
3874 "didCompile": true,
3875 "fqnsReferenced": [
3876 "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty"
3877 ],
3878 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cloudFrontOriginAccessIdentityConfigProperty: cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty = {\n comment: 'comment',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3879 "syntaxKindCounter": {
3880 "10": 2,
3881 "75": 6,
3882 "153": 2,
3883 "169": 1,
3884 "193": 1,
3885 "225": 1,
3886 "242": 1,
3887 "243": 1,
3888 "254": 1,
3889 "255": 1,
3890 "256": 1,
3891 "281": 1,
3892 "290": 1
3893 },
3894 "fqnsFingerprint": "3f71f43fe657b1999f48bb302bcad72f4a13301d9f789c0729eb76b60fdcc144"
3895 },
3896 "9c683d354e45ed06a15e3f175941e14fc8c06e21cb85e4437612a054ff18a151": {
3897 "translations": {
3898 "python": {
3899 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_cloud_front_origin_access_identity_props = cloudfront.CfnCloudFrontOriginAccessIdentityProps(\n cloud_front_origin_access_identity_config=cloudfront.CfnCloudFrontOriginAccessIdentity.CloudFrontOriginAccessIdentityConfigProperty(\n comment=\"comment\"\n )\n)",
3900 "version": "2"
3901 },
3902 "csharp": {
3903 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnCloudFrontOriginAccessIdentityProps cfnCloudFrontOriginAccessIdentityProps = new CfnCloudFrontOriginAccessIdentityProps {\n CloudFrontOriginAccessIdentityConfig = new CloudFrontOriginAccessIdentityConfigProperty {\n Comment = \"comment\"\n }\n};",
3904 "version": "1"
3905 },
3906 "java": {
3907 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnCloudFrontOriginAccessIdentityProps cfnCloudFrontOriginAccessIdentityProps = CfnCloudFrontOriginAccessIdentityProps.builder()\n .cloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfigProperty.builder()\n .comment(\"comment\")\n .build())\n .build();",
3908 "version": "1"
3909 },
3910 "go": {
3911 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnCloudFrontOriginAccessIdentityProps := &cfnCloudFrontOriginAccessIdentityProps{\n\tcloudFrontOriginAccessIdentityConfig: &cloudFrontOriginAccessIdentityConfigProperty{\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n}",
3912 "version": "1"
3913 },
3914 "$": {
3915 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnCloudFrontOriginAccessIdentityProps: cloudfront.CfnCloudFrontOriginAccessIdentityProps = {\n cloudFrontOriginAccessIdentityConfig: {\n comment: 'comment',\n },\n};",
3916 "version": "0"
3917 }
3918 },
3919 "location": {
3920 "api": {
3921 "api": "type",
3922 "fqn": "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentityProps"
3923 },
3924 "field": {
3925 "field": "example"
3926 }
3927 },
3928 "didCompile": true,
3929 "fqnsReferenced": [
3930 "@aws-cdk/aws-cloudfront.CfnCloudFrontOriginAccessIdentityProps"
3931 ],
3932 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnCloudFrontOriginAccessIdentityProps: cloudfront.CfnCloudFrontOriginAccessIdentityProps = {\n cloudFrontOriginAccessIdentityConfig: {\n comment: 'comment',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
3933 "syntaxKindCounter": {
3934 "10": 2,
3935 "75": 6,
3936 "153": 1,
3937 "169": 1,
3938 "193": 2,
3939 "225": 1,
3940 "242": 1,
3941 "243": 1,
3942 "254": 1,
3943 "255": 1,
3944 "256": 1,
3945 "281": 2,
3946 "290": 1
3947 },
3948 "fqnsFingerprint": "7908b58f710fed674800567f32b23cfdf409531ab643e77c121554c06f497982"
3949 },
3950 "20c49b2f1cd351386f501f836aee1af8e7d78773f705d0f11720f3f751374b62": {
3951 "translations": {
3952 "python": {
3953 "source": "# source_bucket: s3.Bucket\n\n\nmy_distribution = cloudfront.Distribution(self, \"MyCfWebDistribution\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(source_bucket)\n )\n)\ncfn_distribution = my_distribution.node.default_child\ncfn_distribution.override_logical_id(\"MyDistributionCFDistribution3H55TI9Q\")",
3954 "version": "2"
3955 },
3956 "csharp": {
3957 "source": "Bucket sourceBucket;\n\n\nDistribution myDistribution = new Distribution(this, \"MyCfWebDistribution\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(sourceBucket)\n }\n});\nCfnDistribution cfnDistribution = (CfnDistribution)myDistribution.Node.DefaultChild;\ncfnDistribution.OverrideLogicalId(\"MyDistributionCFDistribution3H55TI9Q\");",
3958 "version": "1"
3959 },
3960 "java": {
3961 "source": "Bucket sourceBucket;\n\n\nDistribution myDistribution = Distribution.Builder.create(this, \"MyCfWebDistribution\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(sourceBucket))\n .build())\n .build();\nCfnDistribution cfnDistribution = (CfnDistribution)myDistribution.getNode().getDefaultChild();\ncfnDistribution.overrideLogicalId(\"MyDistributionCFDistribution3H55TI9Q\");",
3962 "version": "1"
3963 },
3964 "go": {
3965 "source": "var sourceBucket bucket\n\n\nmyDistribution := cloudfront.NewDistribution(this, jsii.String(\"MyCfWebDistribution\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(sourceBucket),\n\t},\n})\ncfnDistribution := myDistribution.node.defaultChild.(cfnDistribution)\ncfnDistribution.overrideLogicalId(jsii.String(\"MyDistributionCFDistribution3H55TI9Q\"))",
3966 "version": "1"
3967 },
3968 "$": {
3969 "source": "declare const sourceBucket: s3.Bucket;\n\nconst myDistribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n});\nconst cfnDistribution = myDistribution.node.defaultChild as cloudfront.CfnDistribution;\ncfnDistribution.overrideLogicalId('MyDistributionCFDistribution3H55TI9Q');",
3970 "version": "0"
3971 }
3972 },
3973 "location": {
3974 "api": {
3975 "api": "type",
3976 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution"
3977 },
3978 "field": {
3979 "field": "example"
3980 }
3981 },
3982 "didCompile": true,
3983 "fqnsReferenced": [
3984 "@aws-cdk/aws-cloudfront-origins.S3Origin",
3985 "@aws-cdk/aws-cloudfront.BehaviorOptions",
3986 "@aws-cdk/aws-cloudfront.CfnDistribution",
3987 "@aws-cdk/aws-cloudfront.Distribution",
3988 "@aws-cdk/aws-cloudfront.DistributionProps",
3989 "@aws-cdk/aws-cloudfront.IOrigin",
3990 "@aws-cdk/aws-s3.IBucket",
3991 "@aws-cdk/core.CfnElement#overrideLogicalId",
3992 "@aws-cdk/core.Construct#node",
3993 "constructs.Construct"
3994 ],
3995 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myDistribution = new cloudfront.Distribution(this, 'MyCfWebDistribution', {\n defaultBehavior: {\n origin: new origins.S3Origin(sourceBucket),\n },\n});\nconst cfnDistribution = myDistribution.node.defaultChild as cloudfront.CfnDistribution;\ncfnDistribution.overrideLogicalId('MyDistributionCFDistribution3H55TI9Q');\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
3996 "syntaxKindCounter": {
3997 "10": 2,
3998 "75": 19,
3999 "104": 1,
4000 "130": 1,
4001 "153": 2,
4002 "169": 2,
4003 "193": 2,
4004 "194": 5,
4005 "196": 1,
4006 "197": 2,
4007 "217": 1,
4008 "225": 3,
4009 "226": 1,
4010 "242": 3,
4011 "243": 3,
4012 "281": 2,
4013 "290": 1
4014 },
4015 "fqnsFingerprint": "c25040012f6c2c2093052d3d4ed9476241d84f82e16b7c8a7c510fc67b6ef93f"
4016 },
4017 "8ec517e7140b6e9f4a2f9971780e06c0351827fb530e659d292aee31b1cdaff0": {
4018 "translations": {
4019 "python": {
4020 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncache_behavior_property = cloudfront.CfnDistribution.CacheBehaviorProperty(\n path_pattern=\"pathPattern\",\n target_origin_id=\"targetOriginId\",\n viewer_protocol_policy=\"viewerProtocolPolicy\",\n\n # the properties below are optional\n allowed_methods=[\"allowedMethods\"],\n cached_methods=[\"cachedMethods\"],\n cache_policy_id=\"cachePolicyId\",\n compress=False,\n default_ttl=123,\n field_level_encryption_id=\"fieldLevelEncryptionId\",\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n )],\n lambda_function_associations=[cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n )],\n max_ttl=123,\n min_ttl=123,\n origin_request_policy_id=\"originRequestPolicyId\",\n realtime_log_config_arn=\"realtimeLogConfigArn\",\n response_headers_policy_id=\"responseHeadersPolicyId\",\n smooth_streaming=False,\n trusted_key_groups=[\"trustedKeyGroups\"],\n trusted_signers=[\"trustedSigners\"]\n)",
4021 "version": "2"
4022 },
4023 "csharp": {
4024 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCacheBehaviorProperty cacheBehaviorProperty = new CacheBehaviorProperty {\n PathPattern = \"pathPattern\",\n TargetOriginId = \"targetOriginId\",\n ViewerProtocolPolicy = \"viewerProtocolPolicy\",\n\n // the properties below are optional\n AllowedMethods = new [] { \"allowedMethods\" },\n CachedMethods = new [] { \"cachedMethods\" },\n CachePolicyId = \"cachePolicyId\",\n Compress = false,\n DefaultTtl = 123,\n FieldLevelEncryptionId = \"fieldLevelEncryptionId\",\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n } },\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n } },\n MaxTtl = 123,\n MinTtl = 123,\n OriginRequestPolicyId = \"originRequestPolicyId\",\n RealtimeLogConfigArn = \"realtimeLogConfigArn\",\n ResponseHeadersPolicyId = \"responseHeadersPolicyId\",\n SmoothStreaming = false,\n TrustedKeyGroups = new [] { \"trustedKeyGroups\" },\n TrustedSigners = new [] { \"trustedSigners\" }\n};",
4025 "version": "1"
4026 },
4027 "java": {
4028 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCacheBehaviorProperty cacheBehaviorProperty = CacheBehaviorProperty.builder()\n .pathPattern(\"pathPattern\")\n .targetOriginId(\"targetOriginId\")\n .viewerProtocolPolicy(\"viewerProtocolPolicy\")\n\n // the properties below are optional\n .allowedMethods(List.of(\"allowedMethods\"))\n .cachedMethods(List.of(\"cachedMethods\"))\n .cachePolicyId(\"cachePolicyId\")\n .compress(false)\n .defaultTtl(123)\n .fieldLevelEncryptionId(\"fieldLevelEncryptionId\")\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build()))\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build()))\n .maxTtl(123)\n .minTtl(123)\n .originRequestPolicyId(\"originRequestPolicyId\")\n .realtimeLogConfigArn(\"realtimeLogConfigArn\")\n .responseHeadersPolicyId(\"responseHeadersPolicyId\")\n .smoothStreaming(false)\n .trustedKeyGroups(List.of(\"trustedKeyGroups\"))\n .trustedSigners(List.of(\"trustedSigners\"))\n .build();",
4029 "version": "1"
4030 },
4031 "go": {
4032 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncacheBehaviorProperty := &cacheBehaviorProperty{\n\tpathPattern: jsii.String(\"pathPattern\"),\n\ttargetOriginId: jsii.String(\"targetOriginId\"),\n\tviewerProtocolPolicy: jsii.String(\"viewerProtocolPolicy\"),\n\n\t// the properties below are optional\n\tallowedMethods: []*string{\n\t\tjsii.String(\"allowedMethods\"),\n\t},\n\tcachedMethods: []*string{\n\t\tjsii.String(\"cachedMethods\"),\n\t},\n\tcachePolicyId: jsii.String(\"cachePolicyId\"),\n\tcompress: jsii.Boolean(false),\n\tdefaultTtl: jsii.Number(123),\n\tfieldLevelEncryptionId: jsii.String(\"fieldLevelEncryptionId\"),\n\tforwardedValues: &forwardedValuesProperty{\n\t\tqueryString: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tcookies: &cookiesProperty{\n\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t// the properties below are optional\n\t\t\twhitelistedNames: []*string{\n\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t},\n\t\t},\n\t\theaders: []*string{\n\t\t\tjsii.String(\"headers\"),\n\t\t},\n\t\tqueryStringCacheKeys: []*string{\n\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t},\n\t},\n\tfunctionAssociations: []interface{}{\n\t\t&functionAssociationProperty{\n\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\t\t},\n\t},\n\tlambdaFunctionAssociations: []interface{}{\n\t\t&lambdaFunctionAssociationProperty{\n\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n\t\t},\n\t},\n\tmaxTtl: jsii.Number(123),\n\tminTtl: jsii.Number(123),\n\toriginRequestPolicyId: jsii.String(\"originRequestPolicyId\"),\n\trealtimeLogConfigArn: jsii.String(\"realtimeLogConfigArn\"),\n\tresponseHeadersPolicyId: jsii.String(\"responseHeadersPolicyId\"),\n\tsmoothStreaming: jsii.Boolean(false),\n\ttrustedKeyGroups: []*string{\n\t\tjsii.String(\"trustedKeyGroups\"),\n\t},\n\ttrustedSigners: []*string{\n\t\tjsii.String(\"trustedSigners\"),\n\t},\n}",
4033 "version": "1"
4034 },
4035 "$": {
4036 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cacheBehaviorProperty: cloudfront.CfnDistribution.CacheBehaviorProperty = {\n pathPattern: 'pathPattern',\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n};",
4037 "version": "0"
4038 }
4039 },
4040 "location": {
4041 "api": {
4042 "api": "type",
4043 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.CacheBehaviorProperty"
4044 },
4045 "field": {
4046 "field": "example"
4047 }
4048 },
4049 "didCompile": true,
4050 "fqnsReferenced": [
4051 "@aws-cdk/aws-cloudfront.CfnDistribution.CacheBehaviorProperty"
4052 ],
4053 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cacheBehaviorProperty: cloudfront.CfnDistribution.CacheBehaviorProperty = {\n pathPattern: 'pathPattern',\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4054 "syntaxKindCounter": {
4055 "8": 3,
4056 "10": 21,
4057 "75": 36,
4058 "91": 4,
4059 "153": 2,
4060 "169": 1,
4061 "192": 9,
4062 "193": 5,
4063 "225": 1,
4064 "242": 1,
4065 "243": 1,
4066 "254": 1,
4067 "255": 1,
4068 "256": 1,
4069 "281": 31,
4070 "290": 1
4071 },
4072 "fqnsFingerprint": "cde67030ea23aa7def7e5552300f44c0161b881a2d79e348e710adaaed53882f"
4073 },
4074 "d9fba543cf0a4ff2b4c57b707912acfbedfb1e78830f0e2aea64230f3964f08d": {
4075 "translations": {
4076 "python": {
4077 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncookies_property = cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n)",
4078 "version": "2"
4079 },
4080 "csharp": {
4081 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCookiesProperty cookiesProperty = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n};",
4082 "version": "1"
4083 },
4084 "java": {
4085 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCookiesProperty cookiesProperty = CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build();",
4086 "version": "1"
4087 },
4088 "go": {
4089 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncookiesProperty := &cookiesProperty{\n\tforward: jsii.String(\"forward\"),\n\n\t// the properties below are optional\n\twhitelistedNames: []*string{\n\t\tjsii.String(\"whitelistedNames\"),\n\t},\n}",
4090 "version": "1"
4091 },
4092 "$": {
4093 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cookiesProperty: cloudfront.CfnDistribution.CookiesProperty = {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n};",
4094 "version": "0"
4095 }
4096 },
4097 "location": {
4098 "api": {
4099 "api": "type",
4100 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.CookiesProperty"
4101 },
4102 "field": {
4103 "field": "example"
4104 }
4105 },
4106 "didCompile": true,
4107 "fqnsReferenced": [
4108 "@aws-cdk/aws-cloudfront.CfnDistribution.CookiesProperty"
4109 ],
4110 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cookiesProperty: cloudfront.CfnDistribution.CookiesProperty = {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4111 "syntaxKindCounter": {
4112 "10": 3,
4113 "75": 7,
4114 "153": 2,
4115 "169": 1,
4116 "192": 1,
4117 "193": 1,
4118 "225": 1,
4119 "242": 1,
4120 "243": 1,
4121 "254": 1,
4122 "255": 1,
4123 "256": 1,
4124 "281": 2,
4125 "290": 1
4126 },
4127 "fqnsFingerprint": "55a9ee4049745910b7520e52fc9d910be6cdfeae70585249c337a221107337e0"
4128 },
4129 "a854315154e9b9aba0f086392004b1efa2b01522598037b188554a67afa65f5b": {
4130 "translations": {
4131 "python": {
4132 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncustom_error_response_property = cloudfront.CfnDistribution.CustomErrorResponseProperty(\n error_code=123,\n\n # the properties below are optional\n error_caching_min_ttl=123,\n response_code=123,\n response_page_path=\"responsePagePath\"\n)",
4133 "version": "2"
4134 },
4135 "csharp": {
4136 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCustomErrorResponseProperty customErrorResponseProperty = new CustomErrorResponseProperty {\n ErrorCode = 123,\n\n // the properties below are optional\n ErrorCachingMinTtl = 123,\n ResponseCode = 123,\n ResponsePagePath = \"responsePagePath\"\n};",
4137 "version": "1"
4138 },
4139 "java": {
4140 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCustomErrorResponseProperty customErrorResponseProperty = CustomErrorResponseProperty.builder()\n .errorCode(123)\n\n // the properties below are optional\n .errorCachingMinTtl(123)\n .responseCode(123)\n .responsePagePath(\"responsePagePath\")\n .build();",
4141 "version": "1"
4142 },
4143 "go": {
4144 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncustomErrorResponseProperty := &customErrorResponseProperty{\n\terrorCode: jsii.Number(123),\n\n\t// the properties below are optional\n\terrorCachingMinTtl: jsii.Number(123),\n\tresponseCode: jsii.Number(123),\n\tresponsePagePath: jsii.String(\"responsePagePath\"),\n}",
4145 "version": "1"
4146 },
4147 "$": {
4148 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst customErrorResponseProperty: cloudfront.CfnDistribution.CustomErrorResponseProperty = {\n errorCode: 123,\n\n // the properties below are optional\n errorCachingMinTtl: 123,\n responseCode: 123,\n responsePagePath: 'responsePagePath',\n};",
4149 "version": "0"
4150 }
4151 },
4152 "location": {
4153 "api": {
4154 "api": "type",
4155 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.CustomErrorResponseProperty"
4156 },
4157 "field": {
4158 "field": "example"
4159 }
4160 },
4161 "didCompile": true,
4162 "fqnsReferenced": [
4163 "@aws-cdk/aws-cloudfront.CfnDistribution.CustomErrorResponseProperty"
4164 ],
4165 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst customErrorResponseProperty: cloudfront.CfnDistribution.CustomErrorResponseProperty = {\n errorCode: 123,\n\n // the properties below are optional\n errorCachingMinTtl: 123,\n responseCode: 123,\n responsePagePath: 'responsePagePath',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4166 "syntaxKindCounter": {
4167 "8": 3,
4168 "10": 2,
4169 "75": 9,
4170 "153": 2,
4171 "169": 1,
4172 "193": 1,
4173 "225": 1,
4174 "242": 1,
4175 "243": 1,
4176 "254": 1,
4177 "255": 1,
4178 "256": 1,
4179 "281": 4,
4180 "290": 1
4181 },
4182 "fqnsFingerprint": "4f193ce942abcb9bbbf394e139b9d508657173e57b207ba1b81e7a18ea972801"
4183 },
4184 "c3e7df39e9abb89613e337c7a2de8f897ec2f39ef647518050692675a2314ca0": {
4185 "translations": {
4186 "python": {
4187 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncustom_origin_config_property = cloudfront.CfnDistribution.CustomOriginConfigProperty(\n origin_protocol_policy=\"originProtocolPolicy\",\n\n # the properties below are optional\n http_port=123,\n https_port=123,\n origin_keepalive_timeout=123,\n origin_read_timeout=123,\n origin_ssl_protocols=[\"originSslProtocols\"]\n)",
4188 "version": "2"
4189 },
4190 "csharp": {
4191 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCustomOriginConfigProperty customOriginConfigProperty = new CustomOriginConfigProperty {\n OriginProtocolPolicy = \"originProtocolPolicy\",\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123,\n OriginKeepaliveTimeout = 123,\n OriginReadTimeout = 123,\n OriginSslProtocols = new [] { \"originSslProtocols\" }\n};",
4192 "version": "1"
4193 },
4194 "java": {
4195 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCustomOriginConfigProperty customOriginConfigProperty = CustomOriginConfigProperty.builder()\n .originProtocolPolicy(\"originProtocolPolicy\")\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .originKeepaliveTimeout(123)\n .originReadTimeout(123)\n .originSslProtocols(List.of(\"originSslProtocols\"))\n .build();",
4196 "version": "1"
4197 },
4198 "go": {
4199 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncustomOriginConfigProperty := &customOriginConfigProperty{\n\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\n\t// the properties below are optional\n\thttpPort: jsii.Number(123),\n\thttpsPort: jsii.Number(123),\n\toriginKeepaliveTimeout: jsii.Number(123),\n\toriginReadTimeout: jsii.Number(123),\n\toriginSslProtocols: []*string{\n\t\tjsii.String(\"originSslProtocols\"),\n\t},\n}",
4200 "version": "1"
4201 },
4202 "$": {
4203 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst customOriginConfigProperty: cloudfront.CfnDistribution.CustomOriginConfigProperty = {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n};",
4204 "version": "0"
4205 }
4206 },
4207 "location": {
4208 "api": {
4209 "api": "type",
4210 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.CustomOriginConfigProperty"
4211 },
4212 "field": {
4213 "field": "example"
4214 }
4215 },
4216 "didCompile": true,
4217 "fqnsReferenced": [
4218 "@aws-cdk/aws-cloudfront.CfnDistribution.CustomOriginConfigProperty"
4219 ],
4220 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst customOriginConfigProperty: cloudfront.CfnDistribution.CustomOriginConfigProperty = {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4221 "syntaxKindCounter": {
4222 "8": 4,
4223 "10": 3,
4224 "75": 11,
4225 "153": 2,
4226 "169": 1,
4227 "192": 1,
4228 "193": 1,
4229 "225": 1,
4230 "242": 1,
4231 "243": 1,
4232 "254": 1,
4233 "255": 1,
4234 "256": 1,
4235 "281": 6,
4236 "290": 1
4237 },
4238 "fqnsFingerprint": "17ad3dc14b56595ff30fd35ddf3b90367eb4e271e92eea522ea253b6b23411d7"
4239 },
4240 "554fd19e21c441d0fdc78bcaf480179f4181460c93869bbec460282b88adff99": {
4241 "translations": {
4242 "python": {
4243 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ndefault_cache_behavior_property = cloudfront.CfnDistribution.DefaultCacheBehaviorProperty(\n target_origin_id=\"targetOriginId\",\n viewer_protocol_policy=\"viewerProtocolPolicy\",\n\n # the properties below are optional\n allowed_methods=[\"allowedMethods\"],\n cached_methods=[\"cachedMethods\"],\n cache_policy_id=\"cachePolicyId\",\n compress=False,\n default_ttl=123,\n field_level_encryption_id=\"fieldLevelEncryptionId\",\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n )],\n lambda_function_associations=[cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n )],\n max_ttl=123,\n min_ttl=123,\n origin_request_policy_id=\"originRequestPolicyId\",\n realtime_log_config_arn=\"realtimeLogConfigArn\",\n response_headers_policy_id=\"responseHeadersPolicyId\",\n smooth_streaming=False,\n trusted_key_groups=[\"trustedKeyGroups\"],\n trusted_signers=[\"trustedSigners\"]\n)",
4244 "version": "2"
4245 },
4246 "csharp": {
4247 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nDefaultCacheBehaviorProperty defaultCacheBehaviorProperty = new DefaultCacheBehaviorProperty {\n TargetOriginId = \"targetOriginId\",\n ViewerProtocolPolicy = \"viewerProtocolPolicy\",\n\n // the properties below are optional\n AllowedMethods = new [] { \"allowedMethods\" },\n CachedMethods = new [] { \"cachedMethods\" },\n CachePolicyId = \"cachePolicyId\",\n Compress = false,\n DefaultTtl = 123,\n FieldLevelEncryptionId = \"fieldLevelEncryptionId\",\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n } },\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n } },\n MaxTtl = 123,\n MinTtl = 123,\n OriginRequestPolicyId = \"originRequestPolicyId\",\n RealtimeLogConfigArn = \"realtimeLogConfigArn\",\n ResponseHeadersPolicyId = \"responseHeadersPolicyId\",\n SmoothStreaming = false,\n TrustedKeyGroups = new [] { \"trustedKeyGroups\" },\n TrustedSigners = new [] { \"trustedSigners\" }\n};",
4248 "version": "1"
4249 },
4250 "java": {
4251 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nDefaultCacheBehaviorProperty defaultCacheBehaviorProperty = DefaultCacheBehaviorProperty.builder()\n .targetOriginId(\"targetOriginId\")\n .viewerProtocolPolicy(\"viewerProtocolPolicy\")\n\n // the properties below are optional\n .allowedMethods(List.of(\"allowedMethods\"))\n .cachedMethods(List.of(\"cachedMethods\"))\n .cachePolicyId(\"cachePolicyId\")\n .compress(false)\n .defaultTtl(123)\n .fieldLevelEncryptionId(\"fieldLevelEncryptionId\")\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build()))\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build()))\n .maxTtl(123)\n .minTtl(123)\n .originRequestPolicyId(\"originRequestPolicyId\")\n .realtimeLogConfigArn(\"realtimeLogConfigArn\")\n .responseHeadersPolicyId(\"responseHeadersPolicyId\")\n .smoothStreaming(false)\n .trustedKeyGroups(List.of(\"trustedKeyGroups\"))\n .trustedSigners(List.of(\"trustedSigners\"))\n .build();",
4252 "version": "1"
4253 },
4254 "go": {
4255 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ndefaultCacheBehaviorProperty := &defaultCacheBehaviorProperty{\n\ttargetOriginId: jsii.String(\"targetOriginId\"),\n\tviewerProtocolPolicy: jsii.String(\"viewerProtocolPolicy\"),\n\n\t// the properties below are optional\n\tallowedMethods: []*string{\n\t\tjsii.String(\"allowedMethods\"),\n\t},\n\tcachedMethods: []*string{\n\t\tjsii.String(\"cachedMethods\"),\n\t},\n\tcachePolicyId: jsii.String(\"cachePolicyId\"),\n\tcompress: jsii.Boolean(false),\n\tdefaultTtl: jsii.Number(123),\n\tfieldLevelEncryptionId: jsii.String(\"fieldLevelEncryptionId\"),\n\tforwardedValues: &forwardedValuesProperty{\n\t\tqueryString: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tcookies: &cookiesProperty{\n\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t// the properties below are optional\n\t\t\twhitelistedNames: []*string{\n\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t},\n\t\t},\n\t\theaders: []*string{\n\t\t\tjsii.String(\"headers\"),\n\t\t},\n\t\tqueryStringCacheKeys: []*string{\n\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t},\n\t},\n\tfunctionAssociations: []interface{}{\n\t\t&functionAssociationProperty{\n\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\t\t},\n\t},\n\tlambdaFunctionAssociations: []interface{}{\n\t\t&lambdaFunctionAssociationProperty{\n\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n\t\t},\n\t},\n\tmaxTtl: jsii.Number(123),\n\tminTtl: jsii.Number(123),\n\toriginRequestPolicyId: jsii.String(\"originRequestPolicyId\"),\n\trealtimeLogConfigArn: jsii.String(\"realtimeLogConfigArn\"),\n\tresponseHeadersPolicyId: jsii.String(\"responseHeadersPolicyId\"),\n\tsmoothStreaming: jsii.Boolean(false),\n\ttrustedKeyGroups: []*string{\n\t\tjsii.String(\"trustedKeyGroups\"),\n\t},\n\ttrustedSigners: []*string{\n\t\tjsii.String(\"trustedSigners\"),\n\t},\n}",
4256 "version": "1"
4257 },
4258 "$": {
4259 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst defaultCacheBehaviorProperty: cloudfront.CfnDistribution.DefaultCacheBehaviorProperty = {\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n};",
4260 "version": "0"
4261 }
4262 },
4263 "location": {
4264 "api": {
4265 "api": "type",
4266 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.DefaultCacheBehaviorProperty"
4267 },
4268 "field": {
4269 "field": "example"
4270 }
4271 },
4272 "didCompile": true,
4273 "fqnsReferenced": [
4274 "@aws-cdk/aws-cloudfront.CfnDistribution.DefaultCacheBehaviorProperty"
4275 ],
4276 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst defaultCacheBehaviorProperty: cloudfront.CfnDistribution.DefaultCacheBehaviorProperty = {\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4277 "syntaxKindCounter": {
4278 "8": 3,
4279 "10": 20,
4280 "75": 35,
4281 "91": 4,
4282 "153": 2,
4283 "169": 1,
4284 "192": 9,
4285 "193": 5,
4286 "225": 1,
4287 "242": 1,
4288 "243": 1,
4289 "254": 1,
4290 "255": 1,
4291 "256": 1,
4292 "281": 30,
4293 "290": 1
4294 },
4295 "fqnsFingerprint": "c145fa2e3600241e45f792556a1fe594797669d62279a8e28307d989e29052ce"
4296 },
4297 "e22dda5265f9f4d8aa01088f23aa9d5276beab59fceea1ea2bc62b5ec9d97b5c": {
4298 "translations": {
4299 "python": {
4300 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ndistribution_config_property = cloudfront.CfnDistribution.DistributionConfigProperty(\n default_cache_behavior=cloudfront.CfnDistribution.DefaultCacheBehaviorProperty(\n target_origin_id=\"targetOriginId\",\n viewer_protocol_policy=\"viewerProtocolPolicy\",\n\n # the properties below are optional\n allowed_methods=[\"allowedMethods\"],\n cached_methods=[\"cachedMethods\"],\n cache_policy_id=\"cachePolicyId\",\n compress=False,\n default_ttl=123,\n field_level_encryption_id=\"fieldLevelEncryptionId\",\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n )],\n lambda_function_associations=[cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n )],\n max_ttl=123,\n min_ttl=123,\n origin_request_policy_id=\"originRequestPolicyId\",\n realtime_log_config_arn=\"realtimeLogConfigArn\",\n response_headers_policy_id=\"responseHeadersPolicyId\",\n smooth_streaming=False,\n trusted_key_groups=[\"trustedKeyGroups\"],\n trusted_signers=[\"trustedSigners\"]\n ),\n enabled=False,\n\n # the properties below are optional\n aliases=[\"aliases\"],\n cache_behaviors=[cloudfront.CfnDistribution.CacheBehaviorProperty(\n path_pattern=\"pathPattern\",\n target_origin_id=\"targetOriginId\",\n viewer_protocol_policy=\"viewerProtocolPolicy\",\n\n # the properties below are optional\n allowed_methods=[\"allowedMethods\"],\n cached_methods=[\"cachedMethods\"],\n cache_policy_id=\"cachePolicyId\",\n compress=False,\n default_ttl=123,\n field_level_encryption_id=\"fieldLevelEncryptionId\",\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n )],\n lambda_function_associations=[cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n )],\n max_ttl=123,\n min_ttl=123,\n origin_request_policy_id=\"originRequestPolicyId\",\n realtime_log_config_arn=\"realtimeLogConfigArn\",\n response_headers_policy_id=\"responseHeadersPolicyId\",\n smooth_streaming=False,\n trusted_key_groups=[\"trustedKeyGroups\"],\n trusted_signers=[\"trustedSigners\"]\n )],\n cnam_es=[\"cnamEs\"],\n comment=\"comment\",\n custom_error_responses=[cloudfront.CfnDistribution.CustomErrorResponseProperty(\n error_code=123,\n\n # the properties below are optional\n error_caching_min_ttl=123,\n response_code=123,\n response_page_path=\"responsePagePath\"\n )],\n custom_origin=cloudfront.CfnDistribution.LegacyCustomOriginProperty(\n dns_name=\"dnsName\",\n origin_protocol_policy=\"originProtocolPolicy\",\n origin_ssl_protocols=[\"originSslProtocols\"],\n\n # the properties below are optional\n http_port=123,\n https_port=123\n ),\n default_root_object=\"defaultRootObject\",\n http_version=\"httpVersion\",\n ipv6_enabled=False,\n logging=cloudfront.CfnDistribution.LoggingProperty(\n bucket=\"bucket\",\n\n # the properties below are optional\n include_cookies=False,\n prefix=\"prefix\"\n ),\n origin_groups=cloudfront.CfnDistribution.OriginGroupsProperty(\n quantity=123,\n\n # the properties below are optional\n items=[cloudfront.CfnDistribution.OriginGroupProperty(\n failover_criteria=cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty(\n status_codes=cloudfront.CfnDistribution.StatusCodesProperty(\n items=[123],\n quantity=123\n )\n ),\n id=\"id\",\n members=cloudfront.CfnDistribution.OriginGroupMembersProperty(\n items=[cloudfront.CfnDistribution.OriginGroupMemberProperty(\n origin_id=\"originId\"\n )],\n quantity=123\n )\n )]\n ),\n origins=[cloudfront.CfnDistribution.OriginProperty(\n domain_name=\"domainName\",\n id=\"id\",\n\n # the properties below are optional\n connection_attempts=123,\n connection_timeout=123,\n custom_origin_config=cloudfront.CfnDistribution.CustomOriginConfigProperty(\n origin_protocol_policy=\"originProtocolPolicy\",\n\n # the properties below are optional\n http_port=123,\n https_port=123,\n origin_keepalive_timeout=123,\n origin_read_timeout=123,\n origin_ssl_protocols=[\"originSslProtocols\"]\n ),\n origin_access_control_id=\"originAccessControlId\",\n origin_custom_headers=[cloudfront.CfnDistribution.OriginCustomHeaderProperty(\n header_name=\"headerName\",\n header_value=\"headerValue\"\n )],\n origin_path=\"originPath\",\n origin_shield=cloudfront.CfnDistribution.OriginShieldProperty(\n enabled=False,\n origin_shield_region=\"originShieldRegion\"\n ),\n s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(\n origin_access_identity=\"originAccessIdentity\"\n )\n )],\n price_class=\"priceClass\",\n restrictions=cloudfront.CfnDistribution.RestrictionsProperty(\n geo_restriction=cloudfront.CfnDistribution.GeoRestrictionProperty(\n restriction_type=\"restrictionType\",\n\n # the properties below are optional\n locations=[\"locations\"]\n )\n ),\n s3_origin=cloudfront.CfnDistribution.LegacyS3OriginProperty(\n dns_name=\"dnsName\",\n\n # the properties below are optional\n origin_access_identity=\"originAccessIdentity\"\n ),\n viewer_certificate=cloudfront.CfnDistribution.ViewerCertificateProperty(\n acm_certificate_arn=\"acmCertificateArn\",\n cloud_front_default_certificate=False,\n iam_certificate_id=\"iamCertificateId\",\n minimum_protocol_version=\"minimumProtocolVersion\",\n ssl_support_method=\"sslSupportMethod\"\n ),\n web_acl_id=\"webAclId\"\n)",
4301 "version": "2"
4302 },
4303 "csharp": {
4304 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nDistributionConfigProperty distributionConfigProperty = new DistributionConfigProperty {\n DefaultCacheBehavior = new DefaultCacheBehaviorProperty {\n TargetOriginId = \"targetOriginId\",\n ViewerProtocolPolicy = \"viewerProtocolPolicy\",\n\n // the properties below are optional\n AllowedMethods = new [] { \"allowedMethods\" },\n CachedMethods = new [] { \"cachedMethods\" },\n CachePolicyId = \"cachePolicyId\",\n Compress = false,\n DefaultTtl = 123,\n FieldLevelEncryptionId = \"fieldLevelEncryptionId\",\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n } },\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n } },\n MaxTtl = 123,\n MinTtl = 123,\n OriginRequestPolicyId = \"originRequestPolicyId\",\n RealtimeLogConfigArn = \"realtimeLogConfigArn\",\n ResponseHeadersPolicyId = \"responseHeadersPolicyId\",\n SmoothStreaming = false,\n TrustedKeyGroups = new [] { \"trustedKeyGroups\" },\n TrustedSigners = new [] { \"trustedSigners\" }\n },\n Enabled = false,\n\n // the properties below are optional\n Aliases = new [] { \"aliases\" },\n CacheBehaviors = new [] { new CacheBehaviorProperty {\n PathPattern = \"pathPattern\",\n TargetOriginId = \"targetOriginId\",\n ViewerProtocolPolicy = \"viewerProtocolPolicy\",\n\n // the properties below are optional\n AllowedMethods = new [] { \"allowedMethods\" },\n CachedMethods = new [] { \"cachedMethods\" },\n CachePolicyId = \"cachePolicyId\",\n Compress = false,\n DefaultTtl = 123,\n FieldLevelEncryptionId = \"fieldLevelEncryptionId\",\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n } },\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n } },\n MaxTtl = 123,\n MinTtl = 123,\n OriginRequestPolicyId = \"originRequestPolicyId\",\n RealtimeLogConfigArn = \"realtimeLogConfigArn\",\n ResponseHeadersPolicyId = \"responseHeadersPolicyId\",\n SmoothStreaming = false,\n TrustedKeyGroups = new [] { \"trustedKeyGroups\" },\n TrustedSigners = new [] { \"trustedSigners\" }\n } },\n CnamEs = new [] { \"cnamEs\" },\n Comment = \"comment\",\n CustomErrorResponses = new [] { new CustomErrorResponseProperty {\n ErrorCode = 123,\n\n // the properties below are optional\n ErrorCachingMinTtl = 123,\n ResponseCode = 123,\n ResponsePagePath = \"responsePagePath\"\n } },\n CustomOrigin = new LegacyCustomOriginProperty {\n DnsName = \"dnsName\",\n OriginProtocolPolicy = \"originProtocolPolicy\",\n OriginSslProtocols = new [] { \"originSslProtocols\" },\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123\n },\n DefaultRootObject = \"defaultRootObject\",\n HttpVersion = \"httpVersion\",\n Ipv6Enabled = false,\n Logging = new LoggingProperty {\n Bucket = \"bucket\",\n\n // the properties below are optional\n IncludeCookies = false,\n Prefix = \"prefix\"\n },\n OriginGroups = new OriginGroupsProperty {\n Quantity = 123,\n\n // the properties below are optional\n Items = new [] { new OriginGroupProperty {\n FailoverCriteria = new OriginGroupFailoverCriteriaProperty {\n StatusCodes = new StatusCodesProperty {\n Items = new [] { 123 },\n Quantity = 123\n }\n },\n Id = \"id\",\n Members = new OriginGroupMembersProperty {\n Items = new [] { new OriginGroupMemberProperty {\n OriginId = \"originId\"\n } },\n Quantity = 123\n }\n } }\n },\n Origins = new [] { new OriginProperty {\n DomainName = \"domainName\",\n Id = \"id\",\n\n // the properties below are optional\n ConnectionAttempts = 123,\n ConnectionTimeout = 123,\n CustomOriginConfig = new CustomOriginConfigProperty {\n OriginProtocolPolicy = \"originProtocolPolicy\",\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123,\n OriginKeepaliveTimeout = 123,\n OriginReadTimeout = 123,\n OriginSslProtocols = new [] { \"originSslProtocols\" }\n },\n OriginAccessControlId = \"originAccessControlId\",\n OriginCustomHeaders = new [] { new OriginCustomHeaderProperty {\n HeaderName = \"headerName\",\n HeaderValue = \"headerValue\"\n } },\n OriginPath = \"originPath\",\n OriginShield = new OriginShieldProperty {\n Enabled = false,\n OriginShieldRegion = \"originShieldRegion\"\n },\n S3OriginConfig = new S3OriginConfigProperty {\n OriginAccessIdentity = \"originAccessIdentity\"\n }\n } },\n PriceClass = \"priceClass\",\n Restrictions = new RestrictionsProperty {\n GeoRestriction = new GeoRestrictionProperty {\n RestrictionType = \"restrictionType\",\n\n // the properties below are optional\n Locations = new [] { \"locations\" }\n }\n },\n S3Origin = new LegacyS3OriginProperty {\n DnsName = \"dnsName\",\n\n // the properties below are optional\n OriginAccessIdentity = \"originAccessIdentity\"\n },\n ViewerCertificate = new ViewerCertificateProperty {\n AcmCertificateArn = \"acmCertificateArn\",\n CloudFrontDefaultCertificate = false,\n IamCertificateId = \"iamCertificateId\",\n MinimumProtocolVersion = \"minimumProtocolVersion\",\n SslSupportMethod = \"sslSupportMethod\"\n },\n WebAclId = \"webAclId\"\n};",
4305 "version": "1"
4306 },
4307 "java": {
4308 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nDistributionConfigProperty distributionConfigProperty = DistributionConfigProperty.builder()\n .defaultCacheBehavior(DefaultCacheBehaviorProperty.builder()\n .targetOriginId(\"targetOriginId\")\n .viewerProtocolPolicy(\"viewerProtocolPolicy\")\n\n // the properties below are optional\n .allowedMethods(List.of(\"allowedMethods\"))\n .cachedMethods(List.of(\"cachedMethods\"))\n .cachePolicyId(\"cachePolicyId\")\n .compress(false)\n .defaultTtl(123)\n .fieldLevelEncryptionId(\"fieldLevelEncryptionId\")\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build()))\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build()))\n .maxTtl(123)\n .minTtl(123)\n .originRequestPolicyId(\"originRequestPolicyId\")\n .realtimeLogConfigArn(\"realtimeLogConfigArn\")\n .responseHeadersPolicyId(\"responseHeadersPolicyId\")\n .smoothStreaming(false)\n .trustedKeyGroups(List.of(\"trustedKeyGroups\"))\n .trustedSigners(List.of(\"trustedSigners\"))\n .build())\n .enabled(false)\n\n // the properties below are optional\n .aliases(List.of(\"aliases\"))\n .cacheBehaviors(List.of(CacheBehaviorProperty.builder()\n .pathPattern(\"pathPattern\")\n .targetOriginId(\"targetOriginId\")\n .viewerProtocolPolicy(\"viewerProtocolPolicy\")\n\n // the properties below are optional\n .allowedMethods(List.of(\"allowedMethods\"))\n .cachedMethods(List.of(\"cachedMethods\"))\n .cachePolicyId(\"cachePolicyId\")\n .compress(false)\n .defaultTtl(123)\n .fieldLevelEncryptionId(\"fieldLevelEncryptionId\")\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build()))\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build()))\n .maxTtl(123)\n .minTtl(123)\n .originRequestPolicyId(\"originRequestPolicyId\")\n .realtimeLogConfigArn(\"realtimeLogConfigArn\")\n .responseHeadersPolicyId(\"responseHeadersPolicyId\")\n .smoothStreaming(false)\n .trustedKeyGroups(List.of(\"trustedKeyGroups\"))\n .trustedSigners(List.of(\"trustedSigners\"))\n .build()))\n .cnamEs(List.of(\"cnamEs\"))\n .comment(\"comment\")\n .customErrorResponses(List.of(CustomErrorResponseProperty.builder()\n .errorCode(123)\n\n // the properties below are optional\n .errorCachingMinTtl(123)\n .responseCode(123)\n .responsePagePath(\"responsePagePath\")\n .build()))\n .customOrigin(LegacyCustomOriginProperty.builder()\n .dnsName(\"dnsName\")\n .originProtocolPolicy(\"originProtocolPolicy\")\n .originSslProtocols(List.of(\"originSslProtocols\"))\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .build())\n .defaultRootObject(\"defaultRootObject\")\n .httpVersion(\"httpVersion\")\n .ipv6Enabled(false)\n .logging(LoggingProperty.builder()\n .bucket(\"bucket\")\n\n // the properties below are optional\n .includeCookies(false)\n .prefix(\"prefix\")\n .build())\n .originGroups(OriginGroupsProperty.builder()\n .quantity(123)\n\n // the properties below are optional\n .items(List.of(OriginGroupProperty.builder()\n .failoverCriteria(OriginGroupFailoverCriteriaProperty.builder()\n .statusCodes(StatusCodesProperty.builder()\n .items(List.of(123))\n .quantity(123)\n .build())\n .build())\n .id(\"id\")\n .members(OriginGroupMembersProperty.builder()\n .items(List.of(OriginGroupMemberProperty.builder()\n .originId(\"originId\")\n .build()))\n .quantity(123)\n .build())\n .build()))\n .build())\n .origins(List.of(OriginProperty.builder()\n .domainName(\"domainName\")\n .id(\"id\")\n\n // the properties below are optional\n .connectionAttempts(123)\n .connectionTimeout(123)\n .customOriginConfig(CustomOriginConfigProperty.builder()\n .originProtocolPolicy(\"originProtocolPolicy\")\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .originKeepaliveTimeout(123)\n .originReadTimeout(123)\n .originSslProtocols(List.of(\"originSslProtocols\"))\n .build())\n .originAccessControlId(\"originAccessControlId\")\n .originCustomHeaders(List.of(OriginCustomHeaderProperty.builder()\n .headerName(\"headerName\")\n .headerValue(\"headerValue\")\n .build()))\n .originPath(\"originPath\")\n .originShield(OriginShieldProperty.builder()\n .enabled(false)\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .s3OriginConfig(S3OriginConfigProperty.builder()\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .build()))\n .priceClass(\"priceClass\")\n .restrictions(RestrictionsProperty.builder()\n .geoRestriction(GeoRestrictionProperty.builder()\n .restrictionType(\"restrictionType\")\n\n // the properties below are optional\n .locations(List.of(\"locations\"))\n .build())\n .build())\n .s3Origin(LegacyS3OriginProperty.builder()\n .dnsName(\"dnsName\")\n\n // the properties below are optional\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .viewerCertificate(ViewerCertificateProperty.builder()\n .acmCertificateArn(\"acmCertificateArn\")\n .cloudFrontDefaultCertificate(false)\n .iamCertificateId(\"iamCertificateId\")\n .minimumProtocolVersion(\"minimumProtocolVersion\")\n .sslSupportMethod(\"sslSupportMethod\")\n .build())\n .webAclId(\"webAclId\")\n .build();",
4309 "version": "1"
4310 },
4311 "go": {
4312 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ndistributionConfigProperty := &distributionConfigProperty{\n\tdefaultCacheBehavior: &defaultCacheBehaviorProperty{\n\t\ttargetOriginId: jsii.String(\"targetOriginId\"),\n\t\tviewerProtocolPolicy: jsii.String(\"viewerProtocolPolicy\"),\n\n\t\t// the properties below are optional\n\t\tallowedMethods: []*string{\n\t\t\tjsii.String(\"allowedMethods\"),\n\t\t},\n\t\tcachedMethods: []*string{\n\t\t\tjsii.String(\"cachedMethods\"),\n\t\t},\n\t\tcachePolicyId: jsii.String(\"cachePolicyId\"),\n\t\tcompress: jsii.Boolean(false),\n\t\tdefaultTtl: jsii.Number(123),\n\t\tfieldLevelEncryptionId: jsii.String(\"fieldLevelEncryptionId\"),\n\t\tforwardedValues: &forwardedValuesProperty{\n\t\t\tqueryString: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tcookies: &cookiesProperty{\n\t\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\twhitelistedNames: []*string{\n\t\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\theaders: []*string{\n\t\t\t\tjsii.String(\"headers\"),\n\t\t\t},\n\t\t\tqueryStringCacheKeys: []*string{\n\t\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t\t},\n\t\t},\n\t\tfunctionAssociations: []interface{}{\n\t\t\t&functionAssociationProperty{\n\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\t\t\t},\n\t\t},\n\t\tlambdaFunctionAssociations: []interface{}{\n\t\t\t&lambdaFunctionAssociationProperty{\n\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\t\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n\t\t\t},\n\t\t},\n\t\tmaxTtl: jsii.Number(123),\n\t\tminTtl: jsii.Number(123),\n\t\toriginRequestPolicyId: jsii.String(\"originRequestPolicyId\"),\n\t\trealtimeLogConfigArn: jsii.String(\"realtimeLogConfigArn\"),\n\t\tresponseHeadersPolicyId: jsii.String(\"responseHeadersPolicyId\"),\n\t\tsmoothStreaming: jsii.Boolean(false),\n\t\ttrustedKeyGroups: []*string{\n\t\t\tjsii.String(\"trustedKeyGroups\"),\n\t\t},\n\t\ttrustedSigners: []*string{\n\t\t\tjsii.String(\"trustedSigners\"),\n\t\t},\n\t},\n\tenabled: jsii.Boolean(false),\n\n\t// the properties below are optional\n\taliases: []*string{\n\t\tjsii.String(\"aliases\"),\n\t},\n\tcacheBehaviors: []interface{}{\n\t\t&cacheBehaviorProperty{\n\t\t\tpathPattern: jsii.String(\"pathPattern\"),\n\t\t\ttargetOriginId: jsii.String(\"targetOriginId\"),\n\t\t\tviewerProtocolPolicy: jsii.String(\"viewerProtocolPolicy\"),\n\n\t\t\t// the properties below are optional\n\t\t\tallowedMethods: []*string{\n\t\t\t\tjsii.String(\"allowedMethods\"),\n\t\t\t},\n\t\t\tcachedMethods: []*string{\n\t\t\t\tjsii.String(\"cachedMethods\"),\n\t\t\t},\n\t\t\tcachePolicyId: jsii.String(\"cachePolicyId\"),\n\t\t\tcompress: jsii.Boolean(false),\n\t\t\tdefaultTtl: jsii.Number(123),\n\t\t\tfieldLevelEncryptionId: jsii.String(\"fieldLevelEncryptionId\"),\n\t\t\tforwardedValues: &forwardedValuesProperty{\n\t\t\t\tqueryString: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcookies: &cookiesProperty{\n\t\t\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\twhitelistedNames: []*string{\n\t\t\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\theaders: []*string{\n\t\t\t\t\tjsii.String(\"headers\"),\n\t\t\t\t},\n\t\t\t\tqueryStringCacheKeys: []*string{\n\t\t\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tfunctionAssociations: []interface{}{\n\t\t\t\t&functionAssociationProperty{\n\t\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tlambdaFunctionAssociations: []interface{}{\n\t\t\t\t&lambdaFunctionAssociationProperty{\n\t\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\t\t\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tmaxTtl: jsii.Number(123),\n\t\t\tminTtl: jsii.Number(123),\n\t\t\toriginRequestPolicyId: jsii.String(\"originRequestPolicyId\"),\n\t\t\trealtimeLogConfigArn: jsii.String(\"realtimeLogConfigArn\"),\n\t\t\tresponseHeadersPolicyId: jsii.String(\"responseHeadersPolicyId\"),\n\t\t\tsmoothStreaming: jsii.Boolean(false),\n\t\t\ttrustedKeyGroups: []*string{\n\t\t\t\tjsii.String(\"trustedKeyGroups\"),\n\t\t\t},\n\t\t\ttrustedSigners: []*string{\n\t\t\t\tjsii.String(\"trustedSigners\"),\n\t\t\t},\n\t\t},\n\t},\n\tcnamEs: []*string{\n\t\tjsii.String(\"cnamEs\"),\n\t},\n\tcomment: jsii.String(\"comment\"),\n\tcustomErrorResponses: []interface{}{\n\t\t&customErrorResponseProperty{\n\t\t\terrorCode: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\terrorCachingMinTtl: jsii.Number(123),\n\t\t\tresponseCode: jsii.Number(123),\n\t\t\tresponsePagePath: jsii.String(\"responsePagePath\"),\n\t\t},\n\t},\n\tcustomOrigin: &legacyCustomOriginProperty{\n\t\tdnsName: jsii.String(\"dnsName\"),\n\t\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\t\toriginSslProtocols: []*string{\n\t\t\tjsii.String(\"originSslProtocols\"),\n\t\t},\n\n\t\t// the properties below are optional\n\t\thttpPort: jsii.Number(123),\n\t\thttpsPort: jsii.Number(123),\n\t},\n\tdefaultRootObject: jsii.String(\"defaultRootObject\"),\n\thttpVersion: jsii.String(\"httpVersion\"),\n\tipv6Enabled: jsii.Boolean(false),\n\tlogging: &loggingProperty{\n\t\tbucket: jsii.String(\"bucket\"),\n\n\t\t// the properties below are optional\n\t\tincludeCookies: jsii.Boolean(false),\n\t\tprefix: jsii.String(\"prefix\"),\n\t},\n\toriginGroups: &originGroupsProperty{\n\t\tquantity: jsii.Number(123),\n\n\t\t// the properties below are optional\n\t\titems: []interface{}{\n\t\t\t&originGroupProperty{\n\t\t\t\tfailoverCriteria: &originGroupFailoverCriteriaProperty{\n\t\t\t\t\tstatusCodes: &statusCodesProperty{\n\t\t\t\t\t\titems: []interface{}{\n\t\t\t\t\t\t\tjsii.Number(123),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tquantity: jsii.Number(123),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tid: jsii.String(\"id\"),\n\t\t\t\tmembers: &originGroupMembersProperty{\n\t\t\t\t\titems: []interface{}{\n\t\t\t\t\t\t&originGroupMemberProperty{\n\t\t\t\t\t\t\toriginId: jsii.String(\"originId\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tquantity: jsii.Number(123),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\torigins: []interface{}{\n\t\t&originProperty{\n\t\t\tdomainName: jsii.String(\"domainName\"),\n\t\t\tid: jsii.String(\"id\"),\n\n\t\t\t// the properties below are optional\n\t\t\tconnectionAttempts: jsii.Number(123),\n\t\t\tconnectionTimeout: jsii.Number(123),\n\t\t\tcustomOriginConfig: &customOriginConfigProperty{\n\t\t\t\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\thttpPort: jsii.Number(123),\n\t\t\t\thttpsPort: jsii.Number(123),\n\t\t\t\toriginKeepaliveTimeout: jsii.Number(123),\n\t\t\t\toriginReadTimeout: jsii.Number(123),\n\t\t\t\toriginSslProtocols: []*string{\n\t\t\t\t\tjsii.String(\"originSslProtocols\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\toriginAccessControlId: jsii.String(\"originAccessControlId\"),\n\t\t\toriginCustomHeaders: []interface{}{\n\t\t\t\t&originCustomHeaderProperty{\n\t\t\t\t\theaderName: jsii.String(\"headerName\"),\n\t\t\t\t\theaderValue: jsii.String(\"headerValue\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\toriginPath: jsii.String(\"originPath\"),\n\t\t\toriginShield: &originShieldProperty{\n\t\t\t\tenabled: jsii.Boolean(false),\n\t\t\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t\t\t},\n\t\t\ts3OriginConfig: &s3OriginConfigProperty{\n\t\t\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t\t\t},\n\t\t},\n\t},\n\tpriceClass: jsii.String(\"priceClass\"),\n\trestrictions: &restrictionsProperty{\n\t\tgeoRestriction: &geoRestrictionProperty{\n\t\t\trestrictionType: jsii.String(\"restrictionType\"),\n\n\t\t\t// the properties below are optional\n\t\t\tlocations: []*string{\n\t\t\t\tjsii.String(\"locations\"),\n\t\t\t},\n\t\t},\n\t},\n\ts3Origin: &legacyS3OriginProperty{\n\t\tdnsName: jsii.String(\"dnsName\"),\n\n\t\t// the properties below are optional\n\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t},\n\tviewerCertificate: &viewerCertificateProperty{\n\t\tacmCertificateArn: jsii.String(\"acmCertificateArn\"),\n\t\tcloudFrontDefaultCertificate: jsii.Boolean(false),\n\t\tiamCertificateId: jsii.String(\"iamCertificateId\"),\n\t\tminimumProtocolVersion: jsii.String(\"minimumProtocolVersion\"),\n\t\tsslSupportMethod: jsii.String(\"sslSupportMethod\"),\n\t},\n\twebAclId: jsii.String(\"webAclId\"),\n}",
4313 "version": "1"
4314 },
4315 "$": {
4316 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst distributionConfigProperty: cloudfront.CfnDistribution.DistributionConfigProperty = {\n defaultCacheBehavior: {\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n },\n enabled: false,\n\n // the properties below are optional\n aliases: ['aliases'],\n cacheBehaviors: [{\n pathPattern: 'pathPattern',\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n }],\n cnamEs: ['cnamEs'],\n comment: 'comment',\n customErrorResponses: [{\n errorCode: 123,\n\n // the properties below are optional\n errorCachingMinTtl: 123,\n responseCode: 123,\n responsePagePath: 'responsePagePath',\n }],\n customOrigin: {\n dnsName: 'dnsName',\n originProtocolPolicy: 'originProtocolPolicy',\n originSslProtocols: ['originSslProtocols'],\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n },\n defaultRootObject: 'defaultRootObject',\n httpVersion: 'httpVersion',\n ipv6Enabled: false,\n logging: {\n bucket: 'bucket',\n\n // the properties below are optional\n includeCookies: false,\n prefix: 'prefix',\n },\n originGroups: {\n quantity: 123,\n\n // the properties below are optional\n items: [{\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n }],\n },\n origins: [{\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n }],\n priceClass: 'priceClass',\n restrictions: {\n geoRestriction: {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n },\n },\n s3Origin: {\n dnsName: 'dnsName',\n\n // the properties below are optional\n originAccessIdentity: 'originAccessIdentity',\n },\n viewerCertificate: {\n acmCertificateArn: 'acmCertificateArn',\n cloudFrontDefaultCertificate: false,\n iamCertificateId: 'iamCertificateId',\n minimumProtocolVersion: 'minimumProtocolVersion',\n sslSupportMethod: 'sslSupportMethod',\n },\n webAclId: 'webAclId',\n};",
4317 "version": "0"
4318 }
4319 },
4320 "location": {
4321 "api": {
4322 "api": "type",
4323 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.DistributionConfigProperty"
4324 },
4325 "field": {
4326 "field": "example"
4327 }
4328 },
4329 "didCompile": true,
4330 "fqnsReferenced": [
4331 "@aws-cdk/aws-cloudfront.CfnDistribution.DistributionConfigProperty"
4332 ],
4333 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst distributionConfigProperty: cloudfront.CfnDistribution.DistributionConfigProperty = {\n defaultCacheBehavior: {\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n },\n enabled: false,\n\n // the properties below are optional\n aliases: ['aliases'],\n cacheBehaviors: [{\n pathPattern: 'pathPattern',\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n }],\n cnamEs: ['cnamEs'],\n comment: 'comment',\n customErrorResponses: [{\n errorCode: 123,\n\n // the properties below are optional\n errorCachingMinTtl: 123,\n responseCode: 123,\n responsePagePath: 'responsePagePath',\n }],\n customOrigin: {\n dnsName: 'dnsName',\n originProtocolPolicy: 'originProtocolPolicy',\n originSslProtocols: ['originSslProtocols'],\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n },\n defaultRootObject: 'defaultRootObject',\n httpVersion: 'httpVersion',\n ipv6Enabled: false,\n logging: {\n bucket: 'bucket',\n\n // the properties below are optional\n includeCookies: false,\n prefix: 'prefix',\n },\n originGroups: {\n quantity: 123,\n\n // the properties below are optional\n items: [{\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n }],\n },\n origins: [{\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n }],\n priceClass: 'priceClass',\n restrictions: {\n geoRestriction: {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n },\n },\n s3Origin: {\n dnsName: 'dnsName',\n\n // the properties below are optional\n originAccessIdentity: 'originAccessIdentity',\n },\n viewerCertificate: {\n acmCertificateArn: 'acmCertificateArn',\n cloudFrontDefaultCertificate: false,\n iamCertificateId: 'iamCertificateId',\n minimumProtocolVersion: 'minimumProtocolVersion',\n sslSupportMethod: 'sslSupportMethod',\n },\n webAclId: 'webAclId',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4334 "syntaxKindCounter": {
4335 "8": 21,
4336 "10": 73,
4337 "75": 139,
4338 "91": 13,
4339 "153": 2,
4340 "169": 1,
4341 "192": 30,
4342 "193": 29,
4343 "225": 1,
4344 "242": 1,
4345 "243": 1,
4346 "254": 1,
4347 "255": 1,
4348 "256": 1,
4349 "281": 134,
4350 "290": 1
4351 },
4352 "fqnsFingerprint": "d677848aee6fe4695c98dd928bb0e5a95ce2c2230a6941c3002e289ed8e7ca39"
4353 },
4354 "c56880a1ff8fa5907975ce4d608e0863d295f8496856d3a96f396e5cdc9e4046": {
4355 "translations": {
4356 "python": {
4357 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nforwarded_values_property = cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n)",
4358 "version": "2"
4359 },
4360 "csharp": {
4361 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nForwardedValuesProperty forwardedValuesProperty = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n};",
4362 "version": "1"
4363 },
4364 "java": {
4365 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nForwardedValuesProperty forwardedValuesProperty = ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build();",
4366 "version": "1"
4367 },
4368 "go": {
4369 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nforwardedValuesProperty := &forwardedValuesProperty{\n\tqueryString: jsii.Boolean(false),\n\n\t// the properties below are optional\n\tcookies: &cookiesProperty{\n\t\tforward: jsii.String(\"forward\"),\n\n\t\t// the properties below are optional\n\t\twhitelistedNames: []*string{\n\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t},\n\t},\n\theaders: []*string{\n\t\tjsii.String(\"headers\"),\n\t},\n\tqueryStringCacheKeys: []*string{\n\t\tjsii.String(\"queryStringCacheKeys\"),\n\t},\n}",
4370 "version": "1"
4371 },
4372 "$": {
4373 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst forwardedValuesProperty: cloudfront.CfnDistribution.ForwardedValuesProperty = {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n};",
4374 "version": "0"
4375 }
4376 },
4377 "location": {
4378 "api": {
4379 "api": "type",
4380 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.ForwardedValuesProperty"
4381 },
4382 "field": {
4383 "field": "example"
4384 }
4385 },
4386 "didCompile": true,
4387 "fqnsReferenced": [
4388 "@aws-cdk/aws-cloudfront.CfnDistribution.ForwardedValuesProperty"
4389 ],
4390 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst forwardedValuesProperty: cloudfront.CfnDistribution.ForwardedValuesProperty = {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4391 "syntaxKindCounter": {
4392 "10": 5,
4393 "75": 11,
4394 "91": 1,
4395 "153": 2,
4396 "169": 1,
4397 "192": 3,
4398 "193": 2,
4399 "225": 1,
4400 "242": 1,
4401 "243": 1,
4402 "254": 1,
4403 "255": 1,
4404 "256": 1,
4405 "281": 6,
4406 "290": 1
4407 },
4408 "fqnsFingerprint": "c6a38e1e2f911ec2160fee68f006e70c045fa4f1031bb700f57374f8842a6de3"
4409 },
4410 "ed7e5d2b3c3732831d059a69e46b4cf7285c1466cf0d2853fd8d4ec6f429596b": {
4411 "translations": {
4412 "python": {
4413 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nfunction_association_property = cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n)",
4414 "version": "2"
4415 },
4416 "csharp": {
4417 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFunctionAssociationProperty functionAssociationProperty = new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n};",
4418 "version": "1"
4419 },
4420 "java": {
4421 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFunctionAssociationProperty functionAssociationProperty = FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build();",
4422 "version": "1"
4423 },
4424 "go": {
4425 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nfunctionAssociationProperty := &functionAssociationProperty{\n\teventType: jsii.String(\"eventType\"),\n\tfunctionArn: jsii.String(\"functionArn\"),\n}",
4426 "version": "1"
4427 },
4428 "$": {
4429 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst functionAssociationProperty: cloudfront.CfnDistribution.FunctionAssociationProperty = {\n eventType: 'eventType',\n functionArn: 'functionArn',\n};",
4430 "version": "0"
4431 }
4432 },
4433 "location": {
4434 "api": {
4435 "api": "type",
4436 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.FunctionAssociationProperty"
4437 },
4438 "field": {
4439 "field": "example"
4440 }
4441 },
4442 "didCompile": true,
4443 "fqnsReferenced": [
4444 "@aws-cdk/aws-cloudfront.CfnDistribution.FunctionAssociationProperty"
4445 ],
4446 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst functionAssociationProperty: cloudfront.CfnDistribution.FunctionAssociationProperty = {\n eventType: 'eventType',\n functionArn: 'functionArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4447 "syntaxKindCounter": {
4448 "10": 3,
4449 "75": 7,
4450 "153": 2,
4451 "169": 1,
4452 "193": 1,
4453 "225": 1,
4454 "242": 1,
4455 "243": 1,
4456 "254": 1,
4457 "255": 1,
4458 "256": 1,
4459 "281": 2,
4460 "290": 1
4461 },
4462 "fqnsFingerprint": "bb00248e2fd0e993c05027a98d8927d88c5ee994a1308faeaa456df58f10491e"
4463 },
4464 "02548c1d241560ac02f5b7a5a1bfd04b9fa0d7280dfa2aad8c6d7e04c1d3fa0b": {
4465 "translations": {
4466 "python": {
4467 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ngeo_restriction_property = cloudfront.CfnDistribution.GeoRestrictionProperty(\n restriction_type=\"restrictionType\",\n\n # the properties below are optional\n locations=[\"locations\"]\n)",
4468 "version": "2"
4469 },
4470 "csharp": {
4471 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nGeoRestrictionProperty geoRestrictionProperty = new GeoRestrictionProperty {\n RestrictionType = \"restrictionType\",\n\n // the properties below are optional\n Locations = new [] { \"locations\" }\n};",
4472 "version": "1"
4473 },
4474 "java": {
4475 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nGeoRestrictionProperty geoRestrictionProperty = GeoRestrictionProperty.builder()\n .restrictionType(\"restrictionType\")\n\n // the properties below are optional\n .locations(List.of(\"locations\"))\n .build();",
4476 "version": "1"
4477 },
4478 "go": {
4479 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ngeoRestrictionProperty := &geoRestrictionProperty{\n\trestrictionType: jsii.String(\"restrictionType\"),\n\n\t// the properties below are optional\n\tlocations: []*string{\n\t\tjsii.String(\"locations\"),\n\t},\n}",
4480 "version": "1"
4481 },
4482 "$": {
4483 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst geoRestrictionProperty: cloudfront.CfnDistribution.GeoRestrictionProperty = {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n};",
4484 "version": "0"
4485 }
4486 },
4487 "location": {
4488 "api": {
4489 "api": "type",
4490 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.GeoRestrictionProperty"
4491 },
4492 "field": {
4493 "field": "example"
4494 }
4495 },
4496 "didCompile": true,
4497 "fqnsReferenced": [
4498 "@aws-cdk/aws-cloudfront.CfnDistribution.GeoRestrictionProperty"
4499 ],
4500 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst geoRestrictionProperty: cloudfront.CfnDistribution.GeoRestrictionProperty = {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4501 "syntaxKindCounter": {
4502 "10": 3,
4503 "75": 7,
4504 "153": 2,
4505 "169": 1,
4506 "192": 1,
4507 "193": 1,
4508 "225": 1,
4509 "242": 1,
4510 "243": 1,
4511 "254": 1,
4512 "255": 1,
4513 "256": 1,
4514 "281": 2,
4515 "290": 1
4516 },
4517 "fqnsFingerprint": "23d0566d27efaef68d3a44ad1a663b97bdf73fc6b8bc2c4d3f325d0264894dc8"
4518 },
4519 "1e888540f5c577391115434f9c2194f6546560b54ca2a4dcf4230401f610c408": {
4520 "translations": {
4521 "python": {
4522 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nlambda_function_association_property = cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n)",
4523 "version": "2"
4524 },
4525 "csharp": {
4526 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nLambdaFunctionAssociationProperty lambdaFunctionAssociationProperty = new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n};",
4527 "version": "1"
4528 },
4529 "java": {
4530 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nLambdaFunctionAssociationProperty lambdaFunctionAssociationProperty = LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build();",
4531 "version": "1"
4532 },
4533 "go": {
4534 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nlambdaFunctionAssociationProperty := &lambdaFunctionAssociationProperty{\n\teventType: jsii.String(\"eventType\"),\n\tincludeBody: jsii.Boolean(false),\n\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n}",
4535 "version": "1"
4536 },
4537 "$": {
4538 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst lambdaFunctionAssociationProperty: cloudfront.CfnDistribution.LambdaFunctionAssociationProperty = {\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n};",
4539 "version": "0"
4540 }
4541 },
4542 "location": {
4543 "api": {
4544 "api": "type",
4545 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.LambdaFunctionAssociationProperty"
4546 },
4547 "field": {
4548 "field": "example"
4549 }
4550 },
4551 "didCompile": true,
4552 "fqnsReferenced": [
4553 "@aws-cdk/aws-cloudfront.CfnDistribution.LambdaFunctionAssociationProperty"
4554 ],
4555 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst lambdaFunctionAssociationProperty: cloudfront.CfnDistribution.LambdaFunctionAssociationProperty = {\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4556 "syntaxKindCounter": {
4557 "10": 3,
4558 "75": 8,
4559 "91": 1,
4560 "153": 2,
4561 "169": 1,
4562 "193": 1,
4563 "225": 1,
4564 "242": 1,
4565 "243": 1,
4566 "254": 1,
4567 "255": 1,
4568 "256": 1,
4569 "281": 3,
4570 "290": 1
4571 },
4572 "fqnsFingerprint": "5fff8d377df08f39994d39fb124972bbd60be522a985ea8e0738469bca3173f6"
4573 },
4574 "13aabea00ba50375a6b75bed0de54de1ba973cea5026ce0ce355839a5da85f71": {
4575 "translations": {
4576 "python": {
4577 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nlegacy_custom_origin_property = cloudfront.CfnDistribution.LegacyCustomOriginProperty(\n dns_name=\"dnsName\",\n origin_protocol_policy=\"originProtocolPolicy\",\n origin_ssl_protocols=[\"originSslProtocols\"],\n\n # the properties below are optional\n http_port=123,\n https_port=123\n)",
4578 "version": "2"
4579 },
4580 "csharp": {
4581 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nLegacyCustomOriginProperty legacyCustomOriginProperty = new LegacyCustomOriginProperty {\n DnsName = \"dnsName\",\n OriginProtocolPolicy = \"originProtocolPolicy\",\n OriginSslProtocols = new [] { \"originSslProtocols\" },\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123\n};",
4582 "version": "1"
4583 },
4584 "java": {
4585 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nLegacyCustomOriginProperty legacyCustomOriginProperty = LegacyCustomOriginProperty.builder()\n .dnsName(\"dnsName\")\n .originProtocolPolicy(\"originProtocolPolicy\")\n .originSslProtocols(List.of(\"originSslProtocols\"))\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .build();",
4586 "version": "1"
4587 },
4588 "go": {
4589 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nlegacyCustomOriginProperty := &legacyCustomOriginProperty{\n\tdnsName: jsii.String(\"dnsName\"),\n\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\toriginSslProtocols: []*string{\n\t\tjsii.String(\"originSslProtocols\"),\n\t},\n\n\t// the properties below are optional\n\thttpPort: jsii.Number(123),\n\thttpsPort: jsii.Number(123),\n}",
4590 "version": "1"
4591 },
4592 "$": {
4593 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst legacyCustomOriginProperty: cloudfront.CfnDistribution.LegacyCustomOriginProperty = {\n dnsName: 'dnsName',\n originProtocolPolicy: 'originProtocolPolicy',\n originSslProtocols: ['originSslProtocols'],\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n};",
4594 "version": "0"
4595 }
4596 },
4597 "location": {
4598 "api": {
4599 "api": "type",
4600 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.LegacyCustomOriginProperty"
4601 },
4602 "field": {
4603 "field": "example"
4604 }
4605 },
4606 "didCompile": true,
4607 "fqnsReferenced": [
4608 "@aws-cdk/aws-cloudfront.CfnDistribution.LegacyCustomOriginProperty"
4609 ],
4610 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst legacyCustomOriginProperty: cloudfront.CfnDistribution.LegacyCustomOriginProperty = {\n dnsName: 'dnsName',\n originProtocolPolicy: 'originProtocolPolicy',\n originSslProtocols: ['originSslProtocols'],\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4611 "syntaxKindCounter": {
4612 "8": 2,
4613 "10": 4,
4614 "75": 10,
4615 "153": 2,
4616 "169": 1,
4617 "192": 1,
4618 "193": 1,
4619 "225": 1,
4620 "242": 1,
4621 "243": 1,
4622 "254": 1,
4623 "255": 1,
4624 "256": 1,
4625 "281": 5,
4626 "290": 1
4627 },
4628 "fqnsFingerprint": "2c9bf30b061526287a2a5fd39387d016e2285a911412027f97fb4ddb03f7d8fd"
4629 },
4630 "5a6dd8ec04dee87f3681472acdad98e422f6a45bcf29f4a7e4ce1d991e754792": {
4631 "translations": {
4632 "python": {
4633 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nlegacy_s3_origin_property = cloudfront.CfnDistribution.LegacyS3OriginProperty(\n dns_name=\"dnsName\",\n\n # the properties below are optional\n origin_access_identity=\"originAccessIdentity\"\n)",
4634 "version": "2"
4635 },
4636 "csharp": {
4637 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nLegacyS3OriginProperty legacyS3OriginProperty = new LegacyS3OriginProperty {\n DnsName = \"dnsName\",\n\n // the properties below are optional\n OriginAccessIdentity = \"originAccessIdentity\"\n};",
4638 "version": "1"
4639 },
4640 "java": {
4641 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nLegacyS3OriginProperty legacyS3OriginProperty = LegacyS3OriginProperty.builder()\n .dnsName(\"dnsName\")\n\n // the properties below are optional\n .originAccessIdentity(\"originAccessIdentity\")\n .build();",
4642 "version": "1"
4643 },
4644 "go": {
4645 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nlegacyS3OriginProperty := &legacyS3OriginProperty{\n\tdnsName: jsii.String(\"dnsName\"),\n\n\t// the properties below are optional\n\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n}",
4646 "version": "1"
4647 },
4648 "$": {
4649 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst legacyS3OriginProperty: cloudfront.CfnDistribution.LegacyS3OriginProperty = {\n dnsName: 'dnsName',\n\n // the properties below are optional\n originAccessIdentity: 'originAccessIdentity',\n};",
4650 "version": "0"
4651 }
4652 },
4653 "location": {
4654 "api": {
4655 "api": "type",
4656 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.LegacyS3OriginProperty"
4657 },
4658 "field": {
4659 "field": "example"
4660 }
4661 },
4662 "didCompile": true,
4663 "fqnsReferenced": [
4664 "@aws-cdk/aws-cloudfront.CfnDistribution.LegacyS3OriginProperty"
4665 ],
4666 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst legacyS3OriginProperty: cloudfront.CfnDistribution.LegacyS3OriginProperty = {\n dnsName: 'dnsName',\n\n // the properties below are optional\n originAccessIdentity: 'originAccessIdentity',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4667 "syntaxKindCounter": {
4668 "10": 3,
4669 "75": 7,
4670 "153": 2,
4671 "169": 1,
4672 "193": 1,
4673 "225": 1,
4674 "242": 1,
4675 "243": 1,
4676 "254": 1,
4677 "255": 1,
4678 "256": 1,
4679 "281": 2,
4680 "290": 1
4681 },
4682 "fqnsFingerprint": "f9be0860aa9685f0d43c4ef8aab08eb2684057e75e9bb5263f3834c4f4a3b059"
4683 },
4684 "f34834230415fe660e9e290d17a1f5d39082d06bdcae14357aaf07a529011064": {
4685 "translations": {
4686 "python": {
4687 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nlogging_property = cloudfront.CfnDistribution.LoggingProperty(\n bucket=\"bucket\",\n\n # the properties below are optional\n include_cookies=False,\n prefix=\"prefix\"\n)",
4688 "version": "2"
4689 },
4690 "csharp": {
4691 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nLoggingProperty loggingProperty = new LoggingProperty {\n Bucket = \"bucket\",\n\n // the properties below are optional\n IncludeCookies = false,\n Prefix = \"prefix\"\n};",
4692 "version": "1"
4693 },
4694 "java": {
4695 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nLoggingProperty loggingProperty = LoggingProperty.builder()\n .bucket(\"bucket\")\n\n // the properties below are optional\n .includeCookies(false)\n .prefix(\"prefix\")\n .build();",
4696 "version": "1"
4697 },
4698 "go": {
4699 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nloggingProperty := &loggingProperty{\n\tbucket: jsii.String(\"bucket\"),\n\n\t// the properties below are optional\n\tincludeCookies: jsii.Boolean(false),\n\tprefix: jsii.String(\"prefix\"),\n}",
4700 "version": "1"
4701 },
4702 "$": {
4703 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst loggingProperty: cloudfront.CfnDistribution.LoggingProperty = {\n bucket: 'bucket',\n\n // the properties below are optional\n includeCookies: false,\n prefix: 'prefix',\n};",
4704 "version": "0"
4705 }
4706 },
4707 "location": {
4708 "api": {
4709 "api": "type",
4710 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.LoggingProperty"
4711 },
4712 "field": {
4713 "field": "example"
4714 }
4715 },
4716 "didCompile": true,
4717 "fqnsReferenced": [
4718 "@aws-cdk/aws-cloudfront.CfnDistribution.LoggingProperty"
4719 ],
4720 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst loggingProperty: cloudfront.CfnDistribution.LoggingProperty = {\n bucket: 'bucket',\n\n // the properties below are optional\n includeCookies: false,\n prefix: 'prefix',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4721 "syntaxKindCounter": {
4722 "10": 3,
4723 "75": 8,
4724 "91": 1,
4725 "153": 2,
4726 "169": 1,
4727 "193": 1,
4728 "225": 1,
4729 "242": 1,
4730 "243": 1,
4731 "254": 1,
4732 "255": 1,
4733 "256": 1,
4734 "281": 3,
4735 "290": 1
4736 },
4737 "fqnsFingerprint": "a87aeb80a5296535a43500e4f0e598e0ef341bec06193b86815658ab303c42e5"
4738 },
4739 "e08616dff891df2db25c527bb4fa389ee0a7b4bc54aebe44bb098445dcdc34d9": {
4740 "translations": {
4741 "python": {
4742 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_custom_header_property = cloudfront.CfnDistribution.OriginCustomHeaderProperty(\n header_name=\"headerName\",\n header_value=\"headerValue\"\n)",
4743 "version": "2"
4744 },
4745 "csharp": {
4746 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginCustomHeaderProperty originCustomHeaderProperty = new OriginCustomHeaderProperty {\n HeaderName = \"headerName\",\n HeaderValue = \"headerValue\"\n};",
4747 "version": "1"
4748 },
4749 "java": {
4750 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginCustomHeaderProperty originCustomHeaderProperty = OriginCustomHeaderProperty.builder()\n .headerName(\"headerName\")\n .headerValue(\"headerValue\")\n .build();",
4751 "version": "1"
4752 },
4753 "go": {
4754 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginCustomHeaderProperty := &originCustomHeaderProperty{\n\theaderName: jsii.String(\"headerName\"),\n\theaderValue: jsii.String(\"headerValue\"),\n}",
4755 "version": "1"
4756 },
4757 "$": {
4758 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originCustomHeaderProperty: cloudfront.CfnDistribution.OriginCustomHeaderProperty = {\n headerName: 'headerName',\n headerValue: 'headerValue',\n};",
4759 "version": "0"
4760 }
4761 },
4762 "location": {
4763 "api": {
4764 "api": "type",
4765 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginCustomHeaderProperty"
4766 },
4767 "field": {
4768 "field": "example"
4769 }
4770 },
4771 "didCompile": true,
4772 "fqnsReferenced": [
4773 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginCustomHeaderProperty"
4774 ],
4775 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originCustomHeaderProperty: cloudfront.CfnDistribution.OriginCustomHeaderProperty = {\n headerName: 'headerName',\n headerValue: 'headerValue',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4776 "syntaxKindCounter": {
4777 "10": 3,
4778 "75": 7,
4779 "153": 2,
4780 "169": 1,
4781 "193": 1,
4782 "225": 1,
4783 "242": 1,
4784 "243": 1,
4785 "254": 1,
4786 "255": 1,
4787 "256": 1,
4788 "281": 2,
4789 "290": 1
4790 },
4791 "fqnsFingerprint": "6525795b03d3be1310c1cabfddec4c3b7247e0b2cb0d448901274c85816c70d3"
4792 },
4793 "34b560e8b8c80df9e0d173cb83ca8092bb0785d285eeb843cab44bf59d98ae47": {
4794 "translations": {
4795 "python": {
4796 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_group_failover_criteria_property = cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty(\n status_codes=cloudfront.CfnDistribution.StatusCodesProperty(\n items=[123],\n quantity=123\n )\n)",
4797 "version": "2"
4798 },
4799 "csharp": {
4800 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginGroupFailoverCriteriaProperty originGroupFailoverCriteriaProperty = new OriginGroupFailoverCriteriaProperty {\n StatusCodes = new StatusCodesProperty {\n Items = new [] { 123 },\n Quantity = 123\n }\n};",
4801 "version": "1"
4802 },
4803 "java": {
4804 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginGroupFailoverCriteriaProperty originGroupFailoverCriteriaProperty = OriginGroupFailoverCriteriaProperty.builder()\n .statusCodes(StatusCodesProperty.builder()\n .items(List.of(123))\n .quantity(123)\n .build())\n .build();",
4805 "version": "1"
4806 },
4807 "go": {
4808 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginGroupFailoverCriteriaProperty := &originGroupFailoverCriteriaProperty{\n\tstatusCodes: &statusCodesProperty{\n\t\titems: []interface{}{\n\t\t\tjsii.Number(123),\n\t\t},\n\t\tquantity: jsii.Number(123),\n\t},\n}",
4809 "version": "1"
4810 },
4811 "$": {
4812 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originGroupFailoverCriteriaProperty: cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty = {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n};",
4813 "version": "0"
4814 }
4815 },
4816 "location": {
4817 "api": {
4818 "api": "type",
4819 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty"
4820 },
4821 "field": {
4822 "field": "example"
4823 }
4824 },
4825 "didCompile": true,
4826 "fqnsReferenced": [
4827 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty"
4828 ],
4829 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originGroupFailoverCriteriaProperty: cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty = {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4830 "syntaxKindCounter": {
4831 "8": 2,
4832 "10": 1,
4833 "75": 8,
4834 "153": 2,
4835 "169": 1,
4836 "192": 1,
4837 "193": 2,
4838 "225": 1,
4839 "242": 1,
4840 "243": 1,
4841 "254": 1,
4842 "255": 1,
4843 "256": 1,
4844 "281": 3,
4845 "290": 1
4846 },
4847 "fqnsFingerprint": "374333513522157811fcba2f92a5d177c19555b24623d1d85987b95e2c57a42d"
4848 },
4849 "7dcfc609247aece5ad5557e788a21ad3da44e341b6c2decf89ad0808bf99ddc3": {
4850 "translations": {
4851 "python": {
4852 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_group_member_property = cloudfront.CfnDistribution.OriginGroupMemberProperty(\n origin_id=\"originId\"\n)",
4853 "version": "2"
4854 },
4855 "csharp": {
4856 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginGroupMemberProperty originGroupMemberProperty = new OriginGroupMemberProperty {\n OriginId = \"originId\"\n};",
4857 "version": "1"
4858 },
4859 "java": {
4860 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginGroupMemberProperty originGroupMemberProperty = OriginGroupMemberProperty.builder()\n .originId(\"originId\")\n .build();",
4861 "version": "1"
4862 },
4863 "go": {
4864 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginGroupMemberProperty := &originGroupMemberProperty{\n\toriginId: jsii.String(\"originId\"),\n}",
4865 "version": "1"
4866 },
4867 "$": {
4868 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originGroupMemberProperty: cloudfront.CfnDistribution.OriginGroupMemberProperty = {\n originId: 'originId',\n};",
4869 "version": "0"
4870 }
4871 },
4872 "location": {
4873 "api": {
4874 "api": "type",
4875 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupMemberProperty"
4876 },
4877 "field": {
4878 "field": "example"
4879 }
4880 },
4881 "didCompile": true,
4882 "fqnsReferenced": [
4883 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupMemberProperty"
4884 ],
4885 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originGroupMemberProperty: cloudfront.CfnDistribution.OriginGroupMemberProperty = {\n originId: 'originId',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4886 "syntaxKindCounter": {
4887 "10": 2,
4888 "75": 6,
4889 "153": 2,
4890 "169": 1,
4891 "193": 1,
4892 "225": 1,
4893 "242": 1,
4894 "243": 1,
4895 "254": 1,
4896 "255": 1,
4897 "256": 1,
4898 "281": 1,
4899 "290": 1
4900 },
4901 "fqnsFingerprint": "0d07beb9a3211b8893578efdee1247644b16f184183d21615c7259fc4938c8aa"
4902 },
4903 "3fd33e91fac705c2fb4f776d9c196c4b47692936336d52d8c951bbf69a287a38": {
4904 "translations": {
4905 "python": {
4906 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_group_members_property = cloudfront.CfnDistribution.OriginGroupMembersProperty(\n items=[cloudfront.CfnDistribution.OriginGroupMemberProperty(\n origin_id=\"originId\"\n )],\n quantity=123\n)",
4907 "version": "2"
4908 },
4909 "csharp": {
4910 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginGroupMembersProperty originGroupMembersProperty = new OriginGroupMembersProperty {\n Items = new [] { new OriginGroupMemberProperty {\n OriginId = \"originId\"\n } },\n Quantity = 123\n};",
4911 "version": "1"
4912 },
4913 "java": {
4914 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginGroupMembersProperty originGroupMembersProperty = OriginGroupMembersProperty.builder()\n .items(List.of(OriginGroupMemberProperty.builder()\n .originId(\"originId\")\n .build()))\n .quantity(123)\n .build();",
4915 "version": "1"
4916 },
4917 "go": {
4918 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginGroupMembersProperty := &originGroupMembersProperty{\n\titems: []interface{}{\n\t\t&originGroupMemberProperty{\n\t\t\toriginId: jsii.String(\"originId\"),\n\t\t},\n\t},\n\tquantity: jsii.Number(123),\n}",
4919 "version": "1"
4920 },
4921 "$": {
4922 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originGroupMembersProperty: cloudfront.CfnDistribution.OriginGroupMembersProperty = {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n};",
4923 "version": "0"
4924 }
4925 },
4926 "location": {
4927 "api": {
4928 "api": "type",
4929 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupMembersProperty"
4930 },
4931 "field": {
4932 "field": "example"
4933 }
4934 },
4935 "didCompile": true,
4936 "fqnsReferenced": [
4937 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupMembersProperty"
4938 ],
4939 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originGroupMembersProperty: cloudfront.CfnDistribution.OriginGroupMembersProperty = {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4940 "syntaxKindCounter": {
4941 "8": 1,
4942 "10": 2,
4943 "75": 8,
4944 "153": 2,
4945 "169": 1,
4946 "192": 1,
4947 "193": 2,
4948 "225": 1,
4949 "242": 1,
4950 "243": 1,
4951 "254": 1,
4952 "255": 1,
4953 "256": 1,
4954 "281": 3,
4955 "290": 1
4956 },
4957 "fqnsFingerprint": "9d59f8f01319a9b2a1782a659df601a23524d58a4be19b524ec94318183ffff1"
4958 },
4959 "fd647fa695d9bf51fde428a65cd54fc553bb854ea8f01197510866229fe6645e": {
4960 "translations": {
4961 "python": {
4962 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_group_property = cloudfront.CfnDistribution.OriginGroupProperty(\n failover_criteria=cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty(\n status_codes=cloudfront.CfnDistribution.StatusCodesProperty(\n items=[123],\n quantity=123\n )\n ),\n id=\"id\",\n members=cloudfront.CfnDistribution.OriginGroupMembersProperty(\n items=[cloudfront.CfnDistribution.OriginGroupMemberProperty(\n origin_id=\"originId\"\n )],\n quantity=123\n )\n)",
4963 "version": "2"
4964 },
4965 "csharp": {
4966 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginGroupProperty originGroupProperty = new OriginGroupProperty {\n FailoverCriteria = new OriginGroupFailoverCriteriaProperty {\n StatusCodes = new StatusCodesProperty {\n Items = new [] { 123 },\n Quantity = 123\n }\n },\n Id = \"id\",\n Members = new OriginGroupMembersProperty {\n Items = new [] { new OriginGroupMemberProperty {\n OriginId = \"originId\"\n } },\n Quantity = 123\n }\n};",
4967 "version": "1"
4968 },
4969 "java": {
4970 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginGroupProperty originGroupProperty = OriginGroupProperty.builder()\n .failoverCriteria(OriginGroupFailoverCriteriaProperty.builder()\n .statusCodes(StatusCodesProperty.builder()\n .items(List.of(123))\n .quantity(123)\n .build())\n .build())\n .id(\"id\")\n .members(OriginGroupMembersProperty.builder()\n .items(List.of(OriginGroupMemberProperty.builder()\n .originId(\"originId\")\n .build()))\n .quantity(123)\n .build())\n .build();",
4971 "version": "1"
4972 },
4973 "go": {
4974 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginGroupProperty := &originGroupProperty{\n\tfailoverCriteria: &originGroupFailoverCriteriaProperty{\n\t\tstatusCodes: &statusCodesProperty{\n\t\t\titems: []interface{}{\n\t\t\t\tjsii.Number(123),\n\t\t\t},\n\t\t\tquantity: jsii.Number(123),\n\t\t},\n\t},\n\tid: jsii.String(\"id\"),\n\tmembers: &originGroupMembersProperty{\n\t\titems: []interface{}{\n\t\t\t&originGroupMemberProperty{\n\t\t\t\toriginId: jsii.String(\"originId\"),\n\t\t\t},\n\t\t},\n\t\tquantity: jsii.Number(123),\n\t},\n}",
4975 "version": "1"
4976 },
4977 "$": {
4978 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originGroupProperty: cloudfront.CfnDistribution.OriginGroupProperty = {\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n};",
4979 "version": "0"
4980 }
4981 },
4982 "location": {
4983 "api": {
4984 "api": "type",
4985 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupProperty"
4986 },
4987 "field": {
4988 "field": "example"
4989 }
4990 },
4991 "didCompile": true,
4992 "fqnsReferenced": [
4993 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupProperty"
4994 ],
4995 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originGroupProperty: cloudfront.CfnDistribution.OriginGroupProperty = {\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
4996 "syntaxKindCounter": {
4997 "8": 3,
4998 "10": 3,
4999 "75": 14,
5000 "153": 2,
5001 "169": 1,
5002 "192": 2,
5003 "193": 5,
5004 "225": 1,
5005 "242": 1,
5006 "243": 1,
5007 "254": 1,
5008 "255": 1,
5009 "256": 1,
5010 "281": 9,
5011 "290": 1
5012 },
5013 "fqnsFingerprint": "ca034165a3b5b56ee8b8c106a7ef61f8b5eda52245ef97336d78bc0aac72577c"
5014 },
5015 "6107954260e6a84f46aedd2ab37449728d81095b9ce97c6f0301bf4987315e18": {
5016 "translations": {
5017 "python": {
5018 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_groups_property = cloudfront.CfnDistribution.OriginGroupsProperty(\n quantity=123,\n\n # the properties below are optional\n items=[cloudfront.CfnDistribution.OriginGroupProperty(\n failover_criteria=cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty(\n status_codes=cloudfront.CfnDistribution.StatusCodesProperty(\n items=[123],\n quantity=123\n )\n ),\n id=\"id\",\n members=cloudfront.CfnDistribution.OriginGroupMembersProperty(\n items=[cloudfront.CfnDistribution.OriginGroupMemberProperty(\n origin_id=\"originId\"\n )],\n quantity=123\n )\n )]\n)",
5019 "version": "2"
5020 },
5021 "csharp": {
5022 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginGroupsProperty originGroupsProperty = new OriginGroupsProperty {\n Quantity = 123,\n\n // the properties below are optional\n Items = new [] { new OriginGroupProperty {\n FailoverCriteria = new OriginGroupFailoverCriteriaProperty {\n StatusCodes = new StatusCodesProperty {\n Items = new [] { 123 },\n Quantity = 123\n }\n },\n Id = \"id\",\n Members = new OriginGroupMembersProperty {\n Items = new [] { new OriginGroupMemberProperty {\n OriginId = \"originId\"\n } },\n Quantity = 123\n }\n } }\n};",
5023 "version": "1"
5024 },
5025 "java": {
5026 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginGroupsProperty originGroupsProperty = OriginGroupsProperty.builder()\n .quantity(123)\n\n // the properties below are optional\n .items(List.of(OriginGroupProperty.builder()\n .failoverCriteria(OriginGroupFailoverCriteriaProperty.builder()\n .statusCodes(StatusCodesProperty.builder()\n .items(List.of(123))\n .quantity(123)\n .build())\n .build())\n .id(\"id\")\n .members(OriginGroupMembersProperty.builder()\n .items(List.of(OriginGroupMemberProperty.builder()\n .originId(\"originId\")\n .build()))\n .quantity(123)\n .build())\n .build()))\n .build();",
5027 "version": "1"
5028 },
5029 "go": {
5030 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginGroupsProperty := &originGroupsProperty{\n\tquantity: jsii.Number(123),\n\n\t// the properties below are optional\n\titems: []interface{}{\n\t\t&originGroupProperty{\n\t\t\tfailoverCriteria: &originGroupFailoverCriteriaProperty{\n\t\t\t\tstatusCodes: &statusCodesProperty{\n\t\t\t\t\titems: []interface{}{\n\t\t\t\t\t\tjsii.Number(123),\n\t\t\t\t\t},\n\t\t\t\t\tquantity: jsii.Number(123),\n\t\t\t\t},\n\t\t\t},\n\t\t\tid: jsii.String(\"id\"),\n\t\t\tmembers: &originGroupMembersProperty{\n\t\t\t\titems: []interface{}{\n\t\t\t\t\t&originGroupMemberProperty{\n\t\t\t\t\t\toriginId: jsii.String(\"originId\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tquantity: jsii.Number(123),\n\t\t\t},\n\t\t},\n\t},\n}",
5031 "version": "1"
5032 },
5033 "$": {
5034 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originGroupsProperty: cloudfront.CfnDistribution.OriginGroupsProperty = {\n quantity: 123,\n\n // the properties below are optional\n items: [{\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n }],\n};",
5035 "version": "0"
5036 }
5037 },
5038 "location": {
5039 "api": {
5040 "api": "type",
5041 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupsProperty"
5042 },
5043 "field": {
5044 "field": "example"
5045 }
5046 },
5047 "didCompile": true,
5048 "fqnsReferenced": [
5049 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginGroupsProperty"
5050 ],
5051 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originGroupsProperty: cloudfront.CfnDistribution.OriginGroupsProperty = {\n quantity: 123,\n\n // the properties below are optional\n items: [{\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5052 "syntaxKindCounter": {
5053 "8": 4,
5054 "10": 3,
5055 "75": 16,
5056 "153": 2,
5057 "169": 1,
5058 "192": 3,
5059 "193": 6,
5060 "225": 1,
5061 "242": 1,
5062 "243": 1,
5063 "254": 1,
5064 "255": 1,
5065 "256": 1,
5066 "281": 11,
5067 "290": 1
5068 },
5069 "fqnsFingerprint": "f4b64927c64ad30f2c27cb1154bedd19887189893e1203fadd9d92e534ee442d"
5070 },
5071 "ea7442b6cb49b27670bf183bd91e545e6afd1b8040d832ac083f772c96a1fcbd": {
5072 "translations": {
5073 "python": {
5074 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_property = cloudfront.CfnDistribution.OriginProperty(\n domain_name=\"domainName\",\n id=\"id\",\n\n # the properties below are optional\n connection_attempts=123,\n connection_timeout=123,\n custom_origin_config=cloudfront.CfnDistribution.CustomOriginConfigProperty(\n origin_protocol_policy=\"originProtocolPolicy\",\n\n # the properties below are optional\n http_port=123,\n https_port=123,\n origin_keepalive_timeout=123,\n origin_read_timeout=123,\n origin_ssl_protocols=[\"originSslProtocols\"]\n ),\n origin_access_control_id=\"originAccessControlId\",\n origin_custom_headers=[cloudfront.CfnDistribution.OriginCustomHeaderProperty(\n header_name=\"headerName\",\n header_value=\"headerValue\"\n )],\n origin_path=\"originPath\",\n origin_shield=cloudfront.CfnDistribution.OriginShieldProperty(\n enabled=False,\n origin_shield_region=\"originShieldRegion\"\n ),\n s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(\n origin_access_identity=\"originAccessIdentity\"\n )\n)",
5075 "version": "2"
5076 },
5077 "csharp": {
5078 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginProperty originProperty = new OriginProperty {\n DomainName = \"domainName\",\n Id = \"id\",\n\n // the properties below are optional\n ConnectionAttempts = 123,\n ConnectionTimeout = 123,\n CustomOriginConfig = new CustomOriginConfigProperty {\n OriginProtocolPolicy = \"originProtocolPolicy\",\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123,\n OriginKeepaliveTimeout = 123,\n OriginReadTimeout = 123,\n OriginSslProtocols = new [] { \"originSslProtocols\" }\n },\n OriginAccessControlId = \"originAccessControlId\",\n OriginCustomHeaders = new [] { new OriginCustomHeaderProperty {\n HeaderName = \"headerName\",\n HeaderValue = \"headerValue\"\n } },\n OriginPath = \"originPath\",\n OriginShield = new OriginShieldProperty {\n Enabled = false,\n OriginShieldRegion = \"originShieldRegion\"\n },\n S3OriginConfig = new S3OriginConfigProperty {\n OriginAccessIdentity = \"originAccessIdentity\"\n }\n};",
5079 "version": "1"
5080 },
5081 "java": {
5082 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginProperty originProperty = OriginProperty.builder()\n .domainName(\"domainName\")\n .id(\"id\")\n\n // the properties below are optional\n .connectionAttempts(123)\n .connectionTimeout(123)\n .customOriginConfig(CustomOriginConfigProperty.builder()\n .originProtocolPolicy(\"originProtocolPolicy\")\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .originKeepaliveTimeout(123)\n .originReadTimeout(123)\n .originSslProtocols(List.of(\"originSslProtocols\"))\n .build())\n .originAccessControlId(\"originAccessControlId\")\n .originCustomHeaders(List.of(OriginCustomHeaderProperty.builder()\n .headerName(\"headerName\")\n .headerValue(\"headerValue\")\n .build()))\n .originPath(\"originPath\")\n .originShield(OriginShieldProperty.builder()\n .enabled(false)\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .s3OriginConfig(S3OriginConfigProperty.builder()\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .build();",
5083 "version": "1"
5084 },
5085 "go": {
5086 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginProperty := &originProperty{\n\tdomainName: jsii.String(\"domainName\"),\n\tid: jsii.String(\"id\"),\n\n\t// the properties below are optional\n\tconnectionAttempts: jsii.Number(123),\n\tconnectionTimeout: jsii.Number(123),\n\tcustomOriginConfig: &customOriginConfigProperty{\n\t\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\n\t\t// the properties below are optional\n\t\thttpPort: jsii.Number(123),\n\t\thttpsPort: jsii.Number(123),\n\t\toriginKeepaliveTimeout: jsii.Number(123),\n\t\toriginReadTimeout: jsii.Number(123),\n\t\toriginSslProtocols: []*string{\n\t\t\tjsii.String(\"originSslProtocols\"),\n\t\t},\n\t},\n\toriginAccessControlId: jsii.String(\"originAccessControlId\"),\n\toriginCustomHeaders: []interface{}{\n\t\t&originCustomHeaderProperty{\n\t\t\theaderName: jsii.String(\"headerName\"),\n\t\t\theaderValue: jsii.String(\"headerValue\"),\n\t\t},\n\t},\n\toriginPath: jsii.String(\"originPath\"),\n\toriginShield: &originShieldProperty{\n\t\tenabled: jsii.Boolean(false),\n\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t},\n\ts3OriginConfig: &s3OriginConfigProperty{\n\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t},\n}",
5087 "version": "1"
5088 },
5089 "$": {
5090 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originProperty: cloudfront.CfnDistribution.OriginProperty = {\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n};",
5091 "version": "0"
5092 }
5093 },
5094 "location": {
5095 "api": {
5096 "api": "type",
5097 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginProperty"
5098 },
5099 "field": {
5100 "field": "example"
5101 }
5102 },
5103 "didCompile": true,
5104 "fqnsReferenced": [
5105 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginProperty"
5106 ],
5107 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originProperty: cloudfront.CfnDistribution.OriginProperty = {\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5108 "syntaxKindCounter": {
5109 "8": 6,
5110 "10": 11,
5111 "75": 26,
5112 "91": 1,
5113 "153": 2,
5114 "169": 1,
5115 "192": 2,
5116 "193": 5,
5117 "225": 1,
5118 "242": 1,
5119 "243": 1,
5120 "254": 1,
5121 "255": 1,
5122 "256": 1,
5123 "281": 21,
5124 "290": 1
5125 },
5126 "fqnsFingerprint": "2190b77cd0918cf9e4771c4fad8aad46ac5a0da4c24f48c791505e648a95cdae"
5127 },
5128 "e84a648255c55a17c429e05cdae85c94f8a18dd85ad4551b8787a540e33104dd": {
5129 "translations": {
5130 "python": {
5131 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_shield_property = cloudfront.CfnDistribution.OriginShieldProperty(\n enabled=False,\n origin_shield_region=\"originShieldRegion\"\n)",
5132 "version": "2"
5133 },
5134 "csharp": {
5135 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginShieldProperty originShieldProperty = new OriginShieldProperty {\n Enabled = false,\n OriginShieldRegion = \"originShieldRegion\"\n};",
5136 "version": "1"
5137 },
5138 "java": {
5139 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginShieldProperty originShieldProperty = OriginShieldProperty.builder()\n .enabled(false)\n .originShieldRegion(\"originShieldRegion\")\n .build();",
5140 "version": "1"
5141 },
5142 "go": {
5143 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginShieldProperty := &originShieldProperty{\n\tenabled: jsii.Boolean(false),\n\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n}",
5144 "version": "1"
5145 },
5146 "$": {
5147 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originShieldProperty: cloudfront.CfnDistribution.OriginShieldProperty = {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n};",
5148 "version": "0"
5149 }
5150 },
5151 "location": {
5152 "api": {
5153 "api": "type",
5154 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.OriginShieldProperty"
5155 },
5156 "field": {
5157 "field": "example"
5158 }
5159 },
5160 "didCompile": true,
5161 "fqnsReferenced": [
5162 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginShieldProperty"
5163 ],
5164 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originShieldProperty: cloudfront.CfnDistribution.OriginShieldProperty = {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5165 "syntaxKindCounter": {
5166 "10": 2,
5167 "75": 7,
5168 "91": 1,
5169 "153": 2,
5170 "169": 1,
5171 "193": 1,
5172 "225": 1,
5173 "242": 1,
5174 "243": 1,
5175 "254": 1,
5176 "255": 1,
5177 "256": 1,
5178 "281": 2,
5179 "290": 1
5180 },
5181 "fqnsFingerprint": "89bad6d53fa67aa4947773abb24358a90b4074ea7b6a003860aa71fee86d8145"
5182 },
5183 "620edfa644c4d3792dc96f8418296acb297489d5f9fc2ee4db44a49e4bcac126": {
5184 "translations": {
5185 "python": {
5186 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nrestrictions_property = cloudfront.CfnDistribution.RestrictionsProperty(\n geo_restriction=cloudfront.CfnDistribution.GeoRestrictionProperty(\n restriction_type=\"restrictionType\",\n\n # the properties below are optional\n locations=[\"locations\"]\n )\n)",
5187 "version": "2"
5188 },
5189 "csharp": {
5190 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nRestrictionsProperty restrictionsProperty = new RestrictionsProperty {\n GeoRestriction = new GeoRestrictionProperty {\n RestrictionType = \"restrictionType\",\n\n // the properties below are optional\n Locations = new [] { \"locations\" }\n }\n};",
5191 "version": "1"
5192 },
5193 "java": {
5194 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nRestrictionsProperty restrictionsProperty = RestrictionsProperty.builder()\n .geoRestriction(GeoRestrictionProperty.builder()\n .restrictionType(\"restrictionType\")\n\n // the properties below are optional\n .locations(List.of(\"locations\"))\n .build())\n .build();",
5195 "version": "1"
5196 },
5197 "go": {
5198 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nrestrictionsProperty := &restrictionsProperty{\n\tgeoRestriction: &geoRestrictionProperty{\n\t\trestrictionType: jsii.String(\"restrictionType\"),\n\n\t\t// the properties below are optional\n\t\tlocations: []*string{\n\t\t\tjsii.String(\"locations\"),\n\t\t},\n\t},\n}",
5199 "version": "1"
5200 },
5201 "$": {
5202 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst restrictionsProperty: cloudfront.CfnDistribution.RestrictionsProperty = {\n geoRestriction: {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n },\n};",
5203 "version": "0"
5204 }
5205 },
5206 "location": {
5207 "api": {
5208 "api": "type",
5209 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.RestrictionsProperty"
5210 },
5211 "field": {
5212 "field": "example"
5213 }
5214 },
5215 "didCompile": true,
5216 "fqnsReferenced": [
5217 "@aws-cdk/aws-cloudfront.CfnDistribution.RestrictionsProperty"
5218 ],
5219 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst restrictionsProperty: cloudfront.CfnDistribution.RestrictionsProperty = {\n geoRestriction: {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5220 "syntaxKindCounter": {
5221 "10": 3,
5222 "75": 8,
5223 "153": 2,
5224 "169": 1,
5225 "192": 1,
5226 "193": 2,
5227 "225": 1,
5228 "242": 1,
5229 "243": 1,
5230 "254": 1,
5231 "255": 1,
5232 "256": 1,
5233 "281": 3,
5234 "290": 1
5235 },
5236 "fqnsFingerprint": "5d38dae66150d1e9b95705cde2a07f00af74c29d97f042742cdd5c89fe92b5aa"
5237 },
5238 "94cb30c845f89978b1844b7393372da692e53f4bb4d8e2d8dabbc0f7e2daef83": {
5239 "translations": {
5240 "python": {
5241 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ns3_origin_config_property = cloudfront.CfnDistribution.S3OriginConfigProperty(\n origin_access_identity=\"originAccessIdentity\"\n)",
5242 "version": "2"
5243 },
5244 "csharp": {
5245 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nS3OriginConfigProperty s3OriginConfigProperty = new S3OriginConfigProperty {\n OriginAccessIdentity = \"originAccessIdentity\"\n};",
5246 "version": "1"
5247 },
5248 "java": {
5249 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nS3OriginConfigProperty s3OriginConfigProperty = S3OriginConfigProperty.builder()\n .originAccessIdentity(\"originAccessIdentity\")\n .build();",
5250 "version": "1"
5251 },
5252 "go": {
5253 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ns3OriginConfigProperty := &s3OriginConfigProperty{\n\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n}",
5254 "version": "1"
5255 },
5256 "$": {
5257 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst s3OriginConfigProperty: cloudfront.CfnDistribution.S3OriginConfigProperty = {\n originAccessIdentity: 'originAccessIdentity',\n};",
5258 "version": "0"
5259 }
5260 },
5261 "location": {
5262 "api": {
5263 "api": "type",
5264 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.S3OriginConfigProperty"
5265 },
5266 "field": {
5267 "field": "example"
5268 }
5269 },
5270 "didCompile": true,
5271 "fqnsReferenced": [
5272 "@aws-cdk/aws-cloudfront.CfnDistribution.S3OriginConfigProperty"
5273 ],
5274 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst s3OriginConfigProperty: cloudfront.CfnDistribution.S3OriginConfigProperty = {\n originAccessIdentity: 'originAccessIdentity',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5275 "syntaxKindCounter": {
5276 "10": 2,
5277 "75": 6,
5278 "153": 2,
5279 "169": 1,
5280 "193": 1,
5281 "225": 1,
5282 "242": 1,
5283 "243": 1,
5284 "254": 1,
5285 "255": 1,
5286 "256": 1,
5287 "281": 1,
5288 "290": 1
5289 },
5290 "fqnsFingerprint": "8875f957bff5278176e25691c0749682eccd1cd6f10fdc0d33c71334877372e6"
5291 },
5292 "1a5c40b7016e8338f1c50c2ddd2fa714776c09180c157ea32d7ed5a77f07ce62": {
5293 "translations": {
5294 "python": {
5295 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nstatus_codes_property = cloudfront.CfnDistribution.StatusCodesProperty(\n items=[123],\n quantity=123\n)",
5296 "version": "2"
5297 },
5298 "csharp": {
5299 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nStatusCodesProperty statusCodesProperty = new StatusCodesProperty {\n Items = new [] { 123 },\n Quantity = 123\n};",
5300 "version": "1"
5301 },
5302 "java": {
5303 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nStatusCodesProperty statusCodesProperty = StatusCodesProperty.builder()\n .items(List.of(123))\n .quantity(123)\n .build();",
5304 "version": "1"
5305 },
5306 "go": {
5307 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nstatusCodesProperty := &statusCodesProperty{\n\titems: []interface{}{\n\t\tjsii.Number(123),\n\t},\n\tquantity: jsii.Number(123),\n}",
5308 "version": "1"
5309 },
5310 "$": {
5311 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst statusCodesProperty: cloudfront.CfnDistribution.StatusCodesProperty = {\n items: [123],\n quantity: 123,\n};",
5312 "version": "0"
5313 }
5314 },
5315 "location": {
5316 "api": {
5317 "api": "type",
5318 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.StatusCodesProperty"
5319 },
5320 "field": {
5321 "field": "example"
5322 }
5323 },
5324 "didCompile": true,
5325 "fqnsReferenced": [
5326 "@aws-cdk/aws-cloudfront.CfnDistribution.StatusCodesProperty"
5327 ],
5328 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst statusCodesProperty: cloudfront.CfnDistribution.StatusCodesProperty = {\n items: [123],\n quantity: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5329 "syntaxKindCounter": {
5330 "8": 2,
5331 "10": 1,
5332 "75": 7,
5333 "153": 2,
5334 "169": 1,
5335 "192": 1,
5336 "193": 1,
5337 "225": 1,
5338 "242": 1,
5339 "243": 1,
5340 "254": 1,
5341 "255": 1,
5342 "256": 1,
5343 "281": 2,
5344 "290": 1
5345 },
5346 "fqnsFingerprint": "3e745ffa381db15e815aa93b93f7617886f4de3338a2acbdba8638259c9ec9c0"
5347 },
5348 "34953fb45ed066e8676fd958801f68a31021d3d59ec511790f09a90a02f5e925": {
5349 "translations": {
5350 "python": {
5351 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nviewer_certificate_property = cloudfront.CfnDistribution.ViewerCertificateProperty(\n acm_certificate_arn=\"acmCertificateArn\",\n cloud_front_default_certificate=False,\n iam_certificate_id=\"iamCertificateId\",\n minimum_protocol_version=\"minimumProtocolVersion\",\n ssl_support_method=\"sslSupportMethod\"\n)",
5352 "version": "2"
5353 },
5354 "csharp": {
5355 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nViewerCertificateProperty viewerCertificateProperty = new ViewerCertificateProperty {\n AcmCertificateArn = \"acmCertificateArn\",\n CloudFrontDefaultCertificate = false,\n IamCertificateId = \"iamCertificateId\",\n MinimumProtocolVersion = \"minimumProtocolVersion\",\n SslSupportMethod = \"sslSupportMethod\"\n};",
5356 "version": "1"
5357 },
5358 "java": {
5359 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nViewerCertificateProperty viewerCertificateProperty = ViewerCertificateProperty.builder()\n .acmCertificateArn(\"acmCertificateArn\")\n .cloudFrontDefaultCertificate(false)\n .iamCertificateId(\"iamCertificateId\")\n .minimumProtocolVersion(\"minimumProtocolVersion\")\n .sslSupportMethod(\"sslSupportMethod\")\n .build();",
5360 "version": "1"
5361 },
5362 "go": {
5363 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nviewerCertificateProperty := &viewerCertificateProperty{\n\tacmCertificateArn: jsii.String(\"acmCertificateArn\"),\n\tcloudFrontDefaultCertificate: jsii.Boolean(false),\n\tiamCertificateId: jsii.String(\"iamCertificateId\"),\n\tminimumProtocolVersion: jsii.String(\"minimumProtocolVersion\"),\n\tsslSupportMethod: jsii.String(\"sslSupportMethod\"),\n}",
5364 "version": "1"
5365 },
5366 "$": {
5367 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst viewerCertificateProperty: cloudfront.CfnDistribution.ViewerCertificateProperty = {\n acmCertificateArn: 'acmCertificateArn',\n cloudFrontDefaultCertificate: false,\n iamCertificateId: 'iamCertificateId',\n minimumProtocolVersion: 'minimumProtocolVersion',\n sslSupportMethod: 'sslSupportMethod',\n};",
5368 "version": "0"
5369 }
5370 },
5371 "location": {
5372 "api": {
5373 "api": "type",
5374 "fqn": "@aws-cdk/aws-cloudfront.CfnDistribution.ViewerCertificateProperty"
5375 },
5376 "field": {
5377 "field": "example"
5378 }
5379 },
5380 "didCompile": true,
5381 "fqnsReferenced": [
5382 "@aws-cdk/aws-cloudfront.CfnDistribution.ViewerCertificateProperty"
5383 ],
5384 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst viewerCertificateProperty: cloudfront.CfnDistribution.ViewerCertificateProperty = {\n acmCertificateArn: 'acmCertificateArn',\n cloudFrontDefaultCertificate: false,\n iamCertificateId: 'iamCertificateId',\n minimumProtocolVersion: 'minimumProtocolVersion',\n sslSupportMethod: 'sslSupportMethod',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5385 "syntaxKindCounter": {
5386 "10": 5,
5387 "75": 10,
5388 "91": 1,
5389 "153": 2,
5390 "169": 1,
5391 "193": 1,
5392 "225": 1,
5393 "242": 1,
5394 "243": 1,
5395 "254": 1,
5396 "255": 1,
5397 "256": 1,
5398 "281": 5,
5399 "290": 1
5400 },
5401 "fqnsFingerprint": "80721625670d390d05613d9489d44630f5d4729d6f2eafbfcc2f7ee386f6c1f1"
5402 },
5403 "265badb238ef10aed85f6188d0e79fc34eb15442bdca979851560ee710741e5e": {
5404 "translations": {
5405 "python": {
5406 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_distribution_props = cloudfront.CfnDistributionProps(\n distribution_config=cloudfront.CfnDistribution.DistributionConfigProperty(\n default_cache_behavior=cloudfront.CfnDistribution.DefaultCacheBehaviorProperty(\n target_origin_id=\"targetOriginId\",\n viewer_protocol_policy=\"viewerProtocolPolicy\",\n\n # the properties below are optional\n allowed_methods=[\"allowedMethods\"],\n cached_methods=[\"cachedMethods\"],\n cache_policy_id=\"cachePolicyId\",\n compress=False,\n default_ttl=123,\n field_level_encryption_id=\"fieldLevelEncryptionId\",\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n )],\n lambda_function_associations=[cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n )],\n max_ttl=123,\n min_ttl=123,\n origin_request_policy_id=\"originRequestPolicyId\",\n realtime_log_config_arn=\"realtimeLogConfigArn\",\n response_headers_policy_id=\"responseHeadersPolicyId\",\n smooth_streaming=False,\n trusted_key_groups=[\"trustedKeyGroups\"],\n trusted_signers=[\"trustedSigners\"]\n ),\n enabled=False,\n\n # the properties below are optional\n aliases=[\"aliases\"],\n cache_behaviors=[cloudfront.CfnDistribution.CacheBehaviorProperty(\n path_pattern=\"pathPattern\",\n target_origin_id=\"targetOriginId\",\n viewer_protocol_policy=\"viewerProtocolPolicy\",\n\n # the properties below are optional\n allowed_methods=[\"allowedMethods\"],\n cached_methods=[\"cachedMethods\"],\n cache_policy_id=\"cachePolicyId\",\n compress=False,\n default_ttl=123,\n field_level_encryption_id=\"fieldLevelEncryptionId\",\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.CfnDistribution.FunctionAssociationProperty(\n event_type=\"eventType\",\n function_arn=\"functionArn\"\n )],\n lambda_function_associations=[cloudfront.CfnDistribution.LambdaFunctionAssociationProperty(\n event_type=\"eventType\",\n include_body=False,\n lambda_function_arn=\"lambdaFunctionArn\"\n )],\n max_ttl=123,\n min_ttl=123,\n origin_request_policy_id=\"originRequestPolicyId\",\n realtime_log_config_arn=\"realtimeLogConfigArn\",\n response_headers_policy_id=\"responseHeadersPolicyId\",\n smooth_streaming=False,\n trusted_key_groups=[\"trustedKeyGroups\"],\n trusted_signers=[\"trustedSigners\"]\n )],\n cnam_es=[\"cnamEs\"],\n comment=\"comment\",\n custom_error_responses=[cloudfront.CfnDistribution.CustomErrorResponseProperty(\n error_code=123,\n\n # the properties below are optional\n error_caching_min_ttl=123,\n response_code=123,\n response_page_path=\"responsePagePath\"\n )],\n custom_origin=cloudfront.CfnDistribution.LegacyCustomOriginProperty(\n dns_name=\"dnsName\",\n origin_protocol_policy=\"originProtocolPolicy\",\n origin_ssl_protocols=[\"originSslProtocols\"],\n\n # the properties below are optional\n http_port=123,\n https_port=123\n ),\n default_root_object=\"defaultRootObject\",\n http_version=\"httpVersion\",\n ipv6_enabled=False,\n logging=cloudfront.CfnDistribution.LoggingProperty(\n bucket=\"bucket\",\n\n # the properties below are optional\n include_cookies=False,\n prefix=\"prefix\"\n ),\n origin_groups=cloudfront.CfnDistribution.OriginGroupsProperty(\n quantity=123,\n\n # the properties below are optional\n items=[cloudfront.CfnDistribution.OriginGroupProperty(\n failover_criteria=cloudfront.CfnDistribution.OriginGroupFailoverCriteriaProperty(\n status_codes=cloudfront.CfnDistribution.StatusCodesProperty(\n items=[123],\n quantity=123\n )\n ),\n id=\"id\",\n members=cloudfront.CfnDistribution.OriginGroupMembersProperty(\n items=[cloudfront.CfnDistribution.OriginGroupMemberProperty(\n origin_id=\"originId\"\n )],\n quantity=123\n )\n )]\n ),\n origins=[cloudfront.CfnDistribution.OriginProperty(\n domain_name=\"domainName\",\n id=\"id\",\n\n # the properties below are optional\n connection_attempts=123,\n connection_timeout=123,\n custom_origin_config=cloudfront.CfnDistribution.CustomOriginConfigProperty(\n origin_protocol_policy=\"originProtocolPolicy\",\n\n # the properties below are optional\n http_port=123,\n https_port=123,\n origin_keepalive_timeout=123,\n origin_read_timeout=123,\n origin_ssl_protocols=[\"originSslProtocols\"]\n ),\n origin_access_control_id=\"originAccessControlId\",\n origin_custom_headers=[cloudfront.CfnDistribution.OriginCustomHeaderProperty(\n header_name=\"headerName\",\n header_value=\"headerValue\"\n )],\n origin_path=\"originPath\",\n origin_shield=cloudfront.CfnDistribution.OriginShieldProperty(\n enabled=False,\n origin_shield_region=\"originShieldRegion\"\n ),\n s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(\n origin_access_identity=\"originAccessIdentity\"\n )\n )],\n price_class=\"priceClass\",\n restrictions=cloudfront.CfnDistribution.RestrictionsProperty(\n geo_restriction=cloudfront.CfnDistribution.GeoRestrictionProperty(\n restriction_type=\"restrictionType\",\n\n # the properties below are optional\n locations=[\"locations\"]\n )\n ),\n s3_origin=cloudfront.CfnDistribution.LegacyS3OriginProperty(\n dns_name=\"dnsName\",\n\n # the properties below are optional\n origin_access_identity=\"originAccessIdentity\"\n ),\n viewer_certificate=cloudfront.CfnDistribution.ViewerCertificateProperty(\n acm_certificate_arn=\"acmCertificateArn\",\n cloud_front_default_certificate=False,\n iam_certificate_id=\"iamCertificateId\",\n minimum_protocol_version=\"minimumProtocolVersion\",\n ssl_support_method=\"sslSupportMethod\"\n ),\n web_acl_id=\"webAclId\"\n ),\n\n # the properties below are optional\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
5407 "version": "2"
5408 },
5409 "csharp": {
5410 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnDistributionProps cfnDistributionProps = new CfnDistributionProps {\n DistributionConfig = new DistributionConfigProperty {\n DefaultCacheBehavior = new DefaultCacheBehaviorProperty {\n TargetOriginId = \"targetOriginId\",\n ViewerProtocolPolicy = \"viewerProtocolPolicy\",\n\n // the properties below are optional\n AllowedMethods = new [] { \"allowedMethods\" },\n CachedMethods = new [] { \"cachedMethods\" },\n CachePolicyId = \"cachePolicyId\",\n Compress = false,\n DefaultTtl = 123,\n FieldLevelEncryptionId = \"fieldLevelEncryptionId\",\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n } },\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n } },\n MaxTtl = 123,\n MinTtl = 123,\n OriginRequestPolicyId = \"originRequestPolicyId\",\n RealtimeLogConfigArn = \"realtimeLogConfigArn\",\n ResponseHeadersPolicyId = \"responseHeadersPolicyId\",\n SmoothStreaming = false,\n TrustedKeyGroups = new [] { \"trustedKeyGroups\" },\n TrustedSigners = new [] { \"trustedSigners\" }\n },\n Enabled = false,\n\n // the properties below are optional\n Aliases = new [] { \"aliases\" },\n CacheBehaviors = new [] { new CacheBehaviorProperty {\n PathPattern = \"pathPattern\",\n TargetOriginId = \"targetOriginId\",\n ViewerProtocolPolicy = \"viewerProtocolPolicy\",\n\n // the properties below are optional\n AllowedMethods = new [] { \"allowedMethods\" },\n CachedMethods = new [] { \"cachedMethods\" },\n CachePolicyId = \"cachePolicyId\",\n Compress = false,\n DefaultTtl = 123,\n FieldLevelEncryptionId = \"fieldLevelEncryptionId\",\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociationProperty {\n EventType = \"eventType\",\n FunctionArn = \"functionArn\"\n } },\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociationProperty {\n EventType = \"eventType\",\n IncludeBody = false,\n LambdaFunctionArn = \"lambdaFunctionArn\"\n } },\n MaxTtl = 123,\n MinTtl = 123,\n OriginRequestPolicyId = \"originRequestPolicyId\",\n RealtimeLogConfigArn = \"realtimeLogConfigArn\",\n ResponseHeadersPolicyId = \"responseHeadersPolicyId\",\n SmoothStreaming = false,\n TrustedKeyGroups = new [] { \"trustedKeyGroups\" },\n TrustedSigners = new [] { \"trustedSigners\" }\n } },\n CnamEs = new [] { \"cnamEs\" },\n Comment = \"comment\",\n CustomErrorResponses = new [] { new CustomErrorResponseProperty {\n ErrorCode = 123,\n\n // the properties below are optional\n ErrorCachingMinTtl = 123,\n ResponseCode = 123,\n ResponsePagePath = \"responsePagePath\"\n } },\n CustomOrigin = new LegacyCustomOriginProperty {\n DnsName = \"dnsName\",\n OriginProtocolPolicy = \"originProtocolPolicy\",\n OriginSslProtocols = new [] { \"originSslProtocols\" },\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123\n },\n DefaultRootObject = \"defaultRootObject\",\n HttpVersion = \"httpVersion\",\n Ipv6Enabled = false,\n Logging = new LoggingProperty {\n Bucket = \"bucket\",\n\n // the properties below are optional\n IncludeCookies = false,\n Prefix = \"prefix\"\n },\n OriginGroups = new OriginGroupsProperty {\n Quantity = 123,\n\n // the properties below are optional\n Items = new [] { new OriginGroupProperty {\n FailoverCriteria = new OriginGroupFailoverCriteriaProperty {\n StatusCodes = new StatusCodesProperty {\n Items = new [] { 123 },\n Quantity = 123\n }\n },\n Id = \"id\",\n Members = new OriginGroupMembersProperty {\n Items = new [] { new OriginGroupMemberProperty {\n OriginId = \"originId\"\n } },\n Quantity = 123\n }\n } }\n },\n Origins = new [] { new OriginProperty {\n DomainName = \"domainName\",\n Id = \"id\",\n\n // the properties below are optional\n ConnectionAttempts = 123,\n ConnectionTimeout = 123,\n CustomOriginConfig = new CustomOriginConfigProperty {\n OriginProtocolPolicy = \"originProtocolPolicy\",\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123,\n OriginKeepaliveTimeout = 123,\n OriginReadTimeout = 123,\n OriginSslProtocols = new [] { \"originSslProtocols\" }\n },\n OriginAccessControlId = \"originAccessControlId\",\n OriginCustomHeaders = new [] { new OriginCustomHeaderProperty {\n HeaderName = \"headerName\",\n HeaderValue = \"headerValue\"\n } },\n OriginPath = \"originPath\",\n OriginShield = new OriginShieldProperty {\n Enabled = false,\n OriginShieldRegion = \"originShieldRegion\"\n },\n S3OriginConfig = new S3OriginConfigProperty {\n OriginAccessIdentity = \"originAccessIdentity\"\n }\n } },\n PriceClass = \"priceClass\",\n Restrictions = new RestrictionsProperty {\n GeoRestriction = new GeoRestrictionProperty {\n RestrictionType = \"restrictionType\",\n\n // the properties below are optional\n Locations = new [] { \"locations\" }\n }\n },\n S3Origin = new LegacyS3OriginProperty {\n DnsName = \"dnsName\",\n\n // the properties below are optional\n OriginAccessIdentity = \"originAccessIdentity\"\n },\n ViewerCertificate = new ViewerCertificateProperty {\n AcmCertificateArn = \"acmCertificateArn\",\n CloudFrontDefaultCertificate = false,\n IamCertificateId = \"iamCertificateId\",\n MinimumProtocolVersion = \"minimumProtocolVersion\",\n SslSupportMethod = \"sslSupportMethod\"\n },\n WebAclId = \"webAclId\"\n },\n\n // the properties below are optional\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
5411 "version": "1"
5412 },
5413 "java": {
5414 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnDistributionProps cfnDistributionProps = CfnDistributionProps.builder()\n .distributionConfig(DistributionConfigProperty.builder()\n .defaultCacheBehavior(DefaultCacheBehaviorProperty.builder()\n .targetOriginId(\"targetOriginId\")\n .viewerProtocolPolicy(\"viewerProtocolPolicy\")\n\n // the properties below are optional\n .allowedMethods(List.of(\"allowedMethods\"))\n .cachedMethods(List.of(\"cachedMethods\"))\n .cachePolicyId(\"cachePolicyId\")\n .compress(false)\n .defaultTtl(123)\n .fieldLevelEncryptionId(\"fieldLevelEncryptionId\")\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build()))\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build()))\n .maxTtl(123)\n .minTtl(123)\n .originRequestPolicyId(\"originRequestPolicyId\")\n .realtimeLogConfigArn(\"realtimeLogConfigArn\")\n .responseHeadersPolicyId(\"responseHeadersPolicyId\")\n .smoothStreaming(false)\n .trustedKeyGroups(List.of(\"trustedKeyGroups\"))\n .trustedSigners(List.of(\"trustedSigners\"))\n .build())\n .enabled(false)\n\n // the properties below are optional\n .aliases(List.of(\"aliases\"))\n .cacheBehaviors(List.of(CacheBehaviorProperty.builder()\n .pathPattern(\"pathPattern\")\n .targetOriginId(\"targetOriginId\")\n .viewerProtocolPolicy(\"viewerProtocolPolicy\")\n\n // the properties below are optional\n .allowedMethods(List.of(\"allowedMethods\"))\n .cachedMethods(List.of(\"cachedMethods\"))\n .cachePolicyId(\"cachePolicyId\")\n .compress(false)\n .defaultTtl(123)\n .fieldLevelEncryptionId(\"fieldLevelEncryptionId\")\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .functionArn(\"functionArn\")\n .build()))\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()\n .eventType(\"eventType\")\n .includeBody(false)\n .lambdaFunctionArn(\"lambdaFunctionArn\")\n .build()))\n .maxTtl(123)\n .minTtl(123)\n .originRequestPolicyId(\"originRequestPolicyId\")\n .realtimeLogConfigArn(\"realtimeLogConfigArn\")\n .responseHeadersPolicyId(\"responseHeadersPolicyId\")\n .smoothStreaming(false)\n .trustedKeyGroups(List.of(\"trustedKeyGroups\"))\n .trustedSigners(List.of(\"trustedSigners\"))\n .build()))\n .cnamEs(List.of(\"cnamEs\"))\n .comment(\"comment\")\n .customErrorResponses(List.of(CustomErrorResponseProperty.builder()\n .errorCode(123)\n\n // the properties below are optional\n .errorCachingMinTtl(123)\n .responseCode(123)\n .responsePagePath(\"responsePagePath\")\n .build()))\n .customOrigin(LegacyCustomOriginProperty.builder()\n .dnsName(\"dnsName\")\n .originProtocolPolicy(\"originProtocolPolicy\")\n .originSslProtocols(List.of(\"originSslProtocols\"))\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .build())\n .defaultRootObject(\"defaultRootObject\")\n .httpVersion(\"httpVersion\")\n .ipv6Enabled(false)\n .logging(LoggingProperty.builder()\n .bucket(\"bucket\")\n\n // the properties below are optional\n .includeCookies(false)\n .prefix(\"prefix\")\n .build())\n .originGroups(OriginGroupsProperty.builder()\n .quantity(123)\n\n // the properties below are optional\n .items(List.of(OriginGroupProperty.builder()\n .failoverCriteria(OriginGroupFailoverCriteriaProperty.builder()\n .statusCodes(StatusCodesProperty.builder()\n .items(List.of(123))\n .quantity(123)\n .build())\n .build())\n .id(\"id\")\n .members(OriginGroupMembersProperty.builder()\n .items(List.of(OriginGroupMemberProperty.builder()\n .originId(\"originId\")\n .build()))\n .quantity(123)\n .build())\n .build()))\n .build())\n .origins(List.of(OriginProperty.builder()\n .domainName(\"domainName\")\n .id(\"id\")\n\n // the properties below are optional\n .connectionAttempts(123)\n .connectionTimeout(123)\n .customOriginConfig(CustomOriginConfigProperty.builder()\n .originProtocolPolicy(\"originProtocolPolicy\")\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .originKeepaliveTimeout(123)\n .originReadTimeout(123)\n .originSslProtocols(List.of(\"originSslProtocols\"))\n .build())\n .originAccessControlId(\"originAccessControlId\")\n .originCustomHeaders(List.of(OriginCustomHeaderProperty.builder()\n .headerName(\"headerName\")\n .headerValue(\"headerValue\")\n .build()))\n .originPath(\"originPath\")\n .originShield(OriginShieldProperty.builder()\n .enabled(false)\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .s3OriginConfig(S3OriginConfigProperty.builder()\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .build()))\n .priceClass(\"priceClass\")\n .restrictions(RestrictionsProperty.builder()\n .geoRestriction(GeoRestrictionProperty.builder()\n .restrictionType(\"restrictionType\")\n\n // the properties below are optional\n .locations(List.of(\"locations\"))\n .build())\n .build())\n .s3Origin(LegacyS3OriginProperty.builder()\n .dnsName(\"dnsName\")\n\n // the properties below are optional\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .viewerCertificate(ViewerCertificateProperty.builder()\n .acmCertificateArn(\"acmCertificateArn\")\n .cloudFrontDefaultCertificate(false)\n .iamCertificateId(\"iamCertificateId\")\n .minimumProtocolVersion(\"minimumProtocolVersion\")\n .sslSupportMethod(\"sslSupportMethod\")\n .build())\n .webAclId(\"webAclId\")\n .build())\n\n // the properties below are optional\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
5415 "version": "1"
5416 },
5417 "go": {
5418 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnDistributionProps := &cfnDistributionProps{\n\tdistributionConfig: &distributionConfigProperty{\n\t\tdefaultCacheBehavior: &defaultCacheBehaviorProperty{\n\t\t\ttargetOriginId: jsii.String(\"targetOriginId\"),\n\t\t\tviewerProtocolPolicy: jsii.String(\"viewerProtocolPolicy\"),\n\n\t\t\t// the properties below are optional\n\t\t\tallowedMethods: []*string{\n\t\t\t\tjsii.String(\"allowedMethods\"),\n\t\t\t},\n\t\t\tcachedMethods: []*string{\n\t\t\t\tjsii.String(\"cachedMethods\"),\n\t\t\t},\n\t\t\tcachePolicyId: jsii.String(\"cachePolicyId\"),\n\t\t\tcompress: jsii.Boolean(false),\n\t\t\tdefaultTtl: jsii.Number(123),\n\t\t\tfieldLevelEncryptionId: jsii.String(\"fieldLevelEncryptionId\"),\n\t\t\tforwardedValues: &forwardedValuesProperty{\n\t\t\t\tqueryString: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcookies: &cookiesProperty{\n\t\t\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\twhitelistedNames: []*string{\n\t\t\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\theaders: []*string{\n\t\t\t\t\tjsii.String(\"headers\"),\n\t\t\t\t},\n\t\t\t\tqueryStringCacheKeys: []*string{\n\t\t\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tfunctionAssociations: []interface{}{\n\t\t\t\t&functionAssociationProperty{\n\t\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tlambdaFunctionAssociations: []interface{}{\n\t\t\t\t&lambdaFunctionAssociationProperty{\n\t\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\t\t\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tmaxTtl: jsii.Number(123),\n\t\t\tminTtl: jsii.Number(123),\n\t\t\toriginRequestPolicyId: jsii.String(\"originRequestPolicyId\"),\n\t\t\trealtimeLogConfigArn: jsii.String(\"realtimeLogConfigArn\"),\n\t\t\tresponseHeadersPolicyId: jsii.String(\"responseHeadersPolicyId\"),\n\t\t\tsmoothStreaming: jsii.Boolean(false),\n\t\t\ttrustedKeyGroups: []*string{\n\t\t\t\tjsii.String(\"trustedKeyGroups\"),\n\t\t\t},\n\t\t\ttrustedSigners: []*string{\n\t\t\t\tjsii.String(\"trustedSigners\"),\n\t\t\t},\n\t\t},\n\t\tenabled: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\taliases: []*string{\n\t\t\tjsii.String(\"aliases\"),\n\t\t},\n\t\tcacheBehaviors: []interface{}{\n\t\t\t&cacheBehaviorProperty{\n\t\t\t\tpathPattern: jsii.String(\"pathPattern\"),\n\t\t\t\ttargetOriginId: jsii.String(\"targetOriginId\"),\n\t\t\t\tviewerProtocolPolicy: jsii.String(\"viewerProtocolPolicy\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tallowedMethods: []*string{\n\t\t\t\t\tjsii.String(\"allowedMethods\"),\n\t\t\t\t},\n\t\t\t\tcachedMethods: []*string{\n\t\t\t\t\tjsii.String(\"cachedMethods\"),\n\t\t\t\t},\n\t\t\t\tcachePolicyId: jsii.String(\"cachePolicyId\"),\n\t\t\t\tcompress: jsii.Boolean(false),\n\t\t\t\tdefaultTtl: jsii.Number(123),\n\t\t\t\tfieldLevelEncryptionId: jsii.String(\"fieldLevelEncryptionId\"),\n\t\t\t\tforwardedValues: &forwardedValuesProperty{\n\t\t\t\t\tqueryString: jsii.Boolean(false),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tcookies: &cookiesProperty{\n\t\t\t\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t\t\t\t// the properties below are optional\n\t\t\t\t\t\twhitelistedNames: []*string{\n\t\t\t\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\theaders: []*string{\n\t\t\t\t\t\tjsii.String(\"headers\"),\n\t\t\t\t\t},\n\t\t\t\t\tqueryStringCacheKeys: []*string{\n\t\t\t\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tfunctionAssociations: []interface{}{\n\t\t\t\t\t&functionAssociationProperty{\n\t\t\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tlambdaFunctionAssociations: []interface{}{\n\t\t\t\t\t&lambdaFunctionAssociationProperty{\n\t\t\t\t\t\teventType: jsii.String(\"eventType\"),\n\t\t\t\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\t\t\t\tlambdaFunctionArn: jsii.String(\"lambdaFunctionArn\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tmaxTtl: jsii.Number(123),\n\t\t\t\tminTtl: jsii.Number(123),\n\t\t\t\toriginRequestPolicyId: jsii.String(\"originRequestPolicyId\"),\n\t\t\t\trealtimeLogConfigArn: jsii.String(\"realtimeLogConfigArn\"),\n\t\t\t\tresponseHeadersPolicyId: jsii.String(\"responseHeadersPolicyId\"),\n\t\t\t\tsmoothStreaming: jsii.Boolean(false),\n\t\t\t\ttrustedKeyGroups: []*string{\n\t\t\t\t\tjsii.String(\"trustedKeyGroups\"),\n\t\t\t\t},\n\t\t\t\ttrustedSigners: []*string{\n\t\t\t\t\tjsii.String(\"trustedSigners\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tcnamEs: []*string{\n\t\t\tjsii.String(\"cnamEs\"),\n\t\t},\n\t\tcomment: jsii.String(\"comment\"),\n\t\tcustomErrorResponses: []interface{}{\n\t\t\t&customErrorResponseProperty{\n\t\t\t\terrorCode: jsii.Number(123),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\terrorCachingMinTtl: jsii.Number(123),\n\t\t\t\tresponseCode: jsii.Number(123),\n\t\t\t\tresponsePagePath: jsii.String(\"responsePagePath\"),\n\t\t\t},\n\t\t},\n\t\tcustomOrigin: &legacyCustomOriginProperty{\n\t\t\tdnsName: jsii.String(\"dnsName\"),\n\t\t\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\t\t\toriginSslProtocols: []*string{\n\t\t\t\tjsii.String(\"originSslProtocols\"),\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\thttpPort: jsii.Number(123),\n\t\t\thttpsPort: jsii.Number(123),\n\t\t},\n\t\tdefaultRootObject: jsii.String(\"defaultRootObject\"),\n\t\thttpVersion: jsii.String(\"httpVersion\"),\n\t\tipv6Enabled: jsii.Boolean(false),\n\t\tlogging: &loggingProperty{\n\t\t\tbucket: jsii.String(\"bucket\"),\n\n\t\t\t// the properties below are optional\n\t\t\tincludeCookies: jsii.Boolean(false),\n\t\t\tprefix: jsii.String(\"prefix\"),\n\t\t},\n\t\toriginGroups: &originGroupsProperty{\n\t\t\tquantity: jsii.Number(123),\n\n\t\t\t// the properties below are optional\n\t\t\titems: []interface{}{\n\t\t\t\t&originGroupProperty{\n\t\t\t\t\tfailoverCriteria: &originGroupFailoverCriteriaProperty{\n\t\t\t\t\t\tstatusCodes: &statusCodesProperty{\n\t\t\t\t\t\t\titems: []interface{}{\n\t\t\t\t\t\t\t\tjsii.Number(123),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tquantity: jsii.Number(123),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\tid: jsii.String(\"id\"),\n\t\t\t\t\tmembers: &originGroupMembersProperty{\n\t\t\t\t\t\titems: []interface{}{\n\t\t\t\t\t\t\t&originGroupMemberProperty{\n\t\t\t\t\t\t\t\toriginId: jsii.String(\"originId\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tquantity: jsii.Number(123),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\torigins: []interface{}{\n\t\t\t&originProperty{\n\t\t\t\tdomainName: jsii.String(\"domainName\"),\n\t\t\t\tid: jsii.String(\"id\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tconnectionAttempts: jsii.Number(123),\n\t\t\t\tconnectionTimeout: jsii.Number(123),\n\t\t\t\tcustomOriginConfig: &customOriginConfigProperty{\n\t\t\t\t\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\thttpPort: jsii.Number(123),\n\t\t\t\t\thttpsPort: jsii.Number(123),\n\t\t\t\t\toriginKeepaliveTimeout: jsii.Number(123),\n\t\t\t\t\toriginReadTimeout: jsii.Number(123),\n\t\t\t\t\toriginSslProtocols: []*string{\n\t\t\t\t\t\tjsii.String(\"originSslProtocols\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\toriginAccessControlId: jsii.String(\"originAccessControlId\"),\n\t\t\t\toriginCustomHeaders: []interface{}{\n\t\t\t\t\t&originCustomHeaderProperty{\n\t\t\t\t\t\theaderName: jsii.String(\"headerName\"),\n\t\t\t\t\t\theaderValue: jsii.String(\"headerValue\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\toriginPath: jsii.String(\"originPath\"),\n\t\t\t\toriginShield: &originShieldProperty{\n\t\t\t\t\tenabled: jsii.Boolean(false),\n\t\t\t\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t\t\t\t},\n\t\t\t\ts3OriginConfig: &s3OriginConfigProperty{\n\t\t\t\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tpriceClass: jsii.String(\"priceClass\"),\n\t\trestrictions: &restrictionsProperty{\n\t\t\tgeoRestriction: &geoRestrictionProperty{\n\t\t\t\trestrictionType: jsii.String(\"restrictionType\"),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tlocations: []*string{\n\t\t\t\t\tjsii.String(\"locations\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\ts3Origin: &legacyS3OriginProperty{\n\t\t\tdnsName: jsii.String(\"dnsName\"),\n\n\t\t\t// the properties below are optional\n\t\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t\t},\n\t\tviewerCertificate: &viewerCertificateProperty{\n\t\t\tacmCertificateArn: jsii.String(\"acmCertificateArn\"),\n\t\t\tcloudFrontDefaultCertificate: jsii.Boolean(false),\n\t\t\tiamCertificateId: jsii.String(\"iamCertificateId\"),\n\t\t\tminimumProtocolVersion: jsii.String(\"minimumProtocolVersion\"),\n\t\t\tsslSupportMethod: jsii.String(\"sslSupportMethod\"),\n\t\t},\n\t\twebAclId: jsii.String(\"webAclId\"),\n\t},\n\n\t// the properties below are optional\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
5419 "version": "1"
5420 },
5421 "$": {
5422 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnDistributionProps: cloudfront.CfnDistributionProps = {\n distributionConfig: {\n defaultCacheBehavior: {\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n },\n enabled: false,\n\n // the properties below are optional\n aliases: ['aliases'],\n cacheBehaviors: [{\n pathPattern: 'pathPattern',\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n }],\n cnamEs: ['cnamEs'],\n comment: 'comment',\n customErrorResponses: [{\n errorCode: 123,\n\n // the properties below are optional\n errorCachingMinTtl: 123,\n responseCode: 123,\n responsePagePath: 'responsePagePath',\n }],\n customOrigin: {\n dnsName: 'dnsName',\n originProtocolPolicy: 'originProtocolPolicy',\n originSslProtocols: ['originSslProtocols'],\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n },\n defaultRootObject: 'defaultRootObject',\n httpVersion: 'httpVersion',\n ipv6Enabled: false,\n logging: {\n bucket: 'bucket',\n\n // the properties below are optional\n includeCookies: false,\n prefix: 'prefix',\n },\n originGroups: {\n quantity: 123,\n\n // the properties below are optional\n items: [{\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n }],\n },\n origins: [{\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n }],\n priceClass: 'priceClass',\n restrictions: {\n geoRestriction: {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n },\n },\n s3Origin: {\n dnsName: 'dnsName',\n\n // the properties below are optional\n originAccessIdentity: 'originAccessIdentity',\n },\n viewerCertificate: {\n acmCertificateArn: 'acmCertificateArn',\n cloudFrontDefaultCertificate: false,\n iamCertificateId: 'iamCertificateId',\n minimumProtocolVersion: 'minimumProtocolVersion',\n sslSupportMethod: 'sslSupportMethod',\n },\n webAclId: 'webAclId',\n },\n\n // the properties below are optional\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
5423 "version": "0"
5424 }
5425 },
5426 "location": {
5427 "api": {
5428 "api": "type",
5429 "fqn": "@aws-cdk/aws-cloudfront.CfnDistributionProps"
5430 },
5431 "field": {
5432 "field": "example"
5433 }
5434 },
5435 "didCompile": true,
5436 "fqnsReferenced": [
5437 "@aws-cdk/aws-cloudfront.CfnDistributionProps"
5438 ],
5439 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnDistributionProps: cloudfront.CfnDistributionProps = {\n distributionConfig: {\n defaultCacheBehavior: {\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n },\n enabled: false,\n\n // the properties below are optional\n aliases: ['aliases'],\n cacheBehaviors: [{\n pathPattern: 'pathPattern',\n targetOriginId: 'targetOriginId',\n viewerProtocolPolicy: 'viewerProtocolPolicy',\n\n // the properties below are optional\n allowedMethods: ['allowedMethods'],\n cachedMethods: ['cachedMethods'],\n cachePolicyId: 'cachePolicyId',\n compress: false,\n defaultTtl: 123,\n fieldLevelEncryptionId: 'fieldLevelEncryptionId',\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: 'eventType',\n functionArn: 'functionArn',\n }],\n lambdaFunctionAssociations: [{\n eventType: 'eventType',\n includeBody: false,\n lambdaFunctionArn: 'lambdaFunctionArn',\n }],\n maxTtl: 123,\n minTtl: 123,\n originRequestPolicyId: 'originRequestPolicyId',\n realtimeLogConfigArn: 'realtimeLogConfigArn',\n responseHeadersPolicyId: 'responseHeadersPolicyId',\n smoothStreaming: false,\n trustedKeyGroups: ['trustedKeyGroups'],\n trustedSigners: ['trustedSigners'],\n }],\n cnamEs: ['cnamEs'],\n comment: 'comment',\n customErrorResponses: [{\n errorCode: 123,\n\n // the properties below are optional\n errorCachingMinTtl: 123,\n responseCode: 123,\n responsePagePath: 'responsePagePath',\n }],\n customOrigin: {\n dnsName: 'dnsName',\n originProtocolPolicy: 'originProtocolPolicy',\n originSslProtocols: ['originSslProtocols'],\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n },\n defaultRootObject: 'defaultRootObject',\n httpVersion: 'httpVersion',\n ipv6Enabled: false,\n logging: {\n bucket: 'bucket',\n\n // the properties below are optional\n includeCookies: false,\n prefix: 'prefix',\n },\n originGroups: {\n quantity: 123,\n\n // the properties below are optional\n items: [{\n failoverCriteria: {\n statusCodes: {\n items: [123],\n quantity: 123,\n },\n },\n id: 'id',\n members: {\n items: [{\n originId: 'originId',\n }],\n quantity: 123,\n },\n }],\n },\n origins: [{\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n }],\n priceClass: 'priceClass',\n restrictions: {\n geoRestriction: {\n restrictionType: 'restrictionType',\n\n // the properties below are optional\n locations: ['locations'],\n },\n },\n s3Origin: {\n dnsName: 'dnsName',\n\n // the properties below are optional\n originAccessIdentity: 'originAccessIdentity',\n },\n viewerCertificate: {\n acmCertificateArn: 'acmCertificateArn',\n cloudFrontDefaultCertificate: false,\n iamCertificateId: 'iamCertificateId',\n minimumProtocolVersion: 'minimumProtocolVersion',\n sslSupportMethod: 'sslSupportMethod',\n },\n webAclId: 'webAclId',\n },\n\n // the properties below are optional\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5440 "syntaxKindCounter": {
5441 "8": 21,
5442 "10": 75,
5443 "75": 142,
5444 "91": 13,
5445 "153": 1,
5446 "169": 1,
5447 "192": 31,
5448 "193": 31,
5449 "225": 1,
5450 "242": 1,
5451 "243": 1,
5452 "254": 1,
5453 "255": 1,
5454 "256": 1,
5455 "281": 138,
5456 "290": 1
5457 },
5458 "fqnsFingerprint": "5e8c3dc36202598310c7bd79ccb7b2446f60067949253e5b1b12f006049e13e9"
5459 },
5460 "dad6166ea781ea6fe468f3f048b19d549e0f8dd2faae5e84b2ac3e561b5a552f": {
5461 "translations": {
5462 "python": {
5463 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_function = cloudfront.CfnFunction(self, \"MyCfnFunction\",\n name=\"name\",\n\n # the properties below are optional\n auto_publish=False,\n function_code=\"functionCode\",\n function_config=cloudfront.CfnFunction.FunctionConfigProperty(\n comment=\"comment\",\n runtime=\"runtime\"\n )\n)",
5464 "version": "2"
5465 },
5466 "csharp": {
5467 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnFunction cfnFunction = new CfnFunction(this, \"MyCfnFunction\", new CfnFunctionProps {\n Name = \"name\",\n\n // the properties below are optional\n AutoPublish = false,\n FunctionCode = \"functionCode\",\n FunctionConfig = new FunctionConfigProperty {\n Comment = \"comment\",\n Runtime = \"runtime\"\n }\n});",
5468 "version": "1"
5469 },
5470 "java": {
5471 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnFunction cfnFunction = CfnFunction.Builder.create(this, \"MyCfnFunction\")\n .name(\"name\")\n\n // the properties below are optional\n .autoPublish(false)\n .functionCode(\"functionCode\")\n .functionConfig(FunctionConfigProperty.builder()\n .comment(\"comment\")\n .runtime(\"runtime\")\n .build())\n .build();",
5472 "version": "1"
5473 },
5474 "go": {
5475 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnFunction := cloudfront.NewCfnFunction(this, jsii.String(\"MyCfnFunction\"), &cfnFunctionProps{\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tautoPublish: jsii.Boolean(false),\n\tfunctionCode: jsii.String(\"functionCode\"),\n\tfunctionConfig: &functionConfigProperty{\n\t\tcomment: jsii.String(\"comment\"),\n\t\truntime: jsii.String(\"runtime\"),\n\t},\n})",
5476 "version": "1"
5477 },
5478 "$": {
5479 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnFunction = new cloudfront.CfnFunction(this, 'MyCfnFunction', {\n name: 'name',\n\n // the properties below are optional\n autoPublish: false,\n functionCode: 'functionCode',\n functionConfig: {\n comment: 'comment',\n runtime: 'runtime',\n },\n});",
5480 "version": "0"
5481 }
5482 },
5483 "location": {
5484 "api": {
5485 "api": "type",
5486 "fqn": "@aws-cdk/aws-cloudfront.CfnFunction"
5487 },
5488 "field": {
5489 "field": "example"
5490 }
5491 },
5492 "didCompile": true,
5493 "fqnsReferenced": [
5494 "@aws-cdk/aws-cloudfront.CfnFunction",
5495 "@aws-cdk/aws-cloudfront.CfnFunctionProps",
5496 "@aws-cdk/core.Construct"
5497 ],
5498 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnFunction = new cloudfront.CfnFunction(this, 'MyCfnFunction', {\n name: 'name',\n\n // the properties below are optional\n autoPublish: false,\n functionCode: 'functionCode',\n functionConfig: {\n comment: 'comment',\n runtime: 'runtime',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5499 "syntaxKindCounter": {
5500 "10": 6,
5501 "75": 10,
5502 "91": 1,
5503 "104": 1,
5504 "193": 2,
5505 "194": 1,
5506 "197": 1,
5507 "225": 1,
5508 "242": 1,
5509 "243": 1,
5510 "254": 1,
5511 "255": 1,
5512 "256": 1,
5513 "281": 6,
5514 "290": 1
5515 },
5516 "fqnsFingerprint": "398fbf663a57324ad8c57355d2c2f7633c32eaecf68bd0eafc735168a3391ab6"
5517 },
5518 "f80caddb2a9ede8937efa3a1a9a7fa858eb4ebb7542a24b3ad672455bd23e9b9": {
5519 "translations": {
5520 "python": {
5521 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nfunction_config_property = cloudfront.CfnFunction.FunctionConfigProperty(\n comment=\"comment\",\n runtime=\"runtime\"\n)",
5522 "version": "2"
5523 },
5524 "csharp": {
5525 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFunctionConfigProperty functionConfigProperty = new FunctionConfigProperty {\n Comment = \"comment\",\n Runtime = \"runtime\"\n};",
5526 "version": "1"
5527 },
5528 "java": {
5529 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFunctionConfigProperty functionConfigProperty = FunctionConfigProperty.builder()\n .comment(\"comment\")\n .runtime(\"runtime\")\n .build();",
5530 "version": "1"
5531 },
5532 "go": {
5533 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nfunctionConfigProperty := &functionConfigProperty{\n\tcomment: jsii.String(\"comment\"),\n\truntime: jsii.String(\"runtime\"),\n}",
5534 "version": "1"
5535 },
5536 "$": {
5537 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst functionConfigProperty: cloudfront.CfnFunction.FunctionConfigProperty = {\n comment: 'comment',\n runtime: 'runtime',\n};",
5538 "version": "0"
5539 }
5540 },
5541 "location": {
5542 "api": {
5543 "api": "type",
5544 "fqn": "@aws-cdk/aws-cloudfront.CfnFunction.FunctionConfigProperty"
5545 },
5546 "field": {
5547 "field": "example"
5548 }
5549 },
5550 "didCompile": true,
5551 "fqnsReferenced": [
5552 "@aws-cdk/aws-cloudfront.CfnFunction.FunctionConfigProperty"
5553 ],
5554 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst functionConfigProperty: cloudfront.CfnFunction.FunctionConfigProperty = {\n comment: 'comment',\n runtime: 'runtime',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5555 "syntaxKindCounter": {
5556 "10": 3,
5557 "75": 7,
5558 "153": 2,
5559 "169": 1,
5560 "193": 1,
5561 "225": 1,
5562 "242": 1,
5563 "243": 1,
5564 "254": 1,
5565 "255": 1,
5566 "256": 1,
5567 "281": 2,
5568 "290": 1
5569 },
5570 "fqnsFingerprint": "cd7e1c250e9c0d72939ca2dab13876947255f2c6ce1e50cd60f75ff02e694c6f"
5571 },
5572 "2aaa04cb4c1540835ad6a10b45efe880e7d5f42278ebf5e4a0976ad126799736": {
5573 "translations": {
5574 "python": {
5575 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nfunction_metadata_property = cloudfront.CfnFunction.FunctionMetadataProperty(\n function_arn=\"functionArn\"\n)",
5576 "version": "2"
5577 },
5578 "csharp": {
5579 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFunctionMetadataProperty functionMetadataProperty = new FunctionMetadataProperty {\n FunctionArn = \"functionArn\"\n};",
5580 "version": "1"
5581 },
5582 "java": {
5583 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFunctionMetadataProperty functionMetadataProperty = FunctionMetadataProperty.builder()\n .functionArn(\"functionArn\")\n .build();",
5584 "version": "1"
5585 },
5586 "go": {
5587 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nfunctionMetadataProperty := &functionMetadataProperty{\n\tfunctionArn: jsii.String(\"functionArn\"),\n}",
5588 "version": "1"
5589 },
5590 "$": {
5591 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst functionMetadataProperty: cloudfront.CfnFunction.FunctionMetadataProperty = {\n functionArn: 'functionArn',\n};",
5592 "version": "0"
5593 }
5594 },
5595 "location": {
5596 "api": {
5597 "api": "type",
5598 "fqn": "@aws-cdk/aws-cloudfront.CfnFunction.FunctionMetadataProperty"
5599 },
5600 "field": {
5601 "field": "example"
5602 }
5603 },
5604 "didCompile": true,
5605 "fqnsReferenced": [
5606 "@aws-cdk/aws-cloudfront.CfnFunction.FunctionMetadataProperty"
5607 ],
5608 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst functionMetadataProperty: cloudfront.CfnFunction.FunctionMetadataProperty = {\n functionArn: 'functionArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5609 "syntaxKindCounter": {
5610 "10": 2,
5611 "75": 6,
5612 "153": 2,
5613 "169": 1,
5614 "193": 1,
5615 "225": 1,
5616 "242": 1,
5617 "243": 1,
5618 "254": 1,
5619 "255": 1,
5620 "256": 1,
5621 "281": 1,
5622 "290": 1
5623 },
5624 "fqnsFingerprint": "f2c166fe71d69e8904b7c6b3a8db4aadb994bd029522107dd690e5257b63c0ad"
5625 },
5626 "d6e3eef378c6f55bf29b6a5cda2bf25b27758c9bc4ace23ef4c5f9a543e8683e": {
5627 "translations": {
5628 "python": {
5629 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_function_props = cloudfront.CfnFunctionProps(\n name=\"name\",\n\n # the properties below are optional\n auto_publish=False,\n function_code=\"functionCode\",\n function_config=cloudfront.CfnFunction.FunctionConfigProperty(\n comment=\"comment\",\n runtime=\"runtime\"\n )\n)",
5630 "version": "2"
5631 },
5632 "csharp": {
5633 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnFunctionProps cfnFunctionProps = new CfnFunctionProps {\n Name = \"name\",\n\n // the properties below are optional\n AutoPublish = false,\n FunctionCode = \"functionCode\",\n FunctionConfig = new FunctionConfigProperty {\n Comment = \"comment\",\n Runtime = \"runtime\"\n }\n};",
5634 "version": "1"
5635 },
5636 "java": {
5637 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnFunctionProps cfnFunctionProps = CfnFunctionProps.builder()\n .name(\"name\")\n\n // the properties below are optional\n .autoPublish(false)\n .functionCode(\"functionCode\")\n .functionConfig(FunctionConfigProperty.builder()\n .comment(\"comment\")\n .runtime(\"runtime\")\n .build())\n .build();",
5638 "version": "1"
5639 },
5640 "go": {
5641 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnFunctionProps := &cfnFunctionProps{\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tautoPublish: jsii.Boolean(false),\n\tfunctionCode: jsii.String(\"functionCode\"),\n\tfunctionConfig: &functionConfigProperty{\n\t\tcomment: jsii.String(\"comment\"),\n\t\truntime: jsii.String(\"runtime\"),\n\t},\n}",
5642 "version": "1"
5643 },
5644 "$": {
5645 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnFunctionProps: cloudfront.CfnFunctionProps = {\n name: 'name',\n\n // the properties below are optional\n autoPublish: false,\n functionCode: 'functionCode',\n functionConfig: {\n comment: 'comment',\n runtime: 'runtime',\n },\n};",
5646 "version": "0"
5647 }
5648 },
5649 "location": {
5650 "api": {
5651 "api": "type",
5652 "fqn": "@aws-cdk/aws-cloudfront.CfnFunctionProps"
5653 },
5654 "field": {
5655 "field": "example"
5656 }
5657 },
5658 "didCompile": true,
5659 "fqnsReferenced": [
5660 "@aws-cdk/aws-cloudfront.CfnFunctionProps"
5661 ],
5662 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnFunctionProps: cloudfront.CfnFunctionProps = {\n name: 'name',\n\n // the properties below are optional\n autoPublish: false,\n functionCode: 'functionCode',\n functionConfig: {\n comment: 'comment',\n runtime: 'runtime',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5663 "syntaxKindCounter": {
5664 "10": 5,
5665 "75": 10,
5666 "91": 1,
5667 "153": 1,
5668 "169": 1,
5669 "193": 2,
5670 "225": 1,
5671 "242": 1,
5672 "243": 1,
5673 "254": 1,
5674 "255": 1,
5675 "256": 1,
5676 "281": 6,
5677 "290": 1
5678 },
5679 "fqnsFingerprint": "ff809c566a0f470cf7c342e25a7ef6faac4a08b9c5b6def5d9f8ef31ac7d50f2"
5680 },
5681 "3f8fdddfed3f313ed1506acd8b981bbcb3ad1f4554729bcb735704b90e0e39f3": {
5682 "translations": {
5683 "python": {
5684 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_key_group = cloudfront.CfnKeyGroup(self, \"MyCfnKeyGroup\",\n key_group_config=cloudfront.CfnKeyGroup.KeyGroupConfigProperty(\n items=[\"items\"],\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
5685 "version": "2"
5686 },
5687 "csharp": {
5688 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnKeyGroup cfnKeyGroup = new CfnKeyGroup(this, \"MyCfnKeyGroup\", new CfnKeyGroupProps {\n KeyGroupConfig = new KeyGroupConfigProperty {\n Items = new [] { \"items\" },\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\"\n }\n});",
5689 "version": "1"
5690 },
5691 "java": {
5692 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnKeyGroup cfnKeyGroup = CfnKeyGroup.Builder.create(this, \"MyCfnKeyGroup\")\n .keyGroupConfig(KeyGroupConfigProperty.builder()\n .items(List.of(\"items\"))\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
5693 "version": "1"
5694 },
5695 "go": {
5696 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnKeyGroup := cloudfront.NewCfnKeyGroup(this, jsii.String(\"MyCfnKeyGroup\"), &cfnKeyGroupProps{\n\tkeyGroupConfig: &keyGroupConfigProperty{\n\t\titems: []*string{\n\t\t\tjsii.String(\"items\"),\n\t\t},\n\t\tname: jsii.String(\"name\"),\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n})",
5697 "version": "1"
5698 },
5699 "$": {
5700 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnKeyGroup = new cloudfront.CfnKeyGroup(this, 'MyCfnKeyGroup', {\n keyGroupConfig: {\n items: ['items'],\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n});",
5701 "version": "0"
5702 }
5703 },
5704 "location": {
5705 "api": {
5706 "api": "type",
5707 "fqn": "@aws-cdk/aws-cloudfront.CfnKeyGroup"
5708 },
5709 "field": {
5710 "field": "example"
5711 }
5712 },
5713 "didCompile": true,
5714 "fqnsReferenced": [
5715 "@aws-cdk/aws-cloudfront.CfnKeyGroup",
5716 "@aws-cdk/aws-cloudfront.CfnKeyGroupProps",
5717 "@aws-cdk/core.Construct"
5718 ],
5719 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnKeyGroup = new cloudfront.CfnKeyGroup(this, 'MyCfnKeyGroup', {\n keyGroupConfig: {\n items: ['items'],\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5720 "syntaxKindCounter": {
5721 "10": 5,
5722 "75": 8,
5723 "104": 1,
5724 "192": 1,
5725 "193": 2,
5726 "194": 1,
5727 "197": 1,
5728 "225": 1,
5729 "242": 1,
5730 "243": 1,
5731 "254": 1,
5732 "255": 1,
5733 "256": 1,
5734 "281": 4,
5735 "290": 1
5736 },
5737 "fqnsFingerprint": "ec6c478d92ad9b2aec0f97ece43b43703c5698412d569df60ee72ea07afd0e1f"
5738 },
5739 "ea7d58f449772647e073c3c2acdc0021abdfe2ec2e5b73ee82f1d600352a4ce8": {
5740 "translations": {
5741 "python": {
5742 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nkey_group_config_property = cloudfront.CfnKeyGroup.KeyGroupConfigProperty(\n items=[\"items\"],\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\"\n)",
5743 "version": "2"
5744 },
5745 "csharp": {
5746 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nKeyGroupConfigProperty keyGroupConfigProperty = new KeyGroupConfigProperty {\n Items = new [] { \"items\" },\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\"\n};",
5747 "version": "1"
5748 },
5749 "java": {
5750 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nKeyGroupConfigProperty keyGroupConfigProperty = KeyGroupConfigProperty.builder()\n .items(List.of(\"items\"))\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .build();",
5751 "version": "1"
5752 },
5753 "go": {
5754 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nkeyGroupConfigProperty := &keyGroupConfigProperty{\n\titems: []*string{\n\t\tjsii.String(\"items\"),\n\t},\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tcomment: jsii.String(\"comment\"),\n}",
5755 "version": "1"
5756 },
5757 "$": {
5758 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst keyGroupConfigProperty: cloudfront.CfnKeyGroup.KeyGroupConfigProperty = {\n items: ['items'],\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n};",
5759 "version": "0"
5760 }
5761 },
5762 "location": {
5763 "api": {
5764 "api": "type",
5765 "fqn": "@aws-cdk/aws-cloudfront.CfnKeyGroup.KeyGroupConfigProperty"
5766 },
5767 "field": {
5768 "field": "example"
5769 }
5770 },
5771 "didCompile": true,
5772 "fqnsReferenced": [
5773 "@aws-cdk/aws-cloudfront.CfnKeyGroup.KeyGroupConfigProperty"
5774 ],
5775 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst keyGroupConfigProperty: cloudfront.CfnKeyGroup.KeyGroupConfigProperty = {\n items: ['items'],\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5776 "syntaxKindCounter": {
5777 "10": 4,
5778 "75": 8,
5779 "153": 2,
5780 "169": 1,
5781 "192": 1,
5782 "193": 1,
5783 "225": 1,
5784 "242": 1,
5785 "243": 1,
5786 "254": 1,
5787 "255": 1,
5788 "256": 1,
5789 "281": 3,
5790 "290": 1
5791 },
5792 "fqnsFingerprint": "d155d235768184f40e46aa82bba618d52f9e47fefb29493cbfb933cfc149fb99"
5793 },
5794 "96f5547045bd0e9eb0eba68190d65cf0d2ec6f316791ebd266fdd1c9340fe20a": {
5795 "translations": {
5796 "python": {
5797 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_key_group_props = cloudfront.CfnKeyGroupProps(\n key_group_config=cloudfront.CfnKeyGroup.KeyGroupConfigProperty(\n items=[\"items\"],\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
5798 "version": "2"
5799 },
5800 "csharp": {
5801 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnKeyGroupProps cfnKeyGroupProps = new CfnKeyGroupProps {\n KeyGroupConfig = new KeyGroupConfigProperty {\n Items = new [] { \"items\" },\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\"\n }\n};",
5802 "version": "1"
5803 },
5804 "java": {
5805 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnKeyGroupProps cfnKeyGroupProps = CfnKeyGroupProps.builder()\n .keyGroupConfig(KeyGroupConfigProperty.builder()\n .items(List.of(\"items\"))\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
5806 "version": "1"
5807 },
5808 "go": {
5809 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnKeyGroupProps := &cfnKeyGroupProps{\n\tkeyGroupConfig: &keyGroupConfigProperty{\n\t\titems: []*string{\n\t\t\tjsii.String(\"items\"),\n\t\t},\n\t\tname: jsii.String(\"name\"),\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n}",
5810 "version": "1"
5811 },
5812 "$": {
5813 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnKeyGroupProps: cloudfront.CfnKeyGroupProps = {\n keyGroupConfig: {\n items: ['items'],\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n};",
5814 "version": "0"
5815 }
5816 },
5817 "location": {
5818 "api": {
5819 "api": "type",
5820 "fqn": "@aws-cdk/aws-cloudfront.CfnKeyGroupProps"
5821 },
5822 "field": {
5823 "field": "example"
5824 }
5825 },
5826 "didCompile": true,
5827 "fqnsReferenced": [
5828 "@aws-cdk/aws-cloudfront.CfnKeyGroupProps"
5829 ],
5830 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnKeyGroupProps: cloudfront.CfnKeyGroupProps = {\n keyGroupConfig: {\n items: ['items'],\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5831 "syntaxKindCounter": {
5832 "10": 4,
5833 "75": 8,
5834 "153": 1,
5835 "169": 1,
5836 "192": 1,
5837 "193": 2,
5838 "225": 1,
5839 "242": 1,
5840 "243": 1,
5841 "254": 1,
5842 "255": 1,
5843 "256": 1,
5844 "281": 4,
5845 "290": 1
5846 },
5847 "fqnsFingerprint": "7d82c0703c27393d7197f923d3b680ef288766dc9890c54bdffc9322a6c65a18"
5848 },
5849 "82f68d4de5fe551ac71784b0bb3a52eacca1f0be0ec0bf018fb753d2bd3d64de": {
5850 "translations": {
5851 "python": {
5852 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_monitoring_subscription = cloudfront.CfnMonitoringSubscription(self, \"MyCfnMonitoringSubscription\",\n distribution_id=\"distributionId\",\n monitoring_subscription=cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty(\n realtime_metrics_subscription_config=cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty(\n realtime_metrics_subscription_status=\"realtimeMetricsSubscriptionStatus\"\n )\n )\n)",
5853 "version": "2"
5854 },
5855 "csharp": {
5856 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnMonitoringSubscription cfnMonitoringSubscription = new CfnMonitoringSubscription(this, \"MyCfnMonitoringSubscription\", new CfnMonitoringSubscriptionProps {\n DistributionId = \"distributionId\",\n MonitoringSubscription = new MonitoringSubscriptionProperty {\n RealtimeMetricsSubscriptionConfig = new RealtimeMetricsSubscriptionConfigProperty {\n RealtimeMetricsSubscriptionStatus = \"realtimeMetricsSubscriptionStatus\"\n }\n }\n});",
5857 "version": "1"
5858 },
5859 "java": {
5860 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnMonitoringSubscription cfnMonitoringSubscription = CfnMonitoringSubscription.Builder.create(this, \"MyCfnMonitoringSubscription\")\n .distributionId(\"distributionId\")\n .monitoringSubscription(MonitoringSubscriptionProperty.builder()\n .realtimeMetricsSubscriptionConfig(RealtimeMetricsSubscriptionConfigProperty.builder()\n .realtimeMetricsSubscriptionStatus(\"realtimeMetricsSubscriptionStatus\")\n .build())\n .build())\n .build();",
5861 "version": "1"
5862 },
5863 "go": {
5864 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnMonitoringSubscription := cloudfront.NewCfnMonitoringSubscription(this, jsii.String(\"MyCfnMonitoringSubscription\"), &cfnMonitoringSubscriptionProps{\n\tdistributionId: jsii.String(\"distributionId\"),\n\tmonitoringSubscription: &monitoringSubscriptionProperty{\n\t\trealtimeMetricsSubscriptionConfig: &realtimeMetricsSubscriptionConfigProperty{\n\t\t\trealtimeMetricsSubscriptionStatus: jsii.String(\"realtimeMetricsSubscriptionStatus\"),\n\t\t},\n\t},\n})",
5865 "version": "1"
5866 },
5867 "$": {
5868 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnMonitoringSubscription = new cloudfront.CfnMonitoringSubscription(this, 'MyCfnMonitoringSubscription', {\n distributionId: 'distributionId',\n monitoringSubscription: {\n realtimeMetricsSubscriptionConfig: {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n },\n },\n});",
5869 "version": "0"
5870 }
5871 },
5872 "location": {
5873 "api": {
5874 "api": "type",
5875 "fqn": "@aws-cdk/aws-cloudfront.CfnMonitoringSubscription"
5876 },
5877 "field": {
5878 "field": "example"
5879 }
5880 },
5881 "didCompile": true,
5882 "fqnsReferenced": [
5883 "@aws-cdk/aws-cloudfront.CfnMonitoringSubscription",
5884 "@aws-cdk/aws-cloudfront.CfnMonitoringSubscriptionProps",
5885 "@aws-cdk/core.Construct"
5886 ],
5887 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnMonitoringSubscription = new cloudfront.CfnMonitoringSubscription(this, 'MyCfnMonitoringSubscription', {\n distributionId: 'distributionId',\n monitoringSubscription: {\n realtimeMetricsSubscriptionConfig: {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5888 "syntaxKindCounter": {
5889 "10": 4,
5890 "75": 8,
5891 "104": 1,
5892 "193": 3,
5893 "194": 1,
5894 "197": 1,
5895 "225": 1,
5896 "242": 1,
5897 "243": 1,
5898 "254": 1,
5899 "255": 1,
5900 "256": 1,
5901 "281": 4,
5902 "290": 1
5903 },
5904 "fqnsFingerprint": "2a55330e8cb9803869af4988a77844a65ac9c557356933f4e35f745dcbf0da16"
5905 },
5906 "434a2e92c1f04f91b7443c44c7332729b1053c99943a3c0df9932815b123d351": {
5907 "translations": {
5908 "python": {
5909 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nmonitoring_subscription_property = cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty(\n realtime_metrics_subscription_config=cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty(\n realtime_metrics_subscription_status=\"realtimeMetricsSubscriptionStatus\"\n )\n)",
5910 "version": "2"
5911 },
5912 "csharp": {
5913 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nMonitoringSubscriptionProperty monitoringSubscriptionProperty = new MonitoringSubscriptionProperty {\n RealtimeMetricsSubscriptionConfig = new RealtimeMetricsSubscriptionConfigProperty {\n RealtimeMetricsSubscriptionStatus = \"realtimeMetricsSubscriptionStatus\"\n }\n};",
5914 "version": "1"
5915 },
5916 "java": {
5917 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nMonitoringSubscriptionProperty monitoringSubscriptionProperty = MonitoringSubscriptionProperty.builder()\n .realtimeMetricsSubscriptionConfig(RealtimeMetricsSubscriptionConfigProperty.builder()\n .realtimeMetricsSubscriptionStatus(\"realtimeMetricsSubscriptionStatus\")\n .build())\n .build();",
5918 "version": "1"
5919 },
5920 "go": {
5921 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nmonitoringSubscriptionProperty := &monitoringSubscriptionProperty{\n\trealtimeMetricsSubscriptionConfig: &realtimeMetricsSubscriptionConfigProperty{\n\t\trealtimeMetricsSubscriptionStatus: jsii.String(\"realtimeMetricsSubscriptionStatus\"),\n\t},\n}",
5922 "version": "1"
5923 },
5924 "$": {
5925 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst monitoringSubscriptionProperty: cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty = {\n realtimeMetricsSubscriptionConfig: {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n },\n};",
5926 "version": "0"
5927 }
5928 },
5929 "location": {
5930 "api": {
5931 "api": "type",
5932 "fqn": "@aws-cdk/aws-cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty"
5933 },
5934 "field": {
5935 "field": "example"
5936 }
5937 },
5938 "didCompile": true,
5939 "fqnsReferenced": [
5940 "@aws-cdk/aws-cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty"
5941 ],
5942 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst monitoringSubscriptionProperty: cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty = {\n realtimeMetricsSubscriptionConfig: {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5943 "syntaxKindCounter": {
5944 "10": 2,
5945 "75": 7,
5946 "153": 2,
5947 "169": 1,
5948 "193": 2,
5949 "225": 1,
5950 "242": 1,
5951 "243": 1,
5952 "254": 1,
5953 "255": 1,
5954 "256": 1,
5955 "281": 2,
5956 "290": 1
5957 },
5958 "fqnsFingerprint": "f32a96f77a1ceb0bf37b86c7ac2736753fc358dc137b55ae75b1a502c8322da9"
5959 },
5960 "68e7153ea2acbcda2c02ddad40c53be30db73ed6cbecf0c82b3f3f70c0b2df45": {
5961 "translations": {
5962 "python": {
5963 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nrealtime_metrics_subscription_config_property = cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty(\n realtime_metrics_subscription_status=\"realtimeMetricsSubscriptionStatus\"\n)",
5964 "version": "2"
5965 },
5966 "csharp": {
5967 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nRealtimeMetricsSubscriptionConfigProperty realtimeMetricsSubscriptionConfigProperty = new RealtimeMetricsSubscriptionConfigProperty {\n RealtimeMetricsSubscriptionStatus = \"realtimeMetricsSubscriptionStatus\"\n};",
5968 "version": "1"
5969 },
5970 "java": {
5971 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nRealtimeMetricsSubscriptionConfigProperty realtimeMetricsSubscriptionConfigProperty = RealtimeMetricsSubscriptionConfigProperty.builder()\n .realtimeMetricsSubscriptionStatus(\"realtimeMetricsSubscriptionStatus\")\n .build();",
5972 "version": "1"
5973 },
5974 "go": {
5975 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nrealtimeMetricsSubscriptionConfigProperty := &realtimeMetricsSubscriptionConfigProperty{\n\trealtimeMetricsSubscriptionStatus: jsii.String(\"realtimeMetricsSubscriptionStatus\"),\n}",
5976 "version": "1"
5977 },
5978 "$": {
5979 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst realtimeMetricsSubscriptionConfigProperty: cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty = {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n};",
5980 "version": "0"
5981 }
5982 },
5983 "location": {
5984 "api": {
5985 "api": "type",
5986 "fqn": "@aws-cdk/aws-cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty"
5987 },
5988 "field": {
5989 "field": "example"
5990 }
5991 },
5992 "didCompile": true,
5993 "fqnsReferenced": [
5994 "@aws-cdk/aws-cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty"
5995 ],
5996 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst realtimeMetricsSubscriptionConfigProperty: cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty = {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
5997 "syntaxKindCounter": {
5998 "10": 2,
5999 "75": 6,
6000 "153": 2,
6001 "169": 1,
6002 "193": 1,
6003 "225": 1,
6004 "242": 1,
6005 "243": 1,
6006 "254": 1,
6007 "255": 1,
6008 "256": 1,
6009 "281": 1,
6010 "290": 1
6011 },
6012 "fqnsFingerprint": "1036967bd53c86d3f08d5f23a6691d9ee22b6794eae1f1e464038fd1221e317e"
6013 },
6014 "8cc39615a7cf618b311fb05530ea2896ede358e531793a33b69ff5c0991ace9b": {
6015 "translations": {
6016 "python": {
6017 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_monitoring_subscription_props = cloudfront.CfnMonitoringSubscriptionProps(\n distribution_id=\"distributionId\",\n monitoring_subscription=cloudfront.CfnMonitoringSubscription.MonitoringSubscriptionProperty(\n realtime_metrics_subscription_config=cloudfront.CfnMonitoringSubscription.RealtimeMetricsSubscriptionConfigProperty(\n realtime_metrics_subscription_status=\"realtimeMetricsSubscriptionStatus\"\n )\n )\n)",
6018 "version": "2"
6019 },
6020 "csharp": {
6021 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnMonitoringSubscriptionProps cfnMonitoringSubscriptionProps = new CfnMonitoringSubscriptionProps {\n DistributionId = \"distributionId\",\n MonitoringSubscription = new MonitoringSubscriptionProperty {\n RealtimeMetricsSubscriptionConfig = new RealtimeMetricsSubscriptionConfigProperty {\n RealtimeMetricsSubscriptionStatus = \"realtimeMetricsSubscriptionStatus\"\n }\n }\n};",
6022 "version": "1"
6023 },
6024 "java": {
6025 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnMonitoringSubscriptionProps cfnMonitoringSubscriptionProps = CfnMonitoringSubscriptionProps.builder()\n .distributionId(\"distributionId\")\n .monitoringSubscription(MonitoringSubscriptionProperty.builder()\n .realtimeMetricsSubscriptionConfig(RealtimeMetricsSubscriptionConfigProperty.builder()\n .realtimeMetricsSubscriptionStatus(\"realtimeMetricsSubscriptionStatus\")\n .build())\n .build())\n .build();",
6026 "version": "1"
6027 },
6028 "go": {
6029 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnMonitoringSubscriptionProps := &cfnMonitoringSubscriptionProps{\n\tdistributionId: jsii.String(\"distributionId\"),\n\tmonitoringSubscription: &monitoringSubscriptionProperty{\n\t\trealtimeMetricsSubscriptionConfig: &realtimeMetricsSubscriptionConfigProperty{\n\t\t\trealtimeMetricsSubscriptionStatus: jsii.String(\"realtimeMetricsSubscriptionStatus\"),\n\t\t},\n\t},\n}",
6030 "version": "1"
6031 },
6032 "$": {
6033 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnMonitoringSubscriptionProps: cloudfront.CfnMonitoringSubscriptionProps = {\n distributionId: 'distributionId',\n monitoringSubscription: {\n realtimeMetricsSubscriptionConfig: {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n },\n },\n};",
6034 "version": "0"
6035 }
6036 },
6037 "location": {
6038 "api": {
6039 "api": "type",
6040 "fqn": "@aws-cdk/aws-cloudfront.CfnMonitoringSubscriptionProps"
6041 },
6042 "field": {
6043 "field": "example"
6044 }
6045 },
6046 "didCompile": true,
6047 "fqnsReferenced": [
6048 "@aws-cdk/aws-cloudfront.CfnMonitoringSubscriptionProps"
6049 ],
6050 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnMonitoringSubscriptionProps: cloudfront.CfnMonitoringSubscriptionProps = {\n distributionId: 'distributionId',\n monitoringSubscription: {\n realtimeMetricsSubscriptionConfig: {\n realtimeMetricsSubscriptionStatus: 'realtimeMetricsSubscriptionStatus',\n },\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6051 "syntaxKindCounter": {
6052 "10": 3,
6053 "75": 8,
6054 "153": 1,
6055 "169": 1,
6056 "193": 3,
6057 "225": 1,
6058 "242": 1,
6059 "243": 1,
6060 "254": 1,
6061 "255": 1,
6062 "256": 1,
6063 "281": 4,
6064 "290": 1
6065 },
6066 "fqnsFingerprint": "fc2440a248824e2ab5152dc88950d67238d10a706bc3d6edd9b91c7593a38fdb"
6067 },
6068 "d363bd332204563a8475b8f8e4a5e1c7566524237a33e7ac63c9aeab846ceb1c": {
6069 "translations": {
6070 "python": {
6071 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_origin_access_control = cloudfront.CfnOriginAccessControl(self, \"MyCfnOriginAccessControl\",\n origin_access_control_config=cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty(\n name=\"name\",\n origin_access_control_origin_type=\"originAccessControlOriginType\",\n signing_behavior=\"signingBehavior\",\n signing_protocol=\"signingProtocol\",\n\n # the properties below are optional\n description=\"description\"\n )\n)",
6072 "version": "2"
6073 },
6074 "csharp": {
6075 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnOriginAccessControl cfnOriginAccessControl = new CfnOriginAccessControl(this, \"MyCfnOriginAccessControl\", new CfnOriginAccessControlProps {\n OriginAccessControlConfig = new OriginAccessControlConfigProperty {\n Name = \"name\",\n OriginAccessControlOriginType = \"originAccessControlOriginType\",\n SigningBehavior = \"signingBehavior\",\n SigningProtocol = \"signingProtocol\",\n\n // the properties below are optional\n Description = \"description\"\n }\n});",
6076 "version": "1"
6077 },
6078 "java": {
6079 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnOriginAccessControl cfnOriginAccessControl = CfnOriginAccessControl.Builder.create(this, \"MyCfnOriginAccessControl\")\n .originAccessControlConfig(OriginAccessControlConfigProperty.builder()\n .name(\"name\")\n .originAccessControlOriginType(\"originAccessControlOriginType\")\n .signingBehavior(\"signingBehavior\")\n .signingProtocol(\"signingProtocol\")\n\n // the properties below are optional\n .description(\"description\")\n .build())\n .build();",
6080 "version": "1"
6081 },
6082 "go": {
6083 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnOriginAccessControl := cloudfront.NewCfnOriginAccessControl(this, jsii.String(\"MyCfnOriginAccessControl\"), &cfnOriginAccessControlProps{\n\toriginAccessControlConfig: &originAccessControlConfigProperty{\n\t\tname: jsii.String(\"name\"),\n\t\toriginAccessControlOriginType: jsii.String(\"originAccessControlOriginType\"),\n\t\tsigningBehavior: jsii.String(\"signingBehavior\"),\n\t\tsigningProtocol: jsii.String(\"signingProtocol\"),\n\n\t\t// the properties below are optional\n\t\tdescription: jsii.String(\"description\"),\n\t},\n})",
6084 "version": "1"
6085 },
6086 "$": {
6087 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnOriginAccessControl = new cloudfront.CfnOriginAccessControl(this, 'MyCfnOriginAccessControl', {\n originAccessControlConfig: {\n name: 'name',\n originAccessControlOriginType: 'originAccessControlOriginType',\n signingBehavior: 'signingBehavior',\n signingProtocol: 'signingProtocol',\n\n // the properties below are optional\n description: 'description',\n },\n});",
6088 "version": "0"
6089 }
6090 },
6091 "location": {
6092 "api": {
6093 "api": "type",
6094 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginAccessControl"
6095 },
6096 "field": {
6097 "field": "example"
6098 }
6099 },
6100 "didCompile": true,
6101 "fqnsReferenced": [
6102 "@aws-cdk/aws-cloudfront.CfnOriginAccessControl",
6103 "@aws-cdk/aws-cloudfront.CfnOriginAccessControlProps",
6104 "@aws-cdk/core.Construct"
6105 ],
6106 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnOriginAccessControl = new cloudfront.CfnOriginAccessControl(this, 'MyCfnOriginAccessControl', {\n originAccessControlConfig: {\n name: 'name',\n originAccessControlOriginType: 'originAccessControlOriginType',\n signingBehavior: 'signingBehavior',\n signingProtocol: 'signingProtocol',\n\n // the properties below are optional\n description: 'description',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6107 "syntaxKindCounter": {
6108 "10": 7,
6109 "75": 10,
6110 "104": 1,
6111 "193": 2,
6112 "194": 1,
6113 "197": 1,
6114 "225": 1,
6115 "242": 1,
6116 "243": 1,
6117 "254": 1,
6118 "255": 1,
6119 "256": 1,
6120 "281": 6,
6121 "290": 1
6122 },
6123 "fqnsFingerprint": "623cb056f0b0f1c43b7553509ba9286c84e60cf26440007f3c1cd0892906927f"
6124 },
6125 "5452f7989dba097aceba0f052f4f8aa4e7bc6e6fd74b6416d1e3e154b2d553cd": {
6126 "translations": {
6127 "python": {
6128 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_access_control_config_property = cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty(\n name=\"name\",\n origin_access_control_origin_type=\"originAccessControlOriginType\",\n signing_behavior=\"signingBehavior\",\n signing_protocol=\"signingProtocol\",\n\n # the properties below are optional\n description=\"description\"\n)",
6129 "version": "2"
6130 },
6131 "csharp": {
6132 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginAccessControlConfigProperty originAccessControlConfigProperty = new OriginAccessControlConfigProperty {\n Name = \"name\",\n OriginAccessControlOriginType = \"originAccessControlOriginType\",\n SigningBehavior = \"signingBehavior\",\n SigningProtocol = \"signingProtocol\",\n\n // the properties below are optional\n Description = \"description\"\n};",
6133 "version": "1"
6134 },
6135 "java": {
6136 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginAccessControlConfigProperty originAccessControlConfigProperty = OriginAccessControlConfigProperty.builder()\n .name(\"name\")\n .originAccessControlOriginType(\"originAccessControlOriginType\")\n .signingBehavior(\"signingBehavior\")\n .signingProtocol(\"signingProtocol\")\n\n // the properties below are optional\n .description(\"description\")\n .build();",
6137 "version": "1"
6138 },
6139 "go": {
6140 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginAccessControlConfigProperty := &originAccessControlConfigProperty{\n\tname: jsii.String(\"name\"),\n\toriginAccessControlOriginType: jsii.String(\"originAccessControlOriginType\"),\n\tsigningBehavior: jsii.String(\"signingBehavior\"),\n\tsigningProtocol: jsii.String(\"signingProtocol\"),\n\n\t// the properties below are optional\n\tdescription: jsii.String(\"description\"),\n}",
6141 "version": "1"
6142 },
6143 "$": {
6144 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originAccessControlConfigProperty: cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty = {\n name: 'name',\n originAccessControlOriginType: 'originAccessControlOriginType',\n signingBehavior: 'signingBehavior',\n signingProtocol: 'signingProtocol',\n\n // the properties below are optional\n description: 'description',\n};",
6145 "version": "0"
6146 }
6147 },
6148 "location": {
6149 "api": {
6150 "api": "type",
6151 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty"
6152 },
6153 "field": {
6154 "field": "example"
6155 }
6156 },
6157 "didCompile": true,
6158 "fqnsReferenced": [
6159 "@aws-cdk/aws-cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty"
6160 ],
6161 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originAccessControlConfigProperty: cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty = {\n name: 'name',\n originAccessControlOriginType: 'originAccessControlOriginType',\n signingBehavior: 'signingBehavior',\n signingProtocol: 'signingProtocol',\n\n // the properties below are optional\n description: 'description',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6162 "syntaxKindCounter": {
6163 "10": 6,
6164 "75": 10,
6165 "153": 2,
6166 "169": 1,
6167 "193": 1,
6168 "225": 1,
6169 "242": 1,
6170 "243": 1,
6171 "254": 1,
6172 "255": 1,
6173 "256": 1,
6174 "281": 5,
6175 "290": 1
6176 },
6177 "fqnsFingerprint": "10b2ba94cd5855d0add057632864472d4b62eebad01eab273728157c24539d69"
6178 },
6179 "926ad674fe55f232fa8e068adacbb8ef29245e4e25e84c124c5980acac6712a3": {
6180 "translations": {
6181 "python": {
6182 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_origin_access_control_props = cloudfront.CfnOriginAccessControlProps(\n origin_access_control_config=cloudfront.CfnOriginAccessControl.OriginAccessControlConfigProperty(\n name=\"name\",\n origin_access_control_origin_type=\"originAccessControlOriginType\",\n signing_behavior=\"signingBehavior\",\n signing_protocol=\"signingProtocol\",\n\n # the properties below are optional\n description=\"description\"\n )\n)",
6183 "version": "2"
6184 },
6185 "csharp": {
6186 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnOriginAccessControlProps cfnOriginAccessControlProps = new CfnOriginAccessControlProps {\n OriginAccessControlConfig = new OriginAccessControlConfigProperty {\n Name = \"name\",\n OriginAccessControlOriginType = \"originAccessControlOriginType\",\n SigningBehavior = \"signingBehavior\",\n SigningProtocol = \"signingProtocol\",\n\n // the properties below are optional\n Description = \"description\"\n }\n};",
6187 "version": "1"
6188 },
6189 "java": {
6190 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnOriginAccessControlProps cfnOriginAccessControlProps = CfnOriginAccessControlProps.builder()\n .originAccessControlConfig(OriginAccessControlConfigProperty.builder()\n .name(\"name\")\n .originAccessControlOriginType(\"originAccessControlOriginType\")\n .signingBehavior(\"signingBehavior\")\n .signingProtocol(\"signingProtocol\")\n\n // the properties below are optional\n .description(\"description\")\n .build())\n .build();",
6191 "version": "1"
6192 },
6193 "go": {
6194 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnOriginAccessControlProps := &cfnOriginAccessControlProps{\n\toriginAccessControlConfig: &originAccessControlConfigProperty{\n\t\tname: jsii.String(\"name\"),\n\t\toriginAccessControlOriginType: jsii.String(\"originAccessControlOriginType\"),\n\t\tsigningBehavior: jsii.String(\"signingBehavior\"),\n\t\tsigningProtocol: jsii.String(\"signingProtocol\"),\n\n\t\t// the properties below are optional\n\t\tdescription: jsii.String(\"description\"),\n\t},\n}",
6195 "version": "1"
6196 },
6197 "$": {
6198 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnOriginAccessControlProps: cloudfront.CfnOriginAccessControlProps = {\n originAccessControlConfig: {\n name: 'name',\n originAccessControlOriginType: 'originAccessControlOriginType',\n signingBehavior: 'signingBehavior',\n signingProtocol: 'signingProtocol',\n\n // the properties below are optional\n description: 'description',\n },\n};",
6199 "version": "0"
6200 }
6201 },
6202 "location": {
6203 "api": {
6204 "api": "type",
6205 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginAccessControlProps"
6206 },
6207 "field": {
6208 "field": "example"
6209 }
6210 },
6211 "didCompile": true,
6212 "fqnsReferenced": [
6213 "@aws-cdk/aws-cloudfront.CfnOriginAccessControlProps"
6214 ],
6215 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnOriginAccessControlProps: cloudfront.CfnOriginAccessControlProps = {\n originAccessControlConfig: {\n name: 'name',\n originAccessControlOriginType: 'originAccessControlOriginType',\n signingBehavior: 'signingBehavior',\n signingProtocol: 'signingProtocol',\n\n // the properties below are optional\n description: 'description',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6216 "syntaxKindCounter": {
6217 "10": 6,
6218 "75": 10,
6219 "153": 1,
6220 "169": 1,
6221 "193": 2,
6222 "225": 1,
6223 "242": 1,
6224 "243": 1,
6225 "254": 1,
6226 "255": 1,
6227 "256": 1,
6228 "281": 6,
6229 "290": 1
6230 },
6231 "fqnsFingerprint": "14db08789bc7ec9efd63d7d5290730ad034dedfcfa032e3df8c8d9247b8a0673"
6232 },
6233 "ae1dc47cfd2ceebd74832546060215df2428f6b869266fa87e85d8cc8260f3ce": {
6234 "translations": {
6235 "python": {
6236 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_origin_request_policy = cloudfront.CfnOriginRequestPolicy(self, \"MyCfnOriginRequestPolicy\",\n origin_request_policy_config=cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty(\n cookies_config=cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n headers_config=cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n name=\"name\",\n query_strings_config=cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
6237 "version": "2"
6238 },
6239 "csharp": {
6240 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnOriginRequestPolicy cfnOriginRequestPolicy = new CfnOriginRequestPolicy(this, \"MyCfnOriginRequestPolicy\", new CfnOriginRequestPolicyProps {\n OriginRequestPolicyConfig = new OriginRequestPolicyConfigProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n Name = \"name\",\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n Comment = \"comment\"\n }\n});",
6241 "version": "1"
6242 },
6243 "java": {
6244 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnOriginRequestPolicy cfnOriginRequestPolicy = CfnOriginRequestPolicy.Builder.create(this, \"MyCfnOriginRequestPolicy\")\n .originRequestPolicyConfig(OriginRequestPolicyConfigProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .name(\"name\")\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
6245 "version": "1"
6246 },
6247 "go": {
6248 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnOriginRequestPolicy := cloudfront.NewCfnOriginRequestPolicy(this, jsii.String(\"MyCfnOriginRequestPolicy\"), &cfnOriginRequestPolicyProps{\n\toriginRequestPolicyConfig: &originRequestPolicyConfigProperty{\n\t\tcookiesConfig: &cookiesConfigProperty{\n\t\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\tcookies: []*string{\n\t\t\t\tjsii.String(\"cookies\"),\n\t\t\t},\n\t\t},\n\t\theadersConfig: &headersConfigProperty{\n\t\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\theaders: []*string{\n\t\t\t\tjsii.String(\"headers\"),\n\t\t\t},\n\t\t},\n\t\tname: jsii.String(\"name\"),\n\t\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\tqueryStrings: []*string{\n\t\t\t\tjsii.String(\"queryStrings\"),\n\t\t\t},\n\t\t},\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n})",
6249 "version": "1"
6250 },
6251 "$": {
6252 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnOriginRequestPolicy = new cloudfront.CfnOriginRequestPolicy(this, 'MyCfnOriginRequestPolicy', {\n originRequestPolicyConfig: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n name: 'name',\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n});",
6253 "version": "0"
6254 }
6255 },
6256 "location": {
6257 "api": {
6258 "api": "type",
6259 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy"
6260 },
6261 "field": {
6262 "field": "example"
6263 }
6264 },
6265 "didCompile": true,
6266 "fqnsReferenced": [
6267 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy",
6268 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicyProps",
6269 "@aws-cdk/core.Construct"
6270 ],
6271 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnOriginRequestPolicy = new cloudfront.CfnOriginRequestPolicy(this, 'MyCfnOriginRequestPolicy', {\n originRequestPolicyConfig: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n name: 'name',\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6272 "syntaxKindCounter": {
6273 "10": 10,
6274 "75": 16,
6275 "104": 1,
6276 "192": 3,
6277 "193": 5,
6278 "194": 1,
6279 "197": 1,
6280 "225": 1,
6281 "242": 1,
6282 "243": 1,
6283 "254": 1,
6284 "255": 1,
6285 "256": 1,
6286 "281": 12,
6287 "290": 1
6288 },
6289 "fqnsFingerprint": "6b69d00cefa90f6b2462cc57c4ffe5b1ee037ad0dfcbd143831554776b41bd51"
6290 },
6291 "4fe79cb3da0a90d329eec933f98e2706d427e1ba1eeb17762d240066a684c86d": {
6292 "translations": {
6293 "python": {
6294 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncookies_config_property = cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n)",
6295 "version": "2"
6296 },
6297 "csharp": {
6298 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCookiesConfigProperty cookiesConfigProperty = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n};",
6299 "version": "1"
6300 },
6301 "java": {
6302 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCookiesConfigProperty cookiesConfigProperty = CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build();",
6303 "version": "1"
6304 },
6305 "go": {
6306 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncookiesConfigProperty := &cookiesConfigProperty{\n\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t// the properties below are optional\n\tcookies: []*string{\n\t\tjsii.String(\"cookies\"),\n\t},\n}",
6307 "version": "1"
6308 },
6309 "$": {
6310 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cookiesConfigProperty: cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty = {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n};",
6311 "version": "0"
6312 }
6313 },
6314 "location": {
6315 "api": {
6316 "api": "type",
6317 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty"
6318 },
6319 "field": {
6320 "field": "example"
6321 }
6322 },
6323 "didCompile": true,
6324 "fqnsReferenced": [
6325 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty"
6326 ],
6327 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cookiesConfigProperty: cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty = {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6328 "syntaxKindCounter": {
6329 "10": 3,
6330 "75": 7,
6331 "153": 2,
6332 "169": 1,
6333 "192": 1,
6334 "193": 1,
6335 "225": 1,
6336 "242": 1,
6337 "243": 1,
6338 "254": 1,
6339 "255": 1,
6340 "256": 1,
6341 "281": 2,
6342 "290": 1
6343 },
6344 "fqnsFingerprint": "4b67e8b237b7d640abee4915edcfab749a14b01f3a78fb6c9ed5efb05a088e62"
6345 },
6346 "e623ea818fa5f44931b6dd2d04fdba3974034d9a2aab4ce4d39b89b57a49c240": {
6347 "translations": {
6348 "python": {
6349 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nheaders_config_property = cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n)",
6350 "version": "2"
6351 },
6352 "csharp": {
6353 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nHeadersConfigProperty headersConfigProperty = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n};",
6354 "version": "1"
6355 },
6356 "java": {
6357 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nHeadersConfigProperty headersConfigProperty = HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build();",
6358 "version": "1"
6359 },
6360 "go": {
6361 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nheadersConfigProperty := &headersConfigProperty{\n\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t// the properties below are optional\n\theaders: []*string{\n\t\tjsii.String(\"headers\"),\n\t},\n}",
6362 "version": "1"
6363 },
6364 "$": {
6365 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst headersConfigProperty: cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty = {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n};",
6366 "version": "0"
6367 }
6368 },
6369 "location": {
6370 "api": {
6371 "api": "type",
6372 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty"
6373 },
6374 "field": {
6375 "field": "example"
6376 }
6377 },
6378 "didCompile": true,
6379 "fqnsReferenced": [
6380 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty"
6381 ],
6382 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst headersConfigProperty: cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty = {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6383 "syntaxKindCounter": {
6384 "10": 3,
6385 "75": 7,
6386 "153": 2,
6387 "169": 1,
6388 "192": 1,
6389 "193": 1,
6390 "225": 1,
6391 "242": 1,
6392 "243": 1,
6393 "254": 1,
6394 "255": 1,
6395 "256": 1,
6396 "281": 2,
6397 "290": 1
6398 },
6399 "fqnsFingerprint": "8bba878b2995208bb2c0a749c1441910612ae88a6bd1d2a0d947b1c0a32b1ab7"
6400 },
6401 "95980e28337ead51ccd933ac5b9131ff15cc6261080a413c74e1de5ab085d991": {
6402 "translations": {
6403 "python": {
6404 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_request_policy_config_property = cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty(\n cookies_config=cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n headers_config=cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n name=\"name\",\n query_strings_config=cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n comment=\"comment\"\n)",
6405 "version": "2"
6406 },
6407 "csharp": {
6408 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginRequestPolicyConfigProperty originRequestPolicyConfigProperty = new OriginRequestPolicyConfigProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n Name = \"name\",\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n Comment = \"comment\"\n};",
6409 "version": "1"
6410 },
6411 "java": {
6412 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginRequestPolicyConfigProperty originRequestPolicyConfigProperty = OriginRequestPolicyConfigProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .name(\"name\")\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .comment(\"comment\")\n .build();",
6413 "version": "1"
6414 },
6415 "go": {
6416 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginRequestPolicyConfigProperty := &originRequestPolicyConfigProperty{\n\tcookiesConfig: &cookiesConfigProperty{\n\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t// the properties below are optional\n\t\tcookies: []*string{\n\t\t\tjsii.String(\"cookies\"),\n\t\t},\n\t},\n\theadersConfig: &headersConfigProperty{\n\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t// the properties below are optional\n\t\theaders: []*string{\n\t\t\tjsii.String(\"headers\"),\n\t\t},\n\t},\n\tname: jsii.String(\"name\"),\n\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t// the properties below are optional\n\t\tqueryStrings: []*string{\n\t\t\tjsii.String(\"queryStrings\"),\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tcomment: jsii.String(\"comment\"),\n}",
6417 "version": "1"
6418 },
6419 "$": {
6420 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originRequestPolicyConfigProperty: cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty = {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n name: 'name',\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n comment: 'comment',\n};",
6421 "version": "0"
6422 }
6423 },
6424 "location": {
6425 "api": {
6426 "api": "type",
6427 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty"
6428 },
6429 "field": {
6430 "field": "example"
6431 }
6432 },
6433 "didCompile": true,
6434 "fqnsReferenced": [
6435 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty"
6436 ],
6437 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originRequestPolicyConfigProperty: cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty = {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n name: 'name',\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n comment: 'comment',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6438 "syntaxKindCounter": {
6439 "10": 9,
6440 "75": 16,
6441 "153": 2,
6442 "169": 1,
6443 "192": 3,
6444 "193": 4,
6445 "225": 1,
6446 "242": 1,
6447 "243": 1,
6448 "254": 1,
6449 "255": 1,
6450 "256": 1,
6451 "281": 11,
6452 "290": 1
6453 },
6454 "fqnsFingerprint": "f25495428d9f2e938e55520145c25e5397e47a0c3053f8a2c116e7850171056e"
6455 },
6456 "ac307d414ea20c7ed6e6f61fa566f2a1a26d630eebbb18b7d8a534313260009e": {
6457 "translations": {
6458 "python": {
6459 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nquery_strings_config_property = cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n)",
6460 "version": "2"
6461 },
6462 "csharp": {
6463 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nQueryStringsConfigProperty queryStringsConfigProperty = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n};",
6464 "version": "1"
6465 },
6466 "java": {
6467 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nQueryStringsConfigProperty queryStringsConfigProperty = QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build();",
6468 "version": "1"
6469 },
6470 "go": {
6471 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nqueryStringsConfigProperty := &queryStringsConfigProperty{\n\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t// the properties below are optional\n\tqueryStrings: []*string{\n\t\tjsii.String(\"queryStrings\"),\n\t},\n}",
6472 "version": "1"
6473 },
6474 "$": {
6475 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst queryStringsConfigProperty: cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty = {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n};",
6476 "version": "0"
6477 }
6478 },
6479 "location": {
6480 "api": {
6481 "api": "type",
6482 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty"
6483 },
6484 "field": {
6485 "field": "example"
6486 }
6487 },
6488 "didCompile": true,
6489 "fqnsReferenced": [
6490 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty"
6491 ],
6492 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst queryStringsConfigProperty: cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty = {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6493 "syntaxKindCounter": {
6494 "10": 3,
6495 "75": 7,
6496 "153": 2,
6497 "169": 1,
6498 "192": 1,
6499 "193": 1,
6500 "225": 1,
6501 "242": 1,
6502 "243": 1,
6503 "254": 1,
6504 "255": 1,
6505 "256": 1,
6506 "281": 2,
6507 "290": 1
6508 },
6509 "fqnsFingerprint": "b7560b0135136ef346e60ea19d9ae14aa476dca4e02c4d1296b2717798c0241b"
6510 },
6511 "1078bcfc57b8abbeadf205e74ac4b6dcf365ba94976884e5ff4218193e026bd1": {
6512 "translations": {
6513 "python": {
6514 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_origin_request_policy_props = cloudfront.CfnOriginRequestPolicyProps(\n origin_request_policy_config=cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty(\n cookies_config=cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty(\n cookie_behavior=\"cookieBehavior\",\n\n # the properties below are optional\n cookies=[\"cookies\"]\n ),\n headers_config=cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty(\n header_behavior=\"headerBehavior\",\n\n # the properties below are optional\n headers=[\"headers\"]\n ),\n name=\"name\",\n query_strings_config=cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty(\n query_string_behavior=\"queryStringBehavior\",\n\n # the properties below are optional\n query_strings=[\"queryStrings\"]\n ),\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
6515 "version": "2"
6516 },
6517 "csharp": {
6518 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnOriginRequestPolicyProps cfnOriginRequestPolicyProps = new CfnOriginRequestPolicyProps {\n OriginRequestPolicyConfig = new OriginRequestPolicyConfigProperty {\n CookiesConfig = new CookiesConfigProperty {\n CookieBehavior = \"cookieBehavior\",\n\n // the properties below are optional\n Cookies = new [] { \"cookies\" }\n },\n HeadersConfig = new HeadersConfigProperty {\n HeaderBehavior = \"headerBehavior\",\n\n // the properties below are optional\n Headers = new [] { \"headers\" }\n },\n Name = \"name\",\n QueryStringsConfig = new QueryStringsConfigProperty {\n QueryStringBehavior = \"queryStringBehavior\",\n\n // the properties below are optional\n QueryStrings = new [] { \"queryStrings\" }\n },\n\n // the properties below are optional\n Comment = \"comment\"\n }\n};",
6519 "version": "1"
6520 },
6521 "java": {
6522 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnOriginRequestPolicyProps cfnOriginRequestPolicyProps = CfnOriginRequestPolicyProps.builder()\n .originRequestPolicyConfig(OriginRequestPolicyConfigProperty.builder()\n .cookiesConfig(CookiesConfigProperty.builder()\n .cookieBehavior(\"cookieBehavior\")\n\n // the properties below are optional\n .cookies(List.of(\"cookies\"))\n .build())\n .headersConfig(HeadersConfigProperty.builder()\n .headerBehavior(\"headerBehavior\")\n\n // the properties below are optional\n .headers(List.of(\"headers\"))\n .build())\n .name(\"name\")\n .queryStringsConfig(QueryStringsConfigProperty.builder()\n .queryStringBehavior(\"queryStringBehavior\")\n\n // the properties below are optional\n .queryStrings(List.of(\"queryStrings\"))\n .build())\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
6523 "version": "1"
6524 },
6525 "go": {
6526 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnOriginRequestPolicyProps := &cfnOriginRequestPolicyProps{\n\toriginRequestPolicyConfig: &originRequestPolicyConfigProperty{\n\t\tcookiesConfig: &cookiesConfigProperty{\n\t\t\tcookieBehavior: jsii.String(\"cookieBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\tcookies: []*string{\n\t\t\t\tjsii.String(\"cookies\"),\n\t\t\t},\n\t\t},\n\t\theadersConfig: &headersConfigProperty{\n\t\t\theaderBehavior: jsii.String(\"headerBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\theaders: []*string{\n\t\t\t\tjsii.String(\"headers\"),\n\t\t\t},\n\t\t},\n\t\tname: jsii.String(\"name\"),\n\t\tqueryStringsConfig: &queryStringsConfigProperty{\n\t\t\tqueryStringBehavior: jsii.String(\"queryStringBehavior\"),\n\n\t\t\t// the properties below are optional\n\t\t\tqueryStrings: []*string{\n\t\t\t\tjsii.String(\"queryStrings\"),\n\t\t\t},\n\t\t},\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n}",
6527 "version": "1"
6528 },
6529 "$": {
6530 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnOriginRequestPolicyProps: cloudfront.CfnOriginRequestPolicyProps = {\n originRequestPolicyConfig: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n name: 'name',\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n};",
6531 "version": "0"
6532 }
6533 },
6534 "location": {
6535 "api": {
6536 "api": "type",
6537 "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicyProps"
6538 },
6539 "field": {
6540 "field": "example"
6541 }
6542 },
6543 "didCompile": true,
6544 "fqnsReferenced": [
6545 "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicyProps"
6546 ],
6547 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnOriginRequestPolicyProps: cloudfront.CfnOriginRequestPolicyProps = {\n originRequestPolicyConfig: {\n cookiesConfig: {\n cookieBehavior: 'cookieBehavior',\n\n // the properties below are optional\n cookies: ['cookies'],\n },\n headersConfig: {\n headerBehavior: 'headerBehavior',\n\n // the properties below are optional\n headers: ['headers'],\n },\n name: 'name',\n queryStringsConfig: {\n queryStringBehavior: 'queryStringBehavior',\n\n // the properties below are optional\n queryStrings: ['queryStrings'],\n },\n\n // the properties below are optional\n comment: 'comment',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6548 "syntaxKindCounter": {
6549 "10": 9,
6550 "75": 16,
6551 "153": 1,
6552 "169": 1,
6553 "192": 3,
6554 "193": 5,
6555 "225": 1,
6556 "242": 1,
6557 "243": 1,
6558 "254": 1,
6559 "255": 1,
6560 "256": 1,
6561 "281": 12,
6562 "290": 1
6563 },
6564 "fqnsFingerprint": "b4e8f38345f23b8c287ff6b515ba976477c49604b817bc1859301d1f438ebe15"
6565 },
6566 "8093452f42f8bd2f0c65626c6090692b723c08bee7de6c44052828f3e24b5b0d": {
6567 "translations": {
6568 "python": {
6569 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_public_key = cloudfront.CfnPublicKey(self, \"MyCfnPublicKey\",\n public_key_config=cloudfront.CfnPublicKey.PublicKeyConfigProperty(\n caller_reference=\"callerReference\",\n encoded_key=\"encodedKey\",\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
6570 "version": "2"
6571 },
6572 "csharp": {
6573 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnPublicKey cfnPublicKey = new CfnPublicKey(this, \"MyCfnPublicKey\", new CfnPublicKeyProps {\n PublicKeyConfig = new PublicKeyConfigProperty {\n CallerReference = \"callerReference\",\n EncodedKey = \"encodedKey\",\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\"\n }\n});",
6574 "version": "1"
6575 },
6576 "java": {
6577 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnPublicKey cfnPublicKey = CfnPublicKey.Builder.create(this, \"MyCfnPublicKey\")\n .publicKeyConfig(PublicKeyConfigProperty.builder()\n .callerReference(\"callerReference\")\n .encodedKey(\"encodedKey\")\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
6578 "version": "1"
6579 },
6580 "go": {
6581 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnPublicKey := cloudfront.NewCfnPublicKey(this, jsii.String(\"MyCfnPublicKey\"), &cfnPublicKeyProps{\n\tpublicKeyConfig: &publicKeyConfigProperty{\n\t\tcallerReference: jsii.String(\"callerReference\"),\n\t\tencodedKey: jsii.String(\"encodedKey\"),\n\t\tname: jsii.String(\"name\"),\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n})",
6582 "version": "1"
6583 },
6584 "$": {
6585 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnPublicKey = new cloudfront.CfnPublicKey(this, 'MyCfnPublicKey', {\n publicKeyConfig: {\n callerReference: 'callerReference',\n encodedKey: 'encodedKey',\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n});",
6586 "version": "0"
6587 }
6588 },
6589 "location": {
6590 "api": {
6591 "api": "type",
6592 "fqn": "@aws-cdk/aws-cloudfront.CfnPublicKey"
6593 },
6594 "field": {
6595 "field": "example"
6596 }
6597 },
6598 "didCompile": true,
6599 "fqnsReferenced": [
6600 "@aws-cdk/aws-cloudfront.CfnPublicKey",
6601 "@aws-cdk/aws-cloudfront.CfnPublicKeyProps",
6602 "@aws-cdk/core.Construct"
6603 ],
6604 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnPublicKey = new cloudfront.CfnPublicKey(this, 'MyCfnPublicKey', {\n publicKeyConfig: {\n callerReference: 'callerReference',\n encodedKey: 'encodedKey',\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6605 "syntaxKindCounter": {
6606 "10": 6,
6607 "75": 9,
6608 "104": 1,
6609 "193": 2,
6610 "194": 1,
6611 "197": 1,
6612 "225": 1,
6613 "242": 1,
6614 "243": 1,
6615 "254": 1,
6616 "255": 1,
6617 "256": 1,
6618 "281": 5,
6619 "290": 1
6620 },
6621 "fqnsFingerprint": "7a23cfe86985513ff34310db6dab5be640a96d2c31cf57238430222d6a4d8037"
6622 },
6623 "525c64f3c4ab4a60e2fb30fb9d336dda01367bc2172619877938e9cc37673e04": {
6624 "translations": {
6625 "python": {
6626 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\npublic_key_config_property = cloudfront.CfnPublicKey.PublicKeyConfigProperty(\n caller_reference=\"callerReference\",\n encoded_key=\"encodedKey\",\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\"\n)",
6627 "version": "2"
6628 },
6629 "csharp": {
6630 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nPublicKeyConfigProperty publicKeyConfigProperty = new PublicKeyConfigProperty {\n CallerReference = \"callerReference\",\n EncodedKey = \"encodedKey\",\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\"\n};",
6631 "version": "1"
6632 },
6633 "java": {
6634 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nPublicKeyConfigProperty publicKeyConfigProperty = PublicKeyConfigProperty.builder()\n .callerReference(\"callerReference\")\n .encodedKey(\"encodedKey\")\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .build();",
6635 "version": "1"
6636 },
6637 "go": {
6638 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\npublicKeyConfigProperty := &publicKeyConfigProperty{\n\tcallerReference: jsii.String(\"callerReference\"),\n\tencodedKey: jsii.String(\"encodedKey\"),\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tcomment: jsii.String(\"comment\"),\n}",
6639 "version": "1"
6640 },
6641 "$": {
6642 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst publicKeyConfigProperty: cloudfront.CfnPublicKey.PublicKeyConfigProperty = {\n callerReference: 'callerReference',\n encodedKey: 'encodedKey',\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n};",
6643 "version": "0"
6644 }
6645 },
6646 "location": {
6647 "api": {
6648 "api": "type",
6649 "fqn": "@aws-cdk/aws-cloudfront.CfnPublicKey.PublicKeyConfigProperty"
6650 },
6651 "field": {
6652 "field": "example"
6653 }
6654 },
6655 "didCompile": true,
6656 "fqnsReferenced": [
6657 "@aws-cdk/aws-cloudfront.CfnPublicKey.PublicKeyConfigProperty"
6658 ],
6659 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst publicKeyConfigProperty: cloudfront.CfnPublicKey.PublicKeyConfigProperty = {\n callerReference: 'callerReference',\n encodedKey: 'encodedKey',\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6660 "syntaxKindCounter": {
6661 "10": 5,
6662 "75": 9,
6663 "153": 2,
6664 "169": 1,
6665 "193": 1,
6666 "225": 1,
6667 "242": 1,
6668 "243": 1,
6669 "254": 1,
6670 "255": 1,
6671 "256": 1,
6672 "281": 4,
6673 "290": 1
6674 },
6675 "fqnsFingerprint": "dc6997a2aed1a1afedbde9fbf88a1b59df6ed8256d2083abbf81a82a7ab278c6"
6676 },
6677 "0443e15bb40e9052955612f21ae2ec1c7f1291be9e98951008c88b8ae6ce9f9d": {
6678 "translations": {
6679 "python": {
6680 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_public_key_props = cloudfront.CfnPublicKeyProps(\n public_key_config=cloudfront.CfnPublicKey.PublicKeyConfigProperty(\n caller_reference=\"callerReference\",\n encoded_key=\"encodedKey\",\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\"\n )\n)",
6681 "version": "2"
6682 },
6683 "csharp": {
6684 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnPublicKeyProps cfnPublicKeyProps = new CfnPublicKeyProps {\n PublicKeyConfig = new PublicKeyConfigProperty {\n CallerReference = \"callerReference\",\n EncodedKey = \"encodedKey\",\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\"\n }\n};",
6685 "version": "1"
6686 },
6687 "java": {
6688 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnPublicKeyProps cfnPublicKeyProps = CfnPublicKeyProps.builder()\n .publicKeyConfig(PublicKeyConfigProperty.builder()\n .callerReference(\"callerReference\")\n .encodedKey(\"encodedKey\")\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .build())\n .build();",
6689 "version": "1"
6690 },
6691 "go": {
6692 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnPublicKeyProps := &cfnPublicKeyProps{\n\tpublicKeyConfig: &publicKeyConfigProperty{\n\t\tcallerReference: jsii.String(\"callerReference\"),\n\t\tencodedKey: jsii.String(\"encodedKey\"),\n\t\tname: jsii.String(\"name\"),\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t},\n}",
6693 "version": "1"
6694 },
6695 "$": {
6696 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnPublicKeyProps: cloudfront.CfnPublicKeyProps = {\n publicKeyConfig: {\n callerReference: 'callerReference',\n encodedKey: 'encodedKey',\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n};",
6697 "version": "0"
6698 }
6699 },
6700 "location": {
6701 "api": {
6702 "api": "type",
6703 "fqn": "@aws-cdk/aws-cloudfront.CfnPublicKeyProps"
6704 },
6705 "field": {
6706 "field": "example"
6707 }
6708 },
6709 "didCompile": true,
6710 "fqnsReferenced": [
6711 "@aws-cdk/aws-cloudfront.CfnPublicKeyProps"
6712 ],
6713 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnPublicKeyProps: cloudfront.CfnPublicKeyProps = {\n publicKeyConfig: {\n callerReference: 'callerReference',\n encodedKey: 'encodedKey',\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6714 "syntaxKindCounter": {
6715 "10": 5,
6716 "75": 9,
6717 "153": 1,
6718 "169": 1,
6719 "193": 2,
6720 "225": 1,
6721 "242": 1,
6722 "243": 1,
6723 "254": 1,
6724 "255": 1,
6725 "256": 1,
6726 "281": 5,
6727 "290": 1
6728 },
6729 "fqnsFingerprint": "1b4c82b2c8c6dfc7f566447827796d68e51c8f88724ef08006b6199ae12132e2"
6730 },
6731 "ce9e50c0ed556aa345f32d238b05d7b3cf767af86eecc4231a1fdf1415752ac0": {
6732 "translations": {
6733 "python": {
6734 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_realtime_log_config = cloudfront.CfnRealtimeLogConfig(self, \"MyCfnRealtimeLogConfig\",\n end_points=[cloudfront.CfnRealtimeLogConfig.EndPointProperty(\n kinesis_stream_config=cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty(\n role_arn=\"roleArn\",\n stream_arn=\"streamArn\"\n ),\n stream_type=\"streamType\"\n )],\n fields=[\"fields\"],\n name=\"name\",\n sampling_rate=123\n)",
6735 "version": "2"
6736 },
6737 "csharp": {
6738 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnRealtimeLogConfig cfnRealtimeLogConfig = new CfnRealtimeLogConfig(this, \"MyCfnRealtimeLogConfig\", new CfnRealtimeLogConfigProps {\n EndPoints = new [] { new EndPointProperty {\n KinesisStreamConfig = new KinesisStreamConfigProperty {\n RoleArn = \"roleArn\",\n StreamArn = \"streamArn\"\n },\n StreamType = \"streamType\"\n } },\n Fields = new [] { \"fields\" },\n Name = \"name\",\n SamplingRate = 123\n});",
6739 "version": "1"
6740 },
6741 "java": {
6742 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnRealtimeLogConfig cfnRealtimeLogConfig = CfnRealtimeLogConfig.Builder.create(this, \"MyCfnRealtimeLogConfig\")\n .endPoints(List.of(EndPointProperty.builder()\n .kinesisStreamConfig(KinesisStreamConfigProperty.builder()\n .roleArn(\"roleArn\")\n .streamArn(\"streamArn\")\n .build())\n .streamType(\"streamType\")\n .build()))\n .fields(List.of(\"fields\"))\n .name(\"name\")\n .samplingRate(123)\n .build();",
6743 "version": "1"
6744 },
6745 "go": {
6746 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnRealtimeLogConfig := cloudfront.NewCfnRealtimeLogConfig(this, jsii.String(\"MyCfnRealtimeLogConfig\"), &cfnRealtimeLogConfigProps{\n\tendPoints: []interface{}{\n\t\t&endPointProperty{\n\t\t\tkinesisStreamConfig: &kinesisStreamConfigProperty{\n\t\t\t\troleArn: jsii.String(\"roleArn\"),\n\t\t\t\tstreamArn: jsii.String(\"streamArn\"),\n\t\t\t},\n\t\t\tstreamType: jsii.String(\"streamType\"),\n\t\t},\n\t},\n\tfields: []*string{\n\t\tjsii.String(\"fields\"),\n\t},\n\tname: jsii.String(\"name\"),\n\tsamplingRate: jsii.Number(123),\n})",
6747 "version": "1"
6748 },
6749 "$": {
6750 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnRealtimeLogConfig = new cloudfront.CfnRealtimeLogConfig(this, 'MyCfnRealtimeLogConfig', {\n endPoints: [{\n kinesisStreamConfig: {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n },\n streamType: 'streamType',\n }],\n fields: ['fields'],\n name: 'name',\n samplingRate: 123,\n});",
6751 "version": "0"
6752 }
6753 },
6754 "location": {
6755 "api": {
6756 "api": "type",
6757 "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig"
6758 },
6759 "field": {
6760 "field": "example"
6761 }
6762 },
6763 "didCompile": true,
6764 "fqnsReferenced": [
6765 "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig",
6766 "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfigProps",
6767 "@aws-cdk/core.Construct"
6768 ],
6769 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnRealtimeLogConfig = new cloudfront.CfnRealtimeLogConfig(this, 'MyCfnRealtimeLogConfig', {\n endPoints: [{\n kinesisStreamConfig: {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n },\n streamType: 'streamType',\n }],\n fields: ['fields'],\n name: 'name',\n samplingRate: 123,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6770 "syntaxKindCounter": {
6771 "8": 1,
6772 "10": 7,
6773 "75": 12,
6774 "104": 1,
6775 "192": 2,
6776 "193": 3,
6777 "194": 1,
6778 "197": 1,
6779 "225": 1,
6780 "242": 1,
6781 "243": 1,
6782 "254": 1,
6783 "255": 1,
6784 "256": 1,
6785 "281": 8,
6786 "290": 1
6787 },
6788 "fqnsFingerprint": "4ffbb90cc77207ee750625f3a2286768e8dda53a78ae20ca3634e0e55e84ab77"
6789 },
6790 "449c903a364a64c2f66ae20ad31b432130049091cf85d48d9011c719cad3f82c": {
6791 "translations": {
6792 "python": {
6793 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nend_point_property = cloudfront.CfnRealtimeLogConfig.EndPointProperty(\n kinesis_stream_config=cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty(\n role_arn=\"roleArn\",\n stream_arn=\"streamArn\"\n ),\n stream_type=\"streamType\"\n)",
6794 "version": "2"
6795 },
6796 "csharp": {
6797 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nEndPointProperty endPointProperty = new EndPointProperty {\n KinesisStreamConfig = new KinesisStreamConfigProperty {\n RoleArn = \"roleArn\",\n StreamArn = \"streamArn\"\n },\n StreamType = \"streamType\"\n};",
6798 "version": "1"
6799 },
6800 "java": {
6801 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nEndPointProperty endPointProperty = EndPointProperty.builder()\n .kinesisStreamConfig(KinesisStreamConfigProperty.builder()\n .roleArn(\"roleArn\")\n .streamArn(\"streamArn\")\n .build())\n .streamType(\"streamType\")\n .build();",
6802 "version": "1"
6803 },
6804 "go": {
6805 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nendPointProperty := &endPointProperty{\n\tkinesisStreamConfig: &kinesisStreamConfigProperty{\n\t\troleArn: jsii.String(\"roleArn\"),\n\t\tstreamArn: jsii.String(\"streamArn\"),\n\t},\n\tstreamType: jsii.String(\"streamType\"),\n}",
6806 "version": "1"
6807 },
6808 "$": {
6809 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst endPointProperty: cloudfront.CfnRealtimeLogConfig.EndPointProperty = {\n kinesisStreamConfig: {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n },\n streamType: 'streamType',\n};",
6810 "version": "0"
6811 }
6812 },
6813 "location": {
6814 "api": {
6815 "api": "type",
6816 "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.EndPointProperty"
6817 },
6818 "field": {
6819 "field": "example"
6820 }
6821 },
6822 "didCompile": true,
6823 "fqnsReferenced": [
6824 "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.EndPointProperty"
6825 ],
6826 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst endPointProperty: cloudfront.CfnRealtimeLogConfig.EndPointProperty = {\n kinesisStreamConfig: {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n },\n streamType: 'streamType',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6827 "syntaxKindCounter": {
6828 "10": 4,
6829 "75": 9,
6830 "153": 2,
6831 "169": 1,
6832 "193": 2,
6833 "225": 1,
6834 "242": 1,
6835 "243": 1,
6836 "254": 1,
6837 "255": 1,
6838 "256": 1,
6839 "281": 4,
6840 "290": 1
6841 },
6842 "fqnsFingerprint": "1b6ce30ea6e93b65741cbcc7cea2ee320c4a276d863314dc6ee9e51ee984c4fd"
6843 },
6844 "c40c80a3822a52d8a7438fa2d51bfb28d812bedcce41f29c015c3b60bfc83033": {
6845 "translations": {
6846 "python": {
6847 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nkinesis_stream_config_property = cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty(\n role_arn=\"roleArn\",\n stream_arn=\"streamArn\"\n)",
6848 "version": "2"
6849 },
6850 "csharp": {
6851 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nKinesisStreamConfigProperty kinesisStreamConfigProperty = new KinesisStreamConfigProperty {\n RoleArn = \"roleArn\",\n StreamArn = \"streamArn\"\n};",
6852 "version": "1"
6853 },
6854 "java": {
6855 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nKinesisStreamConfigProperty kinesisStreamConfigProperty = KinesisStreamConfigProperty.builder()\n .roleArn(\"roleArn\")\n .streamArn(\"streamArn\")\n .build();",
6856 "version": "1"
6857 },
6858 "go": {
6859 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nkinesisStreamConfigProperty := &kinesisStreamConfigProperty{\n\troleArn: jsii.String(\"roleArn\"),\n\tstreamArn: jsii.String(\"streamArn\"),\n}",
6860 "version": "1"
6861 },
6862 "$": {
6863 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst kinesisStreamConfigProperty: cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty = {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n};",
6864 "version": "0"
6865 }
6866 },
6867 "location": {
6868 "api": {
6869 "api": "type",
6870 "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty"
6871 },
6872 "field": {
6873 "field": "example"
6874 }
6875 },
6876 "didCompile": true,
6877 "fqnsReferenced": [
6878 "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty"
6879 ],
6880 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst kinesisStreamConfigProperty: cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty = {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6881 "syntaxKindCounter": {
6882 "10": 3,
6883 "75": 7,
6884 "153": 2,
6885 "169": 1,
6886 "193": 1,
6887 "225": 1,
6888 "242": 1,
6889 "243": 1,
6890 "254": 1,
6891 "255": 1,
6892 "256": 1,
6893 "281": 2,
6894 "290": 1
6895 },
6896 "fqnsFingerprint": "9ffc2d936513a5d54b8cd8566e00638101a534c447ce61039f57b07238cea2c7"
6897 },
6898 "9532a7ba654a8be67743720677e120ee0c25318bf3b64e404bb6f0e3bcf56170": {
6899 "translations": {
6900 "python": {
6901 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_realtime_log_config_props = cloudfront.CfnRealtimeLogConfigProps(\n end_points=[cloudfront.CfnRealtimeLogConfig.EndPointProperty(\n kinesis_stream_config=cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty(\n role_arn=\"roleArn\",\n stream_arn=\"streamArn\"\n ),\n stream_type=\"streamType\"\n )],\n fields=[\"fields\"],\n name=\"name\",\n sampling_rate=123\n)",
6902 "version": "2"
6903 },
6904 "csharp": {
6905 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnRealtimeLogConfigProps cfnRealtimeLogConfigProps = new CfnRealtimeLogConfigProps {\n EndPoints = new [] { new EndPointProperty {\n KinesisStreamConfig = new KinesisStreamConfigProperty {\n RoleArn = \"roleArn\",\n StreamArn = \"streamArn\"\n },\n StreamType = \"streamType\"\n } },\n Fields = new [] { \"fields\" },\n Name = \"name\",\n SamplingRate = 123\n};",
6906 "version": "1"
6907 },
6908 "java": {
6909 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnRealtimeLogConfigProps cfnRealtimeLogConfigProps = CfnRealtimeLogConfigProps.builder()\n .endPoints(List.of(EndPointProperty.builder()\n .kinesisStreamConfig(KinesisStreamConfigProperty.builder()\n .roleArn(\"roleArn\")\n .streamArn(\"streamArn\")\n .build())\n .streamType(\"streamType\")\n .build()))\n .fields(List.of(\"fields\"))\n .name(\"name\")\n .samplingRate(123)\n .build();",
6910 "version": "1"
6911 },
6912 "go": {
6913 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnRealtimeLogConfigProps := &cfnRealtimeLogConfigProps{\n\tendPoints: []interface{}{\n\t\t&endPointProperty{\n\t\t\tkinesisStreamConfig: &kinesisStreamConfigProperty{\n\t\t\t\troleArn: jsii.String(\"roleArn\"),\n\t\t\t\tstreamArn: jsii.String(\"streamArn\"),\n\t\t\t},\n\t\t\tstreamType: jsii.String(\"streamType\"),\n\t\t},\n\t},\n\tfields: []*string{\n\t\tjsii.String(\"fields\"),\n\t},\n\tname: jsii.String(\"name\"),\n\tsamplingRate: jsii.Number(123),\n}",
6914 "version": "1"
6915 },
6916 "$": {
6917 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnRealtimeLogConfigProps: cloudfront.CfnRealtimeLogConfigProps = {\n endPoints: [{\n kinesisStreamConfig: {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n },\n streamType: 'streamType',\n }],\n fields: ['fields'],\n name: 'name',\n samplingRate: 123,\n};",
6918 "version": "0"
6919 }
6920 },
6921 "location": {
6922 "api": {
6923 "api": "type",
6924 "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfigProps"
6925 },
6926 "field": {
6927 "field": "example"
6928 }
6929 },
6930 "didCompile": true,
6931 "fqnsReferenced": [
6932 "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfigProps"
6933 ],
6934 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnRealtimeLogConfigProps: cloudfront.CfnRealtimeLogConfigProps = {\n endPoints: [{\n kinesisStreamConfig: {\n roleArn: 'roleArn',\n streamArn: 'streamArn',\n },\n streamType: 'streamType',\n }],\n fields: ['fields'],\n name: 'name',\n samplingRate: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6935 "syntaxKindCounter": {
6936 "8": 1,
6937 "10": 6,
6938 "75": 12,
6939 "153": 1,
6940 "169": 1,
6941 "192": 2,
6942 "193": 3,
6943 "225": 1,
6944 "242": 1,
6945 "243": 1,
6946 "254": 1,
6947 "255": 1,
6948 "256": 1,
6949 "281": 8,
6950 "290": 1
6951 },
6952 "fqnsFingerprint": "f0d55909402cc1e5de6d67f32d1a60e1da0cc853cc7c10475c728c36a9ef935f"
6953 },
6954 "865c01a2a5dad28cb8e8f9c4cdb56151818d23a609031307307004dcc8e7bdd9": {
6955 "translations": {
6956 "python": {
6957 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_response_headers_policy = cloudfront.CfnResponseHeadersPolicy(self, \"MyCfnResponseHeadersPolicy\",\n response_headers_policy_config=cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty(\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\",\n cors_config=cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty(\n access_control_allow_credentials=False,\n access_control_allow_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty(\n items=[\"items\"]\n ),\n access_control_allow_methods=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty(\n items=[\"items\"]\n ),\n access_control_allow_origins=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty(\n items=[\"items\"]\n ),\n origin_override=False,\n\n # the properties below are optional\n access_control_expose_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty(\n items=[\"items\"]\n ),\n access_control_max_age_sec=123\n ),\n custom_headers_config=cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty(\n items=[cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty(\n header=\"header\",\n override=False,\n value=\"value\"\n )]\n ),\n security_headers_config=cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty(\n content_security_policy=cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty(\n content_security_policy=\"contentSecurityPolicy\",\n override=False\n ),\n content_type_options=cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty(\n override=False\n ),\n frame_options=cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty(\n frame_option=\"frameOption\",\n override=False\n ),\n referrer_policy=cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty(\n override=False,\n referrer_policy=\"referrerPolicy\"\n ),\n strict_transport_security=cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty(\n access_control_max_age_sec=123,\n override=False,\n\n # the properties below are optional\n include_subdomains=False,\n preload=False\n ),\n xss_protection=cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty(\n override=False,\n protection=False,\n\n # the properties below are optional\n mode_block=False,\n report_uri=\"reportUri\"\n )\n ),\n server_timing_headers_config=cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty(\n enabled=False,\n\n # the properties below are optional\n sampling_rate=123\n )\n )\n)",
6958 "version": "2"
6959 },
6960 "csharp": {
6961 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnResponseHeadersPolicy cfnResponseHeadersPolicy = new CfnResponseHeadersPolicy(this, \"MyCfnResponseHeadersPolicy\", new CfnResponseHeadersPolicyProps {\n ResponseHeadersPolicyConfig = new ResponseHeadersPolicyConfigProperty {\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\",\n CorsConfig = new CorsConfigProperty {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new AccessControlAllowHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowMethods = new AccessControlAllowMethodsProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowOrigins = new AccessControlAllowOriginsProperty {\n Items = new [] { \"items\" }\n },\n OriginOverride = false,\n\n // the properties below are optional\n AccessControlExposeHeaders = new AccessControlExposeHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlMaxAgeSec = 123\n },\n CustomHeadersConfig = new CustomHeadersConfigProperty {\n Items = new [] { new CustomHeaderProperty {\n Header = \"header\",\n Override = false,\n Value = \"value\"\n } }\n },\n SecurityHeadersConfig = new SecurityHeadersConfigProperty {\n ContentSecurityPolicy = new ContentSecurityPolicyProperty {\n ContentSecurityPolicy = \"contentSecurityPolicy\",\n Override = false\n },\n ContentTypeOptions = new ContentTypeOptionsProperty {\n Override = false\n },\n FrameOptions = new FrameOptionsProperty {\n FrameOption = \"frameOption\",\n Override = false\n },\n ReferrerPolicy = new ReferrerPolicyProperty {\n Override = false,\n ReferrerPolicy = \"referrerPolicy\"\n },\n StrictTransportSecurity = new StrictTransportSecurityProperty {\n AccessControlMaxAgeSec = 123,\n Override = false,\n\n // the properties below are optional\n IncludeSubdomains = false,\n Preload = false\n },\n XssProtection = new XSSProtectionProperty {\n Override = false,\n Protection = false,\n\n // the properties below are optional\n ModeBlock = false,\n ReportUri = \"reportUri\"\n }\n },\n ServerTimingHeadersConfig = new ServerTimingHeadersConfigProperty {\n Enabled = false,\n\n // the properties below are optional\n SamplingRate = 123\n }\n }\n});",
6962 "version": "1"
6963 },
6964 "java": {
6965 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnResponseHeadersPolicy cfnResponseHeadersPolicy = CfnResponseHeadersPolicy.Builder.create(this, \"MyCfnResponseHeadersPolicy\")\n .responseHeadersPolicyConfig(ResponseHeadersPolicyConfigProperty.builder()\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .corsConfig(CorsConfigProperty.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(AccessControlAllowHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowMethods(AccessControlAllowMethodsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowOrigins(AccessControlAllowOriginsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .originOverride(false)\n\n // the properties below are optional\n .accessControlExposeHeaders(AccessControlExposeHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlMaxAgeSec(123)\n .build())\n .customHeadersConfig(CustomHeadersConfigProperty.builder()\n .items(List.of(CustomHeaderProperty.builder()\n .header(\"header\")\n .override(false)\n .value(\"value\")\n .build()))\n .build())\n .securityHeadersConfig(SecurityHeadersConfigProperty.builder()\n .contentSecurityPolicy(ContentSecurityPolicyProperty.builder()\n .contentSecurityPolicy(\"contentSecurityPolicy\")\n .override(false)\n .build())\n .contentTypeOptions(ContentTypeOptionsProperty.builder()\n .override(false)\n .build())\n .frameOptions(FrameOptionsProperty.builder()\n .frameOption(\"frameOption\")\n .override(false)\n .build())\n .referrerPolicy(ReferrerPolicyProperty.builder()\n .override(false)\n .referrerPolicy(\"referrerPolicy\")\n .build())\n .strictTransportSecurity(StrictTransportSecurityProperty.builder()\n .accessControlMaxAgeSec(123)\n .override(false)\n\n // the properties below are optional\n .includeSubdomains(false)\n .preload(false)\n .build())\n .xssProtection(XSSProtectionProperty.builder()\n .override(false)\n .protection(false)\n\n // the properties below are optional\n .modeBlock(false)\n .reportUri(\"reportUri\")\n .build())\n .build())\n .serverTimingHeadersConfig(ServerTimingHeadersConfigProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .samplingRate(123)\n .build())\n .build())\n .build();",
6966 "version": "1"
6967 },
6968 "go": {
6969 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnResponseHeadersPolicy := cloudfront.NewCfnResponseHeadersPolicy(this, jsii.String(\"MyCfnResponseHeadersPolicy\"), &cfnResponseHeadersPolicyProps{\n\tresponseHeadersPolicyConfig: &responseHeadersPolicyConfigProperty{\n\t\tname: jsii.String(\"name\"),\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t\tcorsConfig: &corsConfigProperty{\n\t\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\t\taccessControlAllowHeaders: &accessControlAllowHeadersProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\taccessControlAllowMethods: &accessControlAllowMethodsProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\taccessControlAllowOrigins: &accessControlAllowOriginsProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\toriginOverride: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\taccessControlExposeHeaders: &accessControlExposeHeadersProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t\t},\n\t\tcustomHeadersConfig: &customHeadersConfigProperty{\n\t\t\titems: []interface{}{\n\t\t\t\t&customHeaderProperty{\n\t\t\t\t\theader: jsii.String(\"header\"),\n\t\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tsecurityHeadersConfig: &securityHeadersConfigProperty{\n\t\t\tcontentSecurityPolicy: &contentSecurityPolicyProperty{\n\t\t\t\tcontentSecurityPolicy: jsii.String(\"contentSecurityPolicy\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t\tcontentTypeOptions: &contentTypeOptionsProperty{\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t\tframeOptions: &frameOptionsProperty{\n\t\t\t\tframeOption: jsii.String(\"frameOption\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t\treferrerPolicy: &referrerPolicyProperty{\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\treferrerPolicy: jsii.String(\"referrerPolicy\"),\n\t\t\t},\n\t\t\tstrictTransportSecurity: &strictTransportSecurityProperty{\n\t\t\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t\t\t\toverride: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tincludeSubdomains: jsii.Boolean(false),\n\t\t\t\tpreload: jsii.Boolean(false),\n\t\t\t},\n\t\t\txssProtection: &xSSProtectionProperty{\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\tprotection: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tmodeBlock: jsii.Boolean(false),\n\t\t\t\treportUri: jsii.String(\"reportUri\"),\n\t\t\t},\n\t\t},\n\t\tserverTimingHeadersConfig: &serverTimingHeadersConfigProperty{\n\t\t\tenabled: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tsamplingRate: jsii.Number(123),\n\t\t},\n\t},\n})",
6970 "version": "1"
6971 },
6972 "$": {
6973 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnResponseHeadersPolicy = new cloudfront.CfnResponseHeadersPolicy(this, 'MyCfnResponseHeadersPolicy', {\n responseHeadersPolicyConfig: {\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n corsConfig: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n },\n customHeadersConfig: {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n },\n securityHeadersConfig: {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n },\n serverTimingHeadersConfig: {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n },\n },\n});",
6974 "version": "0"
6975 }
6976 },
6977 "location": {
6978 "api": {
6979 "api": "type",
6980 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy"
6981 },
6982 "field": {
6983 "field": "example"
6984 }
6985 },
6986 "didCompile": true,
6987 "fqnsReferenced": [
6988 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy",
6989 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicyProps",
6990 "@aws-cdk/core.Construct"
6991 ],
6992 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnResponseHeadersPolicy = new cloudfront.CfnResponseHeadersPolicy(this, 'MyCfnResponseHeadersPolicy', {\n responseHeadersPolicyConfig: {\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n corsConfig: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n },\n customHeadersConfig: {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n },\n securityHeadersConfig: {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n },\n serverTimingHeadersConfig: {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n },\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
6993 "syntaxKindCounter": {
6994 "8": 3,
6995 "10": 14,
6996 "75": 49,
6997 "91": 14,
6998 "104": 1,
6999 "192": 5,
7000 "193": 17,
7001 "194": 1,
7002 "197": 1,
7003 "225": 1,
7004 "242": 1,
7005 "243": 1,
7006 "254": 1,
7007 "255": 1,
7008 "256": 1,
7009 "281": 45,
7010 "290": 1
7011 },
7012 "fqnsFingerprint": "df83d7ec5f75a4cb006cc00f613cf3288c89634ef3458bed5444fd371622d667"
7013 },
7014 "50d6d19ed3a341324f811dab9d1f85aa6e1e3245099abb676249bb8b39593f0d": {
7015 "translations": {
7016 "python": {
7017 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\naccess_control_allow_headers_property = cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty(\n items=[\"items\"]\n)",
7018 "version": "2"
7019 },
7020 "csharp": {
7021 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nAccessControlAllowHeadersProperty accessControlAllowHeadersProperty = new AccessControlAllowHeadersProperty {\n Items = new [] { \"items\" }\n};",
7022 "version": "1"
7023 },
7024 "java": {
7025 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nAccessControlAllowHeadersProperty accessControlAllowHeadersProperty = AccessControlAllowHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build();",
7026 "version": "1"
7027 },
7028 "go": {
7029 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\naccessControlAllowHeadersProperty := &accessControlAllowHeadersProperty{\n\titems: []*string{\n\t\tjsii.String(\"items\"),\n\t},\n}",
7030 "version": "1"
7031 },
7032 "$": {
7033 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst accessControlAllowHeadersProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty = {\n items: ['items'],\n};",
7034 "version": "0"
7035 }
7036 },
7037 "location": {
7038 "api": {
7039 "api": "type",
7040 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty"
7041 },
7042 "field": {
7043 "field": "example"
7044 }
7045 },
7046 "didCompile": true,
7047 "fqnsReferenced": [
7048 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty"
7049 ],
7050 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst accessControlAllowHeadersProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty = {\n items: ['items'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7051 "syntaxKindCounter": {
7052 "10": 2,
7053 "75": 6,
7054 "153": 2,
7055 "169": 1,
7056 "192": 1,
7057 "193": 1,
7058 "225": 1,
7059 "242": 1,
7060 "243": 1,
7061 "254": 1,
7062 "255": 1,
7063 "256": 1,
7064 "281": 1,
7065 "290": 1
7066 },
7067 "fqnsFingerprint": "a59d5109fb874b139143df44844c1a17c95d974eb0e0563f48771e2b4ed244b0"
7068 },
7069 "7c6c758c1de788605b78bdab1ba0604fed94d4927bbefdf4784e14f381278067": {
7070 "translations": {
7071 "python": {
7072 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\naccess_control_allow_methods_property = cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty(\n items=[\"items\"]\n)",
7073 "version": "2"
7074 },
7075 "csharp": {
7076 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nAccessControlAllowMethodsProperty accessControlAllowMethodsProperty = new AccessControlAllowMethodsProperty {\n Items = new [] { \"items\" }\n};",
7077 "version": "1"
7078 },
7079 "java": {
7080 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nAccessControlAllowMethodsProperty accessControlAllowMethodsProperty = AccessControlAllowMethodsProperty.builder()\n .items(List.of(\"items\"))\n .build();",
7081 "version": "1"
7082 },
7083 "go": {
7084 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\naccessControlAllowMethodsProperty := &accessControlAllowMethodsProperty{\n\titems: []*string{\n\t\tjsii.String(\"items\"),\n\t},\n}",
7085 "version": "1"
7086 },
7087 "$": {
7088 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst accessControlAllowMethodsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty = {\n items: ['items'],\n};",
7089 "version": "0"
7090 }
7091 },
7092 "location": {
7093 "api": {
7094 "api": "type",
7095 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty"
7096 },
7097 "field": {
7098 "field": "example"
7099 }
7100 },
7101 "didCompile": true,
7102 "fqnsReferenced": [
7103 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty"
7104 ],
7105 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst accessControlAllowMethodsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty = {\n items: ['items'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7106 "syntaxKindCounter": {
7107 "10": 2,
7108 "75": 6,
7109 "153": 2,
7110 "169": 1,
7111 "192": 1,
7112 "193": 1,
7113 "225": 1,
7114 "242": 1,
7115 "243": 1,
7116 "254": 1,
7117 "255": 1,
7118 "256": 1,
7119 "281": 1,
7120 "290": 1
7121 },
7122 "fqnsFingerprint": "9082c598655d18b22e9d0aac20aa5f03b0198b13163815ac7b48701bc1c4fd34"
7123 },
7124 "6df2ce913e96ad9f9db91865e66a6635e88111ba4ca9f7b22f36a1a6c30cbbbb": {
7125 "translations": {
7126 "python": {
7127 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\naccess_control_allow_origins_property = cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty(\n items=[\"items\"]\n)",
7128 "version": "2"
7129 },
7130 "csharp": {
7131 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nAccessControlAllowOriginsProperty accessControlAllowOriginsProperty = new AccessControlAllowOriginsProperty {\n Items = new [] { \"items\" }\n};",
7132 "version": "1"
7133 },
7134 "java": {
7135 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nAccessControlAllowOriginsProperty accessControlAllowOriginsProperty = AccessControlAllowOriginsProperty.builder()\n .items(List.of(\"items\"))\n .build();",
7136 "version": "1"
7137 },
7138 "go": {
7139 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\naccessControlAllowOriginsProperty := &accessControlAllowOriginsProperty{\n\titems: []*string{\n\t\tjsii.String(\"items\"),\n\t},\n}",
7140 "version": "1"
7141 },
7142 "$": {
7143 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst accessControlAllowOriginsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty = {\n items: ['items'],\n};",
7144 "version": "0"
7145 }
7146 },
7147 "location": {
7148 "api": {
7149 "api": "type",
7150 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty"
7151 },
7152 "field": {
7153 "field": "example"
7154 }
7155 },
7156 "didCompile": true,
7157 "fqnsReferenced": [
7158 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty"
7159 ],
7160 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst accessControlAllowOriginsProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty = {\n items: ['items'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7161 "syntaxKindCounter": {
7162 "10": 2,
7163 "75": 6,
7164 "153": 2,
7165 "169": 1,
7166 "192": 1,
7167 "193": 1,
7168 "225": 1,
7169 "242": 1,
7170 "243": 1,
7171 "254": 1,
7172 "255": 1,
7173 "256": 1,
7174 "281": 1,
7175 "290": 1
7176 },
7177 "fqnsFingerprint": "5697c841088a337d2289c188fa3458102cc1a8474856ad6a0f06e9a090ae89d1"
7178 },
7179 "30dc61a552a59d37d3b6d6120b0d754bd1e0998f65c0b3977bb2ca65e86b8613": {
7180 "translations": {
7181 "python": {
7182 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\naccess_control_expose_headers_property = cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty(\n items=[\"items\"]\n)",
7183 "version": "2"
7184 },
7185 "csharp": {
7186 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nAccessControlExposeHeadersProperty accessControlExposeHeadersProperty = new AccessControlExposeHeadersProperty {\n Items = new [] { \"items\" }\n};",
7187 "version": "1"
7188 },
7189 "java": {
7190 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nAccessControlExposeHeadersProperty accessControlExposeHeadersProperty = AccessControlExposeHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build();",
7191 "version": "1"
7192 },
7193 "go": {
7194 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\naccessControlExposeHeadersProperty := &accessControlExposeHeadersProperty{\n\titems: []*string{\n\t\tjsii.String(\"items\"),\n\t},\n}",
7195 "version": "1"
7196 },
7197 "$": {
7198 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst accessControlExposeHeadersProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty = {\n items: ['items'],\n};",
7199 "version": "0"
7200 }
7201 },
7202 "location": {
7203 "api": {
7204 "api": "type",
7205 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty"
7206 },
7207 "field": {
7208 "field": "example"
7209 }
7210 },
7211 "didCompile": true,
7212 "fqnsReferenced": [
7213 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty"
7214 ],
7215 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst accessControlExposeHeadersProperty: cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty = {\n items: ['items'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7216 "syntaxKindCounter": {
7217 "10": 2,
7218 "75": 6,
7219 "153": 2,
7220 "169": 1,
7221 "192": 1,
7222 "193": 1,
7223 "225": 1,
7224 "242": 1,
7225 "243": 1,
7226 "254": 1,
7227 "255": 1,
7228 "256": 1,
7229 "281": 1,
7230 "290": 1
7231 },
7232 "fqnsFingerprint": "099deb5ced13321ad4e3e84a5cdf2cd010447d23ff1e8ca078263bde529d916a"
7233 },
7234 "ab76550769cfaf61a91b4444a0c972a8c902ab018139cad1dfe03f157fea6b17": {
7235 "translations": {
7236 "python": {
7237 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncontent_security_policy_property = cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty(\n content_security_policy=\"contentSecurityPolicy\",\n override=False\n)",
7238 "version": "2"
7239 },
7240 "csharp": {
7241 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nContentSecurityPolicyProperty contentSecurityPolicyProperty = new ContentSecurityPolicyProperty {\n ContentSecurityPolicy = \"contentSecurityPolicy\",\n Override = false\n};",
7242 "version": "1"
7243 },
7244 "java": {
7245 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nContentSecurityPolicyProperty contentSecurityPolicyProperty = ContentSecurityPolicyProperty.builder()\n .contentSecurityPolicy(\"contentSecurityPolicy\")\n .override(false)\n .build();",
7246 "version": "1"
7247 },
7248 "go": {
7249 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncontentSecurityPolicyProperty := &contentSecurityPolicyProperty{\n\tcontentSecurityPolicy: jsii.String(\"contentSecurityPolicy\"),\n\toverride: jsii.Boolean(false),\n}",
7250 "version": "1"
7251 },
7252 "$": {
7253 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst contentSecurityPolicyProperty: cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty = {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n};",
7254 "version": "0"
7255 }
7256 },
7257 "location": {
7258 "api": {
7259 "api": "type",
7260 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty"
7261 },
7262 "field": {
7263 "field": "example"
7264 }
7265 },
7266 "didCompile": true,
7267 "fqnsReferenced": [
7268 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty"
7269 ],
7270 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst contentSecurityPolicyProperty: cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty = {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7271 "syntaxKindCounter": {
7272 "10": 2,
7273 "75": 7,
7274 "91": 1,
7275 "153": 2,
7276 "169": 1,
7277 "193": 1,
7278 "225": 1,
7279 "242": 1,
7280 "243": 1,
7281 "254": 1,
7282 "255": 1,
7283 "256": 1,
7284 "281": 2,
7285 "290": 1
7286 },
7287 "fqnsFingerprint": "05cc9b063469989f91fceff39f099bf360557781a0364e270c67eaee838a7637"
7288 },
7289 "4ff73c53532418808fb77c19f7b6ca621cac95fe7ddbe62f581b94701ca9b061": {
7290 "translations": {
7291 "python": {
7292 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncontent_type_options_property = cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty(\n override=False\n)",
7293 "version": "2"
7294 },
7295 "csharp": {
7296 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nContentTypeOptionsProperty contentTypeOptionsProperty = new ContentTypeOptionsProperty {\n Override = false\n};",
7297 "version": "1"
7298 },
7299 "java": {
7300 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nContentTypeOptionsProperty contentTypeOptionsProperty = ContentTypeOptionsProperty.builder()\n .override(false)\n .build();",
7301 "version": "1"
7302 },
7303 "go": {
7304 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncontentTypeOptionsProperty := &contentTypeOptionsProperty{\n\toverride: jsii.Boolean(false),\n}",
7305 "version": "1"
7306 },
7307 "$": {
7308 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst contentTypeOptionsProperty: cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty = {\n override: false,\n};",
7309 "version": "0"
7310 }
7311 },
7312 "location": {
7313 "api": {
7314 "api": "type",
7315 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty"
7316 },
7317 "field": {
7318 "field": "example"
7319 }
7320 },
7321 "didCompile": true,
7322 "fqnsReferenced": [
7323 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty"
7324 ],
7325 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst contentTypeOptionsProperty: cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty = {\n override: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7326 "syntaxKindCounter": {
7327 "10": 1,
7328 "75": 6,
7329 "91": 1,
7330 "153": 2,
7331 "169": 1,
7332 "193": 1,
7333 "225": 1,
7334 "242": 1,
7335 "243": 1,
7336 "254": 1,
7337 "255": 1,
7338 "256": 1,
7339 "281": 1,
7340 "290": 1
7341 },
7342 "fqnsFingerprint": "45020d5972f3235b22b5593ab5956f2b89b22de462232f44e0ef6e67da8d1c7a"
7343 },
7344 "bcbed309a82b7ba7f72bd0fc536d96ab2319b5acf51792189ef16d199d130ffd": {
7345 "translations": {
7346 "python": {
7347 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncors_config_property = cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty(\n access_control_allow_credentials=False,\n access_control_allow_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty(\n items=[\"items\"]\n ),\n access_control_allow_methods=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty(\n items=[\"items\"]\n ),\n access_control_allow_origins=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty(\n items=[\"items\"]\n ),\n origin_override=False,\n\n # the properties below are optional\n access_control_expose_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty(\n items=[\"items\"]\n ),\n access_control_max_age_sec=123\n)",
7348 "version": "2"
7349 },
7350 "csharp": {
7351 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCorsConfigProperty corsConfigProperty = new CorsConfigProperty {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new AccessControlAllowHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowMethods = new AccessControlAllowMethodsProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowOrigins = new AccessControlAllowOriginsProperty {\n Items = new [] { \"items\" }\n },\n OriginOverride = false,\n\n // the properties below are optional\n AccessControlExposeHeaders = new AccessControlExposeHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlMaxAgeSec = 123\n};",
7352 "version": "1"
7353 },
7354 "java": {
7355 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCorsConfigProperty corsConfigProperty = CorsConfigProperty.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(AccessControlAllowHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowMethods(AccessControlAllowMethodsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowOrigins(AccessControlAllowOriginsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .originOverride(false)\n\n // the properties below are optional\n .accessControlExposeHeaders(AccessControlExposeHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlMaxAgeSec(123)\n .build();",
7356 "version": "1"
7357 },
7358 "go": {
7359 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncorsConfigProperty := &corsConfigProperty{\n\taccessControlAllowCredentials: jsii.Boolean(false),\n\taccessControlAllowHeaders: &accessControlAllowHeadersProperty{\n\t\titems: []*string{\n\t\t\tjsii.String(\"items\"),\n\t\t},\n\t},\n\taccessControlAllowMethods: &accessControlAllowMethodsProperty{\n\t\titems: []*string{\n\t\t\tjsii.String(\"items\"),\n\t\t},\n\t},\n\taccessControlAllowOrigins: &accessControlAllowOriginsProperty{\n\t\titems: []*string{\n\t\t\tjsii.String(\"items\"),\n\t\t},\n\t},\n\toriginOverride: jsii.Boolean(false),\n\n\t// the properties below are optional\n\taccessControlExposeHeaders: &accessControlExposeHeadersProperty{\n\t\titems: []*string{\n\t\t\tjsii.String(\"items\"),\n\t\t},\n\t},\n\taccessControlMaxAgeSec: jsii.Number(123),\n}",
7360 "version": "1"
7361 },
7362 "$": {
7363 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst corsConfigProperty: cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty = {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n};",
7364 "version": "0"
7365 }
7366 },
7367 "location": {
7368 "api": {
7369 "api": "type",
7370 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty"
7371 },
7372 "field": {
7373 "field": "example"
7374 }
7375 },
7376 "didCompile": true,
7377 "fqnsReferenced": [
7378 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty"
7379 ],
7380 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst corsConfigProperty: cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty = {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7381 "syntaxKindCounter": {
7382 "8": 1,
7383 "10": 5,
7384 "75": 16,
7385 "91": 2,
7386 "153": 2,
7387 "169": 1,
7388 "192": 4,
7389 "193": 5,
7390 "225": 1,
7391 "242": 1,
7392 "243": 1,
7393 "254": 1,
7394 "255": 1,
7395 "256": 1,
7396 "281": 11,
7397 "290": 1
7398 },
7399 "fqnsFingerprint": "d02d92dd46cb87babcbea9c573f78b43d7855230caf4acf0b86005e9e5fd45ec"
7400 },
7401 "99856d47bd38c047dacd74b29965b62367579bccf6162bdfbb3b16353b15348f": {
7402 "translations": {
7403 "python": {
7404 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncustom_header_property = cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty(\n header=\"header\",\n override=False,\n value=\"value\"\n)",
7405 "version": "2"
7406 },
7407 "csharp": {
7408 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCustomHeaderProperty customHeaderProperty = new CustomHeaderProperty {\n Header = \"header\",\n Override = false,\n Value = \"value\"\n};",
7409 "version": "1"
7410 },
7411 "java": {
7412 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCustomHeaderProperty customHeaderProperty = CustomHeaderProperty.builder()\n .header(\"header\")\n .override(false)\n .value(\"value\")\n .build();",
7413 "version": "1"
7414 },
7415 "go": {
7416 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncustomHeaderProperty := &customHeaderProperty{\n\theader: jsii.String(\"header\"),\n\toverride: jsii.Boolean(false),\n\tvalue: jsii.String(\"value\"),\n}",
7417 "version": "1"
7418 },
7419 "$": {
7420 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst customHeaderProperty: cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty = {\n header: 'header',\n override: false,\n value: 'value',\n};",
7421 "version": "0"
7422 }
7423 },
7424 "location": {
7425 "api": {
7426 "api": "type",
7427 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty"
7428 },
7429 "field": {
7430 "field": "example"
7431 }
7432 },
7433 "didCompile": true,
7434 "fqnsReferenced": [
7435 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty"
7436 ],
7437 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst customHeaderProperty: cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty = {\n header: 'header',\n override: false,\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7438 "syntaxKindCounter": {
7439 "10": 3,
7440 "75": 8,
7441 "91": 1,
7442 "153": 2,
7443 "169": 1,
7444 "193": 1,
7445 "225": 1,
7446 "242": 1,
7447 "243": 1,
7448 "254": 1,
7449 "255": 1,
7450 "256": 1,
7451 "281": 3,
7452 "290": 1
7453 },
7454 "fqnsFingerprint": "328e22d3aa1d3fecd3564d16e20b290efa993c313f767f640e5f8257f3c604cf"
7455 },
7456 "fea6bdb300b1fcdefca8e1ad4c0bbf41836ef5e91bd55458e69dd4d94bdf88e3": {
7457 "translations": {
7458 "python": {
7459 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncustom_headers_config_property = cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty(\n items=[cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty(\n header=\"header\",\n override=False,\n value=\"value\"\n )]\n)",
7460 "version": "2"
7461 },
7462 "csharp": {
7463 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCustomHeadersConfigProperty customHeadersConfigProperty = new CustomHeadersConfigProperty {\n Items = new [] { new CustomHeaderProperty {\n Header = \"header\",\n Override = false,\n Value = \"value\"\n } }\n};",
7464 "version": "1"
7465 },
7466 "java": {
7467 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCustomHeadersConfigProperty customHeadersConfigProperty = CustomHeadersConfigProperty.builder()\n .items(List.of(CustomHeaderProperty.builder()\n .header(\"header\")\n .override(false)\n .value(\"value\")\n .build()))\n .build();",
7468 "version": "1"
7469 },
7470 "go": {
7471 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncustomHeadersConfigProperty := &customHeadersConfigProperty{\n\titems: []interface{}{\n\t\t&customHeaderProperty{\n\t\t\theader: jsii.String(\"header\"),\n\t\t\toverride: jsii.Boolean(false),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
7472 "version": "1"
7473 },
7474 "$": {
7475 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst customHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty = {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n};",
7476 "version": "0"
7477 }
7478 },
7479 "location": {
7480 "api": {
7481 "api": "type",
7482 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty"
7483 },
7484 "field": {
7485 "field": "example"
7486 }
7487 },
7488 "didCompile": true,
7489 "fqnsReferenced": [
7490 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty"
7491 ],
7492 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst customHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty = {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7493 "syntaxKindCounter": {
7494 "10": 3,
7495 "75": 9,
7496 "91": 1,
7497 "153": 2,
7498 "169": 1,
7499 "192": 1,
7500 "193": 2,
7501 "225": 1,
7502 "242": 1,
7503 "243": 1,
7504 "254": 1,
7505 "255": 1,
7506 "256": 1,
7507 "281": 4,
7508 "290": 1
7509 },
7510 "fqnsFingerprint": "ebe093641f8b8e5e7e73d81607440a299f0b22591aaa659a45eb1bde26e43eb0"
7511 },
7512 "b11c24bcaf6bddb4db4c2eb2e96e0c4620d92c637eb56d67cbde24e26e33159a": {
7513 "translations": {
7514 "python": {
7515 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nframe_options_property = cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty(\n frame_option=\"frameOption\",\n override=False\n)",
7516 "version": "2"
7517 },
7518 "csharp": {
7519 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFrameOptionsProperty frameOptionsProperty = new FrameOptionsProperty {\n FrameOption = \"frameOption\",\n Override = false\n};",
7520 "version": "1"
7521 },
7522 "java": {
7523 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFrameOptionsProperty frameOptionsProperty = FrameOptionsProperty.builder()\n .frameOption(\"frameOption\")\n .override(false)\n .build();",
7524 "version": "1"
7525 },
7526 "go": {
7527 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nframeOptionsProperty := &frameOptionsProperty{\n\tframeOption: jsii.String(\"frameOption\"),\n\toverride: jsii.Boolean(false),\n}",
7528 "version": "1"
7529 },
7530 "$": {
7531 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst frameOptionsProperty: cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty = {\n frameOption: 'frameOption',\n override: false,\n};",
7532 "version": "0"
7533 }
7534 },
7535 "location": {
7536 "api": {
7537 "api": "type",
7538 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty"
7539 },
7540 "field": {
7541 "field": "example"
7542 }
7543 },
7544 "didCompile": true,
7545 "fqnsReferenced": [
7546 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty"
7547 ],
7548 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst frameOptionsProperty: cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty = {\n frameOption: 'frameOption',\n override: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7549 "syntaxKindCounter": {
7550 "10": 2,
7551 "75": 7,
7552 "91": 1,
7553 "153": 2,
7554 "169": 1,
7555 "193": 1,
7556 "225": 1,
7557 "242": 1,
7558 "243": 1,
7559 "254": 1,
7560 "255": 1,
7561 "256": 1,
7562 "281": 2,
7563 "290": 1
7564 },
7565 "fqnsFingerprint": "b90533898c656d0139a836c1917dd02712e3eb0efc5994b6eb9d1cc20f8770ee"
7566 },
7567 "69cf4da94cb92fbcad5fb7af3656ff180ad9d588d5b0c4918895b86c1b3d5330": {
7568 "translations": {
7569 "python": {
7570 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nreferrer_policy_property = cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty(\n override=False,\n referrer_policy=\"referrerPolicy\"\n)",
7571 "version": "2"
7572 },
7573 "csharp": {
7574 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nReferrerPolicyProperty referrerPolicyProperty = new ReferrerPolicyProperty {\n Override = false,\n ReferrerPolicy = \"referrerPolicy\"\n};",
7575 "version": "1"
7576 },
7577 "java": {
7578 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nReferrerPolicyProperty referrerPolicyProperty = ReferrerPolicyProperty.builder()\n .override(false)\n .referrerPolicy(\"referrerPolicy\")\n .build();",
7579 "version": "1"
7580 },
7581 "go": {
7582 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nreferrerPolicyProperty := &referrerPolicyProperty{\n\toverride: jsii.Boolean(false),\n\treferrerPolicy: jsii.String(\"referrerPolicy\"),\n}",
7583 "version": "1"
7584 },
7585 "$": {
7586 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst referrerPolicyProperty: cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty = {\n override: false,\n referrerPolicy: 'referrerPolicy',\n};",
7587 "version": "0"
7588 }
7589 },
7590 "location": {
7591 "api": {
7592 "api": "type",
7593 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty"
7594 },
7595 "field": {
7596 "field": "example"
7597 }
7598 },
7599 "didCompile": true,
7600 "fqnsReferenced": [
7601 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty"
7602 ],
7603 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst referrerPolicyProperty: cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty = {\n override: false,\n referrerPolicy: 'referrerPolicy',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7604 "syntaxKindCounter": {
7605 "10": 2,
7606 "75": 7,
7607 "91": 1,
7608 "153": 2,
7609 "169": 1,
7610 "193": 1,
7611 "225": 1,
7612 "242": 1,
7613 "243": 1,
7614 "254": 1,
7615 "255": 1,
7616 "256": 1,
7617 "281": 2,
7618 "290": 1
7619 },
7620 "fqnsFingerprint": "6d8cf7707e39dd2555ec1fa32115745a558dfb0021614bb6be30f5c233e186cf"
7621 },
7622 "a75aa718c719bc79fad5b60689fdae714027ae2bceaf5cc63adcbb9c37dfed70": {
7623 "translations": {
7624 "python": {
7625 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nresponse_headers_policy_config_property = cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty(\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\",\n cors_config=cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty(\n access_control_allow_credentials=False,\n access_control_allow_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty(\n items=[\"items\"]\n ),\n access_control_allow_methods=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty(\n items=[\"items\"]\n ),\n access_control_allow_origins=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty(\n items=[\"items\"]\n ),\n origin_override=False,\n\n # the properties below are optional\n access_control_expose_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty(\n items=[\"items\"]\n ),\n access_control_max_age_sec=123\n ),\n custom_headers_config=cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty(\n items=[cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty(\n header=\"header\",\n override=False,\n value=\"value\"\n )]\n ),\n security_headers_config=cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty(\n content_security_policy=cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty(\n content_security_policy=\"contentSecurityPolicy\",\n override=False\n ),\n content_type_options=cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty(\n override=False\n ),\n frame_options=cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty(\n frame_option=\"frameOption\",\n override=False\n ),\n referrer_policy=cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty(\n override=False,\n referrer_policy=\"referrerPolicy\"\n ),\n strict_transport_security=cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty(\n access_control_max_age_sec=123,\n override=False,\n\n # the properties below are optional\n include_subdomains=False,\n preload=False\n ),\n xss_protection=cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty(\n override=False,\n protection=False,\n\n # the properties below are optional\n mode_block=False,\n report_uri=\"reportUri\"\n )\n ),\n server_timing_headers_config=cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty(\n enabled=False,\n\n # the properties below are optional\n sampling_rate=123\n )\n)",
7626 "version": "2"
7627 },
7628 "csharp": {
7629 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nResponseHeadersPolicyConfigProperty responseHeadersPolicyConfigProperty = new ResponseHeadersPolicyConfigProperty {\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\",\n CorsConfig = new CorsConfigProperty {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new AccessControlAllowHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowMethods = new AccessControlAllowMethodsProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowOrigins = new AccessControlAllowOriginsProperty {\n Items = new [] { \"items\" }\n },\n OriginOverride = false,\n\n // the properties below are optional\n AccessControlExposeHeaders = new AccessControlExposeHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlMaxAgeSec = 123\n },\n CustomHeadersConfig = new CustomHeadersConfigProperty {\n Items = new [] { new CustomHeaderProperty {\n Header = \"header\",\n Override = false,\n Value = \"value\"\n } }\n },\n SecurityHeadersConfig = new SecurityHeadersConfigProperty {\n ContentSecurityPolicy = new ContentSecurityPolicyProperty {\n ContentSecurityPolicy = \"contentSecurityPolicy\",\n Override = false\n },\n ContentTypeOptions = new ContentTypeOptionsProperty {\n Override = false\n },\n FrameOptions = new FrameOptionsProperty {\n FrameOption = \"frameOption\",\n Override = false\n },\n ReferrerPolicy = new ReferrerPolicyProperty {\n Override = false,\n ReferrerPolicy = \"referrerPolicy\"\n },\n StrictTransportSecurity = new StrictTransportSecurityProperty {\n AccessControlMaxAgeSec = 123,\n Override = false,\n\n // the properties below are optional\n IncludeSubdomains = false,\n Preload = false\n },\n XssProtection = new XSSProtectionProperty {\n Override = false,\n Protection = false,\n\n // the properties below are optional\n ModeBlock = false,\n ReportUri = \"reportUri\"\n }\n },\n ServerTimingHeadersConfig = new ServerTimingHeadersConfigProperty {\n Enabled = false,\n\n // the properties below are optional\n SamplingRate = 123\n }\n};",
7630 "version": "1"
7631 },
7632 "java": {
7633 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nResponseHeadersPolicyConfigProperty responseHeadersPolicyConfigProperty = ResponseHeadersPolicyConfigProperty.builder()\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .corsConfig(CorsConfigProperty.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(AccessControlAllowHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowMethods(AccessControlAllowMethodsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowOrigins(AccessControlAllowOriginsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .originOverride(false)\n\n // the properties below are optional\n .accessControlExposeHeaders(AccessControlExposeHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlMaxAgeSec(123)\n .build())\n .customHeadersConfig(CustomHeadersConfigProperty.builder()\n .items(List.of(CustomHeaderProperty.builder()\n .header(\"header\")\n .override(false)\n .value(\"value\")\n .build()))\n .build())\n .securityHeadersConfig(SecurityHeadersConfigProperty.builder()\n .contentSecurityPolicy(ContentSecurityPolicyProperty.builder()\n .contentSecurityPolicy(\"contentSecurityPolicy\")\n .override(false)\n .build())\n .contentTypeOptions(ContentTypeOptionsProperty.builder()\n .override(false)\n .build())\n .frameOptions(FrameOptionsProperty.builder()\n .frameOption(\"frameOption\")\n .override(false)\n .build())\n .referrerPolicy(ReferrerPolicyProperty.builder()\n .override(false)\n .referrerPolicy(\"referrerPolicy\")\n .build())\n .strictTransportSecurity(StrictTransportSecurityProperty.builder()\n .accessControlMaxAgeSec(123)\n .override(false)\n\n // the properties below are optional\n .includeSubdomains(false)\n .preload(false)\n .build())\n .xssProtection(XSSProtectionProperty.builder()\n .override(false)\n .protection(false)\n\n // the properties below are optional\n .modeBlock(false)\n .reportUri(\"reportUri\")\n .build())\n .build())\n .serverTimingHeadersConfig(ServerTimingHeadersConfigProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .samplingRate(123)\n .build())\n .build();",
7634 "version": "1"
7635 },
7636 "go": {
7637 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nresponseHeadersPolicyConfigProperty := &responseHeadersPolicyConfigProperty{\n\tname: jsii.String(\"name\"),\n\n\t// the properties below are optional\n\tcomment: jsii.String(\"comment\"),\n\tcorsConfig: &corsConfigProperty{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: &accessControlAllowHeadersProperty{\n\t\t\titems: []*string{\n\t\t\t\tjsii.String(\"items\"),\n\t\t\t},\n\t\t},\n\t\taccessControlAllowMethods: &accessControlAllowMethodsProperty{\n\t\t\titems: []*string{\n\t\t\t\tjsii.String(\"items\"),\n\t\t\t},\n\t\t},\n\t\taccessControlAllowOrigins: &accessControlAllowOriginsProperty{\n\t\t\titems: []*string{\n\t\t\t\tjsii.String(\"items\"),\n\t\t\t},\n\t\t},\n\t\toriginOverride: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\taccessControlExposeHeaders: &accessControlExposeHeadersProperty{\n\t\t\titems: []*string{\n\t\t\t\tjsii.String(\"items\"),\n\t\t\t},\n\t\t},\n\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t},\n\tcustomHeadersConfig: &customHeadersConfigProperty{\n\t\titems: []interface{}{\n\t\t\t&customHeaderProperty{\n\t\t\t\theader: jsii.String(\"header\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersConfig: &securityHeadersConfigProperty{\n\t\tcontentSecurityPolicy: &contentSecurityPolicyProperty{\n\t\t\tcontentSecurityPolicy: jsii.String(\"contentSecurityPolicy\"),\n\t\t\toverride: jsii.Boolean(false),\n\t\t},\n\t\tcontentTypeOptions: &contentTypeOptionsProperty{\n\t\t\toverride: jsii.Boolean(false),\n\t\t},\n\t\tframeOptions: &frameOptionsProperty{\n\t\t\tframeOption: jsii.String(\"frameOption\"),\n\t\t\toverride: jsii.Boolean(false),\n\t\t},\n\t\treferrerPolicy: &referrerPolicyProperty{\n\t\t\toverride: jsii.Boolean(false),\n\t\t\treferrerPolicy: jsii.String(\"referrerPolicy\"),\n\t\t},\n\t\tstrictTransportSecurity: &strictTransportSecurityProperty{\n\t\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t\t\toverride: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tincludeSubdomains: jsii.Boolean(false),\n\t\t\tpreload: jsii.Boolean(false),\n\t\t},\n\t\txssProtection: &xSSProtectionProperty{\n\t\t\toverride: jsii.Boolean(false),\n\t\t\tprotection: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tmodeBlock: jsii.Boolean(false),\n\t\t\treportUri: jsii.String(\"reportUri\"),\n\t\t},\n\t},\n\tserverTimingHeadersConfig: &serverTimingHeadersConfigProperty{\n\t\tenabled: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tsamplingRate: jsii.Number(123),\n\t},\n}",
7638 "version": "1"
7639 },
7640 "$": {
7641 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst responseHeadersPolicyConfigProperty: cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty = {\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n corsConfig: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n },\n customHeadersConfig: {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n },\n securityHeadersConfig: {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n },\n serverTimingHeadersConfig: {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n },\n};",
7642 "version": "0"
7643 }
7644 },
7645 "location": {
7646 "api": {
7647 "api": "type",
7648 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty"
7649 },
7650 "field": {
7651 "field": "example"
7652 }
7653 },
7654 "didCompile": true,
7655 "fqnsReferenced": [
7656 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty"
7657 ],
7658 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst responseHeadersPolicyConfigProperty: cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty = {\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n corsConfig: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n },\n customHeadersConfig: {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n },\n securityHeadersConfig: {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n },\n serverTimingHeadersConfig: {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7659 "syntaxKindCounter": {
7660 "8": 3,
7661 "10": 13,
7662 "75": 49,
7663 "91": 14,
7664 "153": 2,
7665 "169": 1,
7666 "192": 5,
7667 "193": 16,
7668 "225": 1,
7669 "242": 1,
7670 "243": 1,
7671 "254": 1,
7672 "255": 1,
7673 "256": 1,
7674 "281": 44,
7675 "290": 1
7676 },
7677 "fqnsFingerprint": "a4082f8113036055469492d82aad8df5aeb0d26117f68c02d090d20a5a142445"
7678 },
7679 "270a9fb3e1c729aeab9204f61ce150f09567690b1f9ebbf1e2a558d0e174763c": {
7680 "translations": {
7681 "python": {
7682 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nsecurity_headers_config_property = cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty(\n content_security_policy=cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty(\n content_security_policy=\"contentSecurityPolicy\",\n override=False\n ),\n content_type_options=cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty(\n override=False\n ),\n frame_options=cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty(\n frame_option=\"frameOption\",\n override=False\n ),\n referrer_policy=cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty(\n override=False,\n referrer_policy=\"referrerPolicy\"\n ),\n strict_transport_security=cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty(\n access_control_max_age_sec=123,\n override=False,\n\n # the properties below are optional\n include_subdomains=False,\n preload=False\n ),\n xss_protection=cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty(\n override=False,\n protection=False,\n\n # the properties below are optional\n mode_block=False,\n report_uri=\"reportUri\"\n )\n)",
7683 "version": "2"
7684 },
7685 "csharp": {
7686 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nSecurityHeadersConfigProperty securityHeadersConfigProperty = new SecurityHeadersConfigProperty {\n ContentSecurityPolicy = new ContentSecurityPolicyProperty {\n ContentSecurityPolicy = \"contentSecurityPolicy\",\n Override = false\n },\n ContentTypeOptions = new ContentTypeOptionsProperty {\n Override = false\n },\n FrameOptions = new FrameOptionsProperty {\n FrameOption = \"frameOption\",\n Override = false\n },\n ReferrerPolicy = new ReferrerPolicyProperty {\n Override = false,\n ReferrerPolicy = \"referrerPolicy\"\n },\n StrictTransportSecurity = new StrictTransportSecurityProperty {\n AccessControlMaxAgeSec = 123,\n Override = false,\n\n // the properties below are optional\n IncludeSubdomains = false,\n Preload = false\n },\n XssProtection = new XSSProtectionProperty {\n Override = false,\n Protection = false,\n\n // the properties below are optional\n ModeBlock = false,\n ReportUri = \"reportUri\"\n }\n};",
7687 "version": "1"
7688 },
7689 "java": {
7690 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nSecurityHeadersConfigProperty securityHeadersConfigProperty = SecurityHeadersConfigProperty.builder()\n .contentSecurityPolicy(ContentSecurityPolicyProperty.builder()\n .contentSecurityPolicy(\"contentSecurityPolicy\")\n .override(false)\n .build())\n .contentTypeOptions(ContentTypeOptionsProperty.builder()\n .override(false)\n .build())\n .frameOptions(FrameOptionsProperty.builder()\n .frameOption(\"frameOption\")\n .override(false)\n .build())\n .referrerPolicy(ReferrerPolicyProperty.builder()\n .override(false)\n .referrerPolicy(\"referrerPolicy\")\n .build())\n .strictTransportSecurity(StrictTransportSecurityProperty.builder()\n .accessControlMaxAgeSec(123)\n .override(false)\n\n // the properties below are optional\n .includeSubdomains(false)\n .preload(false)\n .build())\n .xssProtection(XSSProtectionProperty.builder()\n .override(false)\n .protection(false)\n\n // the properties below are optional\n .modeBlock(false)\n .reportUri(\"reportUri\")\n .build())\n .build();",
7691 "version": "1"
7692 },
7693 "go": {
7694 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nsecurityHeadersConfigProperty := &securityHeadersConfigProperty{\n\tcontentSecurityPolicy: &contentSecurityPolicyProperty{\n\t\tcontentSecurityPolicy: jsii.String(\"contentSecurityPolicy\"),\n\t\toverride: jsii.Boolean(false),\n\t},\n\tcontentTypeOptions: &contentTypeOptionsProperty{\n\t\toverride: jsii.Boolean(false),\n\t},\n\tframeOptions: &frameOptionsProperty{\n\t\tframeOption: jsii.String(\"frameOption\"),\n\t\toverride: jsii.Boolean(false),\n\t},\n\treferrerPolicy: &referrerPolicyProperty{\n\t\toverride: jsii.Boolean(false),\n\t\treferrerPolicy: jsii.String(\"referrerPolicy\"),\n\t},\n\tstrictTransportSecurity: &strictTransportSecurityProperty{\n\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t\toverride: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tincludeSubdomains: jsii.Boolean(false),\n\t\tpreload: jsii.Boolean(false),\n\t},\n\txssProtection: &xSSProtectionProperty{\n\t\toverride: jsii.Boolean(false),\n\t\tprotection: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tmodeBlock: jsii.Boolean(false),\n\t\treportUri: jsii.String(\"reportUri\"),\n\t},\n}",
7695 "version": "1"
7696 },
7697 "$": {
7698 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst securityHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty = {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n};",
7699 "version": "0"
7700 }
7701 },
7702 "location": {
7703 "api": {
7704 "api": "type",
7705 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty"
7706 },
7707 "field": {
7708 "field": "example"
7709 }
7710 },
7711 "didCompile": true,
7712 "fqnsReferenced": [
7713 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty"
7714 ],
7715 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst securityHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty = {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7716 "syntaxKindCounter": {
7717 "8": 1,
7718 "10": 5,
7719 "75": 26,
7720 "91": 10,
7721 "153": 2,
7722 "169": 1,
7723 "193": 7,
7724 "225": 1,
7725 "242": 1,
7726 "243": 1,
7727 "254": 1,
7728 "255": 1,
7729 "256": 1,
7730 "281": 21,
7731 "290": 1
7732 },
7733 "fqnsFingerprint": "4810439c9e1a3511141f4677145ee0849714c540f0f1202d9c637a77f4729f9e"
7734 },
7735 "8667a783782cf44b7f308c70537c722078f15561414b2b23b964980fe85884c8": {
7736 "translations": {
7737 "python": {
7738 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nserver_timing_headers_config_property = cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty(\n enabled=False,\n\n # the properties below are optional\n sampling_rate=123\n)",
7739 "version": "2"
7740 },
7741 "csharp": {
7742 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nServerTimingHeadersConfigProperty serverTimingHeadersConfigProperty = new ServerTimingHeadersConfigProperty {\n Enabled = false,\n\n // the properties below are optional\n SamplingRate = 123\n};",
7743 "version": "1"
7744 },
7745 "java": {
7746 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nServerTimingHeadersConfigProperty serverTimingHeadersConfigProperty = ServerTimingHeadersConfigProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .samplingRate(123)\n .build();",
7747 "version": "1"
7748 },
7749 "go": {
7750 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nserverTimingHeadersConfigProperty := &serverTimingHeadersConfigProperty{\n\tenabled: jsii.Boolean(false),\n\n\t// the properties below are optional\n\tsamplingRate: jsii.Number(123),\n}",
7751 "version": "1"
7752 },
7753 "$": {
7754 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst serverTimingHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty = {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n};",
7755 "version": "0"
7756 }
7757 },
7758 "location": {
7759 "api": {
7760 "api": "type",
7761 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty"
7762 },
7763 "field": {
7764 "field": "example"
7765 }
7766 },
7767 "didCompile": true,
7768 "fqnsReferenced": [
7769 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty"
7770 ],
7771 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst serverTimingHeadersConfigProperty: cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty = {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7772 "syntaxKindCounter": {
7773 "8": 1,
7774 "10": 1,
7775 "75": 7,
7776 "91": 1,
7777 "153": 2,
7778 "169": 1,
7779 "193": 1,
7780 "225": 1,
7781 "242": 1,
7782 "243": 1,
7783 "254": 1,
7784 "255": 1,
7785 "256": 1,
7786 "281": 2,
7787 "290": 1
7788 },
7789 "fqnsFingerprint": "677c6538c6832324640c15264272f1357105cb0edaf4bbadf8a6e172760a6e9e"
7790 },
7791 "e976b2dd9d804d9e83c9c8c6feed092dca3413f7d4620a56fa6e2221873b10e9": {
7792 "translations": {
7793 "python": {
7794 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nstrict_transport_security_property = cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty(\n access_control_max_age_sec=123,\n override=False,\n\n # the properties below are optional\n include_subdomains=False,\n preload=False\n)",
7795 "version": "2"
7796 },
7797 "csharp": {
7798 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nStrictTransportSecurityProperty strictTransportSecurityProperty = new StrictTransportSecurityProperty {\n AccessControlMaxAgeSec = 123,\n Override = false,\n\n // the properties below are optional\n IncludeSubdomains = false,\n Preload = false\n};",
7799 "version": "1"
7800 },
7801 "java": {
7802 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nStrictTransportSecurityProperty strictTransportSecurityProperty = StrictTransportSecurityProperty.builder()\n .accessControlMaxAgeSec(123)\n .override(false)\n\n // the properties below are optional\n .includeSubdomains(false)\n .preload(false)\n .build();",
7803 "version": "1"
7804 },
7805 "go": {
7806 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nstrictTransportSecurityProperty := &strictTransportSecurityProperty{\n\taccessControlMaxAgeSec: jsii.Number(123),\n\toverride: jsii.Boolean(false),\n\n\t// the properties below are optional\n\tincludeSubdomains: jsii.Boolean(false),\n\tpreload: jsii.Boolean(false),\n}",
7807 "version": "1"
7808 },
7809 "$": {
7810 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst strictTransportSecurityProperty: cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty = {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n};",
7811 "version": "0"
7812 }
7813 },
7814 "location": {
7815 "api": {
7816 "api": "type",
7817 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty"
7818 },
7819 "field": {
7820 "field": "example"
7821 }
7822 },
7823 "didCompile": true,
7824 "fqnsReferenced": [
7825 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty"
7826 ],
7827 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst strictTransportSecurityProperty: cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty = {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7828 "syntaxKindCounter": {
7829 "8": 1,
7830 "10": 1,
7831 "75": 9,
7832 "91": 3,
7833 "153": 2,
7834 "169": 1,
7835 "193": 1,
7836 "225": 1,
7837 "242": 1,
7838 "243": 1,
7839 "254": 1,
7840 "255": 1,
7841 "256": 1,
7842 "281": 4,
7843 "290": 1
7844 },
7845 "fqnsFingerprint": "9459c6ad2e0fafd42d1213e268d889dabff08a1ec9cbb51569a81b7a4d89abc4"
7846 },
7847 "e625759831c40353d2a7e53c8a9b633ad6037e151e0d3d0cf2035cfbe5f7bb8d": {
7848 "translations": {
7849 "python": {
7850 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nx_sSProtection_property = cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty(\n override=False,\n protection=False,\n\n # the properties below are optional\n mode_block=False,\n report_uri=\"reportUri\"\n)",
7851 "version": "2"
7852 },
7853 "csharp": {
7854 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nXSSProtectionProperty xSSProtectionProperty = new XSSProtectionProperty {\n Override = false,\n Protection = false,\n\n // the properties below are optional\n ModeBlock = false,\n ReportUri = \"reportUri\"\n};",
7855 "version": "1"
7856 },
7857 "java": {
7858 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nXSSProtectionProperty xSSProtectionProperty = XSSProtectionProperty.builder()\n .override(false)\n .protection(false)\n\n // the properties below are optional\n .modeBlock(false)\n .reportUri(\"reportUri\")\n .build();",
7859 "version": "1"
7860 },
7861 "go": {
7862 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nxSSProtectionProperty := &xSSProtectionProperty{\n\toverride: jsii.Boolean(false),\n\tprotection: jsii.Boolean(false),\n\n\t// the properties below are optional\n\tmodeBlock: jsii.Boolean(false),\n\treportUri: jsii.String(\"reportUri\"),\n}",
7863 "version": "1"
7864 },
7865 "$": {
7866 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst xSSProtectionProperty: cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty = {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n};",
7867 "version": "0"
7868 }
7869 },
7870 "location": {
7871 "api": {
7872 "api": "type",
7873 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty"
7874 },
7875 "field": {
7876 "field": "example"
7877 }
7878 },
7879 "didCompile": true,
7880 "fqnsReferenced": [
7881 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty"
7882 ],
7883 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst xSSProtectionProperty: cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty = {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7884 "syntaxKindCounter": {
7885 "10": 2,
7886 "75": 9,
7887 "91": 3,
7888 "153": 2,
7889 "169": 1,
7890 "193": 1,
7891 "225": 1,
7892 "242": 1,
7893 "243": 1,
7894 "254": 1,
7895 "255": 1,
7896 "256": 1,
7897 "281": 4,
7898 "290": 1
7899 },
7900 "fqnsFingerprint": "fac58420e4afc4ded87164bd234415f384003ff87c3299b41b8694f017b003e8"
7901 },
7902 "eff18de538e0289d08ee8beccd4b28690e66b9837c26627efd538c1b4ad5af3c": {
7903 "translations": {
7904 "python": {
7905 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_response_headers_policy_props = cloudfront.CfnResponseHeadersPolicyProps(\n response_headers_policy_config=cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty(\n name=\"name\",\n\n # the properties below are optional\n comment=\"comment\",\n cors_config=cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty(\n access_control_allow_credentials=False,\n access_control_allow_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty(\n items=[\"items\"]\n ),\n access_control_allow_methods=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty(\n items=[\"items\"]\n ),\n access_control_allow_origins=cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty(\n items=[\"items\"]\n ),\n origin_override=False,\n\n # the properties below are optional\n access_control_expose_headers=cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty(\n items=[\"items\"]\n ),\n access_control_max_age_sec=123\n ),\n custom_headers_config=cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty(\n items=[cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty(\n header=\"header\",\n override=False,\n value=\"value\"\n )]\n ),\n security_headers_config=cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty(\n content_security_policy=cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty(\n content_security_policy=\"contentSecurityPolicy\",\n override=False\n ),\n content_type_options=cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty(\n override=False\n ),\n frame_options=cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty(\n frame_option=\"frameOption\",\n override=False\n ),\n referrer_policy=cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty(\n override=False,\n referrer_policy=\"referrerPolicy\"\n ),\n strict_transport_security=cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty(\n access_control_max_age_sec=123,\n override=False,\n\n # the properties below are optional\n include_subdomains=False,\n preload=False\n ),\n xss_protection=cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty(\n override=False,\n protection=False,\n\n # the properties below are optional\n mode_block=False,\n report_uri=\"reportUri\"\n )\n ),\n server_timing_headers_config=cloudfront.CfnResponseHeadersPolicy.ServerTimingHeadersConfigProperty(\n enabled=False,\n\n # the properties below are optional\n sampling_rate=123\n )\n )\n)",
7906 "version": "2"
7907 },
7908 "csharp": {
7909 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnResponseHeadersPolicyProps cfnResponseHeadersPolicyProps = new CfnResponseHeadersPolicyProps {\n ResponseHeadersPolicyConfig = new ResponseHeadersPolicyConfigProperty {\n Name = \"name\",\n\n // the properties below are optional\n Comment = \"comment\",\n CorsConfig = new CorsConfigProperty {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new AccessControlAllowHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowMethods = new AccessControlAllowMethodsProperty {\n Items = new [] { \"items\" }\n },\n AccessControlAllowOrigins = new AccessControlAllowOriginsProperty {\n Items = new [] { \"items\" }\n },\n OriginOverride = false,\n\n // the properties below are optional\n AccessControlExposeHeaders = new AccessControlExposeHeadersProperty {\n Items = new [] { \"items\" }\n },\n AccessControlMaxAgeSec = 123\n },\n CustomHeadersConfig = new CustomHeadersConfigProperty {\n Items = new [] { new CustomHeaderProperty {\n Header = \"header\",\n Override = false,\n Value = \"value\"\n } }\n },\n SecurityHeadersConfig = new SecurityHeadersConfigProperty {\n ContentSecurityPolicy = new ContentSecurityPolicyProperty {\n ContentSecurityPolicy = \"contentSecurityPolicy\",\n Override = false\n },\n ContentTypeOptions = new ContentTypeOptionsProperty {\n Override = false\n },\n FrameOptions = new FrameOptionsProperty {\n FrameOption = \"frameOption\",\n Override = false\n },\n ReferrerPolicy = new ReferrerPolicyProperty {\n Override = false,\n ReferrerPolicy = \"referrerPolicy\"\n },\n StrictTransportSecurity = new StrictTransportSecurityProperty {\n AccessControlMaxAgeSec = 123,\n Override = false,\n\n // the properties below are optional\n IncludeSubdomains = false,\n Preload = false\n },\n XssProtection = new XSSProtectionProperty {\n Override = false,\n Protection = false,\n\n // the properties below are optional\n ModeBlock = false,\n ReportUri = \"reportUri\"\n }\n },\n ServerTimingHeadersConfig = new ServerTimingHeadersConfigProperty {\n Enabled = false,\n\n // the properties below are optional\n SamplingRate = 123\n }\n }\n};",
7910 "version": "1"
7911 },
7912 "java": {
7913 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnResponseHeadersPolicyProps cfnResponseHeadersPolicyProps = CfnResponseHeadersPolicyProps.builder()\n .responseHeadersPolicyConfig(ResponseHeadersPolicyConfigProperty.builder()\n .name(\"name\")\n\n // the properties below are optional\n .comment(\"comment\")\n .corsConfig(CorsConfigProperty.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(AccessControlAllowHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowMethods(AccessControlAllowMethodsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlAllowOrigins(AccessControlAllowOriginsProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .originOverride(false)\n\n // the properties below are optional\n .accessControlExposeHeaders(AccessControlExposeHeadersProperty.builder()\n .items(List.of(\"items\"))\n .build())\n .accessControlMaxAgeSec(123)\n .build())\n .customHeadersConfig(CustomHeadersConfigProperty.builder()\n .items(List.of(CustomHeaderProperty.builder()\n .header(\"header\")\n .override(false)\n .value(\"value\")\n .build()))\n .build())\n .securityHeadersConfig(SecurityHeadersConfigProperty.builder()\n .contentSecurityPolicy(ContentSecurityPolicyProperty.builder()\n .contentSecurityPolicy(\"contentSecurityPolicy\")\n .override(false)\n .build())\n .contentTypeOptions(ContentTypeOptionsProperty.builder()\n .override(false)\n .build())\n .frameOptions(FrameOptionsProperty.builder()\n .frameOption(\"frameOption\")\n .override(false)\n .build())\n .referrerPolicy(ReferrerPolicyProperty.builder()\n .override(false)\n .referrerPolicy(\"referrerPolicy\")\n .build())\n .strictTransportSecurity(StrictTransportSecurityProperty.builder()\n .accessControlMaxAgeSec(123)\n .override(false)\n\n // the properties below are optional\n .includeSubdomains(false)\n .preload(false)\n .build())\n .xssProtection(XSSProtectionProperty.builder()\n .override(false)\n .protection(false)\n\n // the properties below are optional\n .modeBlock(false)\n .reportUri(\"reportUri\")\n .build())\n .build())\n .serverTimingHeadersConfig(ServerTimingHeadersConfigProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .samplingRate(123)\n .build())\n .build())\n .build();",
7914 "version": "1"
7915 },
7916 "go": {
7917 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnResponseHeadersPolicyProps := &cfnResponseHeadersPolicyProps{\n\tresponseHeadersPolicyConfig: &responseHeadersPolicyConfigProperty{\n\t\tname: jsii.String(\"name\"),\n\n\t\t// the properties below are optional\n\t\tcomment: jsii.String(\"comment\"),\n\t\tcorsConfig: &corsConfigProperty{\n\t\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\t\taccessControlAllowHeaders: &accessControlAllowHeadersProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\taccessControlAllowMethods: &accessControlAllowMethodsProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\taccessControlAllowOrigins: &accessControlAllowOriginsProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\toriginOverride: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\taccessControlExposeHeaders: &accessControlExposeHeadersProperty{\n\t\t\t\titems: []*string{\n\t\t\t\t\tjsii.String(\"items\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t\t},\n\t\tcustomHeadersConfig: &customHeadersConfigProperty{\n\t\t\titems: []interface{}{\n\t\t\t\t&customHeaderProperty{\n\t\t\t\t\theader: jsii.String(\"header\"),\n\t\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\t\tvalue: jsii.String(\"value\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tsecurityHeadersConfig: &securityHeadersConfigProperty{\n\t\t\tcontentSecurityPolicy: &contentSecurityPolicyProperty{\n\t\t\t\tcontentSecurityPolicy: jsii.String(\"contentSecurityPolicy\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t\tcontentTypeOptions: &contentTypeOptionsProperty{\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t\tframeOptions: &frameOptionsProperty{\n\t\t\t\tframeOption: jsii.String(\"frameOption\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t\treferrerPolicy: &referrerPolicyProperty{\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\treferrerPolicy: jsii.String(\"referrerPolicy\"),\n\t\t\t},\n\t\t\tstrictTransportSecurity: &strictTransportSecurityProperty{\n\t\t\t\taccessControlMaxAgeSec: jsii.Number(123),\n\t\t\t\toverride: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tincludeSubdomains: jsii.Boolean(false),\n\t\t\t\tpreload: jsii.Boolean(false),\n\t\t\t},\n\t\t\txssProtection: &xSSProtectionProperty{\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t\tprotection: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tmodeBlock: jsii.Boolean(false),\n\t\t\t\treportUri: jsii.String(\"reportUri\"),\n\t\t\t},\n\t\t},\n\t\tserverTimingHeadersConfig: &serverTimingHeadersConfigProperty{\n\t\t\tenabled: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tsamplingRate: jsii.Number(123),\n\t\t},\n\t},\n}",
7918 "version": "1"
7919 },
7920 "$": {
7921 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnResponseHeadersPolicyProps: cloudfront.CfnResponseHeadersPolicyProps = {\n responseHeadersPolicyConfig: {\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n corsConfig: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n },\n customHeadersConfig: {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n },\n securityHeadersConfig: {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n },\n serverTimingHeadersConfig: {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n },\n },\n};",
7922 "version": "0"
7923 }
7924 },
7925 "location": {
7926 "api": {
7927 "api": "type",
7928 "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicyProps"
7929 },
7930 "field": {
7931 "field": "example"
7932 }
7933 },
7934 "didCompile": true,
7935 "fqnsReferenced": [
7936 "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicyProps"
7937 ],
7938 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnResponseHeadersPolicyProps: cloudfront.CfnResponseHeadersPolicyProps = {\n responseHeadersPolicyConfig: {\n name: 'name',\n\n // the properties below are optional\n comment: 'comment',\n corsConfig: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: {\n items: ['items'],\n },\n accessControlAllowMethods: {\n items: ['items'],\n },\n accessControlAllowOrigins: {\n items: ['items'],\n },\n originOverride: false,\n\n // the properties below are optional\n accessControlExposeHeaders: {\n items: ['items'],\n },\n accessControlMaxAgeSec: 123,\n },\n customHeadersConfig: {\n items: [{\n header: 'header',\n override: false,\n value: 'value',\n }],\n },\n securityHeadersConfig: {\n contentSecurityPolicy: {\n contentSecurityPolicy: 'contentSecurityPolicy',\n override: false,\n },\n contentTypeOptions: {\n override: false,\n },\n frameOptions: {\n frameOption: 'frameOption',\n override: false,\n },\n referrerPolicy: {\n override: false,\n referrerPolicy: 'referrerPolicy',\n },\n strictTransportSecurity: {\n accessControlMaxAgeSec: 123,\n override: false,\n\n // the properties below are optional\n includeSubdomains: false,\n preload: false,\n },\n xssProtection: {\n override: false,\n protection: false,\n\n // the properties below are optional\n modeBlock: false,\n reportUri: 'reportUri',\n },\n },\n serverTimingHeadersConfig: {\n enabled: false,\n\n // the properties below are optional\n samplingRate: 123,\n },\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7939 "syntaxKindCounter": {
7940 "8": 3,
7941 "10": 13,
7942 "75": 49,
7943 "91": 14,
7944 "153": 1,
7945 "169": 1,
7946 "192": 5,
7947 "193": 17,
7948 "225": 1,
7949 "242": 1,
7950 "243": 1,
7951 "254": 1,
7952 "255": 1,
7953 "256": 1,
7954 "281": 45,
7955 "290": 1
7956 },
7957 "fqnsFingerprint": "e5c92907e2ca0150c13c30a1a92cbc52cf3a100fafca1bf6d2895eb4bb9d1116"
7958 },
7959 "12297ea476e6561a54b03ab1d1e7035af1d86a6fbe3f24e66c691912dffc5f83": {
7960 "translations": {
7961 "python": {
7962 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_streaming_distribution = cloudfront.CfnStreamingDistribution(self, \"MyCfnStreamingDistribution\",\n streaming_distribution_config=cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty(\n comment=\"comment\",\n enabled=False,\n s3_origin=cloudfront.CfnStreamingDistribution.S3OriginProperty(\n domain_name=\"domainName\",\n origin_access_identity=\"originAccessIdentity\"\n ),\n trusted_signers=cloudfront.CfnStreamingDistribution.TrustedSignersProperty(\n enabled=False,\n\n # the properties below are optional\n aws_account_numbers=[\"awsAccountNumbers\"]\n ),\n\n # the properties below are optional\n aliases=[\"aliases\"],\n logging=cloudfront.CfnStreamingDistribution.LoggingProperty(\n bucket=\"bucket\",\n enabled=False,\n prefix=\"prefix\"\n ),\n price_class=\"priceClass\"\n ),\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
7963 "version": "2"
7964 },
7965 "csharp": {
7966 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnStreamingDistribution cfnStreamingDistribution = new CfnStreamingDistribution(this, \"MyCfnStreamingDistribution\", new CfnStreamingDistributionProps {\n StreamingDistributionConfig = new StreamingDistributionConfigProperty {\n Comment = \"comment\",\n Enabled = false,\n S3Origin = new S3OriginProperty {\n DomainName = \"domainName\",\n OriginAccessIdentity = \"originAccessIdentity\"\n },\n TrustedSigners = new TrustedSignersProperty {\n Enabled = false,\n\n // the properties below are optional\n AwsAccountNumbers = new [] { \"awsAccountNumbers\" }\n },\n\n // the properties below are optional\n Aliases = new [] { \"aliases\" },\n Logging = new LoggingProperty {\n Bucket = \"bucket\",\n Enabled = false,\n Prefix = \"prefix\"\n },\n PriceClass = \"priceClass\"\n },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n});",
7967 "version": "1"
7968 },
7969 "java": {
7970 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnStreamingDistribution cfnStreamingDistribution = CfnStreamingDistribution.Builder.create(this, \"MyCfnStreamingDistribution\")\n .streamingDistributionConfig(StreamingDistributionConfigProperty.builder()\n .comment(\"comment\")\n .enabled(false)\n .s3Origin(S3OriginProperty.builder()\n .domainName(\"domainName\")\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .trustedSigners(TrustedSignersProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .awsAccountNumbers(List.of(\"awsAccountNumbers\"))\n .build())\n\n // the properties below are optional\n .aliases(List.of(\"aliases\"))\n .logging(LoggingProperty.builder()\n .bucket(\"bucket\")\n .enabled(false)\n .prefix(\"prefix\")\n .build())\n .priceClass(\"priceClass\")\n .build())\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
7971 "version": "1"
7972 },
7973 "go": {
7974 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnStreamingDistribution := cloudfront.NewCfnStreamingDistribution(this, jsii.String(\"MyCfnStreamingDistribution\"), &cfnStreamingDistributionProps{\n\tstreamingDistributionConfig: &streamingDistributionConfigProperty{\n\t\tcomment: jsii.String(\"comment\"),\n\t\tenabled: jsii.Boolean(false),\n\t\ts3Origin: &s3OriginProperty{\n\t\t\tdomainName: jsii.String(\"domainName\"),\n\t\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t\t},\n\t\ttrustedSigners: &trustedSignersProperty{\n\t\t\tenabled: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tawsAccountNumbers: []*string{\n\t\t\t\tjsii.String(\"awsAccountNumbers\"),\n\t\t\t},\n\t\t},\n\n\t\t// the properties below are optional\n\t\taliases: []*string{\n\t\t\tjsii.String(\"aliases\"),\n\t\t},\n\t\tlogging: &loggingProperty{\n\t\t\tbucket: jsii.String(\"bucket\"),\n\t\t\tenabled: jsii.Boolean(false),\n\t\t\tprefix: jsii.String(\"prefix\"),\n\t\t},\n\t\tpriceClass: jsii.String(\"priceClass\"),\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n})",
7975 "version": "1"
7976 },
7977 "$": {
7978 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnStreamingDistribution = new cloudfront.CfnStreamingDistribution(this, 'MyCfnStreamingDistribution', {\n streamingDistributionConfig: {\n comment: 'comment',\n enabled: false,\n s3Origin: {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n },\n trustedSigners: {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n },\n\n // the properties below are optional\n aliases: ['aliases'],\n logging: {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n },\n priceClass: 'priceClass',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});",
7979 "version": "0"
7980 }
7981 },
7982 "location": {
7983 "api": {
7984 "api": "type",
7985 "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution"
7986 },
7987 "field": {
7988 "field": "example"
7989 }
7990 },
7991 "didCompile": true,
7992 "fqnsReferenced": [
7993 "@aws-cdk/aws-cloudfront.CfnStreamingDistribution",
7994 "@aws-cdk/aws-cloudfront.CfnStreamingDistributionProps",
7995 "@aws-cdk/core.Construct"
7996 ],
7997 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnStreamingDistribution = new cloudfront.CfnStreamingDistribution(this, 'MyCfnStreamingDistribution', {\n streamingDistributionConfig: {\n comment: 'comment',\n enabled: false,\n s3Origin: {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n },\n trustedSigners: {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n },\n\n // the properties below are optional\n aliases: ['aliases'],\n logging: {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n },\n priceClass: 'priceClass',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
7998 "syntaxKindCounter": {
7999 "10": 12,
8000 "75": 22,
8001 "91": 3,
8002 "104": 1,
8003 "192": 3,
8004 "193": 6,
8005 "194": 1,
8006 "197": 1,
8007 "225": 1,
8008 "242": 1,
8009 "243": 1,
8010 "254": 1,
8011 "255": 1,
8012 "256": 1,
8013 "281": 18,
8014 "290": 1
8015 },
8016 "fqnsFingerprint": "8994655527bea5fd064f42dd1954cf5dc4fc4914063cfbb6b1f3ee15e4243d3a"
8017 },
8018 "36887701875ad191cf330b60b94d7aef7f5c27a03b1815f1a5fc67d2237cb02e": {
8019 "translations": {
8020 "python": {
8021 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nlogging_property = cloudfront.CfnStreamingDistribution.LoggingProperty(\n bucket=\"bucket\",\n enabled=False,\n prefix=\"prefix\"\n)",
8022 "version": "2"
8023 },
8024 "csharp": {
8025 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nLoggingProperty loggingProperty = new LoggingProperty {\n Bucket = \"bucket\",\n Enabled = false,\n Prefix = \"prefix\"\n};",
8026 "version": "1"
8027 },
8028 "java": {
8029 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nLoggingProperty loggingProperty = LoggingProperty.builder()\n .bucket(\"bucket\")\n .enabled(false)\n .prefix(\"prefix\")\n .build();",
8030 "version": "1"
8031 },
8032 "go": {
8033 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nloggingProperty := &loggingProperty{\n\tbucket: jsii.String(\"bucket\"),\n\tenabled: jsii.Boolean(false),\n\tprefix: jsii.String(\"prefix\"),\n}",
8034 "version": "1"
8035 },
8036 "$": {
8037 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst loggingProperty: cloudfront.CfnStreamingDistribution.LoggingProperty = {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n};",
8038 "version": "0"
8039 }
8040 },
8041 "location": {
8042 "api": {
8043 "api": "type",
8044 "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.LoggingProperty"
8045 },
8046 "field": {
8047 "field": "example"
8048 }
8049 },
8050 "didCompile": true,
8051 "fqnsReferenced": [
8052 "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.LoggingProperty"
8053 ],
8054 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst loggingProperty: cloudfront.CfnStreamingDistribution.LoggingProperty = {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8055 "syntaxKindCounter": {
8056 "10": 3,
8057 "75": 8,
8058 "91": 1,
8059 "153": 2,
8060 "169": 1,
8061 "193": 1,
8062 "225": 1,
8063 "242": 1,
8064 "243": 1,
8065 "254": 1,
8066 "255": 1,
8067 "256": 1,
8068 "281": 3,
8069 "290": 1
8070 },
8071 "fqnsFingerprint": "524603ae3fd9ab22fe1a2a5b51a20a36b108c1d81dcea5f4cc4103f4a00aa495"
8072 },
8073 "d68a50460567b5f5bdd0046943614f0e4801c07810ed46c44876c2ab92e9cd9c": {
8074 "translations": {
8075 "python": {
8076 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ns3_origin_property = cloudfront.CfnStreamingDistribution.S3OriginProperty(\n domain_name=\"domainName\",\n origin_access_identity=\"originAccessIdentity\"\n)",
8077 "version": "2"
8078 },
8079 "csharp": {
8080 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nS3OriginProperty s3OriginProperty = new S3OriginProperty {\n DomainName = \"domainName\",\n OriginAccessIdentity = \"originAccessIdentity\"\n};",
8081 "version": "1"
8082 },
8083 "java": {
8084 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nS3OriginProperty s3OriginProperty = S3OriginProperty.builder()\n .domainName(\"domainName\")\n .originAccessIdentity(\"originAccessIdentity\")\n .build();",
8085 "version": "1"
8086 },
8087 "go": {
8088 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ns3OriginProperty := &s3OriginProperty{\n\tdomainName: jsii.String(\"domainName\"),\n\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n}",
8089 "version": "1"
8090 },
8091 "$": {
8092 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst s3OriginProperty: cloudfront.CfnStreamingDistribution.S3OriginProperty = {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n};",
8093 "version": "0"
8094 }
8095 },
8096 "location": {
8097 "api": {
8098 "api": "type",
8099 "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.S3OriginProperty"
8100 },
8101 "field": {
8102 "field": "example"
8103 }
8104 },
8105 "didCompile": true,
8106 "fqnsReferenced": [
8107 "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.S3OriginProperty"
8108 ],
8109 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst s3OriginProperty: cloudfront.CfnStreamingDistribution.S3OriginProperty = {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8110 "syntaxKindCounter": {
8111 "10": 3,
8112 "75": 7,
8113 "153": 2,
8114 "169": 1,
8115 "193": 1,
8116 "225": 1,
8117 "242": 1,
8118 "243": 1,
8119 "254": 1,
8120 "255": 1,
8121 "256": 1,
8122 "281": 2,
8123 "290": 1
8124 },
8125 "fqnsFingerprint": "a512974884e03d795c0af94b8f2d9e0b7dfbcd8b220cec93b777827c23f570b0"
8126 },
8127 "a859296f2f95b88f697f82302e4d66acc51ddf2dc3cab5c4ab470cadc2c2eba9": {
8128 "translations": {
8129 "python": {
8130 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nstreaming_distribution_config_property = cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty(\n comment=\"comment\",\n enabled=False,\n s3_origin=cloudfront.CfnStreamingDistribution.S3OriginProperty(\n domain_name=\"domainName\",\n origin_access_identity=\"originAccessIdentity\"\n ),\n trusted_signers=cloudfront.CfnStreamingDistribution.TrustedSignersProperty(\n enabled=False,\n\n # the properties below are optional\n aws_account_numbers=[\"awsAccountNumbers\"]\n ),\n\n # the properties below are optional\n aliases=[\"aliases\"],\n logging=cloudfront.CfnStreamingDistribution.LoggingProperty(\n bucket=\"bucket\",\n enabled=False,\n prefix=\"prefix\"\n ),\n price_class=\"priceClass\"\n)",
8131 "version": "2"
8132 },
8133 "csharp": {
8134 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nStreamingDistributionConfigProperty streamingDistributionConfigProperty = new StreamingDistributionConfigProperty {\n Comment = \"comment\",\n Enabled = false,\n S3Origin = new S3OriginProperty {\n DomainName = \"domainName\",\n OriginAccessIdentity = \"originAccessIdentity\"\n },\n TrustedSigners = new TrustedSignersProperty {\n Enabled = false,\n\n // the properties below are optional\n AwsAccountNumbers = new [] { \"awsAccountNumbers\" }\n },\n\n // the properties below are optional\n Aliases = new [] { \"aliases\" },\n Logging = new LoggingProperty {\n Bucket = \"bucket\",\n Enabled = false,\n Prefix = \"prefix\"\n },\n PriceClass = \"priceClass\"\n};",
8135 "version": "1"
8136 },
8137 "java": {
8138 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nStreamingDistributionConfigProperty streamingDistributionConfigProperty = StreamingDistributionConfigProperty.builder()\n .comment(\"comment\")\n .enabled(false)\n .s3Origin(S3OriginProperty.builder()\n .domainName(\"domainName\")\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .trustedSigners(TrustedSignersProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .awsAccountNumbers(List.of(\"awsAccountNumbers\"))\n .build())\n\n // the properties below are optional\n .aliases(List.of(\"aliases\"))\n .logging(LoggingProperty.builder()\n .bucket(\"bucket\")\n .enabled(false)\n .prefix(\"prefix\")\n .build())\n .priceClass(\"priceClass\")\n .build();",
8139 "version": "1"
8140 },
8141 "go": {
8142 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nstreamingDistributionConfigProperty := &streamingDistributionConfigProperty{\n\tcomment: jsii.String(\"comment\"),\n\tenabled: jsii.Boolean(false),\n\ts3Origin: &s3OriginProperty{\n\t\tdomainName: jsii.String(\"domainName\"),\n\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t},\n\ttrustedSigners: &trustedSignersProperty{\n\t\tenabled: jsii.Boolean(false),\n\n\t\t// the properties below are optional\n\t\tawsAccountNumbers: []*string{\n\t\t\tjsii.String(\"awsAccountNumbers\"),\n\t\t},\n\t},\n\n\t// the properties below are optional\n\taliases: []*string{\n\t\tjsii.String(\"aliases\"),\n\t},\n\tlogging: &loggingProperty{\n\t\tbucket: jsii.String(\"bucket\"),\n\t\tenabled: jsii.Boolean(false),\n\t\tprefix: jsii.String(\"prefix\"),\n\t},\n\tpriceClass: jsii.String(\"priceClass\"),\n}",
8143 "version": "1"
8144 },
8145 "$": {
8146 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst streamingDistributionConfigProperty: cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty = {\n comment: 'comment',\n enabled: false,\n s3Origin: {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n },\n trustedSigners: {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n },\n\n // the properties below are optional\n aliases: ['aliases'],\n logging: {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n },\n priceClass: 'priceClass',\n};",
8147 "version": "0"
8148 }
8149 },
8150 "location": {
8151 "api": {
8152 "api": "type",
8153 "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty"
8154 },
8155 "field": {
8156 "field": "example"
8157 }
8158 },
8159 "didCompile": true,
8160 "fqnsReferenced": [
8161 "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty"
8162 ],
8163 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst streamingDistributionConfigProperty: cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty = {\n comment: 'comment',\n enabled: false,\n s3Origin: {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n },\n trustedSigners: {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n },\n\n // the properties below are optional\n aliases: ['aliases'],\n logging: {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n },\n priceClass: 'priceClass',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8164 "syntaxKindCounter": {
8165 "10": 9,
8166 "75": 19,
8167 "91": 3,
8168 "153": 2,
8169 "169": 1,
8170 "192": 2,
8171 "193": 4,
8172 "225": 1,
8173 "242": 1,
8174 "243": 1,
8175 "254": 1,
8176 "255": 1,
8177 "256": 1,
8178 "281": 14,
8179 "290": 1
8180 },
8181 "fqnsFingerprint": "98039bdde21e5f6a902cb7c7adabb6ca05f3560333240b2de018635feea3efb1"
8182 },
8183 "a02038f2a228ff98df5abcb2ada8533391c93c5d95053cf345acbb3117fb1e4f": {
8184 "translations": {
8185 "python": {
8186 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ntrusted_signers_property = cloudfront.CfnStreamingDistribution.TrustedSignersProperty(\n enabled=False,\n\n # the properties below are optional\n aws_account_numbers=[\"awsAccountNumbers\"]\n)",
8187 "version": "2"
8188 },
8189 "csharp": {
8190 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nTrustedSignersProperty trustedSignersProperty = new TrustedSignersProperty {\n Enabled = false,\n\n // the properties below are optional\n AwsAccountNumbers = new [] { \"awsAccountNumbers\" }\n};",
8191 "version": "1"
8192 },
8193 "java": {
8194 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nTrustedSignersProperty trustedSignersProperty = TrustedSignersProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .awsAccountNumbers(List.of(\"awsAccountNumbers\"))\n .build();",
8195 "version": "1"
8196 },
8197 "go": {
8198 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ntrustedSignersProperty := &trustedSignersProperty{\n\tenabled: jsii.Boolean(false),\n\n\t// the properties below are optional\n\tawsAccountNumbers: []*string{\n\t\tjsii.String(\"awsAccountNumbers\"),\n\t},\n}",
8199 "version": "1"
8200 },
8201 "$": {
8202 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst trustedSignersProperty: cloudfront.CfnStreamingDistribution.TrustedSignersProperty = {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n};",
8203 "version": "0"
8204 }
8205 },
8206 "location": {
8207 "api": {
8208 "api": "type",
8209 "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.TrustedSignersProperty"
8210 },
8211 "field": {
8212 "field": "example"
8213 }
8214 },
8215 "didCompile": true,
8216 "fqnsReferenced": [
8217 "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.TrustedSignersProperty"
8218 ],
8219 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst trustedSignersProperty: cloudfront.CfnStreamingDistribution.TrustedSignersProperty = {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8220 "syntaxKindCounter": {
8221 "10": 2,
8222 "75": 7,
8223 "91": 1,
8224 "153": 2,
8225 "169": 1,
8226 "192": 1,
8227 "193": 1,
8228 "225": 1,
8229 "242": 1,
8230 "243": 1,
8231 "254": 1,
8232 "255": 1,
8233 "256": 1,
8234 "281": 2,
8235 "290": 1
8236 },
8237 "fqnsFingerprint": "137bb4852c0bf2b19edf7c80ac83201b12fae4da5d847d4f0449a6470ef23da9"
8238 },
8239 "21ccf11104b98d5b2e4084bf110cadb48fb803c197b180caa2e853464c0aebcb": {
8240 "translations": {
8241 "python": {
8242 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncfn_streaming_distribution_props = cloudfront.CfnStreamingDistributionProps(\n streaming_distribution_config=cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty(\n comment=\"comment\",\n enabled=False,\n s3_origin=cloudfront.CfnStreamingDistribution.S3OriginProperty(\n domain_name=\"domainName\",\n origin_access_identity=\"originAccessIdentity\"\n ),\n trusted_signers=cloudfront.CfnStreamingDistribution.TrustedSignersProperty(\n enabled=False,\n\n # the properties below are optional\n aws_account_numbers=[\"awsAccountNumbers\"]\n ),\n\n # the properties below are optional\n aliases=[\"aliases\"],\n logging=cloudfront.CfnStreamingDistribution.LoggingProperty(\n bucket=\"bucket\",\n enabled=False,\n prefix=\"prefix\"\n ),\n price_class=\"priceClass\"\n ),\n tags=[CfnTag(\n key=\"key\",\n value=\"value\"\n )]\n)",
8243 "version": "2"
8244 },
8245 "csharp": {
8246 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCfnStreamingDistributionProps cfnStreamingDistributionProps = new CfnStreamingDistributionProps {\n StreamingDistributionConfig = new StreamingDistributionConfigProperty {\n Comment = \"comment\",\n Enabled = false,\n S3Origin = new S3OriginProperty {\n DomainName = \"domainName\",\n OriginAccessIdentity = \"originAccessIdentity\"\n },\n TrustedSigners = new TrustedSignersProperty {\n Enabled = false,\n\n // the properties below are optional\n AwsAccountNumbers = new [] { \"awsAccountNumbers\" }\n },\n\n // the properties below are optional\n Aliases = new [] { \"aliases\" },\n Logging = new LoggingProperty {\n Bucket = \"bucket\",\n Enabled = false,\n Prefix = \"prefix\"\n },\n PriceClass = \"priceClass\"\n },\n Tags = new [] { new CfnTag {\n Key = \"key\",\n Value = \"value\"\n } }\n};",
8247 "version": "1"
8248 },
8249 "java": {
8250 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCfnStreamingDistributionProps cfnStreamingDistributionProps = CfnStreamingDistributionProps.builder()\n .streamingDistributionConfig(StreamingDistributionConfigProperty.builder()\n .comment(\"comment\")\n .enabled(false)\n .s3Origin(S3OriginProperty.builder()\n .domainName(\"domainName\")\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .trustedSigners(TrustedSignersProperty.builder()\n .enabled(false)\n\n // the properties below are optional\n .awsAccountNumbers(List.of(\"awsAccountNumbers\"))\n .build())\n\n // the properties below are optional\n .aliases(List.of(\"aliases\"))\n .logging(LoggingProperty.builder()\n .bucket(\"bucket\")\n .enabled(false)\n .prefix(\"prefix\")\n .build())\n .priceClass(\"priceClass\")\n .build())\n .tags(List.of(CfnTag.builder()\n .key(\"key\")\n .value(\"value\")\n .build()))\n .build();",
8251 "version": "1"
8252 },
8253 "go": {
8254 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncfnStreamingDistributionProps := &cfnStreamingDistributionProps{\n\tstreamingDistributionConfig: &streamingDistributionConfigProperty{\n\t\tcomment: jsii.String(\"comment\"),\n\t\tenabled: jsii.Boolean(false),\n\t\ts3Origin: &s3OriginProperty{\n\t\t\tdomainName: jsii.String(\"domainName\"),\n\t\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t\t},\n\t\ttrustedSigners: &trustedSignersProperty{\n\t\t\tenabled: jsii.Boolean(false),\n\n\t\t\t// the properties below are optional\n\t\t\tawsAccountNumbers: []*string{\n\t\t\t\tjsii.String(\"awsAccountNumbers\"),\n\t\t\t},\n\t\t},\n\n\t\t// the properties below are optional\n\t\taliases: []*string{\n\t\t\tjsii.String(\"aliases\"),\n\t\t},\n\t\tlogging: &loggingProperty{\n\t\t\tbucket: jsii.String(\"bucket\"),\n\t\t\tenabled: jsii.Boolean(false),\n\t\t\tprefix: jsii.String(\"prefix\"),\n\t\t},\n\t\tpriceClass: jsii.String(\"priceClass\"),\n\t},\n\ttags: []cfnTag{\n\t\t&cfnTag{\n\t\t\tkey: jsii.String(\"key\"),\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t},\n\t},\n}",
8255 "version": "1"
8256 },
8257 "$": {
8258 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cfnStreamingDistributionProps: cloudfront.CfnStreamingDistributionProps = {\n streamingDistributionConfig: {\n comment: 'comment',\n enabled: false,\n s3Origin: {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n },\n trustedSigners: {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n },\n\n // the properties below are optional\n aliases: ['aliases'],\n logging: {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n },\n priceClass: 'priceClass',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};",
8259 "version": "0"
8260 }
8261 },
8262 "location": {
8263 "api": {
8264 "api": "type",
8265 "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistributionProps"
8266 },
8267 "field": {
8268 "field": "example"
8269 }
8270 },
8271 "didCompile": true,
8272 "fqnsReferenced": [
8273 "@aws-cdk/aws-cloudfront.CfnStreamingDistributionProps"
8274 ],
8275 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cfnStreamingDistributionProps: cloudfront.CfnStreamingDistributionProps = {\n streamingDistributionConfig: {\n comment: 'comment',\n enabled: false,\n s3Origin: {\n domainName: 'domainName',\n originAccessIdentity: 'originAccessIdentity',\n },\n trustedSigners: {\n enabled: false,\n\n // the properties below are optional\n awsAccountNumbers: ['awsAccountNumbers'],\n },\n\n // the properties below are optional\n aliases: ['aliases'],\n logging: {\n bucket: 'bucket',\n enabled: false,\n prefix: 'prefix',\n },\n priceClass: 'priceClass',\n },\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8276 "syntaxKindCounter": {
8277 "10": 11,
8278 "75": 22,
8279 "91": 3,
8280 "153": 1,
8281 "169": 1,
8282 "192": 3,
8283 "193": 6,
8284 "225": 1,
8285 "242": 1,
8286 "243": 1,
8287 "254": 1,
8288 "255": 1,
8289 "256": 1,
8290 "281": 18,
8291 "290": 1
8292 },
8293 "fqnsFingerprint": "15224c1c2ffbc5c556d1706cf7ff6b9d2fbbfae267eba7a6e1f5714672cb1c91"
8294 },
8295 "bb573e1bbd24bafeef7415e8826bfa7cbb34ccc3312c8ba7d8f6a6294e049aa5": {
8296 "translations": {
8297 "python": {
8298 "source": "source_bucket = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"MyDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ]\n)",
8299 "version": "2"
8300 },
8301 "csharp": {
8302 "source": "Bucket sourceBucket = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"MyDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } }\n});",
8303 "version": "1"
8304 },
8305 "java": {
8306 "source": "Bucket sourceBucket = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"MyDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .build();",
8307 "version": "1"
8308 },
8309 "go": {
8310 "source": "sourceBucket := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
8311 "version": "1"
8312 },
8313 "$": {
8314 "source": "const sourceBucket = new s3.Bucket(this, 'Bucket');\n\nconst distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n});",
8315 "version": "0"
8316 }
8317 },
8318 "location": {
8319 "api": {
8320 "api": "type",
8321 "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution"
8322 },
8323 "field": {
8324 "field": "markdown",
8325 "line": 5
8326 }
8327 },
8328 "didCompile": true,
8329 "fqnsReferenced": [
8330 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
8331 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
8332 "@aws-cdk/aws-cloudfront.S3OriginConfig",
8333 "@aws-cdk/aws-s3.Bucket",
8334 "@aws-cdk/aws-s3.IBucket",
8335 "constructs.Construct"
8336 ],
8337 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\nconst sourceBucket = new s3.Bucket(this, 'Bucket');\n\nconst distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8338 "syntaxKindCounter": {
8339 "10": 2,
8340 "75": 12,
8341 "104": 2,
8342 "106": 1,
8343 "192": 2,
8344 "193": 4,
8345 "194": 2,
8346 "197": 2,
8347 "225": 2,
8348 "242": 2,
8349 "243": 2,
8350 "281": 5
8351 },
8352 "fqnsFingerprint": "6c17fae485ccf3b364402edc3769c1aeff348d658944ad15f5454d232b63e124"
8353 },
8354 "b545e1d546f44fcaeea96e099aac2d10b5db43c927effce97ddda2d4c7a26500": {
8355 "translations": {
8356 "python": {
8357 "source": "# source_bucket: s3.Bucket\n\nviewer_certificate = cloudfront.ViewerCertificate.from_iam_certificate(\"MYIAMROLEIDENTIFIER\",\n aliases=[\"MYALIAS\"]\n)\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n viewer_certificate=viewer_certificate\n)",
8358 "version": "2"
8359 },
8360 "csharp": {
8361 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.FromIamCertificate(\"MYIAMROLEIDENTIFIER\", new ViewerCertificateOptions {\n Aliases = new [] { \"MYALIAS\" }\n});\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = viewerCertificate\n});",
8362 "version": "1"
8363 },
8364 "java": {
8365 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.fromIamCertificate(\"MYIAMROLEIDENTIFIER\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"MYALIAS\"))\n .build());\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(viewerCertificate)\n .build();",
8366 "version": "1"
8367 },
8368 "go": {
8369 "source": "var sourceBucket bucket\n\nviewerCertificate := cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"MYIAMROLEIDENTIFIER\"), &viewerCertificateOptions{\n\taliases: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n})\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: viewerCertificate,\n})",
8370 "version": "1"
8371 },
8372 "$": {
8373 "source": "declare const sourceBucket: s3.Bucket;\nconst viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});",
8374 "version": "0"
8375 }
8376 },
8377 "location": {
8378 "api": {
8379 "api": "type",
8380 "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution"
8381 },
8382 "field": {
8383 "field": "example"
8384 }
8385 },
8386 "didCompile": true,
8387 "fqnsReferenced": [
8388 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
8389 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
8390 "@aws-cdk/aws-cloudfront.S3OriginConfig",
8391 "@aws-cdk/aws-cloudfront.ViewerCertificate",
8392 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
8393 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
8394 "@aws-cdk/aws-s3.IBucket",
8395 "constructs.Construct"
8396 ],
8397 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8398 "syntaxKindCounter": {
8399 "10": 3,
8400 "75": 18,
8401 "104": 1,
8402 "106": 1,
8403 "130": 1,
8404 "153": 1,
8405 "169": 1,
8406 "192": 3,
8407 "193": 5,
8408 "194": 3,
8409 "196": 1,
8410 "197": 1,
8411 "225": 2,
8412 "226": 1,
8413 "242": 2,
8414 "243": 2,
8415 "281": 7,
8416 "290": 1
8417 },
8418 "fqnsFingerprint": "dc85e0e66756c7ca4ca260fa52258db75a8634baf4e3cb2bd68bffa4dc45a896"
8419 },
8420 "6c2f18705e752bbd2fadc8ebaa855db19e9db6117931f908658d2c4f40439e4c": {
8421 "translations": {
8422 "python": {
8423 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\ncloud_front_web_distribution_attributes = cloudfront.CloudFrontWebDistributionAttributes(\n distribution_id=\"distributionId\",\n domain_name=\"domainName\"\n)",
8424 "version": "2"
8425 },
8426 "csharp": {
8427 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nCloudFrontWebDistributionAttributes cloudFrontWebDistributionAttributes = new CloudFrontWebDistributionAttributes {\n DistributionId = \"distributionId\",\n DomainName = \"domainName\"\n};",
8428 "version": "1"
8429 },
8430 "java": {
8431 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nCloudFrontWebDistributionAttributes cloudFrontWebDistributionAttributes = CloudFrontWebDistributionAttributes.builder()\n .distributionId(\"distributionId\")\n .domainName(\"domainName\")\n .build();",
8432 "version": "1"
8433 },
8434 "go": {
8435 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\ncloudFrontWebDistributionAttributes := &cloudFrontWebDistributionAttributes{\n\tdistributionId: jsii.String(\"distributionId\"),\n\tdomainName: jsii.String(\"domainName\"),\n}",
8436 "version": "1"
8437 },
8438 "$": {
8439 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst cloudFrontWebDistributionAttributes: cloudfront.CloudFrontWebDistributionAttributes = {\n distributionId: 'distributionId',\n domainName: 'domainName',\n};",
8440 "version": "0"
8441 }
8442 },
8443 "location": {
8444 "api": {
8445 "api": "type",
8446 "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionAttributes"
8447 },
8448 "field": {
8449 "field": "example"
8450 }
8451 },
8452 "didCompile": true,
8453 "fqnsReferenced": [
8454 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionAttributes"
8455 ],
8456 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst cloudFrontWebDistributionAttributes: cloudfront.CloudFrontWebDistributionAttributes = {\n distributionId: 'distributionId',\n domainName: 'domainName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8457 "syntaxKindCounter": {
8458 "10": 3,
8459 "75": 6,
8460 "153": 1,
8461 "169": 1,
8462 "193": 1,
8463 "225": 1,
8464 "242": 1,
8465 "243": 1,
8466 "254": 1,
8467 "255": 1,
8468 "256": 1,
8469 "281": 2,
8470 "290": 1
8471 },
8472 "fqnsFingerprint": "6e27b4d7c98b48f498be97925864e9f61fda2b37e3b9b225e8e9442f935cc5e8"
8473 },
8474 "3bd66a256b7c04c1a135a91d5a9eb77bf8a26b826b1290c88641d9484a756bf4": {
8475 "translations": {
8476 "python": {
8477 "source": "# source_bucket: s3.Bucket\n\nviewer_certificate = cloudfront.ViewerCertificate.from_iam_certificate(\"MYIAMROLEIDENTIFIER\",\n aliases=[\"MYALIAS\"]\n)\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n viewer_certificate=viewer_certificate\n)",
8478 "version": "2"
8479 },
8480 "csharp": {
8481 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.FromIamCertificate(\"MYIAMROLEIDENTIFIER\", new ViewerCertificateOptions {\n Aliases = new [] { \"MYALIAS\" }\n});\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = viewerCertificate\n});",
8482 "version": "1"
8483 },
8484 "java": {
8485 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.fromIamCertificate(\"MYIAMROLEIDENTIFIER\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"MYALIAS\"))\n .build());\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(viewerCertificate)\n .build();",
8486 "version": "1"
8487 },
8488 "go": {
8489 "source": "var sourceBucket bucket\n\nviewerCertificate := cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"MYIAMROLEIDENTIFIER\"), &viewerCertificateOptions{\n\taliases: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n})\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: viewerCertificate,\n})",
8490 "version": "1"
8491 },
8492 "$": {
8493 "source": "declare const sourceBucket: s3.Bucket;\nconst viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});",
8494 "version": "0"
8495 }
8496 },
8497 "location": {
8498 "api": {
8499 "api": "type",
8500 "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps"
8501 },
8502 "field": {
8503 "field": "example"
8504 }
8505 },
8506 "didCompile": true,
8507 "fqnsReferenced": [
8508 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
8509 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
8510 "@aws-cdk/aws-cloudfront.S3OriginConfig",
8511 "@aws-cdk/aws-cloudfront.ViewerCertificate",
8512 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
8513 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
8514 "@aws-cdk/aws-s3.IBucket",
8515 "constructs.Construct"
8516 ],
8517 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8518 "syntaxKindCounter": {
8519 "10": 3,
8520 "75": 18,
8521 "104": 1,
8522 "106": 1,
8523 "130": 1,
8524 "153": 1,
8525 "169": 1,
8526 "192": 3,
8527 "193": 5,
8528 "194": 3,
8529 "196": 1,
8530 "197": 1,
8531 "225": 2,
8532 "226": 1,
8533 "242": 2,
8534 "243": 2,
8535 "281": 7,
8536 "290": 1
8537 },
8538 "fqnsFingerprint": "dc85e0e66756c7ca4ca260fa52258db75a8634baf4e3cb2bd68bffa4dc45a896"
8539 },
8540 "980e672dae31879ed083be7d019c110c754a0f193719cc2d170f3d5e8d450a39": {
8541 "translations": {
8542 "python": {
8543 "source": "# source_bucket: s3.Bucket\n# oai: cloudfront.OriginAccessIdentity\n\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket,\n origin_access_identity=oai\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n ), cloudfront.SourceConfiguration(\n custom_origin_source=cloudfront.CustomOriginConfig(\n domain_name=\"MYALIAS\"\n ),\n behaviors=[cloudfront.Behavior(path_pattern=\"/somewhere\")]\n )\n ]\n)",
8544 "version": "2"
8545 },
8546 "csharp": {
8547 "source": "Bucket sourceBucket;\nOriginAccessIdentity oai;\n\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket,\n OriginAccessIdentity = oai\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n }, new SourceConfiguration {\n CustomOriginSource = new CustomOriginConfig {\n DomainName = \"MYALIAS\"\n },\n Behaviors = new [] { new Behavior { PathPattern = \"/somewhere\" } }\n } }\n});",
8548 "version": "1"
8549 },
8550 "java": {
8551 "source": "Bucket sourceBucket;\nOriginAccessIdentity oai;\n\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .originAccessIdentity(oai)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build(), SourceConfiguration.builder()\n .customOriginSource(CustomOriginConfig.builder()\n .domainName(\"MYALIAS\")\n .build())\n .behaviors(List.of(Behavior.builder().pathPattern(\"/somewhere\").build()))\n .build()))\n .build();",
8552 "version": "1"
8553 },
8554 "go": {
8555 "source": "var sourceBucket bucket\nvar oai originAccessIdentity\n\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t\toriginAccessIdentity: oai,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t&sourceConfiguration{\n\t\t\tcustomOriginSource: &customOriginConfig{\n\t\t\t\tdomainName: jsii.String(\"MYALIAS\"),\n\t\t\t},\n\t\t\tbehaviors: []*behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tpathPattern: jsii.String(\"/somewhere\"),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
8556 "version": "1"
8557 },
8558 "$": {
8559 "source": "declare const sourceBucket: s3.Bucket;\ndeclare const oai: cloudfront.OriginAccessIdentity;\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n originAccessIdentity: oai,\n },\n behaviors: [ {isDefaultBehavior: true}],\n },\n {\n customOriginSource: {\n domainName: 'MYALIAS',\n },\n behaviors: [{ pathPattern: '/somewhere' }]\n }\n ],\n});",
8560 "version": "0"
8561 }
8562 },
8563 "location": {
8564 "api": {
8565 "api": "type",
8566 "fqn": "@aws-cdk/aws-cloudfront.CustomOriginConfig"
8567 },
8568 "field": {
8569 "field": "example"
8570 }
8571 },
8572 "didCompile": true,
8573 "fqnsReferenced": [
8574 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
8575 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
8576 "@aws-cdk/aws-cloudfront.CustomOriginConfig",
8577 "@aws-cdk/aws-cloudfront.IOriginAccessIdentity",
8578 "@aws-cdk/aws-cloudfront.S3OriginConfig",
8579 "@aws-cdk/aws-s3.IBucket",
8580 "constructs.Construct"
8581 ],
8582 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\ndeclare const oai: cloudfront.OriginAccessIdentity;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n originAccessIdentity: oai,\n },\n behaviors: [ {isDefaultBehavior: true}],\n },\n {\n customOriginSource: {\n domainName: 'MYALIAS',\n },\n behaviors: [{ pathPattern: '/somewhere' }]\n }\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8583 "syntaxKindCounter": {
8584 "10": 3,
8585 "75": 20,
8586 "104": 1,
8587 "106": 1,
8588 "130": 2,
8589 "153": 2,
8590 "169": 2,
8591 "192": 3,
8592 "193": 7,
8593 "194": 1,
8594 "197": 1,
8595 "225": 2,
8596 "226": 1,
8597 "242": 2,
8598 "243": 2,
8599 "281": 10,
8600 "290": 1
8601 },
8602 "fqnsFingerprint": "e42b6ad2904ab97cd49ef90216e6fbe6881d2117a01768be093280982f9b66b3"
8603 },
8604 "4bca3b1867b810f99555ebf821b48cd0ecd8fe6eebeca89a1d51fc516596b867": {
8605 "translations": {
8606 "python": {
8607 "source": "# Adding an existing Lambda@Edge function created in a different stack\n# to a CloudFront distribution.\n# s3_bucket: s3.Bucket\n\nfunction_version = lambda_.Version.from_version_arn(self, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\")\n\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=function_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
8608 "version": "2"
8609 },
8610 "csharp": {
8611 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.FromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = functionVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
8612 "version": "1"
8613 },
8614 "java": {
8615 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.fromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(functionVersion)\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
8616 "version": "1"
8617 },
8618 "go": {
8619 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nvar s3Bucket bucket\n\nfunctionVersion := lambda.version.fromVersionArn(this, jsii.String(\"Version\"), jsii.String(\"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\"))\n\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: functionVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
8620 "version": "1"
8621 },
8622 "$": {
8623 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\nconst functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});",
8624 "version": "0"
8625 }
8626 },
8627 "location": {
8628 "api": {
8629 "api": "type",
8630 "fqn": "@aws-cdk/aws-cloudfront.Distribution"
8631 },
8632 "field": {
8633 "field": "example"
8634 }
8635 },
8636 "didCompile": true,
8637 "fqnsReferenced": [
8638 "@aws-cdk/aws-cloudfront-origins.S3Origin",
8639 "@aws-cdk/aws-cloudfront.BehaviorOptions",
8640 "@aws-cdk/aws-cloudfront.Distribution",
8641 "@aws-cdk/aws-cloudfront.DistributionProps",
8642 "@aws-cdk/aws-cloudfront.IOrigin",
8643 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
8644 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
8645 "@aws-cdk/aws-lambda.IVersion",
8646 "@aws-cdk/aws-lambda.Version",
8647 "@aws-cdk/aws-lambda.Version#fromVersionArn",
8648 "@aws-cdk/aws-s3.IBucket",
8649 "constructs.Construct"
8650 ],
8651 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8652 "syntaxKindCounter": {
8653 "10": 3,
8654 "75": 20,
8655 "104": 2,
8656 "130": 1,
8657 "153": 1,
8658 "169": 1,
8659 "192": 1,
8660 "193": 3,
8661 "194": 6,
8662 "196": 1,
8663 "197": 2,
8664 "225": 2,
8665 "226": 1,
8666 "242": 2,
8667 "243": 2,
8668 "281": 4,
8669 "282": 1,
8670 "290": 1
8671 },
8672 "fqnsFingerprint": "ed7d20f26b1f4e4dbade5657199847f143c35c149fbeb49e54402db9c319793a"
8673 },
8674 "db4a4e45295cddc85d1018d17521ef8eed2b94e0aaeb9cd773ca435fb0048542": {
8675 "translations": {
8676 "python": {
8677 "source": "# Using a reference to an imported Distribution\ndistribution = cloudfront.Distribution.from_distribution_attributes(self, \"ImportedDist\",\n domain_name=\"d111111abcdef8.cloudfront.net\",\n distribution_id=\"012345ABCDEF\"\n)",
8678 "version": "2"
8679 },
8680 "csharp": {
8681 "source": "// Using a reference to an imported Distribution\nIDistribution distribution = Distribution.FromDistributionAttributes(this, \"ImportedDist\", new DistributionAttributes {\n DomainName = \"d111111abcdef8.cloudfront.net\",\n DistributionId = \"012345ABCDEF\"\n});",
8682 "version": "1"
8683 },
8684 "java": {
8685 "source": "// Using a reference to an imported Distribution\nIDistribution distribution = Distribution.fromDistributionAttributes(this, \"ImportedDist\", DistributionAttributes.builder()\n .domainName(\"d111111abcdef8.cloudfront.net\")\n .distributionId(\"012345ABCDEF\")\n .build());",
8686 "version": "1"
8687 },
8688 "go": {
8689 "source": "// Using a reference to an imported Distribution\ndistribution := cloudfront.distribution.fromDistributionAttributes(this, jsii.String(\"ImportedDist\"), &distributionAttributes{\n\tdomainName: jsii.String(\"d111111abcdef8.cloudfront.net\"),\n\tdistributionId: jsii.String(\"012345ABCDEF\"),\n})",
8690 "version": "1"
8691 },
8692 "$": {
8693 "source": "// Using a reference to an imported Distribution\nconst distribution = cloudfront.Distribution.fromDistributionAttributes(this, 'ImportedDist', {\n domainName: 'd111111abcdef8.cloudfront.net',\n distributionId: '012345ABCDEF',\n});",
8694 "version": "0"
8695 }
8696 },
8697 "location": {
8698 "api": {
8699 "api": "type",
8700 "fqn": "@aws-cdk/aws-cloudfront.DistributionAttributes"
8701 },
8702 "field": {
8703 "field": "example"
8704 }
8705 },
8706 "didCompile": true,
8707 "fqnsReferenced": [
8708 "@aws-cdk/aws-cloudfront.Distribution",
8709 "@aws-cdk/aws-cloudfront.Distribution#fromDistributionAttributes",
8710 "@aws-cdk/aws-cloudfront.DistributionAttributes",
8711 "@aws-cdk/aws-cloudfront.IDistribution",
8712 "constructs.Construct"
8713 ],
8714 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Using a reference to an imported Distribution\nconst distribution = cloudfront.Distribution.fromDistributionAttributes(this, 'ImportedDist', {\n domainName: 'd111111abcdef8.cloudfront.net',\n distributionId: '012345ABCDEF',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8715 "syntaxKindCounter": {
8716 "10": 3,
8717 "75": 6,
8718 "104": 1,
8719 "193": 1,
8720 "194": 2,
8721 "196": 1,
8722 "225": 1,
8723 "242": 1,
8724 "243": 1,
8725 "281": 2
8726 },
8727 "fqnsFingerprint": "8d06d4f4f8c8554f131e9859c2581f56f35e2e925571fef3b0bc6fc3ad66631f"
8728 },
8729 "a6ccb0dbd34ea28afa6b3a5f9ca414087bf01ca9eda62cbf4063a7daff53bb05": {
8730 "translations": {
8731 "python": {
8732 "source": "# Adding an existing Lambda@Edge function created in a different stack\n# to a CloudFront distribution.\n# s3_bucket: s3.Bucket\n\nfunction_version = lambda_.Version.from_version_arn(self, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\")\n\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=function_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
8733 "version": "2"
8734 },
8735 "csharp": {
8736 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.FromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = functionVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
8737 "version": "1"
8738 },
8739 "java": {
8740 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nBucket s3Bucket;\n\nIVersion functionVersion = Version.fromVersionArn(this, \"Version\", \"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\");\n\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(functionVersion)\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
8741 "version": "1"
8742 },
8743 "go": {
8744 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\nvar s3Bucket bucket\n\nfunctionVersion := lambda.version.fromVersionArn(this, jsii.String(\"Version\"), jsii.String(\"arn:aws:lambda:us-east-1:123456789012:function:functionName:1\"))\n\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: functionVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
8745 "version": "1"
8746 },
8747 "$": {
8748 "source": "// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\nconst functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});",
8749 "version": "0"
8750 }
8751 },
8752 "location": {
8753 "api": {
8754 "api": "type",
8755 "fqn": "@aws-cdk/aws-cloudfront.DistributionProps"
8756 },
8757 "field": {
8758 "field": "example"
8759 }
8760 },
8761 "didCompile": true,
8762 "fqnsReferenced": [
8763 "@aws-cdk/aws-cloudfront-origins.S3Origin",
8764 "@aws-cdk/aws-cloudfront.BehaviorOptions",
8765 "@aws-cdk/aws-cloudfront.Distribution",
8766 "@aws-cdk/aws-cloudfront.DistributionProps",
8767 "@aws-cdk/aws-cloudfront.IOrigin",
8768 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
8769 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
8770 "@aws-cdk/aws-lambda.IVersion",
8771 "@aws-cdk/aws-lambda.Version",
8772 "@aws-cdk/aws-lambda.Version#fromVersionArn",
8773 "@aws-cdk/aws-s3.IBucket",
8774 "constructs.Construct"
8775 ],
8776 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Adding an existing Lambda@Edge function created in a different stack\n// to a CloudFront distribution.\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 functionVersion = lambda.Version.fromVersionArn(this, 'Version', 'arn:aws:lambda:us-east-1:123456789012:function:functionName:1');\n\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n edgeLambdas: [\n {\n functionVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n },\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8777 "syntaxKindCounter": {
8778 "10": 3,
8779 "75": 20,
8780 "104": 2,
8781 "130": 1,
8782 "153": 1,
8783 "169": 1,
8784 "192": 1,
8785 "193": 3,
8786 "194": 6,
8787 "196": 1,
8788 "197": 2,
8789 "225": 2,
8790 "226": 1,
8791 "242": 2,
8792 "243": 2,
8793 "281": 4,
8794 "282": 1,
8795 "290": 1
8796 },
8797 "fqnsFingerprint": "ed7d20f26b1f4e4dbade5657199847f143c35c149fbeb49e54402db9c319793a"
8798 },
8799 "00149ad77545aca823b20cff455d8ba5a470c46c136b0d9a931e9d2552caba9b": {
8800 "translations": {
8801 "python": {
8802 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.aws_lambda as lambda_\n\n# version: lambda.Version\n\nedge_lambda = cloudfront.EdgeLambda(\n event_type=cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n function_version=version,\n\n # the properties below are optional\n include_body=False\n)",
8803 "version": "2"
8804 },
8805 "csharp": {
8806 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK.AWS.Lambda;\n\nVersion version;\n\nEdgeLambda edgeLambda = new EdgeLambda {\n EventType = LambdaEdgeEventType.ORIGIN_REQUEST,\n FunctionVersion = version,\n\n // the properties below are optional\n IncludeBody = false\n};",
8807 "version": "1"
8808 },
8809 "java": {
8810 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nVersion version;\n\nEdgeLambda edgeLambda = EdgeLambda.builder()\n .eventType(LambdaEdgeEventType.ORIGIN_REQUEST)\n .functionVersion(version)\n\n // the properties below are optional\n .includeBody(false)\n .build();",
8811 "version": "1"
8812 },
8813 "go": {
8814 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\n\nvar version version\n\nedgeLambda := &edgeLambda{\n\teventType: cloudfront.lambdaEdgeEventType_ORIGIN_REQUEST,\n\tfunctionVersion: version,\n\n\t// the properties below are optional\n\tincludeBody: jsii.Boolean(false),\n}",
8815 "version": "1"
8816 },
8817 "$": {
8818 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\n\ndeclare const version: lambda.Version;\nconst edgeLambda: cloudfront.EdgeLambda = {\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n functionVersion: version,\n\n // the properties below are optional\n includeBody: false,\n};",
8819 "version": "0"
8820 }
8821 },
8822 "location": {
8823 "api": {
8824 "api": "type",
8825 "fqn": "@aws-cdk/aws-cloudfront.EdgeLambda"
8826 },
8827 "field": {
8828 "field": "example"
8829 }
8830 },
8831 "didCompile": true,
8832 "fqnsReferenced": [
8833 "@aws-cdk/aws-cloudfront.EdgeLambda",
8834 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
8835 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
8836 "@aws-cdk/aws-lambda.IVersion"
8837 ],
8838 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\n\ndeclare const version: lambda.Version;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst edgeLambda: cloudfront.EdgeLambda = {\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n functionVersion: version,\n\n // the properties below are optional\n includeBody: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8839 "syntaxKindCounter": {
8840 "10": 2,
8841 "75": 15,
8842 "91": 1,
8843 "130": 1,
8844 "153": 2,
8845 "169": 2,
8846 "193": 1,
8847 "194": 2,
8848 "225": 2,
8849 "242": 2,
8850 "243": 2,
8851 "254": 2,
8852 "255": 2,
8853 "256": 2,
8854 "281": 3,
8855 "290": 1
8856 },
8857 "fqnsFingerprint": "2885cc8b285a4320caabb78b4273c6909cb91a3e4e91a2b0550ea36c30badb68"
8858 },
8859 "07b782b14ccc9a2423dcc3f7227a7174a61ebb3793f292221aea96dc57060f5a": {
8860 "translations": {
8861 "python": {
8862 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.core as cdk\n\nerror_response = cloudfront.ErrorResponse(\n http_status=123,\n\n # the properties below are optional\n response_http_status=123,\n response_page_path=\"responsePagePath\",\n ttl=cdk.Duration.minutes(30)\n)",
8863 "version": "2"
8864 },
8865 "csharp": {
8866 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK;\nErrorResponse errorResponse = new ErrorResponse {\n HttpStatus = 123,\n\n // the properties below are optional\n ResponseHttpStatus = 123,\n ResponsePagePath = \"responsePagePath\",\n Ttl = Duration.Minutes(30)\n};",
8867 "version": "1"
8868 },
8869 "java": {
8870 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.core.*;\n\nErrorResponse errorResponse = ErrorResponse.builder()\n .httpStatus(123)\n\n // the properties below are optional\n .responseHttpStatus(123)\n .responsePagePath(\"responsePagePath\")\n .ttl(Duration.minutes(30))\n .build();",
8871 "version": "1"
8872 },
8873 "go": {
8874 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nerrorResponse := &errorResponse{\n\thttpStatus: jsii.Number(123),\n\n\t// the properties below are optional\n\tresponseHttpStatus: jsii.Number(123),\n\tresponsePagePath: jsii.String(\"responsePagePath\"),\n\tttl: cdk.duration.minutes(jsii.Number(30)),\n}",
8875 "version": "1"
8876 },
8877 "$": {
8878 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as cdk from '@aws-cdk/core';\nconst errorResponse: cloudfront.ErrorResponse = {\n httpStatus: 123,\n\n // the properties below are optional\n responseHttpStatus: 123,\n responsePagePath: 'responsePagePath',\n ttl: cdk.Duration.minutes(30),\n};",
8879 "version": "0"
8880 }
8881 },
8882 "location": {
8883 "api": {
8884 "api": "type",
8885 "fqn": "@aws-cdk/aws-cloudfront.ErrorResponse"
8886 },
8887 "field": {
8888 "field": "example"
8889 }
8890 },
8891 "didCompile": true,
8892 "fqnsReferenced": [
8893 "@aws-cdk/aws-cloudfront.ErrorResponse",
8894 "@aws-cdk/core.Duration",
8895 "@aws-cdk/core.Duration#minutes"
8896 ],
8897 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as cdk from '@aws-cdk/core';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst errorResponse: cloudfront.ErrorResponse = {\n httpStatus: 123,\n\n // the properties below are optional\n responseHttpStatus: 123,\n responsePagePath: 'responsePagePath',\n ttl: cdk.Duration.minutes(30),\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
8898 "syntaxKindCounter": {
8899 "8": 3,
8900 "10": 3,
8901 "75": 12,
8902 "153": 1,
8903 "169": 1,
8904 "193": 1,
8905 "194": 2,
8906 "196": 1,
8907 "225": 1,
8908 "242": 1,
8909 "243": 1,
8910 "254": 2,
8911 "255": 2,
8912 "256": 2,
8913 "281": 4,
8914 "290": 1
8915 },
8916 "fqnsFingerprint": "22967aba68cac93810909a5400528552ef4244d1eacc65d728a6449038ab543b"
8917 },
8918 "dac4b3e527302ffbc21f466aab3168832583876cfd842ad6777c55fdba1d6045": {
8919 "translations": {
8920 "python": {
8921 "source": "# Configuring origin fallback options for the CloudFrontWebDistribution\ncloudfront.CloudFrontWebDistribution(self, \"ADistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=s3.Bucket.from_bucket_name(self, \"aBucket\", \"myoriginbucket\"),\n origin_path=\"/\",\n origin_headers={\n \"myHeader\": \"42\"\n },\n origin_shield_region=\"us-west-2\"\n ),\n failover_s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=s3.Bucket.from_bucket_name(self, \"aBucketFallback\", \"myoriginbucketfallback\"),\n origin_path=\"/somewhere\",\n origin_headers={\n \"myHeader2\": \"21\"\n },\n origin_shield_region=\"us-east-1\"\n ),\n failover_criteria_status_codes=[cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR],\n behaviors=[cloudfront.Behavior(\n is_default_behavior=True\n )\n ]\n )\n ]\n)",
8922 "version": "2"
8923 },
8924 "csharp": {
8925 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\n// Configuring origin fallback options for the CloudFrontWebDistribution\nnew CloudFrontWebDistribution(this, \"ADistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = Bucket.FromBucketName(this, \"aBucket\", \"myoriginbucket\"),\n OriginPath = \"/\",\n OriginHeaders = new Dictionary<string, string> {\n { \"myHeader\", \"42\" }\n },\n OriginShieldRegion = \"us-west-2\"\n },\n FailoverS3OriginSource = new S3OriginConfig {\n S3BucketSource = Bucket.FromBucketName(this, \"aBucketFallback\", \"myoriginbucketfallback\"),\n OriginPath = \"/somewhere\",\n OriginHeaders = new Dictionary<string, string> {\n { \"myHeader2\", \"21\" }\n },\n OriginShieldRegion = \"us-east-1\"\n },\n FailoverCriteriaStatusCodes = new [] { FailoverStatusCode.INTERNAL_SERVER_ERROR },\n Behaviors = new [] { new Behavior {\n IsDefaultBehavior = true\n } }\n } }\n});",
8926 "version": "1"
8927 },
8928 "java": {
8929 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\n// Configuring origin fallback options for the CloudFrontWebDistribution\nCloudFrontWebDistribution.Builder.create(this, \"ADistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(Bucket.fromBucketName(this, \"aBucket\", \"myoriginbucket\"))\n .originPath(\"/\")\n .originHeaders(Map.of(\n \"myHeader\", \"42\"))\n .originShieldRegion(\"us-west-2\")\n .build())\n .failoverS3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(Bucket.fromBucketName(this, \"aBucketFallback\", \"myoriginbucketfallback\"))\n .originPath(\"/somewhere\")\n .originHeaders(Map.of(\n \"myHeader2\", \"21\"))\n .originShieldRegion(\"us-east-1\")\n .build())\n .failoverCriteriaStatusCodes(List.of(FailoverStatusCode.INTERNAL_SERVER_ERROR))\n .behaviors(List.of(Behavior.builder()\n .isDefaultBehavior(true)\n .build()))\n .build()))\n .build();",
8930 "version": "1"
8931 },
8932 "go": {
8933 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\n// Configuring origin fallback options for the CloudFrontWebDistribution\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"ADistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3.bucket.fromBucketName(this, jsii.String(\"aBucket\"), jsii.String(\"myoriginbucket\")),\n\t\t\t\toriginPath: jsii.String(\"/\"),\n\t\t\t\toriginHeaders: map[string]*string{\n\t\t\t\t\t\"myHeader\": jsii.String(\"42\"),\n\t\t\t\t},\n\t\t\t\toriginShieldRegion: jsii.String(\"us-west-2\"),\n\t\t\t},\n\t\t\tfailoverS3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3.*bucket.fromBucketName(this, jsii.String(\"aBucketFallback\"), jsii.String(\"myoriginbucketfallback\")),\n\t\t\t\toriginPath: jsii.String(\"/somewhere\"),\n\t\t\t\toriginHeaders: map[string]*string{\n\t\t\t\t\t\"myHeader2\": jsii.String(\"21\"),\n\t\t\t\t},\n\t\t\t\toriginShieldRegion: jsii.String(\"us-east-1\"),\n\t\t\t},\n\t\t\tfailoverCriteriaStatusCodes: []failoverStatusCode{\n\t\t\t\tcloudfront.*failoverStatusCode_INTERNAL_SERVER_ERROR,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
8934 "version": "1"
8935 },
8936 "$": {
8937 "source": "// Configuring origin fallback options for the CloudFrontWebDistribution\nnew cloudfront.CloudFrontWebDistribution(this, 'ADistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucket', 'myoriginbucket'),\n originPath: '/',\n originHeaders: {\n 'myHeader': '42',\n },\n originShieldRegion: 'us-west-2',\n },\n failoverS3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucketFallback', 'myoriginbucketfallback'),\n originPath: '/somewhere',\n originHeaders: {\n 'myHeader2': '21',\n },\n originShieldRegion: 'us-east-1',\n },\n failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR],\n behaviors: [\n {\n isDefaultBehavior: true,\n },\n ],\n },\n ],\n});",
8938 "version": "0"
8939 }
8940 },
8941 "location": {
8942 "api": {
8943 "api": "type",
8944 "fqn": "@aws-cdk/aws-cloudfront.FailoverStatusCode"
8945 },
8946 "field": {
8947 "field": "example"
8948 }
8949 },
8950 "didCompile": true,
8951 "fqnsReferenced": [
8952 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
8953 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
8954 "@aws-cdk/aws-cloudfront.FailoverStatusCode",
8955 "@aws-cdk/aws-cloudfront.FailoverStatusCode#INTERNAL_SERVER_ERROR",
8956 "@aws-cdk/aws-cloudfront.S3OriginConfig",
8957 "@aws-cdk/aws-s3.Bucket",
8958 "@aws-cdk/aws-s3.Bucket#fromBucketName",
8959 "@aws-cdk/aws-s3.IBucket",
8960 "constructs.Construct"
8961 ],
8962 "fullSource": "import { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Configuring origin fallback options for the CloudFrontWebDistribution\nnew cloudfront.CloudFrontWebDistribution(this, 'ADistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucket', 'myoriginbucket'),\n originPath: '/',\n originHeaders: {\n 'myHeader': '42',\n },\n originShieldRegion: 'us-west-2',\n },\n failoverS3OriginSource: {\n s3BucketSource: s3.Bucket.fromBucketName(this, 'aBucketFallback', 'myoriginbucketfallback'),\n originPath: '/somewhere',\n originHeaders: {\n 'myHeader2': '21',\n },\n originShieldRegion: 'us-east-1',\n },\n failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.INTERNAL_SERVER_ERROR],\n behaviors: [\n {\n isDefaultBehavior: true,\n },\n ],\n },\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
8963 "syntaxKindCounter": {
8964 "10": 13,
8965 "75": 25,
8966 "104": 3,
8967 "106": 1,
8968 "192": 3,
8969 "193": 7,
8970 "194": 7,
8971 "196": 2,
8972 "197": 1,
8973 "226": 1,
8974 "281": 16
8975 },
8976 "fqnsFingerprint": "82356cd08f3db635ce3f6185909729045ed304c0947e473c176aec42dbc62507"
8977 },
8978 "174c6f3864857afb8935747f6d00352b9c4be6c172b973e7ba8809207e0b3703": {
8979 "translations": {
8980 "python": {
8981 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nfile_code_options = cloudfront.FileCodeOptions(\n file_path=\"filePath\"\n)",
8982 "version": "2"
8983 },
8984 "csharp": {
8985 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFileCodeOptions fileCodeOptions = new FileCodeOptions {\n FilePath = \"filePath\"\n};",
8986 "version": "1"
8987 },
8988 "java": {
8989 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFileCodeOptions fileCodeOptions = FileCodeOptions.builder()\n .filePath(\"filePath\")\n .build();",
8990 "version": "1"
8991 },
8992 "go": {
8993 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nfileCodeOptions := &fileCodeOptions{\n\tfilePath: jsii.String(\"filePath\"),\n}",
8994 "version": "1"
8995 },
8996 "$": {
8997 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst fileCodeOptions: cloudfront.FileCodeOptions = {\n filePath: 'filePath',\n};",
8998 "version": "0"
8999 }
9000 },
9001 "location": {
9002 "api": {
9003 "api": "type",
9004 "fqn": "@aws-cdk/aws-cloudfront.FileCodeOptions"
9005 },
9006 "field": {
9007 "field": "example"
9008 }
9009 },
9010 "didCompile": true,
9011 "fqnsReferenced": [
9012 "@aws-cdk/aws-cloudfront.FileCodeOptions"
9013 ],
9014 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst fileCodeOptions: cloudfront.FileCodeOptions = {\n filePath: 'filePath',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9015 "syntaxKindCounter": {
9016 "10": 2,
9017 "75": 5,
9018 "153": 1,
9019 "169": 1,
9020 "193": 1,
9021 "225": 1,
9022 "242": 1,
9023 "243": 1,
9024 "254": 1,
9025 "255": 1,
9026 "256": 1,
9027 "281": 1,
9028 "290": 1
9029 },
9030 "fqnsFingerprint": "b42a83bd1ba4a82f2781349e7d035a2cc945a1b1df9e4434d892b6343e337efd"
9031 },
9032 "c51c11d34cdf2e1e23ce5b55bf67945f5a2d70d8f70d6e7e05709a9780adf901": {
9033 "translations": {
9034 "python": {
9035 "source": "# s3_bucket: s3.Bucket\n# Add a cloudfront Function to a Distribution\ncf_function = cloudfront.Function(self, \"Function\",\n code=cloudfront.FunctionCode.from_inline(\"function handler(event) { return event.request }\")\n)\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n function_associations=[cloudfront.FunctionAssociation(\n function=cf_function,\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST\n )]\n )\n)",
9036 "version": "2"
9037 },
9038 "csharp": {
9039 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = new Function(this, \"Function\", new FunctionProps {\n Code = FunctionCode.FromInline(\"function handler(event) { return event.request }\")\n});\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n FunctionAssociations = new [] { new FunctionAssociation {\n Function = cfFunction,\n EventType = FunctionEventType.VIEWER_REQUEST\n } }\n }\n});",
9040 "version": "1"
9041 },
9042 "java": {
9043 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = Function.Builder.create(this, \"Function\")\n .code(FunctionCode.fromInline(\"function handler(event) { return event.request }\"))\n .build();\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .functionAssociations(List.of(FunctionAssociation.builder()\n .function(cfFunction)\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
9044 "version": "1"
9045 },
9046 "go": {
9047 "source": "var s3Bucket bucket\n// Add a cloudfront Function to a Distribution\ncfFunction := cloudfront.NewFunction(this, jsii.String(\"Function\"), &functionProps{\n\tcode: cloudfront.functionCode.fromInline(jsii.String(\"function handler(event) { return event.request }\")),\n})\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tfunctionAssociations: []functionAssociation{\n\t\t\t&functionAssociation{\n\t\t\t\tfunction: cfFunction,\n\t\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
9048 "version": "1"
9049 },
9050 "$": {
9051 "source": "// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\n\ndeclare const s3Bucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});",
9052 "version": "0"
9053 }
9054 },
9055 "location": {
9056 "api": {
9057 "api": "type",
9058 "fqn": "@aws-cdk/aws-cloudfront.Function"
9059 },
9060 "field": {
9061 "field": "example"
9062 }
9063 },
9064 "didCompile": true,
9065 "fqnsReferenced": [
9066 "@aws-cdk/aws-cloudfront-origins.S3Origin",
9067 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9068 "@aws-cdk/aws-cloudfront.Distribution",
9069 "@aws-cdk/aws-cloudfront.DistributionProps",
9070 "@aws-cdk/aws-cloudfront.Function",
9071 "@aws-cdk/aws-cloudfront.FunctionCode",
9072 "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
9073 "@aws-cdk/aws-cloudfront.FunctionEventType",
9074 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
9075 "@aws-cdk/aws-cloudfront.FunctionProps",
9076 "@aws-cdk/aws-cloudfront.IFunction",
9077 "@aws-cdk/aws-cloudfront.IOrigin",
9078 "@aws-cdk/aws-s3.IBucket",
9079 "constructs.Construct"
9080 ],
9081 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9082 "syntaxKindCounter": {
9083 "10": 3,
9084 "75": 24,
9085 "104": 2,
9086 "130": 1,
9087 "153": 1,
9088 "169": 1,
9089 "192": 1,
9090 "193": 4,
9091 "194": 7,
9092 "196": 1,
9093 "197": 3,
9094 "225": 2,
9095 "226": 1,
9096 "242": 2,
9097 "243": 2,
9098 "281": 6,
9099 "290": 1
9100 },
9101 "fqnsFingerprint": "eb23cdf87f7e3c03f6b84e9ed8bce59909e06e2a1c978943e56f1a80a18b4bd8"
9102 },
9103 "cf15a0cdb497200f5693a9090b609f4d9df10c6f60c6f51cc411d18c38c8fc4e": {
9104 "translations": {
9105 "python": {
9106 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\n# function_: cloudfront.Function\n\nfunction_association = cloudfront.FunctionAssociation(\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST,\n function=function_\n)",
9107 "version": "2"
9108 },
9109 "csharp": {
9110 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFunction function_;\n\nFunctionAssociation functionAssociation = new FunctionAssociation {\n EventType = FunctionEventType.VIEWER_REQUEST,\n Function = function_\n};",
9111 "version": "1"
9112 },
9113 "java": {
9114 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFunction function_;\n\nFunctionAssociation functionAssociation = FunctionAssociation.builder()\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .function(function_)\n .build();",
9115 "version": "1"
9116 },
9117 "go": {
9118 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nvar function_ function\n\nfunctionAssociation := &functionAssociation{\n\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\tfunction: function_,\n}",
9119 "version": "1"
9120 },
9121 "$": {
9122 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const function_: cloudfront.Function;\nconst functionAssociation: cloudfront.FunctionAssociation = {\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n function: function_,\n};",
9123 "version": "0"
9124 }
9125 },
9126 "location": {
9127 "api": {
9128 "api": "type",
9129 "fqn": "@aws-cdk/aws-cloudfront.FunctionAssociation"
9130 },
9131 "field": {
9132 "field": "example"
9133 }
9134 },
9135 "didCompile": true,
9136 "fqnsReferenced": [
9137 "@aws-cdk/aws-cloudfront.FunctionAssociation",
9138 "@aws-cdk/aws-cloudfront.FunctionEventType",
9139 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
9140 "@aws-cdk/aws-cloudfront.IFunction"
9141 ],
9142 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const function_: cloudfront.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst functionAssociation: cloudfront.FunctionAssociation = {\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n function: function_,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9143 "syntaxKindCounter": {
9144 "10": 1,
9145 "75": 13,
9146 "130": 1,
9147 "153": 2,
9148 "169": 2,
9149 "193": 1,
9150 "194": 2,
9151 "225": 2,
9152 "242": 2,
9153 "243": 2,
9154 "254": 1,
9155 "255": 1,
9156 "256": 1,
9157 "281": 2,
9158 "290": 1
9159 },
9160 "fqnsFingerprint": "0398ba496433fd03ed053b39e7ab55427b9337fed6af6fff3e84222b17ba1bd2"
9161 },
9162 "15c697dffeb4b2a5654a24c9be4d97a5afbed078dc62af0ff4e1519a40b44971": {
9163 "translations": {
9164 "python": {
9165 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nfunction_attributes = cloudfront.FunctionAttributes(\n function_arn=\"functionArn\",\n function_name=\"functionName\"\n)",
9166 "version": "2"
9167 },
9168 "csharp": {
9169 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nFunctionAttributes functionAttributes = new FunctionAttributes {\n FunctionArn = \"functionArn\",\n FunctionName = \"functionName\"\n};",
9170 "version": "1"
9171 },
9172 "java": {
9173 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nFunctionAttributes functionAttributes = FunctionAttributes.builder()\n .functionArn(\"functionArn\")\n .functionName(\"functionName\")\n .build();",
9174 "version": "1"
9175 },
9176 "go": {
9177 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nfunctionAttributes := &functionAttributes{\n\tfunctionArn: jsii.String(\"functionArn\"),\n\tfunctionName: jsii.String(\"functionName\"),\n}",
9178 "version": "1"
9179 },
9180 "$": {
9181 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst functionAttributes: cloudfront.FunctionAttributes = {\n functionArn: 'functionArn',\n functionName: 'functionName',\n};",
9182 "version": "0"
9183 }
9184 },
9185 "location": {
9186 "api": {
9187 "api": "type",
9188 "fqn": "@aws-cdk/aws-cloudfront.FunctionAttributes"
9189 },
9190 "field": {
9191 "field": "example"
9192 }
9193 },
9194 "didCompile": true,
9195 "fqnsReferenced": [
9196 "@aws-cdk/aws-cloudfront.FunctionAttributes"
9197 ],
9198 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst functionAttributes: cloudfront.FunctionAttributes = {\n functionArn: 'functionArn',\n functionName: 'functionName',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9199 "syntaxKindCounter": {
9200 "10": 3,
9201 "75": 6,
9202 "153": 1,
9203 "169": 1,
9204 "193": 1,
9205 "225": 1,
9206 "242": 1,
9207 "243": 1,
9208 "254": 1,
9209 "255": 1,
9210 "256": 1,
9211 "281": 2,
9212 "290": 1
9213 },
9214 "fqnsFingerprint": "7214fd28c87e9ef097e6658c1cf8db0486cf1f81191e6c2778722589cbc08a1d"
9215 },
9216 "5615cc8fbe925909d574d026046e2efd8cd4e8fb45044a7da65ca78b867ccc92": {
9217 "translations": {
9218 "python": {
9219 "source": "# s3_bucket: s3.Bucket\n# Add a cloudfront Function to a Distribution\ncf_function = cloudfront.Function(self, \"Function\",\n code=cloudfront.FunctionCode.from_inline(\"function handler(event) { return event.request }\")\n)\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n function_associations=[cloudfront.FunctionAssociation(\n function=cf_function,\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST\n )]\n )\n)",
9220 "version": "2"
9221 },
9222 "csharp": {
9223 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = new Function(this, \"Function\", new FunctionProps {\n Code = FunctionCode.FromInline(\"function handler(event) { return event.request }\")\n});\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n FunctionAssociations = new [] { new FunctionAssociation {\n Function = cfFunction,\n EventType = FunctionEventType.VIEWER_REQUEST\n } }\n }\n});",
9224 "version": "1"
9225 },
9226 "java": {
9227 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = Function.Builder.create(this, \"Function\")\n .code(FunctionCode.fromInline(\"function handler(event) { return event.request }\"))\n .build();\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .functionAssociations(List.of(FunctionAssociation.builder()\n .function(cfFunction)\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
9228 "version": "1"
9229 },
9230 "go": {
9231 "source": "var s3Bucket bucket\n// Add a cloudfront Function to a Distribution\ncfFunction := cloudfront.NewFunction(this, jsii.String(\"Function\"), &functionProps{\n\tcode: cloudfront.functionCode.fromInline(jsii.String(\"function handler(event) { return event.request }\")),\n})\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tfunctionAssociations: []functionAssociation{\n\t\t\t&functionAssociation{\n\t\t\t\tfunction: cfFunction,\n\t\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
9232 "version": "1"
9233 },
9234 "$": {
9235 "source": "// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\n\ndeclare const s3Bucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});",
9236 "version": "0"
9237 }
9238 },
9239 "location": {
9240 "api": {
9241 "api": "type",
9242 "fqn": "@aws-cdk/aws-cloudfront.FunctionCode"
9243 },
9244 "field": {
9245 "field": "example"
9246 }
9247 },
9248 "didCompile": true,
9249 "fqnsReferenced": [
9250 "@aws-cdk/aws-cloudfront-origins.S3Origin",
9251 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9252 "@aws-cdk/aws-cloudfront.Distribution",
9253 "@aws-cdk/aws-cloudfront.DistributionProps",
9254 "@aws-cdk/aws-cloudfront.Function",
9255 "@aws-cdk/aws-cloudfront.FunctionCode",
9256 "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
9257 "@aws-cdk/aws-cloudfront.FunctionEventType",
9258 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
9259 "@aws-cdk/aws-cloudfront.FunctionProps",
9260 "@aws-cdk/aws-cloudfront.IFunction",
9261 "@aws-cdk/aws-cloudfront.IOrigin",
9262 "@aws-cdk/aws-s3.IBucket",
9263 "constructs.Construct"
9264 ],
9265 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9266 "syntaxKindCounter": {
9267 "10": 3,
9268 "75": 24,
9269 "104": 2,
9270 "130": 1,
9271 "153": 1,
9272 "169": 1,
9273 "192": 1,
9274 "193": 4,
9275 "194": 7,
9276 "196": 1,
9277 "197": 3,
9278 "225": 2,
9279 "226": 1,
9280 "242": 2,
9281 "243": 2,
9282 "281": 6,
9283 "290": 1
9284 },
9285 "fqnsFingerprint": "eb23cdf87f7e3c03f6b84e9ed8bce59909e06e2a1c978943e56f1a80a18b4bd8"
9286 },
9287 "75539d4143e0e7f171a221b0076362006798f15593168d732943ec3f0636aaaf": {
9288 "translations": {
9289 "python": {
9290 "source": "# s3_bucket: s3.Bucket\n# Add a cloudfront Function to a Distribution\ncf_function = cloudfront.Function(self, \"Function\",\n code=cloudfront.FunctionCode.from_inline(\"function handler(event) { return event.request }\")\n)\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n function_associations=[cloudfront.FunctionAssociation(\n function=cf_function,\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST\n )]\n )\n)",
9291 "version": "2"
9292 },
9293 "csharp": {
9294 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = new Function(this, \"Function\", new FunctionProps {\n Code = FunctionCode.FromInline(\"function handler(event) { return event.request }\")\n});\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n FunctionAssociations = new [] { new FunctionAssociation {\n Function = cfFunction,\n EventType = FunctionEventType.VIEWER_REQUEST\n } }\n }\n});",
9295 "version": "1"
9296 },
9297 "java": {
9298 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = Function.Builder.create(this, \"Function\")\n .code(FunctionCode.fromInline(\"function handler(event) { return event.request }\"))\n .build();\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .functionAssociations(List.of(FunctionAssociation.builder()\n .function(cfFunction)\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
9299 "version": "1"
9300 },
9301 "go": {
9302 "source": "var s3Bucket bucket\n// Add a cloudfront Function to a Distribution\ncfFunction := cloudfront.NewFunction(this, jsii.String(\"Function\"), &functionProps{\n\tcode: cloudfront.functionCode.fromInline(jsii.String(\"function handler(event) { return event.request }\")),\n})\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tfunctionAssociations: []functionAssociation{\n\t\t\t&functionAssociation{\n\t\t\t\tfunction: cfFunction,\n\t\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
9303 "version": "1"
9304 },
9305 "$": {
9306 "source": "// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\n\ndeclare const s3Bucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});",
9307 "version": "0"
9308 }
9309 },
9310 "location": {
9311 "api": {
9312 "api": "type",
9313 "fqn": "@aws-cdk/aws-cloudfront.FunctionEventType"
9314 },
9315 "field": {
9316 "field": "example"
9317 }
9318 },
9319 "didCompile": true,
9320 "fqnsReferenced": [
9321 "@aws-cdk/aws-cloudfront-origins.S3Origin",
9322 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9323 "@aws-cdk/aws-cloudfront.Distribution",
9324 "@aws-cdk/aws-cloudfront.DistributionProps",
9325 "@aws-cdk/aws-cloudfront.Function",
9326 "@aws-cdk/aws-cloudfront.FunctionCode",
9327 "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
9328 "@aws-cdk/aws-cloudfront.FunctionEventType",
9329 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
9330 "@aws-cdk/aws-cloudfront.FunctionProps",
9331 "@aws-cdk/aws-cloudfront.IFunction",
9332 "@aws-cdk/aws-cloudfront.IOrigin",
9333 "@aws-cdk/aws-s3.IBucket",
9334 "constructs.Construct"
9335 ],
9336 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9337 "syntaxKindCounter": {
9338 "10": 3,
9339 "75": 24,
9340 "104": 2,
9341 "130": 1,
9342 "153": 1,
9343 "169": 1,
9344 "192": 1,
9345 "193": 4,
9346 "194": 7,
9347 "196": 1,
9348 "197": 3,
9349 "225": 2,
9350 "226": 1,
9351 "242": 2,
9352 "243": 2,
9353 "281": 6,
9354 "290": 1
9355 },
9356 "fqnsFingerprint": "eb23cdf87f7e3c03f6b84e9ed8bce59909e06e2a1c978943e56f1a80a18b4bd8"
9357 },
9358 "ba40ba9da4fd588814d6d58e6c0f46a95be6851022d708943e2205ad1e51de6d": {
9359 "translations": {
9360 "python": {
9361 "source": "# s3_bucket: s3.Bucket\n# Add a cloudfront Function to a Distribution\ncf_function = cloudfront.Function(self, \"Function\",\n code=cloudfront.FunctionCode.from_inline(\"function handler(event) { return event.request }\")\n)\ncloudfront.Distribution(self, \"distro\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(s3_bucket),\n function_associations=[cloudfront.FunctionAssociation(\n function=cf_function,\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST\n )]\n )\n)",
9362 "version": "2"
9363 },
9364 "csharp": {
9365 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = new Function(this, \"Function\", new FunctionProps {\n Code = FunctionCode.FromInline(\"function handler(event) { return event.request }\")\n});\nnew Distribution(this, \"distro\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(s3Bucket),\n FunctionAssociations = new [] { new FunctionAssociation {\n Function = cfFunction,\n EventType = FunctionEventType.VIEWER_REQUEST\n } }\n }\n});",
9366 "version": "1"
9367 },
9368 "java": {
9369 "source": "Bucket s3Bucket;\n// Add a cloudfront Function to a Distribution\nFunction cfFunction = Function.Builder.create(this, \"Function\")\n .code(FunctionCode.fromInline(\"function handler(event) { return event.request }\"))\n .build();\nDistribution.Builder.create(this, \"distro\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(s3Bucket))\n .functionAssociations(List.of(FunctionAssociation.builder()\n .function(cfFunction)\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
9370 "version": "1"
9371 },
9372 "go": {
9373 "source": "var s3Bucket bucket\n// Add a cloudfront Function to a Distribution\ncfFunction := cloudfront.NewFunction(this, jsii.String(\"Function\"), &functionProps{\n\tcode: cloudfront.functionCode.fromInline(jsii.String(\"function handler(event) { return event.request }\")),\n})\ncloudfront.NewDistribution(this, jsii.String(\"distro\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(s3Bucket),\n\t\tfunctionAssociations: []functionAssociation{\n\t\t\t&functionAssociation{\n\t\t\t\tfunction: cfFunction,\n\t\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
9374 "version": "1"
9375 },
9376 "$": {
9377 "source": "// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\n\ndeclare const s3Bucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});",
9378 "version": "0"
9379 }
9380 },
9381 "location": {
9382 "api": {
9383 "api": "type",
9384 "fqn": "@aws-cdk/aws-cloudfront.FunctionProps"
9385 },
9386 "field": {
9387 "field": "example"
9388 }
9389 },
9390 "didCompile": true,
9391 "fqnsReferenced": [
9392 "@aws-cdk/aws-cloudfront-origins.S3Origin",
9393 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9394 "@aws-cdk/aws-cloudfront.Distribution",
9395 "@aws-cdk/aws-cloudfront.DistributionProps",
9396 "@aws-cdk/aws-cloudfront.Function",
9397 "@aws-cdk/aws-cloudfront.FunctionCode",
9398 "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
9399 "@aws-cdk/aws-cloudfront.FunctionEventType",
9400 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
9401 "@aws-cdk/aws-cloudfront.FunctionProps",
9402 "@aws-cdk/aws-cloudfront.IFunction",
9403 "@aws-cdk/aws-cloudfront.IOrigin",
9404 "@aws-cdk/aws-s3.IBucket",
9405 "constructs.Construct"
9406 ],
9407 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const s3Bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// Add a cloudfront Function to a Distribution\nconst cfFunction = new cloudfront.Function(this, 'Function', {\n code: cloudfront.FunctionCode.fromInline('function handler(event) { return event.request }'),\n});\nnew cloudfront.Distribution(this, 'distro', {\n defaultBehavior: {\n origin: new origins.S3Origin(s3Bucket),\n functionAssociations: [{\n function: cfFunction,\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n }],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9408 "syntaxKindCounter": {
9409 "10": 3,
9410 "75": 24,
9411 "104": 2,
9412 "130": 1,
9413 "153": 1,
9414 "169": 1,
9415 "192": 1,
9416 "193": 4,
9417 "194": 7,
9418 "196": 1,
9419 "197": 3,
9420 "225": 2,
9421 "226": 1,
9422 "242": 2,
9423 "243": 2,
9424 "281": 6,
9425 "290": 1
9426 },
9427 "fqnsFingerprint": "eb23cdf87f7e3c03f6b84e9ed8bce59909e06e2a1c978943e56f1a80a18b4bd8"
9428 },
9429 "fb4f882eaf7ff9504a4503aa968c18b436a02833fdf8996b6c32d1ad502ac442": {
9430 "translations": {
9431 "python": {
9432 "source": "# Adding restrictions to a Cloudfront Web Distribution.\n# source_bucket: s3.Bucket\n\ncloudfront.CloudFrontWebDistribution(self, \"MyDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n geo_restriction=cloudfront.GeoRestriction.allowlist(\"US\", \"GB\")\n)",
9433 "version": "2"
9434 },
9435 "csharp": {
9436 "source": "// Adding restrictions to a Cloudfront Web Distribution.\nBucket sourceBucket;\n\nnew CloudFrontWebDistribution(this, \"MyDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n GeoRestriction = GeoRestriction.Allowlist(\"US\", \"GB\")\n});",
9437 "version": "1"
9438 },
9439 "java": {
9440 "source": "// Adding restrictions to a Cloudfront Web Distribution.\nBucket sourceBucket;\n\nCloudFrontWebDistribution.Builder.create(this, \"MyDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .geoRestriction(GeoRestriction.allowlist(\"US\", \"GB\"))\n .build();",
9441 "version": "1"
9442 },
9443 "go": {
9444 "source": "// Adding restrictions to a Cloudfront Web Distribution.\nvar sourceBucket bucket\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tgeoRestriction: cloudfront.geoRestriction.allowlist(jsii.String(\"US\"), jsii.String(\"GB\")),\n})",
9445 "version": "1"
9446 },
9447 "$": {
9448 "source": "// Adding restrictions to a Cloudfront Web Distribution.\ndeclare const sourceBucket: s3.Bucket;\nnew cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n geoRestriction: cloudfront.GeoRestriction.allowlist('US', 'GB'),\n});",
9449 "version": "0"
9450 }
9451 },
9452 "location": {
9453 "api": {
9454 "api": "type",
9455 "fqn": "@aws-cdk/aws-cloudfront.GeoRestriction"
9456 },
9457 "field": {
9458 "field": "example"
9459 }
9460 },
9461 "didCompile": true,
9462 "fqnsReferenced": [
9463 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
9464 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
9465 "@aws-cdk/aws-cloudfront.GeoRestriction",
9466 "@aws-cdk/aws-cloudfront.GeoRestriction#allowlist",
9467 "@aws-cdk/aws-cloudfront.S3OriginConfig",
9468 "@aws-cdk/aws-s3.IBucket",
9469 "constructs.Construct"
9470 ],
9471 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Adding restrictions to a Cloudfront Web Distribution.\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true}],\n },\n ],\n geoRestriction: cloudfront.GeoRestriction.allowlist('US', 'GB'),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9472 "syntaxKindCounter": {
9473 "10": 3,
9474 "75": 15,
9475 "104": 1,
9476 "106": 1,
9477 "130": 1,
9478 "153": 1,
9479 "169": 1,
9480 "192": 2,
9481 "193": 4,
9482 "194": 3,
9483 "196": 1,
9484 "197": 1,
9485 "225": 1,
9486 "226": 1,
9487 "242": 1,
9488 "243": 1,
9489 "281": 6,
9490 "290": 1
9491 },
9492 "fqnsFingerprint": "79eb242a60769e400095abf3210d66d01bb3d0c863504047525dc7288aca90b0"
9493 },
9494 "19d4f354fd0a11f82f6fbbf701fac6559eeb0c10fb3bbf532d0bcd7d3f6b9844": {
9495 "translations": {
9496 "python": {
9497 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
9498 "version": "2"
9499 },
9500 "csharp": {
9501 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
9502 "version": "1"
9503 },
9504 "java": {
9505 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
9506 "version": "1"
9507 },
9508 "go": {
9509 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
9510 "version": "1"
9511 },
9512 "$": {
9513 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
9514 "version": "0"
9515 }
9516 },
9517 "location": {
9518 "api": {
9519 "api": "type",
9520 "fqn": "@aws-cdk/aws-cloudfront.HeadersFrameOption"
9521 },
9522 "field": {
9523 "field": "example"
9524 }
9525 },
9526 "didCompile": true,
9527 "fqnsReferenced": [
9528 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9529 "@aws-cdk/aws-cloudfront.Distribution",
9530 "@aws-cdk/aws-cloudfront.DistributionProps",
9531 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
9532 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
9533 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
9534 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
9535 "@aws-cdk/aws-cloudfront.IOrigin",
9536 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
9537 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
9538 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
9539 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
9540 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
9541 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
9542 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
9543 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
9544 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
9545 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
9546 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
9547 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
9548 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
9549 "@aws-cdk/core.Duration",
9550 "@aws-cdk/core.Duration#seconds",
9551 "constructs.Construct"
9552 ],
9553 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9554 "syntaxKindCounter": {
9555 "8": 2,
9556 "10": 18,
9557 "75": 71,
9558 "91": 2,
9559 "104": 3,
9560 "106": 11,
9561 "130": 1,
9562 "153": 1,
9563 "169": 1,
9564 "192": 5,
9565 "193": 16,
9566 "194": 11,
9567 "196": 2,
9568 "197": 3,
9569 "225": 2,
9570 "226": 2,
9571 "242": 2,
9572 "243": 2,
9573 "281": 45,
9574 "290": 1
9575 },
9576 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
9577 },
9578 "eac6abeb7a79220c337704b794bf36e7610d7de35cfae5c51336349da30cff6f": {
9579 "translations": {
9580 "python": {
9581 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
9582 "version": "2"
9583 },
9584 "csharp": {
9585 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
9586 "version": "1"
9587 },
9588 "java": {
9589 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
9590 "version": "1"
9591 },
9592 "go": {
9593 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
9594 "version": "1"
9595 },
9596 "$": {
9597 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
9598 "version": "0"
9599 }
9600 },
9601 "location": {
9602 "api": {
9603 "api": "type",
9604 "fqn": "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy"
9605 },
9606 "field": {
9607 "field": "example"
9608 }
9609 },
9610 "didCompile": true,
9611 "fqnsReferenced": [
9612 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9613 "@aws-cdk/aws-cloudfront.Distribution",
9614 "@aws-cdk/aws-cloudfront.DistributionProps",
9615 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
9616 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
9617 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
9618 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
9619 "@aws-cdk/aws-cloudfront.IOrigin",
9620 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
9621 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
9622 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
9623 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
9624 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
9625 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
9626 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
9627 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
9628 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
9629 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
9630 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
9631 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
9632 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
9633 "@aws-cdk/core.Duration",
9634 "@aws-cdk/core.Duration#seconds",
9635 "constructs.Construct"
9636 ],
9637 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9638 "syntaxKindCounter": {
9639 "8": 2,
9640 "10": 18,
9641 "75": 71,
9642 "91": 2,
9643 "104": 3,
9644 "106": 11,
9645 "130": 1,
9646 "153": 1,
9647 "169": 1,
9648 "192": 5,
9649 "193": 16,
9650 "194": 11,
9651 "196": 2,
9652 "197": 3,
9653 "225": 2,
9654 "226": 2,
9655 "242": 2,
9656 "243": 2,
9657 "281": 45,
9658 "290": 1
9659 },
9660 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
9661 },
9662 "25d456c69e26e97ee78054206a9d9dfe87120b3892b848156d8de6e9bb516f50": {
9663 "translations": {
9664 "python": {
9665 "source": "# Validating signed URLs or signed cookies with Trusted Key Groups\n\n# public key in PEM format\n# public_key: str\n\npub_key = cloudfront.PublicKey(self, \"MyPubKey\",\n encoded_key=public_key\n)\n\nkey_group = cloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[pub_key\n ]\n)\n\ncloudfront.Distribution(self, \"Dist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.HttpOrigin(\"www.example.com\"),\n trusted_key_groups=[key_group\n ]\n )\n)",
9666 "version": "2"
9667 },
9668 "csharp": {
9669 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nstring publicKey;\n\nPublicKey pubKey = new PublicKey(this, \"MyPubKey\", new PublicKeyProps {\n EncodedKey = publicKey\n});\n\nKeyGroup keyGroup = new KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] { pubKey }\n});\n\nnew Distribution(this, \"Dist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new HttpOrigin(\"www.example.com\"),\n TrustedKeyGroups = new [] { keyGroup }\n }\n});",
9670 "version": "1"
9671 },
9672 "java": {
9673 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nString publicKey;\n\nPublicKey pubKey = PublicKey.Builder.create(this, \"MyPubKey\")\n .encodedKey(publicKey)\n .build();\n\nKeyGroup keyGroup = KeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(pubKey))\n .build();\n\nDistribution.Builder.create(this, \"Dist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new HttpOrigin(\"www.example.com\"))\n .trustedKeyGroups(List.of(keyGroup))\n .build())\n .build();",
9674 "version": "1"
9675 },
9676 "go": {
9677 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nvar publicKey string\n\npubKey := cloudfront.NewPublicKey(this, jsii.String(\"MyPubKey\"), &publicKeyProps{\n\tencodedKey: publicKey,\n})\n\nkeyGroup := cloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tpubKey,\n\t},\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"Dist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\tkeyGroup,\n\t\t},\n\t},\n})",
9678 "version": "1"
9679 },
9680 "$": {
9681 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\nconst pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});",
9682 "version": "0"
9683 }
9684 },
9685 "location": {
9686 "api": {
9687 "api": "type",
9688 "fqn": "@aws-cdk/aws-cloudfront.KeyGroup"
9689 },
9690 "field": {
9691 "field": "example"
9692 }
9693 },
9694 "didCompile": true,
9695 "fqnsReferenced": [
9696 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
9697 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9698 "@aws-cdk/aws-cloudfront.Distribution",
9699 "@aws-cdk/aws-cloudfront.DistributionProps",
9700 "@aws-cdk/aws-cloudfront.IOrigin",
9701 "@aws-cdk/aws-cloudfront.KeyGroup",
9702 "@aws-cdk/aws-cloudfront.KeyGroupProps",
9703 "@aws-cdk/aws-cloudfront.PublicKey",
9704 "@aws-cdk/aws-cloudfront.PublicKeyProps",
9705 "constructs.Construct"
9706 ],
9707 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9708 "syntaxKindCounter": {
9709 "10": 4,
9710 "75": 19,
9711 "104": 3,
9712 "130": 1,
9713 "143": 1,
9714 "192": 2,
9715 "193": 4,
9716 "194": 4,
9717 "197": 4,
9718 "225": 3,
9719 "226": 1,
9720 "242": 3,
9721 "243": 3,
9722 "281": 5,
9723 "290": 1
9724 },
9725 "fqnsFingerprint": "3ad307a97cef2618550323674a3aca38ac179d755c6f984025a53a1d879abe6a"
9726 },
9727 "16b264cc8d5601e3670fd13317e5ac3369850f2653ee7045fc099bf436a652fb": {
9728 "translations": {
9729 "python": {
9730 "source": "# Validating signed URLs or signed cookies with Trusted Key Groups\n\n# public key in PEM format\n# public_key: str\n\npub_key = cloudfront.PublicKey(self, \"MyPubKey\",\n encoded_key=public_key\n)\n\nkey_group = cloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[pub_key\n ]\n)\n\ncloudfront.Distribution(self, \"Dist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.HttpOrigin(\"www.example.com\"),\n trusted_key_groups=[key_group\n ]\n )\n)",
9731 "version": "2"
9732 },
9733 "csharp": {
9734 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nstring publicKey;\n\nPublicKey pubKey = new PublicKey(this, \"MyPubKey\", new PublicKeyProps {\n EncodedKey = publicKey\n});\n\nKeyGroup keyGroup = new KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] { pubKey }\n});\n\nnew Distribution(this, \"Dist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new HttpOrigin(\"www.example.com\"),\n TrustedKeyGroups = new [] { keyGroup }\n }\n});",
9735 "version": "1"
9736 },
9737 "java": {
9738 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nString publicKey;\n\nPublicKey pubKey = PublicKey.Builder.create(this, \"MyPubKey\")\n .encodedKey(publicKey)\n .build();\n\nKeyGroup keyGroup = KeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(pubKey))\n .build();\n\nDistribution.Builder.create(this, \"Dist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new HttpOrigin(\"www.example.com\"))\n .trustedKeyGroups(List.of(keyGroup))\n .build())\n .build();",
9739 "version": "1"
9740 },
9741 "go": {
9742 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nvar publicKey string\n\npubKey := cloudfront.NewPublicKey(this, jsii.String(\"MyPubKey\"), &publicKeyProps{\n\tencodedKey: publicKey,\n})\n\nkeyGroup := cloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tpubKey,\n\t},\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"Dist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\tkeyGroup,\n\t\t},\n\t},\n})",
9743 "version": "1"
9744 },
9745 "$": {
9746 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\nconst pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});",
9747 "version": "0"
9748 }
9749 },
9750 "location": {
9751 "api": {
9752 "api": "type",
9753 "fqn": "@aws-cdk/aws-cloudfront.KeyGroupProps"
9754 },
9755 "field": {
9756 "field": "example"
9757 }
9758 },
9759 "didCompile": true,
9760 "fqnsReferenced": [
9761 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
9762 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9763 "@aws-cdk/aws-cloudfront.Distribution",
9764 "@aws-cdk/aws-cloudfront.DistributionProps",
9765 "@aws-cdk/aws-cloudfront.IOrigin",
9766 "@aws-cdk/aws-cloudfront.KeyGroup",
9767 "@aws-cdk/aws-cloudfront.KeyGroupProps",
9768 "@aws-cdk/aws-cloudfront.PublicKey",
9769 "@aws-cdk/aws-cloudfront.PublicKeyProps",
9770 "constructs.Construct"
9771 ],
9772 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9773 "syntaxKindCounter": {
9774 "10": 4,
9775 "75": 19,
9776 "104": 3,
9777 "130": 1,
9778 "143": 1,
9779 "192": 2,
9780 "193": 4,
9781 "194": 4,
9782 "197": 4,
9783 "225": 3,
9784 "226": 1,
9785 "242": 3,
9786 "243": 3,
9787 "281": 5,
9788 "290": 1
9789 },
9790 "fqnsFingerprint": "3ad307a97cef2618550323674a3aca38ac179d755c6f984025a53a1d879abe6a"
9791 },
9792 "70494e97d22c317553731233277d78ce30308d56d7830099ee48304e1187c5f9": {
9793 "translations": {
9794 "python": {
9795 "source": "# my_bucket: s3.Bucket\n# A Lambda@Edge function added to default behavior of a Distribution\n# and triggered on every request\nmy_func = cloudfront.experimental.EdgeFunction(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=my_func.current_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
9796 "version": "2"
9797 },
9798 "csharp": {
9799 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = new Experimental.EdgeFunction(this, \"MyFunction\", new EdgeFunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\"))\n});\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = myFunc.CurrentVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
9800 "version": "1"
9801 },
9802 "java": {
9803 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = EdgeFunction.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .build();\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(myFunc.getCurrentVersion())\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
9804 "version": "1"
9805 },
9806 "go": {
9807 "source": "var myBucket bucket\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nmyFunc := #error#.NewEdgeFunction(this, jsii.String(\"MyFunction\"), &edgeFunctionProps{\n\truntime: lambda.runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler\"))),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: myFunc.currentVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
9808 "version": "1"
9809 },
9810 "$": {
9811 "source": "// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\ndeclare const myBucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});",
9812 "version": "0"
9813 }
9814 },
9815 "location": {
9816 "api": {
9817 "api": "type",
9818 "fqn": "@aws-cdk/aws-cloudfront.LambdaEdgeEventType"
9819 },
9820 "field": {
9821 "field": "example"
9822 }
9823 },
9824 "didCompile": true,
9825 "fqnsReferenced": [
9826 "@aws-cdk/aws-cloudfront-origins.S3Origin",
9827 "@aws-cdk/aws-cloudfront.BehaviorOptions",
9828 "@aws-cdk/aws-cloudfront.Distribution",
9829 "@aws-cdk/aws-cloudfront.DistributionProps",
9830 "@aws-cdk/aws-cloudfront.IOrigin",
9831 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
9832 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
9833 "@aws-cdk/aws-cloudfront.experimental",
9834 "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
9835 "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
9836 "@aws-cdk/aws-lambda.Code",
9837 "@aws-cdk/aws-lambda.Code#fromAsset",
9838 "@aws-cdk/aws-lambda.IVersion",
9839 "@aws-cdk/aws-lambda.Runtime",
9840 "@aws-cdk/aws-lambda.Runtime#NODEJS_14_X",
9841 "@aws-cdk/aws-s3.IBucket",
9842 "constructs.Construct"
9843 ],
9844 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
9845 "syntaxKindCounter": {
9846 "10": 4,
9847 "75": 34,
9848 "104": 2,
9849 "130": 1,
9850 "153": 1,
9851 "169": 1,
9852 "192": 1,
9853 "193": 4,
9854 "194": 12,
9855 "196": 2,
9856 "197": 3,
9857 "225": 2,
9858 "226": 1,
9859 "242": 2,
9860 "243": 2,
9861 "281": 8,
9862 "290": 1
9863 },
9864 "fqnsFingerprint": "02b892326549a952196fa477919f4801bcdca3d61c99b33c78df9a86e00a9d31"
9865 },
9866 "8ec9654514c6fe77c59442d653b72c27752d3b307bdbfca57e09e9c4e1c87547": {
9867 "translations": {
9868 "python": {
9869 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.aws_lambda as lambda_\n\n# version: lambda.Version\n\nlambda_function_association = cloudfront.LambdaFunctionAssociation(\n event_type=cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambda_function=version,\n\n # the properties below are optional\n include_body=False\n)",
9870 "version": "2"
9871 },
9872 "csharp": {
9873 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK.AWS.Lambda;\n\nVersion version;\n\nLambdaFunctionAssociation lambdaFunctionAssociation = new LambdaFunctionAssociation {\n EventType = LambdaEdgeEventType.ORIGIN_REQUEST,\n LambdaFunction = version,\n\n // the properties below are optional\n IncludeBody = false\n};",
9874 "version": "1"
9875 },
9876 "java": {
9877 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nVersion version;\n\nLambdaFunctionAssociation lambdaFunctionAssociation = LambdaFunctionAssociation.builder()\n .eventType(LambdaEdgeEventType.ORIGIN_REQUEST)\n .lambdaFunction(version)\n\n // the properties below are optional\n .includeBody(false)\n .build();",
9878 "version": "1"
9879 },
9880 "go": {
9881 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\n\nvar version version\n\nlambdaFunctionAssociation := &lambdaFunctionAssociation{\n\teventType: cloudfront.lambdaEdgeEventType_ORIGIN_REQUEST,\n\tlambdaFunction: version,\n\n\t// the properties below are optional\n\tincludeBody: jsii.Boolean(false),\n}",
9882 "version": "1"
9883 },
9884 "$": {
9885 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\n\ndeclare const version: lambda.Version;\nconst lambdaFunctionAssociation: cloudfront.LambdaFunctionAssociation = {\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambdaFunction: version,\n\n // the properties below are optional\n includeBody: false,\n};",
9886 "version": "0"
9887 }
9888 },
9889 "location": {
9890 "api": {
9891 "api": "type",
9892 "fqn": "@aws-cdk/aws-cloudfront.LambdaFunctionAssociation"
9893 },
9894 "field": {
9895 "field": "example"
9896 }
9897 },
9898 "didCompile": true,
9899 "fqnsReferenced": [
9900 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
9901 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
9902 "@aws-cdk/aws-cloudfront.LambdaFunctionAssociation",
9903 "@aws-cdk/aws-lambda.IVersion"
9904 ],
9905 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\n\ndeclare const version: lambda.Version;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst lambdaFunctionAssociation: cloudfront.LambdaFunctionAssociation = {\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambdaFunction: version,\n\n // the properties below are optional\n includeBody: false,\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9906 "syntaxKindCounter": {
9907 "10": 2,
9908 "75": 15,
9909 "91": 1,
9910 "130": 1,
9911 "153": 2,
9912 "169": 2,
9913 "193": 1,
9914 "194": 2,
9915 "225": 2,
9916 "242": 2,
9917 "243": 2,
9918 "254": 2,
9919 "255": 2,
9920 "256": 2,
9921 "281": 3,
9922 "290": 1
9923 },
9924 "fqnsFingerprint": "205fa3f70268c0595fc8528f5797481e7c0eed2d0fbaae3aefb2d4ebbdddef3b"
9925 },
9926 "ae1da42ab7ab63abc40147bdee0ea2d34d9fd9f7939ed396c367f9bf264b6788": {
9927 "translations": {
9928 "python": {
9929 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.aws_s3 as s3\n\n# bucket: s3.Bucket\n\nlogging_configuration = cloudfront.LoggingConfiguration(\n bucket=bucket,\n include_cookies=False,\n prefix=\"prefix\"\n)",
9930 "version": "2"
9931 },
9932 "csharp": {
9933 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK.AWS.S3;\n\nBucket bucket;\n\nLoggingConfiguration loggingConfiguration = new LoggingConfiguration {\n Bucket = bucket,\n IncludeCookies = false,\n Prefix = \"prefix\"\n};",
9934 "version": "1"
9935 },
9936 "java": {
9937 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.services.s3.*;\n\nBucket bucket;\n\nLoggingConfiguration loggingConfiguration = LoggingConfiguration.builder()\n .bucket(bucket)\n .includeCookies(false)\n .prefix(\"prefix\")\n .build();",
9938 "version": "1"
9939 },
9940 "go": {
9941 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport s3 \"github.com/aws-samples/dummy/awscdkawss3\"\n\nvar bucket bucket\n\nloggingConfiguration := &loggingConfiguration{\n\tbucket: bucket,\n\tincludeCookies: jsii.Boolean(false),\n\tprefix: jsii.String(\"prefix\"),\n}",
9942 "version": "1"
9943 },
9944 "$": {
9945 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as s3 from '@aws-cdk/aws-s3';\n\ndeclare const bucket: s3.Bucket;\nconst loggingConfiguration: cloudfront.LoggingConfiguration = {\n bucket: bucket,\n includeCookies: false,\n prefix: 'prefix',\n};",
9946 "version": "0"
9947 }
9948 },
9949 "location": {
9950 "api": {
9951 "api": "type",
9952 "fqn": "@aws-cdk/aws-cloudfront.LoggingConfiguration"
9953 },
9954 "field": {
9955 "field": "example"
9956 }
9957 },
9958 "didCompile": true,
9959 "fqnsReferenced": [
9960 "@aws-cdk/aws-cloudfront.LoggingConfiguration",
9961 "@aws-cdk/aws-s3.IBucket"
9962 ],
9963 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as s3 from '@aws-cdk/aws-s3';\n\ndeclare const bucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst loggingConfiguration: cloudfront.LoggingConfiguration = {\n bucket: bucket,\n includeCookies: false,\n prefix: 'prefix',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
9964 "syntaxKindCounter": {
9965 "10": 3,
9966 "75": 12,
9967 "91": 1,
9968 "130": 1,
9969 "153": 2,
9970 "169": 2,
9971 "193": 1,
9972 "225": 2,
9973 "242": 2,
9974 "243": 2,
9975 "254": 2,
9976 "255": 2,
9977 "256": 2,
9978 "281": 3,
9979 "290": 1
9980 },
9981 "fqnsFingerprint": "47223c384b1e6f257aeac1f4dedb3e5da14ac02604dec5611a12dcf320877198"
9982 },
9983 "d59a5926bfbf0becfe584e49a9dc40ea5f6ed69544440219c7dc80f6bcf3562e": {
9984 "translations": {
9985 "python": {
9986 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_access_identity = cloudfront.OriginAccessIdentity(self, \"MyOriginAccessIdentity\",\n comment=\"comment\"\n)",
9987 "version": "2"
9988 },
9989 "csharp": {
9990 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginAccessIdentity originAccessIdentity = new OriginAccessIdentity(this, \"MyOriginAccessIdentity\", new OriginAccessIdentityProps {\n Comment = \"comment\"\n});",
9991 "version": "1"
9992 },
9993 "java": {
9994 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginAccessIdentity originAccessIdentity = OriginAccessIdentity.Builder.create(this, \"MyOriginAccessIdentity\")\n .comment(\"comment\")\n .build();",
9995 "version": "1"
9996 },
9997 "go": {
9998 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginAccessIdentity := cloudfront.NewOriginAccessIdentity(this, jsii.String(\"MyOriginAccessIdentity\"), &originAccessIdentityProps{\n\tcomment: jsii.String(\"comment\"),\n})",
9999 "version": "1"
10000 },
10001 "$": {
10002 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originAccessIdentity = new cloudfront.OriginAccessIdentity(this, 'MyOriginAccessIdentity', /* all optional props */ {\n comment: 'comment',\n});",
10003 "version": "0"
10004 }
10005 },
10006 "location": {
10007 "api": {
10008 "api": "type",
10009 "fqn": "@aws-cdk/aws-cloudfront.OriginAccessIdentity"
10010 },
10011 "field": {
10012 "field": "example"
10013 }
10014 },
10015 "didCompile": true,
10016 "fqnsReferenced": [
10017 "@aws-cdk/aws-cloudfront.OriginAccessIdentity",
10018 "@aws-cdk/aws-cloudfront.OriginAccessIdentityProps",
10019 "constructs.Construct"
10020 ],
10021 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originAccessIdentity = new cloudfront.OriginAccessIdentity(this, 'MyOriginAccessIdentity', /* all optional props */ {\n comment: 'comment',\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10022 "syntaxKindCounter": {
10023 "10": 3,
10024 "75": 5,
10025 "104": 1,
10026 "193": 1,
10027 "194": 1,
10028 "197": 1,
10029 "225": 1,
10030 "242": 1,
10031 "243": 1,
10032 "254": 1,
10033 "255": 1,
10034 "256": 1,
10035 "281": 1,
10036 "290": 1
10037 },
10038 "fqnsFingerprint": "fd46f451a13bb508e923bf0a1f686605974bc5ab68ddfba5efaba749af603651"
10039 },
10040 "52759d36d36c9ee594ef2d3917a923ac85359cc2d70fbf1909420bd87c4157ca": {
10041 "translations": {
10042 "python": {
10043 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_access_identity_props = cloudfront.OriginAccessIdentityProps(\n comment=\"comment\"\n)",
10044 "version": "2"
10045 },
10046 "csharp": {
10047 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginAccessIdentityProps originAccessIdentityProps = new OriginAccessIdentityProps {\n Comment = \"comment\"\n};",
10048 "version": "1"
10049 },
10050 "java": {
10051 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginAccessIdentityProps originAccessIdentityProps = OriginAccessIdentityProps.builder()\n .comment(\"comment\")\n .build();",
10052 "version": "1"
10053 },
10054 "go": {
10055 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginAccessIdentityProps := &originAccessIdentityProps{\n\tcomment: jsii.String(\"comment\"),\n}",
10056 "version": "1"
10057 },
10058 "$": {
10059 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originAccessIdentityProps: cloudfront.OriginAccessIdentityProps = {\n comment: 'comment',\n};",
10060 "version": "0"
10061 }
10062 },
10063 "location": {
10064 "api": {
10065 "api": "type",
10066 "fqn": "@aws-cdk/aws-cloudfront.OriginAccessIdentityProps"
10067 },
10068 "field": {
10069 "field": "example"
10070 }
10071 },
10072 "didCompile": true,
10073 "fqnsReferenced": [
10074 "@aws-cdk/aws-cloudfront.OriginAccessIdentityProps"
10075 ],
10076 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originAccessIdentityProps: cloudfront.OriginAccessIdentityProps = {\n comment: 'comment',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10077 "syntaxKindCounter": {
10078 "10": 2,
10079 "75": 5,
10080 "153": 1,
10081 "169": 1,
10082 "193": 1,
10083 "225": 1,
10084 "242": 1,
10085 "243": 1,
10086 "254": 1,
10087 "255": 1,
10088 "256": 1,
10089 "281": 1,
10090 "290": 1
10091 },
10092 "fqnsFingerprint": "79ca006b514e546a3bb9318844dc8ab632f3b82332f04949f277fa2d3fb957c0"
10093 },
10094 "b9fe386707abec00b4427a6e2b04927d80efa23cffad0f00f461e7c6c6032a7c": {
10095 "translations": {
10096 "python": {
10097 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\n# origin: cloudfront.IOrigin\n\norigin_bind_config = cloudfront.OriginBindConfig(\n failover_config=cloudfront.OriginFailoverConfig(\n failover_origin=origin,\n\n # the properties below are optional\n status_codes=[123]\n ),\n origin_property=cloudfront.CfnDistribution.OriginProperty(\n domain_name=\"domainName\",\n id=\"id\",\n\n # the properties below are optional\n connection_attempts=123,\n connection_timeout=123,\n custom_origin_config=cloudfront.CfnDistribution.CustomOriginConfigProperty(\n origin_protocol_policy=\"originProtocolPolicy\",\n\n # the properties below are optional\n http_port=123,\n https_port=123,\n origin_keepalive_timeout=123,\n origin_read_timeout=123,\n origin_ssl_protocols=[\"originSslProtocols\"]\n ),\n origin_access_control_id=\"originAccessControlId\",\n origin_custom_headers=[cloudfront.CfnDistribution.OriginCustomHeaderProperty(\n header_name=\"headerName\",\n header_value=\"headerValue\"\n )],\n origin_path=\"originPath\",\n origin_shield=cloudfront.CfnDistribution.OriginShieldProperty(\n enabled=False,\n origin_shield_region=\"originShieldRegion\"\n ),\n s3_origin_config=cloudfront.CfnDistribution.S3OriginConfigProperty(\n origin_access_identity=\"originAccessIdentity\"\n )\n )\n)",
10098 "version": "2"
10099 },
10100 "csharp": {
10101 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nIOrigin origin;\n\nOriginBindConfig originBindConfig = new OriginBindConfig {\n FailoverConfig = new OriginFailoverConfig {\n FailoverOrigin = origin,\n\n // the properties below are optional\n StatusCodes = new [] { 123 }\n },\n OriginProperty = new OriginProperty {\n DomainName = \"domainName\",\n Id = \"id\",\n\n // the properties below are optional\n ConnectionAttempts = 123,\n ConnectionTimeout = 123,\n CustomOriginConfig = new CustomOriginConfigProperty {\n OriginProtocolPolicy = \"originProtocolPolicy\",\n\n // the properties below are optional\n HttpPort = 123,\n HttpsPort = 123,\n OriginKeepaliveTimeout = 123,\n OriginReadTimeout = 123,\n OriginSslProtocols = new [] { \"originSslProtocols\" }\n },\n OriginAccessControlId = \"originAccessControlId\",\n OriginCustomHeaders = new [] { new OriginCustomHeaderProperty {\n HeaderName = \"headerName\",\n HeaderValue = \"headerValue\"\n } },\n OriginPath = \"originPath\",\n OriginShield = new OriginShieldProperty {\n Enabled = false,\n OriginShieldRegion = \"originShieldRegion\"\n },\n S3OriginConfig = new S3OriginConfigProperty {\n OriginAccessIdentity = \"originAccessIdentity\"\n }\n }\n};",
10102 "version": "1"
10103 },
10104 "java": {
10105 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nIOrigin origin;\n\nOriginBindConfig originBindConfig = OriginBindConfig.builder()\n .failoverConfig(OriginFailoverConfig.builder()\n .failoverOrigin(origin)\n\n // the properties below are optional\n .statusCodes(List.of(123))\n .build())\n .originProperty(OriginProperty.builder()\n .domainName(\"domainName\")\n .id(\"id\")\n\n // the properties below are optional\n .connectionAttempts(123)\n .connectionTimeout(123)\n .customOriginConfig(CustomOriginConfigProperty.builder()\n .originProtocolPolicy(\"originProtocolPolicy\")\n\n // the properties below are optional\n .httpPort(123)\n .httpsPort(123)\n .originKeepaliveTimeout(123)\n .originReadTimeout(123)\n .originSslProtocols(List.of(\"originSslProtocols\"))\n .build())\n .originAccessControlId(\"originAccessControlId\")\n .originCustomHeaders(List.of(OriginCustomHeaderProperty.builder()\n .headerName(\"headerName\")\n .headerValue(\"headerValue\")\n .build()))\n .originPath(\"originPath\")\n .originShield(OriginShieldProperty.builder()\n .enabled(false)\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .s3OriginConfig(S3OriginConfigProperty.builder()\n .originAccessIdentity(\"originAccessIdentity\")\n .build())\n .build())\n .build();",
10106 "version": "1"
10107 },
10108 "go": {
10109 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nvar origin iOrigin\n\noriginBindConfig := &originBindConfig{\n\tfailoverConfig: &originFailoverConfig{\n\t\tfailoverOrigin: origin,\n\n\t\t// the properties below are optional\n\t\tstatusCodes: []*f64{\n\t\t\tjsii.Number(123),\n\t\t},\n\t},\n\toriginProperty: &originProperty{\n\t\tdomainName: jsii.String(\"domainName\"),\n\t\tid: jsii.String(\"id\"),\n\n\t\t// the properties below are optional\n\t\tconnectionAttempts: jsii.Number(123),\n\t\tconnectionTimeout: jsii.Number(123),\n\t\tcustomOriginConfig: &customOriginConfigProperty{\n\t\t\toriginProtocolPolicy: jsii.String(\"originProtocolPolicy\"),\n\n\t\t\t// the properties below are optional\n\t\t\thttpPort: jsii.Number(123),\n\t\t\thttpsPort: jsii.Number(123),\n\t\t\toriginKeepaliveTimeout: jsii.Number(123),\n\t\t\toriginReadTimeout: jsii.Number(123),\n\t\t\toriginSslProtocols: []*string{\n\t\t\t\tjsii.String(\"originSslProtocols\"),\n\t\t\t},\n\t\t},\n\t\toriginAccessControlId: jsii.String(\"originAccessControlId\"),\n\t\toriginCustomHeaders: []interface{}{\n\t\t\t&originCustomHeaderProperty{\n\t\t\t\theaderName: jsii.String(\"headerName\"),\n\t\t\t\theaderValue: jsii.String(\"headerValue\"),\n\t\t\t},\n\t\t},\n\t\toriginPath: jsii.String(\"originPath\"),\n\t\toriginShield: &originShieldProperty{\n\t\t\tenabled: jsii.Boolean(false),\n\t\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t\t},\n\t\ts3OriginConfig: &s3OriginConfigProperty{\n\t\t\toriginAccessIdentity: jsii.String(\"originAccessIdentity\"),\n\t\t},\n\t},\n}",
10110 "version": "1"
10111 },
10112 "$": {
10113 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const origin: cloudfront.IOrigin;\nconst originBindConfig: cloudfront.OriginBindConfig = {\n failoverConfig: {\n failoverOrigin: origin,\n\n // the properties below are optional\n statusCodes: [123],\n },\n originProperty: {\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n },\n};",
10114 "version": "0"
10115 }
10116 },
10117 "location": {
10118 "api": {
10119 "api": "type",
10120 "fqn": "@aws-cdk/aws-cloudfront.OriginBindConfig"
10121 },
10122 "field": {
10123 "field": "example"
10124 }
10125 },
10126 "didCompile": true,
10127 "fqnsReferenced": [
10128 "@aws-cdk/aws-cloudfront.CfnDistribution.OriginProperty",
10129 "@aws-cdk/aws-cloudfront.IOrigin",
10130 "@aws-cdk/aws-cloudfront.OriginBindConfig",
10131 "@aws-cdk/aws-cloudfront.OriginFailoverConfig"
10132 ],
10133 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const origin: cloudfront.IOrigin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originBindConfig: cloudfront.OriginBindConfig = {\n failoverConfig: {\n failoverOrigin: origin,\n\n // the properties below are optional\n statusCodes: [123],\n },\n originProperty: {\n domainName: 'domainName',\n id: 'id',\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: 123,\n customOriginConfig: {\n originProtocolPolicy: 'originProtocolPolicy',\n\n // the properties below are optional\n httpPort: 123,\n httpsPort: 123,\n originKeepaliveTimeout: 123,\n originReadTimeout: 123,\n originSslProtocols: ['originSslProtocols'],\n },\n originAccessControlId: 'originAccessControlId',\n originCustomHeaders: [{\n headerName: 'headerName',\n headerValue: 'headerValue',\n }],\n originPath: 'originPath',\n originShield: {\n enabled: false,\n originShieldRegion: 'originShieldRegion',\n },\n s3OriginConfig: {\n originAccessIdentity: 'originAccessIdentity',\n },\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10134 "syntaxKindCounter": {
10135 "8": 7,
10136 "10": 11,
10137 "75": 33,
10138 "91": 1,
10139 "130": 1,
10140 "153": 2,
10141 "169": 2,
10142 "192": 3,
10143 "193": 7,
10144 "225": 2,
10145 "242": 2,
10146 "243": 2,
10147 "254": 1,
10148 "255": 1,
10149 "256": 1,
10150 "281": 25,
10151 "290": 1
10152 },
10153 "fqnsFingerprint": "9adcba9b96edc07a255155a8b9003c3f4d42ba8c2d566b45445e8297bac40f6e"
10154 },
10155 "3a0caaf886e5151eecaf7da879e75fccccf12e4c6dd98c0b1882ed5f4c8611fd": {
10156 "translations": {
10157 "python": {
10158 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\norigin_bind_options = cloudfront.OriginBindOptions(\n origin_id=\"originId\"\n)",
10159 "version": "2"
10160 },
10161 "csharp": {
10162 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nOriginBindOptions originBindOptions = new OriginBindOptions {\n OriginId = \"originId\"\n};",
10163 "version": "1"
10164 },
10165 "java": {
10166 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nOriginBindOptions originBindOptions = OriginBindOptions.builder()\n .originId(\"originId\")\n .build();",
10167 "version": "1"
10168 },
10169 "go": {
10170 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\noriginBindOptions := &originBindOptions{\n\toriginId: jsii.String(\"originId\"),\n}",
10171 "version": "1"
10172 },
10173 "$": {
10174 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst originBindOptions: cloudfront.OriginBindOptions = {\n originId: 'originId',\n};",
10175 "version": "0"
10176 }
10177 },
10178 "location": {
10179 "api": {
10180 "api": "type",
10181 "fqn": "@aws-cdk/aws-cloudfront.OriginBindOptions"
10182 },
10183 "field": {
10184 "field": "example"
10185 }
10186 },
10187 "didCompile": true,
10188 "fqnsReferenced": [
10189 "@aws-cdk/aws-cloudfront.OriginBindOptions"
10190 ],
10191 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originBindOptions: cloudfront.OriginBindOptions = {\n originId: 'originId',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10192 "syntaxKindCounter": {
10193 "10": 2,
10194 "75": 5,
10195 "153": 1,
10196 "169": 1,
10197 "193": 1,
10198 "225": 1,
10199 "242": 1,
10200 "243": 1,
10201 "254": 1,
10202 "255": 1,
10203 "256": 1,
10204 "281": 1,
10205 "290": 1
10206 },
10207 "fqnsFingerprint": "07e55b2850d654fe4300e7b44c73dc3b96af47eec7bbb4cf831227d685f44b79"
10208 },
10209 "f3614ecb0ae0fce71fbdd8f9780eb1334a14cce5e2975af61242eda44e5b0139": {
10210 "translations": {
10211 "python": {
10212 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\n# origin: cloudfront.IOrigin\n\norigin_failover_config = cloudfront.OriginFailoverConfig(\n failover_origin=origin,\n\n # the properties below are optional\n status_codes=[123]\n)",
10213 "version": "2"
10214 },
10215 "csharp": {
10216 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nIOrigin origin;\n\nOriginFailoverConfig originFailoverConfig = new OriginFailoverConfig {\n FailoverOrigin = origin,\n\n // the properties below are optional\n StatusCodes = new [] { 123 }\n};",
10217 "version": "1"
10218 },
10219 "java": {
10220 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nIOrigin origin;\n\nOriginFailoverConfig originFailoverConfig = OriginFailoverConfig.builder()\n .failoverOrigin(origin)\n\n // the properties below are optional\n .statusCodes(List.of(123))\n .build();",
10221 "version": "1"
10222 },
10223 "go": {
10224 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nvar origin iOrigin\n\noriginFailoverConfig := &originFailoverConfig{\n\tfailoverOrigin: origin,\n\n\t// the properties below are optional\n\tstatusCodes: []*f64{\n\t\tjsii.Number(123),\n\t},\n}",
10225 "version": "1"
10226 },
10227 "$": {
10228 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const origin: cloudfront.IOrigin;\nconst originFailoverConfig: cloudfront.OriginFailoverConfig = {\n failoverOrigin: origin,\n\n // the properties below are optional\n statusCodes: [123],\n};",
10229 "version": "0"
10230 }
10231 },
10232 "location": {
10233 "api": {
10234 "api": "type",
10235 "fqn": "@aws-cdk/aws-cloudfront.OriginFailoverConfig"
10236 },
10237 "field": {
10238 "field": "example"
10239 }
10240 },
10241 "didCompile": true,
10242 "fqnsReferenced": [
10243 "@aws-cdk/aws-cloudfront.IOrigin",
10244 "@aws-cdk/aws-cloudfront.OriginFailoverConfig"
10245 ],
10246 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n\ndeclare const origin: cloudfront.IOrigin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originFailoverConfig: cloudfront.OriginFailoverConfig = {\n failoverOrigin: origin,\n\n // the properties below are optional\n statusCodes: [123],\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10247 "syntaxKindCounter": {
10248 "8": 1,
10249 "10": 1,
10250 "75": 10,
10251 "130": 1,
10252 "153": 2,
10253 "169": 2,
10254 "192": 1,
10255 "193": 1,
10256 "225": 2,
10257 "242": 2,
10258 "243": 2,
10259 "254": 1,
10260 "255": 1,
10261 "256": 1,
10262 "281": 2,
10263 "290": 1
10264 },
10265 "fqnsFingerprint": "c270ce9cb3a4068da9b0bbe9c6db743b5b3f64b826deeb6d159f3b2bad27a465"
10266 },
10267 "596f70187cabe35a44070539f9f794ab22dde87a3163f9b824aaae7684c0ecef": {
10268 "translations": {
10269 "python": {
10270 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.core as cdk\n\norigin_options = cloudfront.OriginOptions(\n connection_attempts=123,\n connection_timeout=cdk.Duration.minutes(30),\n custom_headers={\n \"custom_headers_key\": \"customHeaders\"\n },\n origin_shield_region=\"originShieldRegion\"\n)",
10271 "version": "2"
10272 },
10273 "csharp": {
10274 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK;\nOriginOptions originOptions = new OriginOptions {\n ConnectionAttempts = 123,\n ConnectionTimeout = Duration.Minutes(30),\n CustomHeaders = new Dictionary<string, string> {\n { \"customHeadersKey\", \"customHeaders\" }\n },\n OriginShieldRegion = \"originShieldRegion\"\n};",
10275 "version": "1"
10276 },
10277 "java": {
10278 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.core.*;\n\nOriginOptions originOptions = OriginOptions.builder()\n .connectionAttempts(123)\n .connectionTimeout(Duration.minutes(30))\n .customHeaders(Map.of(\n \"customHeadersKey\", \"customHeaders\"))\n .originShieldRegion(\"originShieldRegion\")\n .build();",
10279 "version": "1"
10280 },
10281 "go": {
10282 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\noriginOptions := &originOptions{\n\tconnectionAttempts: jsii.Number(123),\n\tconnectionTimeout: cdk.duration.minutes(jsii.Number(30)),\n\tcustomHeaders: map[string]*string{\n\t\t\"customHeadersKey\": jsii.String(\"customHeaders\"),\n\t},\n\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n}",
10283 "version": "1"
10284 },
10285 "$": {
10286 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as cdk from '@aws-cdk/core';\nconst originOptions: cloudfront.OriginOptions = {\n connectionAttempts: 123,\n connectionTimeout: cdk.Duration.minutes(30),\n customHeaders: {\n customHeadersKey: 'customHeaders',\n },\n originShieldRegion: 'originShieldRegion',\n};",
10287 "version": "0"
10288 }
10289 },
10290 "location": {
10291 "api": {
10292 "api": "type",
10293 "fqn": "@aws-cdk/aws-cloudfront.OriginOptions"
10294 },
10295 "field": {
10296 "field": "example"
10297 }
10298 },
10299 "didCompile": true,
10300 "fqnsReferenced": [
10301 "@aws-cdk/aws-cloudfront.OriginOptions",
10302 "@aws-cdk/core.Duration",
10303 "@aws-cdk/core.Duration#minutes"
10304 ],
10305 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as cdk from '@aws-cdk/core';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originOptions: cloudfront.OriginOptions = {\n connectionAttempts: 123,\n connectionTimeout: cdk.Duration.minutes(30),\n customHeaders: {\n customHeadersKey: 'customHeaders',\n },\n originShieldRegion: 'originShieldRegion',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10306 "syntaxKindCounter": {
10307 "8": 2,
10308 "10": 4,
10309 "75": 13,
10310 "153": 1,
10311 "169": 1,
10312 "193": 2,
10313 "194": 2,
10314 "196": 1,
10315 "225": 1,
10316 "242": 1,
10317 "243": 1,
10318 "254": 2,
10319 "255": 2,
10320 "256": 2,
10321 "281": 5,
10322 "290": 1
10323 },
10324 "fqnsFingerprint": "1993c26f09d9f343ce00f10248e507a33f35ae16d3f67795858bdf7525f5735e"
10325 },
10326 "5a29d3b0e72b09dc446817b5767f3ec5198db753c55a96a057c8b291ec683115": {
10327 "translations": {
10328 "python": {
10329 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.core as cdk\n\norigin_props = cloudfront.OriginProps(\n connection_attempts=123,\n connection_timeout=cdk.Duration.minutes(30),\n custom_headers={\n \"custom_headers_key\": \"customHeaders\"\n },\n origin_path=\"originPath\",\n origin_shield_region=\"originShieldRegion\"\n)",
10330 "version": "2"
10331 },
10332 "csharp": {
10333 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK;\nOriginProps originProps = new OriginProps {\n ConnectionAttempts = 123,\n ConnectionTimeout = Duration.Minutes(30),\n CustomHeaders = new Dictionary<string, string> {\n { \"customHeadersKey\", \"customHeaders\" }\n },\n OriginPath = \"originPath\",\n OriginShieldRegion = \"originShieldRegion\"\n};",
10334 "version": "1"
10335 },
10336 "java": {
10337 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.core.*;\n\nOriginProps originProps = OriginProps.builder()\n .connectionAttempts(123)\n .connectionTimeout(Duration.minutes(30))\n .customHeaders(Map.of(\n \"customHeadersKey\", \"customHeaders\"))\n .originPath(\"originPath\")\n .originShieldRegion(\"originShieldRegion\")\n .build();",
10338 "version": "1"
10339 },
10340 "go": {
10341 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\noriginProps := &originProps{\n\tconnectionAttempts: jsii.Number(123),\n\tconnectionTimeout: cdk.duration.minutes(jsii.Number(30)),\n\tcustomHeaders: map[string]*string{\n\t\t\"customHeadersKey\": jsii.String(\"customHeaders\"),\n\t},\n\toriginPath: jsii.String(\"originPath\"),\n\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n}",
10342 "version": "1"
10343 },
10344 "$": {
10345 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as cdk from '@aws-cdk/core';\nconst originProps: cloudfront.OriginProps = {\n connectionAttempts: 123,\n connectionTimeout: cdk.Duration.minutes(30),\n customHeaders: {\n customHeadersKey: 'customHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n};",
10346 "version": "0"
10347 }
10348 },
10349 "location": {
10350 "api": {
10351 "api": "type",
10352 "fqn": "@aws-cdk/aws-cloudfront.OriginProps"
10353 },
10354 "field": {
10355 "field": "example"
10356 }
10357 },
10358 "didCompile": true,
10359 "fqnsReferenced": [
10360 "@aws-cdk/aws-cloudfront.OriginProps",
10361 "@aws-cdk/core.Duration",
10362 "@aws-cdk/core.Duration#minutes"
10363 ],
10364 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as cdk from '@aws-cdk/core';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst originProps: cloudfront.OriginProps = {\n connectionAttempts: 123,\n connectionTimeout: cdk.Duration.minutes(30),\n customHeaders: {\n customHeadersKey: 'customHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10365 "syntaxKindCounter": {
10366 "8": 2,
10367 "10": 5,
10368 "75": 14,
10369 "153": 1,
10370 "169": 1,
10371 "193": 2,
10372 "194": 2,
10373 "196": 1,
10374 "225": 1,
10375 "242": 1,
10376 "243": 1,
10377 "254": 2,
10378 "255": 2,
10379 "256": 2,
10380 "281": 6,
10381 "290": 1
10382 },
10383 "fqnsFingerprint": "cb2c3e15c50242d348d8758f249d27d3c963f916d708964033d43f4b14570bd2"
10384 },
10385 "09b40fe5ef23434153defc89d705f696eace9318390fcc3a2a45e76d601dbc3a": {
10386 "translations": {
10387 "python": {
10388 "source": "import aws_cdk.aws_elasticloadbalancingv2 as elbv2\n\n# load_balancer: elbv2.ApplicationLoadBalancer\n\norigin = origins.LoadBalancerV2Origin(load_balancer,\n connection_attempts=3,\n connection_timeout=Duration.seconds(5),\n read_timeout=Duration.seconds(45),\n keepalive_timeout=Duration.seconds(45),\n protocol_policy=cloudfront.OriginProtocolPolicy.MATCH_VIEWER\n)",
10389 "version": "2"
10390 },
10391 "csharp": {
10392 "source": "using Amazon.CDK.AWS.ElasticLoadBalancingV2;\n\nApplicationLoadBalancer loadBalancer;\n\nLoadBalancerV2Origin origin = new LoadBalancerV2Origin(loadBalancer, new LoadBalancerV2OriginProps {\n ConnectionAttempts = 3,\n ConnectionTimeout = Duration.Seconds(5),\n ReadTimeout = Duration.Seconds(45),\n KeepaliveTimeout = Duration.Seconds(45),\n ProtocolPolicy = OriginProtocolPolicy.MATCH_VIEWER\n});",
10393 "version": "1"
10394 },
10395 "java": {
10396 "source": "import software.amazon.awscdk.services.elasticloadbalancingv2.*;\n\nApplicationLoadBalancer loadBalancer;\n\nLoadBalancerV2Origin origin = LoadBalancerV2Origin.Builder.create(loadBalancer)\n .connectionAttempts(3)\n .connectionTimeout(Duration.seconds(5))\n .readTimeout(Duration.seconds(45))\n .keepaliveTimeout(Duration.seconds(45))\n .protocolPolicy(OriginProtocolPolicy.MATCH_VIEWER)\n .build();",
10397 "version": "1"
10398 },
10399 "go": {
10400 "source": "import elbv2 \"github.com/aws-samples/dummy/awscdkawselasticloadbalancingv2\"\n\nvar loadBalancer applicationLoadBalancer\n\norigin := origins.NewLoadBalancerV2Origin(loadBalancer, &loadBalancerV2OriginProps{\n\tconnectionAttempts: jsii.Number(3),\n\tconnectionTimeout: *awscdkcore.Duration.seconds(jsii.Number(5)),\n\treadTimeout: *awscdkcore.Duration.seconds(jsii.Number(45)),\n\tkeepaliveTimeout: *awscdkcore.Duration.seconds(jsii.Number(45)),\n\tprotocolPolicy: cloudfront.originProtocolPolicy_MATCH_VIEWER,\n})",
10401 "version": "1"
10402 },
10403 "$": {
10404 "source": "import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\n\ndeclare const loadBalancer: elbv2.ApplicationLoadBalancer;\nconst origin = new origins.LoadBalancerV2Origin(loadBalancer, {\n connectionAttempts: 3,\n connectionTimeout: Duration.seconds(5),\n readTimeout: Duration.seconds(45),\n keepaliveTimeout: Duration.seconds(45),\n protocolPolicy: cloudfront.OriginProtocolPolicy.MATCH_VIEWER,\n});",
10405 "version": "0"
10406 }
10407 },
10408 "location": {
10409 "api": {
10410 "api": "type",
10411 "fqn": "@aws-cdk/aws-cloudfront.OriginProtocolPolicy"
10412 },
10413 "field": {
10414 "field": "example"
10415 }
10416 },
10417 "didCompile": true,
10418 "fqnsReferenced": [
10419 "@aws-cdk/aws-cloudfront-origins.LoadBalancerV2Origin",
10420 "@aws-cdk/aws-cloudfront-origins.LoadBalancerV2OriginProps",
10421 "@aws-cdk/aws-cloudfront.OriginProtocolPolicy",
10422 "@aws-cdk/aws-cloudfront.OriginProtocolPolicy#MATCH_VIEWER",
10423 "@aws-cdk/aws-elasticloadbalancingv2.ILoadBalancerV2",
10424 "@aws-cdk/core.Duration",
10425 "@aws-cdk/core.Duration#seconds"
10426 ],
10427 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\n\ndeclare const loadBalancer: elbv2.ApplicationLoadBalancer;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Duration, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as apigateway from '@aws-cdk/aws-apigateway';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\n\nclass 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 origin = new origins.LoadBalancerV2Origin(loadBalancer, {\n connectionAttempts: 3,\n connectionTimeout: Duration.seconds(5),\n readTimeout: Duration.seconds(45),\n keepaliveTimeout: Duration.seconds(45),\n protocolPolicy: cloudfront.OriginProtocolPolicy.MATCH_VIEWER,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n \n }\n}\n",
10428 "syntaxKindCounter": {
10429 "8": 4,
10430 "10": 1,
10431 "75": 22,
10432 "130": 1,
10433 "153": 1,
10434 "169": 1,
10435 "193": 1,
10436 "194": 6,
10437 "196": 3,
10438 "197": 1,
10439 "225": 2,
10440 "242": 2,
10441 "243": 2,
10442 "254": 1,
10443 "255": 1,
10444 "256": 1,
10445 "281": 5,
10446 "290": 1
10447 },
10448 "fqnsFingerprint": "e89176c4dbdf444687a7395f9cc7fd604c0f068646307c2f7a7ace616768d74d"
10449 },
10450 "075e4b4dd935407a936679f65626f2c3707a4a3f3ff8bc3d71d7bde2696fe063": {
10451 "translations": {
10452 "python": {
10453 "source": "# Creating a custom origin request policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_origin_request_policy = cloudfront.OriginRequestPolicy(self, \"OriginRequestPolicy\",\n origin_request_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cookie_behavior=cloudfront.OriginRequestCookieBehavior.none(),\n header_behavior=cloudfront.OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"),\n query_string_behavior=cloudfront.OriginRequestQueryStringBehavior.allow_list(\"username\")\n)\n\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=my_origin_request_policy\n )\n)",
10454 "version": "2"
10455 },
10456 "csharp": {
10457 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = new OriginRequestPolicy(this, \"OriginRequestPolicy\", new OriginRequestPolicyProps {\n OriginRequestPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CookieBehavior = OriginRequestCookieBehavior.None(),\n HeaderBehavior = OriginRequestHeaderBehavior.All(\"CloudFront-Is-Android-Viewer\"),\n QueryStringBehavior = OriginRequestQueryStringBehavior.AllowList(\"username\")\n});\n\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = myOriginRequestPolicy\n }\n});",
10458 "version": "1"
10459 },
10460 "java": {
10461 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = OriginRequestPolicy.Builder.create(this, \"OriginRequestPolicy\")\n .originRequestPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .cookieBehavior(OriginRequestCookieBehavior.none())\n .headerBehavior(OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"))\n .queryStringBehavior(OriginRequestQueryStringBehavior.allowList(\"username\"))\n .build();\n\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(myOriginRequestPolicy)\n .build())\n .build();",
10462 "version": "1"
10463 },
10464 "go": {
10465 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyOriginRequestPolicy := cloudfront.NewOriginRequestPolicy(this, jsii.String(\"OriginRequestPolicy\"), &originRequestPolicyProps{\n\toriginRequestPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcookieBehavior: cloudfront.originRequestCookieBehavior.none(),\n\theaderBehavior: cloudfront.originRequestHeaderBehavior.all(jsii.String(\"CloudFront-Is-Android-Viewer\")),\n\tqueryStringBehavior: cloudfront.originRequestQueryStringBehavior.allowList(jsii.String(\"username\")),\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: myOriginRequestPolicy,\n\t},\n})",
10466 "version": "1"
10467 },
10468 "$": {
10469 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});",
10470 "version": "0"
10471 }
10472 },
10473 "location": {
10474 "api": {
10475 "api": "type",
10476 "fqn": "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior"
10477 },
10478 "field": {
10479 "field": "example"
10480 }
10481 },
10482 "didCompile": true,
10483 "fqnsReferenced": [
10484 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10485 "@aws-cdk/aws-cloudfront.Distribution",
10486 "@aws-cdk/aws-cloudfront.DistributionProps",
10487 "@aws-cdk/aws-cloudfront.IOrigin",
10488 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
10489 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
10490 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
10491 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
10492 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
10493 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
10494 "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
10495 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
10496 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
10497 "constructs.Construct"
10498 ],
10499 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10500 "syntaxKindCounter": {
10501 "10": 6,
10502 "75": 27,
10503 "104": 2,
10504 "130": 1,
10505 "153": 1,
10506 "169": 1,
10507 "193": 3,
10508 "194": 8,
10509 "196": 3,
10510 "197": 2,
10511 "225": 2,
10512 "226": 1,
10513 "242": 2,
10514 "243": 2,
10515 "281": 8,
10516 "290": 1
10517 },
10518 "fqnsFingerprint": "05968f9212199cb0b55a64aeb9510210d75a639e64dfcf91901cc1f201662d76"
10519 },
10520 "52347ad9066881f2e3a8179c3a4ded25bff50035fefa93d75d680d3aca149026": {
10521 "translations": {
10522 "python": {
10523 "source": "# Creating a custom origin request policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_origin_request_policy = cloudfront.OriginRequestPolicy(self, \"OriginRequestPolicy\",\n origin_request_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cookie_behavior=cloudfront.OriginRequestCookieBehavior.none(),\n header_behavior=cloudfront.OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"),\n query_string_behavior=cloudfront.OriginRequestQueryStringBehavior.allow_list(\"username\")\n)\n\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=my_origin_request_policy\n )\n)",
10524 "version": "2"
10525 },
10526 "csharp": {
10527 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = new OriginRequestPolicy(this, \"OriginRequestPolicy\", new OriginRequestPolicyProps {\n OriginRequestPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CookieBehavior = OriginRequestCookieBehavior.None(),\n HeaderBehavior = OriginRequestHeaderBehavior.All(\"CloudFront-Is-Android-Viewer\"),\n QueryStringBehavior = OriginRequestQueryStringBehavior.AllowList(\"username\")\n});\n\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = myOriginRequestPolicy\n }\n});",
10528 "version": "1"
10529 },
10530 "java": {
10531 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = OriginRequestPolicy.Builder.create(this, \"OriginRequestPolicy\")\n .originRequestPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .cookieBehavior(OriginRequestCookieBehavior.none())\n .headerBehavior(OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"))\n .queryStringBehavior(OriginRequestQueryStringBehavior.allowList(\"username\"))\n .build();\n\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(myOriginRequestPolicy)\n .build())\n .build();",
10532 "version": "1"
10533 },
10534 "go": {
10535 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyOriginRequestPolicy := cloudfront.NewOriginRequestPolicy(this, jsii.String(\"OriginRequestPolicy\"), &originRequestPolicyProps{\n\toriginRequestPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcookieBehavior: cloudfront.originRequestCookieBehavior.none(),\n\theaderBehavior: cloudfront.originRequestHeaderBehavior.all(jsii.String(\"CloudFront-Is-Android-Viewer\")),\n\tqueryStringBehavior: cloudfront.originRequestQueryStringBehavior.allowList(jsii.String(\"username\")),\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: myOriginRequestPolicy,\n\t},\n})",
10536 "version": "1"
10537 },
10538 "$": {
10539 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});",
10540 "version": "0"
10541 }
10542 },
10543 "location": {
10544 "api": {
10545 "api": "type",
10546 "fqn": "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior"
10547 },
10548 "field": {
10549 "field": "example"
10550 }
10551 },
10552 "didCompile": true,
10553 "fqnsReferenced": [
10554 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10555 "@aws-cdk/aws-cloudfront.Distribution",
10556 "@aws-cdk/aws-cloudfront.DistributionProps",
10557 "@aws-cdk/aws-cloudfront.IOrigin",
10558 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
10559 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
10560 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
10561 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
10562 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
10563 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
10564 "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
10565 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
10566 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
10567 "constructs.Construct"
10568 ],
10569 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10570 "syntaxKindCounter": {
10571 "10": 6,
10572 "75": 27,
10573 "104": 2,
10574 "130": 1,
10575 "153": 1,
10576 "169": 1,
10577 "193": 3,
10578 "194": 8,
10579 "196": 3,
10580 "197": 2,
10581 "225": 2,
10582 "226": 1,
10583 "242": 2,
10584 "243": 2,
10585 "281": 8,
10586 "290": 1
10587 },
10588 "fqnsFingerprint": "05968f9212199cb0b55a64aeb9510210d75a639e64dfcf91901cc1f201662d76"
10589 },
10590 "3570b618a31468ceaa8043b22c4c297ef211a083c2885de9d61e1e433b705c75": {
10591 "translations": {
10592 "python": {
10593 "source": "# Using an existing origin request policy for a Distribution\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN\n )\n)",
10594 "version": "2"
10595 },
10596 "csharp": {
10597 "source": "// Using an existing origin request policy for a Distribution\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = OriginRequestPolicy.CORS_S3_ORIGIN\n }\n});",
10598 "version": "1"
10599 },
10600 "java": {
10601 "source": "// Using an existing origin request policy for a Distribution\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(OriginRequestPolicy.CORS_S3_ORIGIN)\n .build())\n .build();",
10602 "version": "1"
10603 },
10604 "go": {
10605 "source": "// Using an existing origin request policy for a Distribution\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: cloudfront.originRequestPolicy_CORS_S3_ORIGIN(),\n\t},\n})",
10606 "version": "1"
10607 },
10608 "$": {
10609 "source": "// Using an existing origin request policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN,\n },\n});",
10610 "version": "0"
10611 }
10612 },
10613 "location": {
10614 "api": {
10615 "api": "type",
10616 "fqn": "@aws-cdk/aws-cloudfront.OriginRequestPolicy"
10617 },
10618 "field": {
10619 "field": "example"
10620 }
10621 },
10622 "didCompile": true,
10623 "fqnsReferenced": [
10624 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10625 "@aws-cdk/aws-cloudfront.Distribution",
10626 "@aws-cdk/aws-cloudfront.DistributionProps",
10627 "@aws-cdk/aws-cloudfront.IOrigin",
10628 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
10629 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
10630 "@aws-cdk/aws-cloudfront.OriginRequestPolicy#CORS_S3_ORIGIN",
10631 "constructs.Construct"
10632 ],
10633 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing origin request policy for a Distribution\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: cloudfront.OriginRequestPolicy.CORS_S3_ORIGIN,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10634 "syntaxKindCounter": {
10635 "10": 1,
10636 "75": 12,
10637 "104": 1,
10638 "130": 1,
10639 "153": 1,
10640 "169": 1,
10641 "193": 2,
10642 "194": 3,
10643 "197": 1,
10644 "225": 1,
10645 "226": 1,
10646 "242": 1,
10647 "243": 1,
10648 "281": 3,
10649 "290": 1
10650 },
10651 "fqnsFingerprint": "22707050c1349ad0b5deb3a9f2da316eac917ed5911941bc8551604ff6652d2c"
10652 },
10653 "2e1e54be5eea0eda7ac612afb238398b75dcda9072b9bc7714ea819f3fe2b42c": {
10654 "translations": {
10655 "python": {
10656 "source": "# Creating a custom origin request policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_origin_request_policy = cloudfront.OriginRequestPolicy(self, \"OriginRequestPolicy\",\n origin_request_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cookie_behavior=cloudfront.OriginRequestCookieBehavior.none(),\n header_behavior=cloudfront.OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"),\n query_string_behavior=cloudfront.OriginRequestQueryStringBehavior.allow_list(\"username\")\n)\n\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=my_origin_request_policy\n )\n)",
10657 "version": "2"
10658 },
10659 "csharp": {
10660 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = new OriginRequestPolicy(this, \"OriginRequestPolicy\", new OriginRequestPolicyProps {\n OriginRequestPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CookieBehavior = OriginRequestCookieBehavior.None(),\n HeaderBehavior = OriginRequestHeaderBehavior.All(\"CloudFront-Is-Android-Viewer\"),\n QueryStringBehavior = OriginRequestQueryStringBehavior.AllowList(\"username\")\n});\n\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = myOriginRequestPolicy\n }\n});",
10661 "version": "1"
10662 },
10663 "java": {
10664 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = OriginRequestPolicy.Builder.create(this, \"OriginRequestPolicy\")\n .originRequestPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .cookieBehavior(OriginRequestCookieBehavior.none())\n .headerBehavior(OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"))\n .queryStringBehavior(OriginRequestQueryStringBehavior.allowList(\"username\"))\n .build();\n\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(myOriginRequestPolicy)\n .build())\n .build();",
10665 "version": "1"
10666 },
10667 "go": {
10668 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyOriginRequestPolicy := cloudfront.NewOriginRequestPolicy(this, jsii.String(\"OriginRequestPolicy\"), &originRequestPolicyProps{\n\toriginRequestPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcookieBehavior: cloudfront.originRequestCookieBehavior.none(),\n\theaderBehavior: cloudfront.originRequestHeaderBehavior.all(jsii.String(\"CloudFront-Is-Android-Viewer\")),\n\tqueryStringBehavior: cloudfront.originRequestQueryStringBehavior.allowList(jsii.String(\"username\")),\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: myOriginRequestPolicy,\n\t},\n})",
10669 "version": "1"
10670 },
10671 "$": {
10672 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});",
10673 "version": "0"
10674 }
10675 },
10676 "location": {
10677 "api": {
10678 "api": "type",
10679 "fqn": "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps"
10680 },
10681 "field": {
10682 "field": "example"
10683 }
10684 },
10685 "didCompile": true,
10686 "fqnsReferenced": [
10687 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10688 "@aws-cdk/aws-cloudfront.Distribution",
10689 "@aws-cdk/aws-cloudfront.DistributionProps",
10690 "@aws-cdk/aws-cloudfront.IOrigin",
10691 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
10692 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
10693 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
10694 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
10695 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
10696 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
10697 "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
10698 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
10699 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
10700 "constructs.Construct"
10701 ],
10702 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10703 "syntaxKindCounter": {
10704 "10": 6,
10705 "75": 27,
10706 "104": 2,
10707 "130": 1,
10708 "153": 1,
10709 "169": 1,
10710 "193": 3,
10711 "194": 8,
10712 "196": 3,
10713 "197": 2,
10714 "225": 2,
10715 "226": 1,
10716 "242": 2,
10717 "243": 2,
10718 "281": 8,
10719 "290": 1
10720 },
10721 "fqnsFingerprint": "05968f9212199cb0b55a64aeb9510210d75a639e64dfcf91901cc1f201662d76"
10722 },
10723 "d907fc9c040256430d5c20152ca25ed14870aaaa489d75f9901ee2aa2620e53d": {
10724 "translations": {
10725 "python": {
10726 "source": "# Creating a custom origin request policy for a Distribution -- all parameters optional\n# bucket_origin: origins.S3Origin\n\nmy_origin_request_policy = cloudfront.OriginRequestPolicy(self, \"OriginRequestPolicy\",\n origin_request_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cookie_behavior=cloudfront.OriginRequestCookieBehavior.none(),\n header_behavior=cloudfront.OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"),\n query_string_behavior=cloudfront.OriginRequestQueryStringBehavior.allow_list(\"username\")\n)\n\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n origin_request_policy=my_origin_request_policy\n )\n)",
10727 "version": "2"
10728 },
10729 "csharp": {
10730 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = new OriginRequestPolicy(this, \"OriginRequestPolicy\", new OriginRequestPolicyProps {\n OriginRequestPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CookieBehavior = OriginRequestCookieBehavior.None(),\n HeaderBehavior = OriginRequestHeaderBehavior.All(\"CloudFront-Is-Android-Viewer\"),\n QueryStringBehavior = OriginRequestQueryStringBehavior.AllowList(\"username\")\n});\n\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n OriginRequestPolicy = myOriginRequestPolicy\n }\n});",
10731 "version": "1"
10732 },
10733 "java": {
10734 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nS3Origin bucketOrigin;\n\nOriginRequestPolicy myOriginRequestPolicy = OriginRequestPolicy.Builder.create(this, \"OriginRequestPolicy\")\n .originRequestPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .cookieBehavior(OriginRequestCookieBehavior.none())\n .headerBehavior(OriginRequestHeaderBehavior.all(\"CloudFront-Is-Android-Viewer\"))\n .queryStringBehavior(OriginRequestQueryStringBehavior.allowList(\"username\"))\n .build();\n\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .originRequestPolicy(myOriginRequestPolicy)\n .build())\n .build();",
10735 "version": "1"
10736 },
10737 "go": {
10738 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\nvar bucketOrigin s3Origin\n\nmyOriginRequestPolicy := cloudfront.NewOriginRequestPolicy(this, jsii.String(\"OriginRequestPolicy\"), &originRequestPolicyProps{\n\toriginRequestPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcookieBehavior: cloudfront.originRequestCookieBehavior.none(),\n\theaderBehavior: cloudfront.originRequestHeaderBehavior.all(jsii.String(\"CloudFront-Is-Android-Viewer\")),\n\tqueryStringBehavior: cloudfront.originRequestQueryStringBehavior.allowList(jsii.String(\"username\")),\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\toriginRequestPolicy: myOriginRequestPolicy,\n\t},\n})",
10739 "version": "1"
10740 },
10741 "$": {
10742 "source": "// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\nconst myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});",
10743 "version": "0"
10744 }
10745 },
10746 "location": {
10747 "api": {
10748 "api": "type",
10749 "fqn": "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior"
10750 },
10751 "field": {
10752 "field": "example"
10753 }
10754 },
10755 "didCompile": true,
10756 "fqnsReferenced": [
10757 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10758 "@aws-cdk/aws-cloudfront.Distribution",
10759 "@aws-cdk/aws-cloudfront.DistributionProps",
10760 "@aws-cdk/aws-cloudfront.IOrigin",
10761 "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
10762 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
10763 "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
10764 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
10765 "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
10766 "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
10767 "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
10768 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
10769 "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
10770 "constructs.Construct"
10771 ],
10772 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Creating a custom origin request policy for a Distribution -- all parameters optional\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myOriginRequestPolicy = new cloudfront.OriginRequestPolicy(this, 'OriginRequestPolicy', {\n originRequestPolicyName: 'MyPolicy',\n comment: 'A default policy',\n cookieBehavior: cloudfront.OriginRequestCookieBehavior.none(),\n headerBehavior: cloudfront.OriginRequestHeaderBehavior.all('CloudFront-Is-Android-Viewer'),\n queryStringBehavior: cloudfront.OriginRequestQueryStringBehavior.allowList('username'),\n});\n\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n originRequestPolicy: myOriginRequestPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10773 "syntaxKindCounter": {
10774 "10": 6,
10775 "75": 27,
10776 "104": 2,
10777 "130": 1,
10778 "153": 1,
10779 "169": 1,
10780 "193": 3,
10781 "194": 8,
10782 "196": 3,
10783 "197": 2,
10784 "225": 2,
10785 "226": 1,
10786 "242": 2,
10787 "243": 2,
10788 "281": 8,
10789 "290": 1
10790 },
10791 "fqnsFingerprint": "05968f9212199cb0b55a64aeb9510210d75a639e64dfcf91901cc1f201662d76"
10792 },
10793 "a9bf1d84b140d5c44569a8b715f4e84ca07f965edf0245b7e585f1b182d7affa": {
10794 "translations": {
10795 "python": {
10796 "source": "# Validating signed URLs or signed cookies with Trusted Key Groups\n\n# public key in PEM format\n# public_key: str\n\npub_key = cloudfront.PublicKey(self, \"MyPubKey\",\n encoded_key=public_key\n)\n\nkey_group = cloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[pub_key\n ]\n)\n\ncloudfront.Distribution(self, \"Dist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.HttpOrigin(\"www.example.com\"),\n trusted_key_groups=[key_group\n ]\n )\n)",
10797 "version": "2"
10798 },
10799 "csharp": {
10800 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nstring publicKey;\n\nPublicKey pubKey = new PublicKey(this, \"MyPubKey\", new PublicKeyProps {\n EncodedKey = publicKey\n});\n\nKeyGroup keyGroup = new KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] { pubKey }\n});\n\nnew Distribution(this, \"Dist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new HttpOrigin(\"www.example.com\"),\n TrustedKeyGroups = new [] { keyGroup }\n }\n});",
10801 "version": "1"
10802 },
10803 "java": {
10804 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nString publicKey;\n\nPublicKey pubKey = PublicKey.Builder.create(this, \"MyPubKey\")\n .encodedKey(publicKey)\n .build();\n\nKeyGroup keyGroup = KeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(pubKey))\n .build();\n\nDistribution.Builder.create(this, \"Dist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new HttpOrigin(\"www.example.com\"))\n .trustedKeyGroups(List.of(keyGroup))\n .build())\n .build();",
10805 "version": "1"
10806 },
10807 "go": {
10808 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nvar publicKey string\n\npubKey := cloudfront.NewPublicKey(this, jsii.String(\"MyPubKey\"), &publicKeyProps{\n\tencodedKey: publicKey,\n})\n\nkeyGroup := cloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tpubKey,\n\t},\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"Dist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\tkeyGroup,\n\t\t},\n\t},\n})",
10809 "version": "1"
10810 },
10811 "$": {
10812 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\nconst pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});",
10813 "version": "0"
10814 }
10815 },
10816 "location": {
10817 "api": {
10818 "api": "type",
10819 "fqn": "@aws-cdk/aws-cloudfront.PublicKey"
10820 },
10821 "field": {
10822 "field": "example"
10823 }
10824 },
10825 "didCompile": true,
10826 "fqnsReferenced": [
10827 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
10828 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10829 "@aws-cdk/aws-cloudfront.Distribution",
10830 "@aws-cdk/aws-cloudfront.DistributionProps",
10831 "@aws-cdk/aws-cloudfront.IOrigin",
10832 "@aws-cdk/aws-cloudfront.KeyGroup",
10833 "@aws-cdk/aws-cloudfront.KeyGroupProps",
10834 "@aws-cdk/aws-cloudfront.PublicKey",
10835 "@aws-cdk/aws-cloudfront.PublicKeyProps",
10836 "constructs.Construct"
10837 ],
10838 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10839 "syntaxKindCounter": {
10840 "10": 4,
10841 "75": 19,
10842 "104": 3,
10843 "130": 1,
10844 "143": 1,
10845 "192": 2,
10846 "193": 4,
10847 "194": 4,
10848 "197": 4,
10849 "225": 3,
10850 "226": 1,
10851 "242": 3,
10852 "243": 3,
10853 "281": 5,
10854 "290": 1
10855 },
10856 "fqnsFingerprint": "3ad307a97cef2618550323674a3aca38ac179d755c6f984025a53a1d879abe6a"
10857 },
10858 "1f53e4f461265faada5e7e1583f22cdd942c4cbd2176ce1cb01186d2e08d70f4": {
10859 "translations": {
10860 "python": {
10861 "source": "# Validating signed URLs or signed cookies with Trusted Key Groups\n\n# public key in PEM format\n# public_key: str\n\npub_key = cloudfront.PublicKey(self, \"MyPubKey\",\n encoded_key=public_key\n)\n\nkey_group = cloudfront.KeyGroup(self, \"MyKeyGroup\",\n items=[pub_key\n ]\n)\n\ncloudfront.Distribution(self, \"Dist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.HttpOrigin(\"www.example.com\"),\n trusted_key_groups=[key_group\n ]\n )\n)",
10862 "version": "2"
10863 },
10864 "csharp": {
10865 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nstring publicKey;\n\nPublicKey pubKey = new PublicKey(this, \"MyPubKey\", new PublicKeyProps {\n EncodedKey = publicKey\n});\n\nKeyGroup keyGroup = new KeyGroup(this, \"MyKeyGroup\", new KeyGroupProps {\n Items = new [] { pubKey }\n});\n\nnew Distribution(this, \"Dist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new HttpOrigin(\"www.example.com\"),\n TrustedKeyGroups = new [] { keyGroup }\n }\n});",
10866 "version": "1"
10867 },
10868 "java": {
10869 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nString publicKey;\n\nPublicKey pubKey = PublicKey.Builder.create(this, \"MyPubKey\")\n .encodedKey(publicKey)\n .build();\n\nKeyGroup keyGroup = KeyGroup.Builder.create(this, \"MyKeyGroup\")\n .items(List.of(pubKey))\n .build();\n\nDistribution.Builder.create(this, \"Dist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new HttpOrigin(\"www.example.com\"))\n .trustedKeyGroups(List.of(keyGroup))\n .build())\n .build();",
10870 "version": "1"
10871 },
10872 "go": {
10873 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\nvar publicKey string\n\npubKey := cloudfront.NewPublicKey(this, jsii.String(\"MyPubKey\"), &publicKeyProps{\n\tencodedKey: publicKey,\n})\n\nkeyGroup := cloudfront.NewKeyGroup(this, jsii.String(\"MyKeyGroup\"), &keyGroupProps{\n\titems: []iPublicKey{\n\t\tpubKey,\n\t},\n})\n\ncloudfront.NewDistribution(this, jsii.String(\"Dist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewHttpOrigin(jsii.String(\"www.example.com\")),\n\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\tkeyGroup,\n\t\t},\n\t},\n})",
10874 "version": "1"
10875 },
10876 "$": {
10877 "source": "// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\nconst pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});",
10878 "version": "0"
10879 }
10880 },
10881 "location": {
10882 "api": {
10883 "api": "type",
10884 "fqn": "@aws-cdk/aws-cloudfront.PublicKeyProps"
10885 },
10886 "field": {
10887 "field": "example"
10888 }
10889 },
10890 "didCompile": true,
10891 "fqnsReferenced": [
10892 "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
10893 "@aws-cdk/aws-cloudfront.BehaviorOptions",
10894 "@aws-cdk/aws-cloudfront.Distribution",
10895 "@aws-cdk/aws-cloudfront.DistributionProps",
10896 "@aws-cdk/aws-cloudfront.IOrigin",
10897 "@aws-cdk/aws-cloudfront.KeyGroup",
10898 "@aws-cdk/aws-cloudfront.KeyGroupProps",
10899 "@aws-cdk/aws-cloudfront.PublicKey",
10900 "@aws-cdk/aws-cloudfront.PublicKeyProps",
10901 "constructs.Construct"
10902 ],
10903 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Validating signed URLs or signed cookies with Trusted Key Groups\n\n// public key in PEM format\ndeclare const publicKey: string;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 pubKey = new cloudfront.PublicKey(this, 'MyPubKey', {\n encodedKey: publicKey,\n});\n\nconst keyGroup = new cloudfront.KeyGroup(this, 'MyKeyGroup', {\n items: [\n pubKey,\n ],\n});\n\nnew cloudfront.Distribution(this, 'Dist', {\n defaultBehavior: {\n origin: new origins.HttpOrigin('www.example.com'),\n trustedKeyGroups: [\n keyGroup,\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
10904 "syntaxKindCounter": {
10905 "10": 4,
10906 "75": 19,
10907 "104": 3,
10908 "130": 1,
10909 "143": 1,
10910 "192": 2,
10911 "193": 4,
10912 "194": 4,
10913 "197": 4,
10914 "225": 3,
10915 "226": 1,
10916 "242": 3,
10917 "243": 3,
10918 "281": 5,
10919 "290": 1
10920 },
10921 "fqnsFingerprint": "3ad307a97cef2618550323674a3aca38ac179d755c6f984025a53a1d879abe6a"
10922 },
10923 "524e00ff758eb3c4be838263237f46110209a744b1b49c495e484243cc96bbac": {
10924 "translations": {
10925 "python": {
10926 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\n\nresponse_custom_header = cloudfront.ResponseCustomHeader(\n header=\"header\",\n override=False,\n value=\"value\"\n)",
10927 "version": "2"
10928 },
10929 "csharp": {
10930 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\n\nResponseCustomHeader responseCustomHeader = new ResponseCustomHeader {\n Header = \"header\",\n Override = false,\n Value = \"value\"\n};",
10931 "version": "1"
10932 },
10933 "java": {
10934 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\n\nResponseCustomHeader responseCustomHeader = ResponseCustomHeader.builder()\n .header(\"header\")\n .override(false)\n .value(\"value\")\n .build();",
10935 "version": "1"
10936 },
10937 "go": {
10938 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\n\nresponseCustomHeader := &responseCustomHeader{\n\theader: jsii.String(\"header\"),\n\toverride: jsii.Boolean(false),\n\tvalue: jsii.String(\"value\"),\n}",
10939 "version": "1"
10940 },
10941 "$": {
10942 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nconst responseCustomHeader: cloudfront.ResponseCustomHeader = {\n header: 'header',\n override: false,\n value: 'value',\n};",
10943 "version": "0"
10944 }
10945 },
10946 "location": {
10947 "api": {
10948 "api": "type",
10949 "fqn": "@aws-cdk/aws-cloudfront.ResponseCustomHeader"
10950 },
10951 "field": {
10952 "field": "example"
10953 }
10954 },
10955 "didCompile": true,
10956 "fqnsReferenced": [
10957 "@aws-cdk/aws-cloudfront.ResponseCustomHeader"
10958 ],
10959 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst responseCustomHeader: cloudfront.ResponseCustomHeader = {\n header: 'header',\n override: false,\n value: 'value',\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
10960 "syntaxKindCounter": {
10961 "10": 3,
10962 "75": 7,
10963 "91": 1,
10964 "153": 1,
10965 "169": 1,
10966 "193": 1,
10967 "225": 1,
10968 "242": 1,
10969 "243": 1,
10970 "254": 1,
10971 "255": 1,
10972 "256": 1,
10973 "281": 3,
10974 "290": 1
10975 },
10976 "fqnsFingerprint": "db2a3cfba4477d1fe448da4f23d1879a424b7638407e1fd90d9c63b5415a6ecd"
10977 },
10978 "c3f0d17f4bb074f6b1e669e4227373cfc3ac8f8d673b5a1c3efb2d8d46757854": {
10979 "translations": {
10980 "python": {
10981 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
10982 "version": "2"
10983 },
10984 "csharp": {
10985 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
10986 "version": "1"
10987 },
10988 "java": {
10989 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
10990 "version": "1"
10991 },
10992 "go": {
10993 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
10994 "version": "1"
10995 },
10996 "$": {
10997 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
10998 "version": "0"
10999 }
11000 },
11001 "location": {
11002 "api": {
11003 "api": "type",
11004 "fqn": "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior"
11005 },
11006 "field": {
11007 "field": "example"
11008 }
11009 },
11010 "didCompile": true,
11011 "fqnsReferenced": [
11012 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11013 "@aws-cdk/aws-cloudfront.Distribution",
11014 "@aws-cdk/aws-cloudfront.DistributionProps",
11015 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11016 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11017 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11018 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11019 "@aws-cdk/aws-cloudfront.IOrigin",
11020 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11021 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11022 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11023 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11024 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11025 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11026 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11027 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11028 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11029 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11030 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11031 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11032 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11033 "@aws-cdk/core.Duration",
11034 "@aws-cdk/core.Duration#seconds",
11035 "constructs.Construct"
11036 ],
11037 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11038 "syntaxKindCounter": {
11039 "8": 2,
11040 "10": 18,
11041 "75": 71,
11042 "91": 2,
11043 "104": 3,
11044 "106": 11,
11045 "130": 1,
11046 "153": 1,
11047 "169": 1,
11048 "192": 5,
11049 "193": 16,
11050 "194": 11,
11051 "196": 2,
11052 "197": 3,
11053 "225": 2,
11054 "226": 2,
11055 "242": 2,
11056 "243": 2,
11057 "281": 45,
11058 "290": 1
11059 },
11060 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11061 },
11062 "77ee82051c470b65188eb545d4b36b73c9535fc640f86accf2451fe58606f88b": {
11063 "translations": {
11064 "python": {
11065 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11066 "version": "2"
11067 },
11068 "csharp": {
11069 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11070 "version": "1"
11071 },
11072 "java": {
11073 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11074 "version": "1"
11075 },
11076 "go": {
11077 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11078 "version": "1"
11079 },
11080 "$": {
11081 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11082 "version": "0"
11083 }
11084 },
11085 "location": {
11086 "api": {
11087 "api": "type",
11088 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy"
11089 },
11090 "field": {
11091 "field": "example"
11092 }
11093 },
11094 "didCompile": true,
11095 "fqnsReferenced": [
11096 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11097 "@aws-cdk/aws-cloudfront.Distribution",
11098 "@aws-cdk/aws-cloudfront.DistributionProps",
11099 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11100 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11101 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11102 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11103 "@aws-cdk/aws-cloudfront.IOrigin",
11104 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11105 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11106 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11107 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11108 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11109 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11110 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11111 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11112 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11113 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11114 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11115 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11116 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11117 "@aws-cdk/core.Duration",
11118 "@aws-cdk/core.Duration#seconds",
11119 "constructs.Construct"
11120 ],
11121 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11122 "syntaxKindCounter": {
11123 "8": 2,
11124 "10": 18,
11125 "75": 71,
11126 "91": 2,
11127 "104": 3,
11128 "106": 11,
11129 "130": 1,
11130 "153": 1,
11131 "169": 1,
11132 "192": 5,
11133 "193": 16,
11134 "194": 11,
11135 "196": 2,
11136 "197": 3,
11137 "225": 2,
11138 "226": 2,
11139 "242": 2,
11140 "243": 2,
11141 "281": 45,
11142 "290": 1
11143 },
11144 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11145 },
11146 "67afa77e2f71cc1963f8f785ddeab4a44f160ca527753b83fa6a45ba3ed25503": {
11147 "translations": {
11148 "python": {
11149 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11150 "version": "2"
11151 },
11152 "csharp": {
11153 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11154 "version": "1"
11155 },
11156 "java": {
11157 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11158 "version": "1"
11159 },
11160 "go": {
11161 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11162 "version": "1"
11163 },
11164 "$": {
11165 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11166 "version": "0"
11167 }
11168 },
11169 "location": {
11170 "api": {
11171 "api": "type",
11172 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions"
11173 },
11174 "field": {
11175 "field": "example"
11176 }
11177 },
11178 "didCompile": true,
11179 "fqnsReferenced": [
11180 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11181 "@aws-cdk/aws-cloudfront.Distribution",
11182 "@aws-cdk/aws-cloudfront.DistributionProps",
11183 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11184 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11185 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11186 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11187 "@aws-cdk/aws-cloudfront.IOrigin",
11188 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11189 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11190 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11191 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11192 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11193 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11194 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11195 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11196 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11197 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11198 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11199 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11200 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11201 "@aws-cdk/core.Duration",
11202 "@aws-cdk/core.Duration#seconds",
11203 "constructs.Construct"
11204 ],
11205 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11206 "syntaxKindCounter": {
11207 "8": 2,
11208 "10": 18,
11209 "75": 71,
11210 "91": 2,
11211 "104": 3,
11212 "106": 11,
11213 "130": 1,
11214 "153": 1,
11215 "169": 1,
11216 "192": 5,
11217 "193": 16,
11218 "194": 11,
11219 "196": 2,
11220 "197": 3,
11221 "225": 2,
11222 "226": 2,
11223 "242": 2,
11224 "243": 2,
11225 "281": 45,
11226 "290": 1
11227 },
11228 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11229 },
11230 "d90cd9f6eeadc4b81dbb2e73a31a49fdf329805d1e947aa44708074e2cfa546b": {
11231 "translations": {
11232 "python": {
11233 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11234 "version": "2"
11235 },
11236 "csharp": {
11237 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11238 "version": "1"
11239 },
11240 "java": {
11241 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11242 "version": "1"
11243 },
11244 "go": {
11245 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11246 "version": "1"
11247 },
11248 "$": {
11249 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11250 "version": "0"
11251 }
11252 },
11253 "location": {
11254 "api": {
11255 "api": "type",
11256 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior"
11257 },
11258 "field": {
11259 "field": "example"
11260 }
11261 },
11262 "didCompile": true,
11263 "fqnsReferenced": [
11264 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11265 "@aws-cdk/aws-cloudfront.Distribution",
11266 "@aws-cdk/aws-cloudfront.DistributionProps",
11267 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11268 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11269 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11270 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11271 "@aws-cdk/aws-cloudfront.IOrigin",
11272 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11273 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11274 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11275 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11276 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11277 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11278 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11279 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11280 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11281 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11282 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11283 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11284 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11285 "@aws-cdk/core.Duration",
11286 "@aws-cdk/core.Duration#seconds",
11287 "constructs.Construct"
11288 ],
11289 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11290 "syntaxKindCounter": {
11291 "8": 2,
11292 "10": 18,
11293 "75": 71,
11294 "91": 2,
11295 "104": 3,
11296 "106": 11,
11297 "130": 1,
11298 "153": 1,
11299 "169": 1,
11300 "192": 5,
11301 "193": 16,
11302 "194": 11,
11303 "196": 2,
11304 "197": 3,
11305 "225": 2,
11306 "226": 2,
11307 "242": 2,
11308 "243": 2,
11309 "281": 45,
11310 "290": 1
11311 },
11312 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11313 },
11314 "c34c9706bbfee6e9c4ec6c25d5e83b293fb4b5247597612d13786e6e084882ba": {
11315 "translations": {
11316 "python": {
11317 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11318 "version": "2"
11319 },
11320 "csharp": {
11321 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11322 "version": "1"
11323 },
11324 "java": {
11325 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11326 "version": "1"
11327 },
11328 "go": {
11329 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11330 "version": "1"
11331 },
11332 "$": {
11333 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11334 "version": "0"
11335 }
11336 },
11337 "location": {
11338 "api": {
11339 "api": "type",
11340 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions"
11341 },
11342 "field": {
11343 "field": "example"
11344 }
11345 },
11346 "didCompile": true,
11347 "fqnsReferenced": [
11348 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11349 "@aws-cdk/aws-cloudfront.Distribution",
11350 "@aws-cdk/aws-cloudfront.DistributionProps",
11351 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11352 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11353 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11354 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11355 "@aws-cdk/aws-cloudfront.IOrigin",
11356 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11357 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11358 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11359 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11360 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11361 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11362 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11363 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11364 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11365 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11366 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11367 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11368 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11369 "@aws-cdk/core.Duration",
11370 "@aws-cdk/core.Duration#seconds",
11371 "constructs.Construct"
11372 ],
11373 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11374 "syntaxKindCounter": {
11375 "8": 2,
11376 "10": 18,
11377 "75": 71,
11378 "91": 2,
11379 "104": 3,
11380 "106": 11,
11381 "130": 1,
11382 "153": 1,
11383 "169": 1,
11384 "192": 5,
11385 "193": 16,
11386 "194": 11,
11387 "196": 2,
11388 "197": 3,
11389 "225": 2,
11390 "226": 2,
11391 "242": 2,
11392 "243": 2,
11393 "281": 45,
11394 "290": 1
11395 },
11396 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11397 },
11398 "161a33466a81a744ee69fd15510072901a3f24933ad7d9886d0b2d8cfba06667": {
11399 "translations": {
11400 "python": {
11401 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11402 "version": "2"
11403 },
11404 "csharp": {
11405 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11406 "version": "1"
11407 },
11408 "java": {
11409 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11410 "version": "1"
11411 },
11412 "go": {
11413 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11414 "version": "1"
11415 },
11416 "$": {
11417 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11418 "version": "0"
11419 }
11420 },
11421 "location": {
11422 "api": {
11423 "api": "type",
11424 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy"
11425 },
11426 "field": {
11427 "field": "example"
11428 }
11429 },
11430 "didCompile": true,
11431 "fqnsReferenced": [
11432 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11433 "@aws-cdk/aws-cloudfront.Distribution",
11434 "@aws-cdk/aws-cloudfront.DistributionProps",
11435 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11436 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11437 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11438 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11439 "@aws-cdk/aws-cloudfront.IOrigin",
11440 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11441 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11442 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11443 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11444 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11445 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11446 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11447 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11448 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11449 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11450 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11451 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11452 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11453 "@aws-cdk/core.Duration",
11454 "@aws-cdk/core.Duration#seconds",
11455 "constructs.Construct"
11456 ],
11457 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11458 "syntaxKindCounter": {
11459 "8": 2,
11460 "10": 18,
11461 "75": 71,
11462 "91": 2,
11463 "104": 3,
11464 "106": 11,
11465 "130": 1,
11466 "153": 1,
11467 "169": 1,
11468 "192": 5,
11469 "193": 16,
11470 "194": 11,
11471 "196": 2,
11472 "197": 3,
11473 "225": 2,
11474 "226": 2,
11475 "242": 2,
11476 "243": 2,
11477 "281": 45,
11478 "290": 1
11479 },
11480 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11481 },
11482 "a1201145b07724cf721ef53afdb1e3457ff990a1478f9b11d1ed965ae04b070f": {
11483 "translations": {
11484 "python": {
11485 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11486 "version": "2"
11487 },
11488 "csharp": {
11489 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11490 "version": "1"
11491 },
11492 "java": {
11493 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11494 "version": "1"
11495 },
11496 "go": {
11497 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11498 "version": "1"
11499 },
11500 "$": {
11501 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11502 "version": "0"
11503 }
11504 },
11505 "location": {
11506 "api": {
11507 "api": "type",
11508 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps"
11509 },
11510 "field": {
11511 "field": "example"
11512 }
11513 },
11514 "didCompile": true,
11515 "fqnsReferenced": [
11516 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11517 "@aws-cdk/aws-cloudfront.Distribution",
11518 "@aws-cdk/aws-cloudfront.DistributionProps",
11519 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11520 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11521 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11522 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11523 "@aws-cdk/aws-cloudfront.IOrigin",
11524 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11525 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11526 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11527 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11528 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11529 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11530 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11531 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11532 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11533 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11534 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11535 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11536 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11537 "@aws-cdk/core.Duration",
11538 "@aws-cdk/core.Duration#seconds",
11539 "constructs.Construct"
11540 ],
11541 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11542 "syntaxKindCounter": {
11543 "8": 2,
11544 "10": 18,
11545 "75": 71,
11546 "91": 2,
11547 "104": 3,
11548 "106": 11,
11549 "130": 1,
11550 "153": 1,
11551 "169": 1,
11552 "192": 5,
11553 "193": 16,
11554 "194": 11,
11555 "196": 2,
11556 "197": 3,
11557 "225": 2,
11558 "226": 2,
11559 "242": 2,
11560 "243": 2,
11561 "281": 45,
11562 "290": 1
11563 },
11564 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11565 },
11566 "dcf5a0c7ab65d0cbcd3cb7ea522382fe7b202d60c2bb18ecf2e62d119625799f": {
11567 "translations": {
11568 "python": {
11569 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11570 "version": "2"
11571 },
11572 "csharp": {
11573 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11574 "version": "1"
11575 },
11576 "java": {
11577 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11578 "version": "1"
11579 },
11580 "go": {
11581 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11582 "version": "1"
11583 },
11584 "$": {
11585 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11586 "version": "0"
11587 }
11588 },
11589 "location": {
11590 "api": {
11591 "api": "type",
11592 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy"
11593 },
11594 "field": {
11595 "field": "example"
11596 }
11597 },
11598 "didCompile": true,
11599 "fqnsReferenced": [
11600 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11601 "@aws-cdk/aws-cloudfront.Distribution",
11602 "@aws-cdk/aws-cloudfront.DistributionProps",
11603 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11604 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11605 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11606 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11607 "@aws-cdk/aws-cloudfront.IOrigin",
11608 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11609 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11610 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11611 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11612 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11613 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11614 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11615 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11616 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11617 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11618 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11619 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11620 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11621 "@aws-cdk/core.Duration",
11622 "@aws-cdk/core.Duration#seconds",
11623 "constructs.Construct"
11624 ],
11625 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11626 "syntaxKindCounter": {
11627 "8": 2,
11628 "10": 18,
11629 "75": 71,
11630 "91": 2,
11631 "104": 3,
11632 "106": 11,
11633 "130": 1,
11634 "153": 1,
11635 "169": 1,
11636 "192": 5,
11637 "193": 16,
11638 "194": 11,
11639 "196": 2,
11640 "197": 3,
11641 "225": 2,
11642 "226": 2,
11643 "242": 2,
11644 "243": 2,
11645 "281": 45,
11646 "290": 1
11647 },
11648 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11649 },
11650 "fafc6c6c974df9957690090523feb72f1aeebc99b0b868bfc8aed240ba7ccf4c": {
11651 "translations": {
11652 "python": {
11653 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11654 "version": "2"
11655 },
11656 "csharp": {
11657 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11658 "version": "1"
11659 },
11660 "java": {
11661 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11662 "version": "1"
11663 },
11664 "go": {
11665 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11666 "version": "1"
11667 },
11668 "$": {
11669 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11670 "version": "0"
11671 }
11672 },
11673 "location": {
11674 "api": {
11675 "api": "type",
11676 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity"
11677 },
11678 "field": {
11679 "field": "example"
11680 }
11681 },
11682 "didCompile": true,
11683 "fqnsReferenced": [
11684 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11685 "@aws-cdk/aws-cloudfront.Distribution",
11686 "@aws-cdk/aws-cloudfront.DistributionProps",
11687 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11688 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11689 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11690 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11691 "@aws-cdk/aws-cloudfront.IOrigin",
11692 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11693 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11694 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11695 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11696 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11697 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11698 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11699 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11700 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11701 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11702 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11703 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11704 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11705 "@aws-cdk/core.Duration",
11706 "@aws-cdk/core.Duration#seconds",
11707 "constructs.Construct"
11708 ],
11709 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11710 "syntaxKindCounter": {
11711 "8": 2,
11712 "10": 18,
11713 "75": 71,
11714 "91": 2,
11715 "104": 3,
11716 "106": 11,
11717 "130": 1,
11718 "153": 1,
11719 "169": 1,
11720 "192": 5,
11721 "193": 16,
11722 "194": 11,
11723 "196": 2,
11724 "197": 3,
11725 "225": 2,
11726 "226": 2,
11727 "242": 2,
11728 "243": 2,
11729 "281": 45,
11730 "290": 1
11731 },
11732 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11733 },
11734 "83f1b164f334633959162a40c5be8b4b27a7aaa3b2ad17dd854479a15ae377a1": {
11735 "translations": {
11736 "python": {
11737 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11738 "version": "2"
11739 },
11740 "csharp": {
11741 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11742 "version": "1"
11743 },
11744 "java": {
11745 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11746 "version": "1"
11747 },
11748 "go": {
11749 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11750 "version": "1"
11751 },
11752 "$": {
11753 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11754 "version": "0"
11755 }
11756 },
11757 "location": {
11758 "api": {
11759 "api": "type",
11760 "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection"
11761 },
11762 "field": {
11763 "field": "example"
11764 }
11765 },
11766 "didCompile": true,
11767 "fqnsReferenced": [
11768 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11769 "@aws-cdk/aws-cloudfront.Distribution",
11770 "@aws-cdk/aws-cloudfront.DistributionProps",
11771 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11772 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11773 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11774 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11775 "@aws-cdk/aws-cloudfront.IOrigin",
11776 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11777 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11778 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11779 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11780 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11781 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11782 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11783 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11784 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11785 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11786 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11787 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11788 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11789 "@aws-cdk/core.Duration",
11790 "@aws-cdk/core.Duration#seconds",
11791 "constructs.Construct"
11792 ],
11793 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11794 "syntaxKindCounter": {
11795 "8": 2,
11796 "10": 18,
11797 "75": 71,
11798 "91": 2,
11799 "104": 3,
11800 "106": 11,
11801 "130": 1,
11802 "153": 1,
11803 "169": 1,
11804 "192": 5,
11805 "193": 16,
11806 "194": 11,
11807 "196": 2,
11808 "197": 3,
11809 "225": 2,
11810 "226": 2,
11811 "242": 2,
11812 "243": 2,
11813 "281": 45,
11814 "290": 1
11815 },
11816 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11817 },
11818 "fc966ece0d92e163b17eca84d8c330d451f43281647c5445142429eea83ac195": {
11819 "translations": {
11820 "python": {
11821 "source": "# Using an existing managed response headers policy\n# bucket_origin: origins.S3Origin\n\ncloudfront.Distribution(self, \"myDistManagedPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n )\n)\n\n# Creating a custom response headers policy -- all parameters optional\nmy_response_headers_policy = cloudfront.ResponseHeadersPolicy(self, \"ResponseHeadersPolicy\",\n response_headers_policy_name=\"MyPolicy\",\n comment=\"A default policy\",\n cors_behavior=cloudfront.ResponseHeadersCorsBehavior(\n access_control_allow_credentials=False,\n access_control_allow_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_allow_methods=[\"GET\", \"POST\"],\n access_control_allow_origins=[\"*\"],\n access_control_expose_headers=[\"X-Custom-Header-1\", \"X-Custom-Header-2\"],\n access_control_max_age=Duration.seconds(600),\n origin_override=True\n ),\n custom_headers_behavior=cloudfront.ResponseCustomHeadersBehavior(\n custom_headers=[cloudfront.ResponseCustomHeader(header=\"X-Amz-Date\", value=\"some-value\", override=True), cloudfront.ResponseCustomHeader(header=\"X-Amz-Security-Token\", value=\"some-value\", override=False)\n ]\n ),\n security_headers_behavior=cloudfront.ResponseSecurityHeadersBehavior(\n content_security_policy=cloudfront.ResponseHeadersContentSecurityPolicy(content_security_policy=\"default-src https:;\", override=True),\n content_type_options=cloudfront.ResponseHeadersContentTypeOptions(override=True),\n frame_options=cloudfront.ResponseHeadersFrameOptions(frame_option=cloudfront.HeadersFrameOption.DENY, override=True),\n referrer_policy=cloudfront.ResponseHeadersReferrerPolicy(referrer_policy=cloudfront.HeadersReferrerPolicy.NO_REFERRER, override=True),\n strict_transport_security=cloudfront.ResponseHeadersStrictTransportSecurity(access_control_max_age=Duration.seconds(600), include_subdomains=True, override=True),\n xss_protection=cloudfront.ResponseHeadersXSSProtection(protection=True, mode_block=True, report_uri=\"https://example.com/csp-report\", override=True)\n )\n)\ncloudfront.Distribution(self, \"myDistCustomPolicy\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=bucket_origin,\n response_headers_policy=my_response_headers_policy\n )\n)",
11822 "version": "2"
11823 },
11824 "csharp": {
11825 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nnew Distribution(this, \"myDistManagedPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS\n }\n});\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = new ResponseHeadersPolicy(this, \"ResponseHeadersPolicy\", new ResponseHeadersPolicyProps {\n ResponseHeadersPolicyName = \"MyPolicy\",\n Comment = \"A default policy\",\n CorsBehavior = new ResponseHeadersCorsBehavior {\n AccessControlAllowCredentials = false,\n AccessControlAllowHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlAllowMethods = new [] { \"GET\", \"POST\" },\n AccessControlAllowOrigins = new [] { \"*\" },\n AccessControlExposeHeaders = new [] { \"X-Custom-Header-1\", \"X-Custom-Header-2\" },\n AccessControlMaxAge = Duration.Seconds(600),\n OriginOverride = true\n },\n CustomHeadersBehavior = new ResponseCustomHeadersBehavior {\n CustomHeaders = new [] { new ResponseCustomHeader { Header = \"X-Amz-Date\", Value = \"some-value\", Override = true }, new ResponseCustomHeader { Header = \"X-Amz-Security-Token\", Value = \"some-value\", Override = false } }\n },\n SecurityHeadersBehavior = new ResponseSecurityHeadersBehavior {\n ContentSecurityPolicy = new ResponseHeadersContentSecurityPolicy { ContentSecurityPolicy = \"default-src https:;\", Override = true },\n ContentTypeOptions = new ResponseHeadersContentTypeOptions { Override = true },\n FrameOptions = new ResponseHeadersFrameOptions { FrameOption = HeadersFrameOption.DENY, Override = true },\n ReferrerPolicy = new ResponseHeadersReferrerPolicy { ReferrerPolicy = HeadersReferrerPolicy.NO_REFERRER, Override = true },\n StrictTransportSecurity = new ResponseHeadersStrictTransportSecurity { AccessControlMaxAge = Duration.Seconds(600), IncludeSubdomains = true, Override = true },\n XssProtection = new ResponseHeadersXSSProtection { Protection = true, ModeBlock = true, ReportUri = \"https://example.com/csp-report\", Override = true }\n }\n});\nnew Distribution(this, \"myDistCustomPolicy\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = bucketOrigin,\n ResponseHeadersPolicy = myResponseHeadersPolicy\n }\n});",
11826 "version": "1"
11827 },
11828 "java": {
11829 "source": "// Using an existing managed response headers policy\nS3Origin bucketOrigin;\n\nDistribution.Builder.create(this, \"myDistManagedPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS)\n .build())\n .build();\n\n// Creating a custom response headers policy -- all parameters optional\nResponseHeadersPolicy myResponseHeadersPolicy = ResponseHeadersPolicy.Builder.create(this, \"ResponseHeadersPolicy\")\n .responseHeadersPolicyName(\"MyPolicy\")\n .comment(\"A default policy\")\n .corsBehavior(ResponseHeadersCorsBehavior.builder()\n .accessControlAllowCredentials(false)\n .accessControlAllowHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlAllowMethods(List.of(\"GET\", \"POST\"))\n .accessControlAllowOrigins(List.of(\"*\"))\n .accessControlExposeHeaders(List.of(\"X-Custom-Header-1\", \"X-Custom-Header-2\"))\n .accessControlMaxAge(Duration.seconds(600))\n .originOverride(true)\n .build())\n .customHeadersBehavior(ResponseCustomHeadersBehavior.builder()\n .customHeaders(List.of(ResponseCustomHeader.builder().header(\"X-Amz-Date\").value(\"some-value\").override(true).build(), ResponseCustomHeader.builder().header(\"X-Amz-Security-Token\").value(\"some-value\").override(false).build()))\n .build())\n .securityHeadersBehavior(ResponseSecurityHeadersBehavior.builder()\n .contentSecurityPolicy(ResponseHeadersContentSecurityPolicy.builder().contentSecurityPolicy(\"default-src https:;\").override(true).build())\n .contentTypeOptions(ResponseHeadersContentTypeOptions.builder().override(true).build())\n .frameOptions(ResponseHeadersFrameOptions.builder().frameOption(HeadersFrameOption.DENY).override(true).build())\n .referrerPolicy(ResponseHeadersReferrerPolicy.builder().referrerPolicy(HeadersReferrerPolicy.NO_REFERRER).override(true).build())\n .strictTransportSecurity(ResponseHeadersStrictTransportSecurity.builder().accessControlMaxAge(Duration.seconds(600)).includeSubdomains(true).override(true).build())\n .xssProtection(ResponseHeadersXSSProtection.builder().protection(true).modeBlock(true).reportUri(\"https://example.com/csp-report\").override(true).build())\n .build())\n .build();\nDistribution.Builder.create(this, \"myDistCustomPolicy\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(bucketOrigin)\n .responseHeadersPolicy(myResponseHeadersPolicy)\n .build())\n .build();",
11830 "version": "1"
11831 },
11832 "go": {
11833 "source": "// Using an existing managed response headers policy\nvar bucketOrigin s3Origin\n\ncloudfront.NewDistribution(this, jsii.String(\"myDistManagedPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: cloudfront.responseHeadersPolicy_CORS_ALLOW_ALL_ORIGINS(),\n\t},\n})\n\n// Creating a custom response headers policy -- all parameters optional\nmyResponseHeadersPolicy := cloudfront.NewResponseHeadersPolicy(this, jsii.String(\"ResponseHeadersPolicy\"), &responseHeadersPolicyProps{\n\tresponseHeadersPolicyName: jsii.String(\"MyPolicy\"),\n\tcomment: jsii.String(\"A default policy\"),\n\tcorsBehavior: &responseHeadersCorsBehavior{\n\t\taccessControlAllowCredentials: jsii.Boolean(false),\n\t\taccessControlAllowHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlAllowMethods: []*string{\n\t\t\tjsii.String(\"GET\"),\n\t\t\tjsii.String(\"POST\"),\n\t\t},\n\t\taccessControlAllowOrigins: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t\taccessControlExposeHeaders: []*string{\n\t\t\tjsii.String(\"X-Custom-Header-1\"),\n\t\t\tjsii.String(\"X-Custom-Header-2\"),\n\t\t},\n\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\toriginOverride: jsii.Boolean(true),\n\t},\n\tcustomHeadersBehavior: &responseCustomHeadersBehavior{\n\t\tcustomHeaders: []responseCustomHeader{\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Date\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(true),\n\t\t\t},\n\t\t\t&responseCustomHeader{\n\t\t\t\theader: jsii.String(\"X-Amz-Security-Token\"),\n\t\t\t\tvalue: jsii.String(\"some-value\"),\n\t\t\t\toverride: jsii.Boolean(false),\n\t\t\t},\n\t\t},\n\t},\n\tsecurityHeadersBehavior: &responseSecurityHeadersBehavior{\n\t\tcontentSecurityPolicy: &responseHeadersContentSecurityPolicy{\n\t\t\tcontentSecurityPolicy: jsii.String(\"default-src https:;\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tcontentTypeOptions: &responseHeadersContentTypeOptions{\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tframeOptions: &responseHeadersFrameOptions{\n\t\t\tframeOption: cloudfront.headersFrameOption_DENY,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\treferrerPolicy: &responseHeadersReferrerPolicy{\n\t\t\treferrerPolicy: cloudfront.headersReferrerPolicy_NO_REFERRER,\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\tstrictTransportSecurity: &responseHeadersStrictTransportSecurity{\n\t\t\taccessControlMaxAge: *awscdkcore.Duration.seconds(jsii.Number(600)),\n\t\t\tincludeSubdomains: jsii.Boolean(true),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t\txssProtection: &responseHeadersXSSProtection{\n\t\t\tprotection: jsii.Boolean(true),\n\t\t\tmodeBlock: jsii.Boolean(true),\n\t\t\treportUri: jsii.String(\"https://example.com/csp-report\"),\n\t\t\toverride: jsii.Boolean(true),\n\t\t},\n\t},\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDistCustomPolicy\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: bucketOrigin,\n\t\tresponseHeadersPolicy: myResponseHeadersPolicy,\n\t},\n})",
11834 "version": "1"
11835 },
11836 "$": {
11837 "source": "// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});",
11838 "version": "0"
11839 }
11840 },
11841 "location": {
11842 "api": {
11843 "api": "type",
11844 "fqn": "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior"
11845 },
11846 "field": {
11847 "field": "example"
11848 }
11849 },
11850 "didCompile": true,
11851 "fqnsReferenced": [
11852 "@aws-cdk/aws-cloudfront.BehaviorOptions",
11853 "@aws-cdk/aws-cloudfront.Distribution",
11854 "@aws-cdk/aws-cloudfront.DistributionProps",
11855 "@aws-cdk/aws-cloudfront.HeadersFrameOption",
11856 "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
11857 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
11858 "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
11859 "@aws-cdk/aws-cloudfront.IOrigin",
11860 "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
11861 "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
11862 "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
11863 "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
11864 "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
11865 "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
11866 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
11867 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
11868 "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
11869 "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
11870 "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
11871 "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
11872 "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
11873 "@aws-cdk/core.Duration",
11874 "@aws-cdk/core.Duration#seconds",
11875 "constructs.Construct"
11876 ],
11877 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Using an existing managed response headers policy\ndeclare const bucketOrigin: origins.S3Origin;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nnew cloudfront.Distribution(this, 'myDistManagedPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: cloudfront.ResponseHeadersPolicy.CORS_ALLOW_ALL_ORIGINS,\n },\n});\n\n// Creating a custom response headers policy -- all parameters optional\nconst myResponseHeadersPolicy = new cloudfront.ResponseHeadersPolicy(this, 'ResponseHeadersPolicy', {\n responseHeadersPolicyName: 'MyPolicy',\n comment: 'A default policy',\n corsBehavior: {\n accessControlAllowCredentials: false,\n accessControlAllowHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlAllowMethods: ['GET', 'POST'],\n accessControlAllowOrigins: ['*'],\n accessControlExposeHeaders: ['X-Custom-Header-1', 'X-Custom-Header-2'],\n accessControlMaxAge: Duration.seconds(600),\n originOverride: true,\n },\n customHeadersBehavior: {\n customHeaders: [\n { header: 'X-Amz-Date', value: 'some-value', override: true },\n { header: 'X-Amz-Security-Token', value: 'some-value', override: false },\n ],\n },\n securityHeadersBehavior: {\n contentSecurityPolicy: { contentSecurityPolicy: 'default-src https:;', override: true },\n contentTypeOptions: { override: true },\n frameOptions: { frameOption: cloudfront.HeadersFrameOption.DENY, override: true },\n referrerPolicy: { referrerPolicy: cloudfront.HeadersReferrerPolicy.NO_REFERRER, override: true },\n strictTransportSecurity: { accessControlMaxAge: Duration.seconds(600), includeSubdomains: true, override: true },\n xssProtection: { protection: true, modeBlock: true, reportUri: 'https://example.com/csp-report', override: true },\n },\n});\nnew cloudfront.Distribution(this, 'myDistCustomPolicy', {\n defaultBehavior: {\n origin: bucketOrigin,\n responseHeadersPolicy: myResponseHeadersPolicy,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11878 "syntaxKindCounter": {
11879 "8": 2,
11880 "10": 18,
11881 "75": 71,
11882 "91": 2,
11883 "104": 3,
11884 "106": 11,
11885 "130": 1,
11886 "153": 1,
11887 "169": 1,
11888 "192": 5,
11889 "193": 16,
11890 "194": 11,
11891 "196": 2,
11892 "197": 3,
11893 "225": 2,
11894 "226": 2,
11895 "242": 2,
11896 "243": 2,
11897 "281": 45,
11898 "290": 1
11899 },
11900 "fqnsFingerprint": "de7c89c01af6e4d1c64703e7256d7328023b8aa2e9f1257ee5a6f6ff30b30710"
11901 },
11902 "2ff3e6e5e10916371e202d35c4f21ee0c06c583c43ed74f4d23650c424884956": {
11903 "translations": {
11904 "python": {
11905 "source": "# source_bucket: s3.Bucket\n\nviewer_certificate = cloudfront.ViewerCertificate.from_iam_certificate(\"MYIAMROLEIDENTIFIER\",\n aliases=[\"MYALIAS\"]\n)\n\ncloudfront.CloudFrontWebDistribution(self, \"MyCfWebDistribution\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=source_bucket\n ),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )\n ],\n viewer_certificate=viewer_certificate\n)",
11906 "version": "2"
11907 },
11908 "csharp": {
11909 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.FromIamCertificate(\"MYIAMROLEIDENTIFIER\", new ViewerCertificateOptions {\n Aliases = new [] { \"MYALIAS\" }\n});\n\nnew CloudFrontWebDistribution(this, \"MyCfWebDistribution\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = sourceBucket\n },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = viewerCertificate\n});",
11910 "version": "1"
11911 },
11912 "java": {
11913 "source": "Bucket sourceBucket;\n\nViewerCertificate viewerCertificate = ViewerCertificate.fromIamCertificate(\"MYIAMROLEIDENTIFIER\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"MYALIAS\"))\n .build());\n\nCloudFrontWebDistribution.Builder.create(this, \"MyCfWebDistribution\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(sourceBucket)\n .build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(viewerCertificate)\n .build();",
11914 "version": "1"
11915 },
11916 "go": {
11917 "source": "var sourceBucket bucket\n\nviewerCertificate := cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"MYIAMROLEIDENTIFIER\"), &viewerCertificateOptions{\n\taliases: []*string{\n\t\tjsii.String(\"MYALIAS\"),\n\t},\n})\n\ncloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"MyCfWebDistribution\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: sourceBucket,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: viewerCertificate,\n})",
11918 "version": "1"
11919 },
11920 "$": {
11921 "source": "declare const sourceBucket: s3.Bucket;\nconst viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});",
11922 "version": "0"
11923 }
11924 },
11925 "location": {
11926 "api": {
11927 "api": "type",
11928 "fqn": "@aws-cdk/aws-cloudfront.S3OriginConfig"
11929 },
11930 "field": {
11931 "field": "example"
11932 }
11933 },
11934 "didCompile": true,
11935 "fqnsReferenced": [
11936 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
11937 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
11938 "@aws-cdk/aws-cloudfront.S3OriginConfig",
11939 "@aws-cdk/aws-cloudfront.ViewerCertificate",
11940 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
11941 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
11942 "@aws-cdk/aws-s3.IBucket",
11943 "constructs.Construct"
11944 ],
11945 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const sourceBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 viewerCertificate = cloudfront.ViewerCertificate.fromIamCertificate('MYIAMROLEIDENTIFIER', {\n aliases: ['MYALIAS'],\n});\n\nnew cloudfront.CloudFrontWebDistribution(this, 'MyCfWebDistribution', {\n originConfigs: [\n {\n s3OriginSource: {\n s3BucketSource: sourceBucket,\n },\n behaviors : [ {isDefaultBehavior: true} ],\n },\n ],\n viewerCertificate: viewerCertificate,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
11946 "syntaxKindCounter": {
11947 "10": 3,
11948 "75": 18,
11949 "104": 1,
11950 "106": 1,
11951 "130": 1,
11952 "153": 1,
11953 "169": 1,
11954 "192": 3,
11955 "193": 5,
11956 "194": 3,
11957 "196": 1,
11958 "197": 1,
11959 "225": 2,
11960 "226": 1,
11961 "242": 2,
11962 "243": 2,
11963 "281": 7,
11964 "290": 1
11965 },
11966 "fqnsFingerprint": "dc85e0e66756c7ca4ca260fa52258db75a8634baf4e3cb2bd68bffa4dc45a896"
11967 },
11968 "c20da6e46ae81508cb187997130d934989cea300bac3b93d3632478ebbbce2ee": {
11969 "translations": {
11970 "python": {
11971 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_iam_certificate(\"certificateId\",\n aliases=[\"example.com\"],\n security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3, # default\n ssl_method=cloudfront.SSLMethod.SNI\n )\n)",
11972 "version": "2"
11973 },
11974 "csharp": {
11975 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromIamCertificate(\"certificateId\", new ViewerCertificateOptions {\n Aliases = new [] { \"example.com\" },\n SecurityPolicy = SecurityPolicyProtocol.SSL_V3, // default\n SslMethod = SSLMethod.SNI\n })\n});",
11976 "version": "1"
11977 },
11978 "java": {
11979 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromIamCertificate(\"certificateId\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"example.com\"))\n .securityPolicy(SecurityPolicyProtocol.SSL_V3) // default\n .sslMethod(SSLMethod.SNI)\n .build()))\n .build();",
11980 "version": "1"
11981 },
11982 "go": {
11983 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"certificateId\"), &viewerCertificateOptions{\n\t\taliases: []*string{\n\t\t\tjsii.String(\"example.com\"),\n\t\t},\n\t\tsecurityPolicy: cloudfront.securityPolicyProtocol_SSL_V3,\n\t\t // default\n\t\tsslMethod: cloudfront.sSLMethod_SNI,\n\t}),\n})",
11984 "version": "1"
11985 },
11986 "$": {
11987 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });",
11988 "version": "0"
11989 }
11990 },
11991 "location": {
11992 "api": {
11993 "api": "type",
11994 "fqn": "@aws-cdk/aws-cloudfront.SSLMethod"
11995 },
11996 "field": {
11997 "field": "example"
11998 }
11999 },
12000 "didCompile": true,
12001 "fqnsReferenced": [
12002 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
12003 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
12004 "@aws-cdk/aws-cloudfront.S3OriginConfig",
12005 "@aws-cdk/aws-cloudfront.SSLMethod",
12006 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
12007 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
12008 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
12009 "@aws-cdk/aws-cloudfront.ViewerCertificate",
12010 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
12011 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
12012 "@aws-cdk/aws-s3.Bucket",
12013 "@aws-cdk/aws-s3.IBucket",
12014 "constructs.Construct"
12015 ],
12016 "fullSource": "import * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
12017 "syntaxKindCounter": {
12018 "10": 4,
12019 "75": 24,
12020 "104": 2,
12021 "106": 1,
12022 "192": 3,
12023 "193": 5,
12024 "194": 8,
12025 "196": 1,
12026 "197": 2,
12027 "225": 2,
12028 "242": 2,
12029 "243": 2,
12030 "281": 8,
12031 "282": 1
12032 },
12033 "fqnsFingerprint": "553e0e84141237f23233031cbf607034ad3d9c6bd9373a50a3b4012e74732b57"
12034 },
12035 "d8f730e470ded7a8242981ff07a5eae90d19dc0301d08bb5e29ed4724873e235": {
12036 "translations": {
12037 "python": {
12038 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_iam_certificate(\"certificateId\",\n aliases=[\"example.com\"],\n security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3, # default\n ssl_method=cloudfront.SSLMethod.SNI\n )\n)",
12039 "version": "2"
12040 },
12041 "csharp": {
12042 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromIamCertificate(\"certificateId\", new ViewerCertificateOptions {\n Aliases = new [] { \"example.com\" },\n SecurityPolicy = SecurityPolicyProtocol.SSL_V3, // default\n SslMethod = SSLMethod.SNI\n })\n});",
12043 "version": "1"
12044 },
12045 "java": {
12046 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromIamCertificate(\"certificateId\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"example.com\"))\n .securityPolicy(SecurityPolicyProtocol.SSL_V3) // default\n .sslMethod(SSLMethod.SNI)\n .build()))\n .build();",
12047 "version": "1"
12048 },
12049 "go": {
12050 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"certificateId\"), &viewerCertificateOptions{\n\t\taliases: []*string{\n\t\t\tjsii.String(\"example.com\"),\n\t\t},\n\t\tsecurityPolicy: cloudfront.securityPolicyProtocol_SSL_V3,\n\t\t // default\n\t\tsslMethod: cloudfront.sSLMethod_SNI,\n\t}),\n})",
12051 "version": "1"
12052 },
12053 "$": {
12054 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });",
12055 "version": "0"
12056 }
12057 },
12058 "location": {
12059 "api": {
12060 "api": "type",
12061 "fqn": "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol"
12062 },
12063 "field": {
12064 "field": "example"
12065 }
12066 },
12067 "didCompile": true,
12068 "fqnsReferenced": [
12069 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
12070 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
12071 "@aws-cdk/aws-cloudfront.S3OriginConfig",
12072 "@aws-cdk/aws-cloudfront.SSLMethod",
12073 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
12074 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
12075 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
12076 "@aws-cdk/aws-cloudfront.ViewerCertificate",
12077 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
12078 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
12079 "@aws-cdk/aws-s3.Bucket",
12080 "@aws-cdk/aws-s3.IBucket",
12081 "constructs.Construct"
12082 ],
12083 "fullSource": "import * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
12084 "syntaxKindCounter": {
12085 "10": 4,
12086 "75": 24,
12087 "104": 2,
12088 "106": 1,
12089 "192": 3,
12090 "193": 5,
12091 "194": 8,
12092 "196": 1,
12093 "197": 2,
12094 "225": 2,
12095 "242": 2,
12096 "243": 2,
12097 "281": 8,
12098 "282": 1
12099 },
12100 "fqnsFingerprint": "553e0e84141237f23233031cbf607034ad3d9c6bd9373a50a3b4012e74732b57"
12101 },
12102 "7ae62c1b8e34dae5b0c2055258e637e3db42b51442c9c2141f3f0189de21cc4a": {
12103 "translations": {
12104 "python": {
12105 "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_cloudfront as cloudfront\nimport aws_cdk.aws_lambda as lambda_\nimport aws_cdk.aws_s3 as s3\nimport aws_cdk.core as cdk\n\n# bucket: s3.Bucket\n# function_: cloudfront.Function\n# key_group: cloudfront.KeyGroup\n# origin_access_identity: cloudfront.OriginAccessIdentity\n# version: lambda.Version\n\nsource_configuration = cloudfront.SourceConfiguration(\n behaviors=[cloudfront.Behavior(\n allowed_methods=cloudfront.CloudFrontAllowedMethods.GET_HEAD,\n cached_methods=cloudfront.CloudFrontAllowedCachedMethods.GET_HEAD,\n compress=False,\n default_ttl=cdk.Duration.minutes(30),\n forwarded_values=cloudfront.CfnDistribution.ForwardedValuesProperty(\n query_string=False,\n\n # the properties below are optional\n cookies=cloudfront.CfnDistribution.CookiesProperty(\n forward=\"forward\",\n\n # the properties below are optional\n whitelisted_names=[\"whitelistedNames\"]\n ),\n headers=[\"headers\"],\n query_string_cache_keys=[\"queryStringCacheKeys\"]\n ),\n function_associations=[cloudfront.FunctionAssociation(\n event_type=cloudfront.FunctionEventType.VIEWER_REQUEST,\n function=function_\n )],\n is_default_behavior=False,\n lambda_function_associations=[cloudfront.LambdaFunctionAssociation(\n event_type=cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambda_function=version,\n\n # the properties below are optional\n include_body=False\n )],\n max_ttl=cdk.Duration.minutes(30),\n min_ttl=cdk.Duration.minutes(30),\n path_pattern=\"pathPattern\",\n trusted_key_groups=[key_group],\n trusted_signers=[\"trustedSigners\"],\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.HTTPS_ONLY\n )],\n\n # the properties below are optional\n connection_attempts=123,\n connection_timeout=cdk.Duration.minutes(30),\n custom_origin_source=cloudfront.CustomOriginConfig(\n domain_name=\"domainName\",\n\n # the properties below are optional\n allowed_origin_sSLVersions=[cloudfront.OriginSslPolicy.SSL_V3],\n http_port=123,\n https_port=123,\n origin_headers={\n \"origin_headers_key\": \"originHeaders\"\n },\n origin_keepalive_timeout=cdk.Duration.minutes(30),\n origin_path=\"originPath\",\n origin_protocol_policy=cloudfront.OriginProtocolPolicy.HTTP_ONLY,\n origin_read_timeout=cdk.Duration.minutes(30),\n origin_shield_region=\"originShieldRegion\"\n ),\n failover_criteria_status_codes=[cloudfront.FailoverStatusCode.FORBIDDEN],\n failover_custom_origin_source=cloudfront.CustomOriginConfig(\n domain_name=\"domainName\",\n\n # the properties below are optional\n allowed_origin_sSLVersions=[cloudfront.OriginSslPolicy.SSL_V3],\n http_port=123,\n https_port=123,\n origin_headers={\n \"origin_headers_key\": \"originHeaders\"\n },\n origin_keepalive_timeout=cdk.Duration.minutes(30),\n origin_path=\"originPath\",\n origin_protocol_policy=cloudfront.OriginProtocolPolicy.HTTP_ONLY,\n origin_read_timeout=cdk.Duration.minutes(30),\n origin_shield_region=\"originShieldRegion\"\n ),\n failover_s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=bucket,\n\n # the properties below are optional\n origin_access_identity=origin_access_identity,\n origin_headers={\n \"origin_headers_key\": \"originHeaders\"\n },\n origin_path=\"originPath\",\n origin_shield_region=\"originShieldRegion\"\n ),\n origin_headers={\n \"origin_headers_key\": \"originHeaders\"\n },\n origin_path=\"originPath\",\n origin_shield_region=\"originShieldRegion\",\n s3_origin_source=cloudfront.S3OriginConfig(\n s3_bucket_source=bucket,\n\n # the properties below are optional\n origin_access_identity=origin_access_identity,\n origin_headers={\n \"origin_headers_key\": \"originHeaders\"\n },\n origin_path=\"originPath\",\n origin_shield_region=\"originShieldRegion\"\n )\n)",
12106 "version": "2"
12107 },
12108 "csharp": {
12109 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.CloudFront;\nusing Amazon.CDK.AWS.Lambda;\nusing Amazon.CDK.AWS.S3;\nusing Amazon.CDK;\n\nBucket bucket;\nFunction function_;\nKeyGroup keyGroup;\nOriginAccessIdentity originAccessIdentity;\nVersion version;\nSourceConfiguration sourceConfiguration = new SourceConfiguration {\n Behaviors = new [] { new Behavior {\n AllowedMethods = CloudFrontAllowedMethods.GET_HEAD,\n CachedMethods = CloudFrontAllowedCachedMethods.GET_HEAD,\n Compress = false,\n DefaultTtl = Duration.Minutes(30),\n ForwardedValues = new ForwardedValuesProperty {\n QueryString = false,\n\n // the properties below are optional\n Cookies = new CookiesProperty {\n Forward = \"forward\",\n\n // the properties below are optional\n WhitelistedNames = new [] { \"whitelistedNames\" }\n },\n Headers = new [] { \"headers\" },\n QueryStringCacheKeys = new [] { \"queryStringCacheKeys\" }\n },\n FunctionAssociations = new [] { new FunctionAssociation {\n EventType = FunctionEventType.VIEWER_REQUEST,\n Function = function_\n } },\n IsDefaultBehavior = false,\n LambdaFunctionAssociations = new [] { new LambdaFunctionAssociation {\n EventType = LambdaEdgeEventType.ORIGIN_REQUEST,\n LambdaFunction = version,\n\n // the properties below are optional\n IncludeBody = false\n } },\n MaxTtl = Duration.Minutes(30),\n MinTtl = Duration.Minutes(30),\n PathPattern = \"pathPattern\",\n TrustedKeyGroups = new [] { keyGroup },\n TrustedSigners = new [] { \"trustedSigners\" },\n ViewerProtocolPolicy = ViewerProtocolPolicy.HTTPS_ONLY\n } },\n\n // the properties below are optional\n ConnectionAttempts = 123,\n ConnectionTimeout = Duration.Minutes(30),\n CustomOriginSource = new CustomOriginConfig {\n DomainName = \"domainName\",\n\n // the properties below are optional\n AllowedOriginSSLVersions = new [] { OriginSslPolicy.SSL_V3 },\n HttpPort = 123,\n HttpsPort = 123,\n OriginHeaders = new Dictionary<string, string> {\n { \"originHeadersKey\", \"originHeaders\" }\n },\n OriginKeepaliveTimeout = Duration.Minutes(30),\n OriginPath = \"originPath\",\n OriginProtocolPolicy = OriginProtocolPolicy.HTTP_ONLY,\n OriginReadTimeout = Duration.Minutes(30),\n OriginShieldRegion = \"originShieldRegion\"\n },\n FailoverCriteriaStatusCodes = new [] { FailoverStatusCode.FORBIDDEN },\n FailoverCustomOriginSource = new CustomOriginConfig {\n DomainName = \"domainName\",\n\n // the properties below are optional\n AllowedOriginSSLVersions = new [] { OriginSslPolicy.SSL_V3 },\n HttpPort = 123,\n HttpsPort = 123,\n OriginHeaders = new Dictionary<string, string> {\n { \"originHeadersKey\", \"originHeaders\" }\n },\n OriginKeepaliveTimeout = Duration.Minutes(30),\n OriginPath = \"originPath\",\n OriginProtocolPolicy = OriginProtocolPolicy.HTTP_ONLY,\n OriginReadTimeout = Duration.Minutes(30),\n OriginShieldRegion = \"originShieldRegion\"\n },\n FailoverS3OriginSource = new S3OriginConfig {\n S3BucketSource = bucket,\n\n // the properties below are optional\n OriginAccessIdentity = originAccessIdentity,\n OriginHeaders = new Dictionary<string, string> {\n { \"originHeadersKey\", \"originHeaders\" }\n },\n OriginPath = \"originPath\",\n OriginShieldRegion = \"originShieldRegion\"\n },\n OriginHeaders = new Dictionary<string, string> {\n { \"originHeadersKey\", \"originHeaders\" }\n },\n OriginPath = \"originPath\",\n OriginShieldRegion = \"originShieldRegion\",\n S3OriginSource = new S3OriginConfig {\n S3BucketSource = bucket,\n\n // the properties below are optional\n OriginAccessIdentity = originAccessIdentity,\n OriginHeaders = new Dictionary<string, string> {\n { \"originHeadersKey\", \"originHeaders\" }\n },\n OriginPath = \"originPath\",\n OriginShieldRegion = \"originShieldRegion\"\n }\n};",
12110 "version": "1"
12111 },
12112 "java": {
12113 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.cloudfront.*;\nimport software.amazon.awscdk.services.lambda.*;\nimport software.amazon.awscdk.services.s3.*;\nimport software.amazon.awscdk.core.*;\n\nBucket bucket;\nFunction function_;\nKeyGroup keyGroup;\nOriginAccessIdentity originAccessIdentity;\nVersion version;\n\nSourceConfiguration sourceConfiguration = SourceConfiguration.builder()\n .behaviors(List.of(Behavior.builder()\n .allowedMethods(CloudFrontAllowedMethods.GET_HEAD)\n .cachedMethods(CloudFrontAllowedCachedMethods.GET_HEAD)\n .compress(false)\n .defaultTtl(Duration.minutes(30))\n .forwardedValues(ForwardedValuesProperty.builder()\n .queryString(false)\n\n // the properties below are optional\n .cookies(CookiesProperty.builder()\n .forward(\"forward\")\n\n // the properties below are optional\n .whitelistedNames(List.of(\"whitelistedNames\"))\n .build())\n .headers(List.of(\"headers\"))\n .queryStringCacheKeys(List.of(\"queryStringCacheKeys\"))\n .build())\n .functionAssociations(List.of(FunctionAssociation.builder()\n .eventType(FunctionEventType.VIEWER_REQUEST)\n .function(function_)\n .build()))\n .isDefaultBehavior(false)\n .lambdaFunctionAssociations(List.of(LambdaFunctionAssociation.builder()\n .eventType(LambdaEdgeEventType.ORIGIN_REQUEST)\n .lambdaFunction(version)\n\n // the properties below are optional\n .includeBody(false)\n .build()))\n .maxTtl(Duration.minutes(30))\n .minTtl(Duration.minutes(30))\n .pathPattern(\"pathPattern\")\n .trustedKeyGroups(List.of(keyGroup))\n .trustedSigners(List.of(\"trustedSigners\"))\n .viewerProtocolPolicy(ViewerProtocolPolicy.HTTPS_ONLY)\n .build()))\n\n // the properties below are optional\n .connectionAttempts(123)\n .connectionTimeout(Duration.minutes(30))\n .customOriginSource(CustomOriginConfig.builder()\n .domainName(\"domainName\")\n\n // the properties below are optional\n .allowedOriginSSLVersions(List.of(OriginSslPolicy.SSL_V3))\n .httpPort(123)\n .httpsPort(123)\n .originHeaders(Map.of(\n \"originHeadersKey\", \"originHeaders\"))\n .originKeepaliveTimeout(Duration.minutes(30))\n .originPath(\"originPath\")\n .originProtocolPolicy(OriginProtocolPolicy.HTTP_ONLY)\n .originReadTimeout(Duration.minutes(30))\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .failoverCriteriaStatusCodes(List.of(FailoverStatusCode.FORBIDDEN))\n .failoverCustomOriginSource(CustomOriginConfig.builder()\n .domainName(\"domainName\")\n\n // the properties below are optional\n .allowedOriginSSLVersions(List.of(OriginSslPolicy.SSL_V3))\n .httpPort(123)\n .httpsPort(123)\n .originHeaders(Map.of(\n \"originHeadersKey\", \"originHeaders\"))\n .originKeepaliveTimeout(Duration.minutes(30))\n .originPath(\"originPath\")\n .originProtocolPolicy(OriginProtocolPolicy.HTTP_ONLY)\n .originReadTimeout(Duration.minutes(30))\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .failoverS3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(bucket)\n\n // the properties below are optional\n .originAccessIdentity(originAccessIdentity)\n .originHeaders(Map.of(\n \"originHeadersKey\", \"originHeaders\"))\n .originPath(\"originPath\")\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .originHeaders(Map.of(\n \"originHeadersKey\", \"originHeaders\"))\n .originPath(\"originPath\")\n .originShieldRegion(\"originShieldRegion\")\n .s3OriginSource(S3OriginConfig.builder()\n .s3BucketSource(bucket)\n\n // the properties below are optional\n .originAccessIdentity(originAccessIdentity)\n .originHeaders(Map.of(\n \"originHeadersKey\", \"originHeaders\"))\n .originPath(\"originPath\")\n .originShieldRegion(\"originShieldRegion\")\n .build())\n .build();",
12114 "version": "1"
12115 },
12116 "go": {
12117 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport cloudfront \"github.com/aws-samples/dummy/awscdkawscloudfront\"\nimport lambda \"github.com/aws-samples/dummy/awscdkawslambda\"\nimport s3 \"github.com/aws-samples/dummy/awscdkawss3\"\nimport cdk \"github.com/aws-samples/dummy/awscdkcore\"\n\nvar bucket bucket\nvar function_ function\nvar keyGroup keyGroup\nvar originAccessIdentity originAccessIdentity\nvar version version\n\nsourceConfiguration := &sourceConfiguration{\n\tbehaviors: []behavior{\n\t\t&behavior{\n\t\t\tallowedMethods: cloudfront.cloudFrontAllowedMethods_GET_HEAD,\n\t\t\tcachedMethods: cloudfront.cloudFrontAllowedCachedMethods_GET_HEAD,\n\t\t\tcompress: jsii.Boolean(false),\n\t\t\tdefaultTtl: cdk.duration.minutes(jsii.Number(30)),\n\t\t\tforwardedValues: &forwardedValuesProperty{\n\t\t\t\tqueryString: jsii.Boolean(false),\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tcookies: &cookiesProperty{\n\t\t\t\t\tforward: jsii.String(\"forward\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\twhitelistedNames: []*string{\n\t\t\t\t\t\tjsii.String(\"whitelistedNames\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\theaders: []*string{\n\t\t\t\t\tjsii.String(\"headers\"),\n\t\t\t\t},\n\t\t\t\tqueryStringCacheKeys: []*string{\n\t\t\t\t\tjsii.String(\"queryStringCacheKeys\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tfunctionAssociations: []functionAssociation{\n\t\t\t\t&functionAssociation{\n\t\t\t\t\teventType: cloudfront.functionEventType_VIEWER_REQUEST,\n\t\t\t\t\tfunction: function_,\n\t\t\t\t},\n\t\t\t},\n\t\t\tisDefaultBehavior: jsii.Boolean(false),\n\t\t\tlambdaFunctionAssociations: []lambdaFunctionAssociation{\n\t\t\t\t&lambdaFunctionAssociation{\n\t\t\t\t\teventType: cloudfront.lambdaEdgeEventType_ORIGIN_REQUEST,\n\t\t\t\t\tlambdaFunction: version,\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\tincludeBody: jsii.Boolean(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tmaxTtl: cdk.*duration.minutes(jsii.Number(30)),\n\t\t\tminTtl: cdk.*duration.minutes(jsii.Number(30)),\n\t\t\tpathPattern: jsii.String(\"pathPattern\"),\n\t\t\ttrustedKeyGroups: []iKeyGroup{\n\t\t\t\tkeyGroup,\n\t\t\t},\n\t\t\ttrustedSigners: []*string{\n\t\t\t\tjsii.String(\"trustedSigners\"),\n\t\t\t},\n\t\t\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_HTTPS_ONLY,\n\t\t},\n\t},\n\n\t// the properties below are optional\n\tconnectionAttempts: jsii.Number(123),\n\tconnectionTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\tcustomOriginSource: &customOriginConfig{\n\t\tdomainName: jsii.String(\"domainName\"),\n\n\t\t// the properties below are optional\n\t\tallowedOriginSSLVersions: []originSslPolicy{\n\t\t\tcloudfront.*originSslPolicy_SSL_V3,\n\t\t},\n\t\thttpPort: jsii.Number(123),\n\t\thttpsPort: jsii.Number(123),\n\t\toriginHeaders: map[string]*string{\n\t\t\t\"originHeadersKey\": jsii.String(\"originHeaders\"),\n\t\t},\n\t\toriginKeepaliveTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t\toriginPath: jsii.String(\"originPath\"),\n\t\toriginProtocolPolicy: cloudfront.originProtocolPolicy_HTTP_ONLY,\n\t\toriginReadTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t},\n\tfailoverCriteriaStatusCodes: []failoverStatusCode{\n\t\tcloudfront.*failoverStatusCode_FORBIDDEN,\n\t},\n\tfailoverCustomOriginSource: &customOriginConfig{\n\t\tdomainName: jsii.String(\"domainName\"),\n\n\t\t// the properties below are optional\n\t\tallowedOriginSSLVersions: []*originSslPolicy{\n\t\t\tcloudfront.*originSslPolicy_SSL_V3,\n\t\t},\n\t\thttpPort: jsii.Number(123),\n\t\thttpsPort: jsii.Number(123),\n\t\toriginHeaders: map[string]*string{\n\t\t\t\"originHeadersKey\": jsii.String(\"originHeaders\"),\n\t\t},\n\t\toriginKeepaliveTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t\toriginPath: jsii.String(\"originPath\"),\n\t\toriginProtocolPolicy: cloudfront.*originProtocolPolicy_HTTP_ONLY,\n\t\toriginReadTimeout: cdk.*duration.minutes(jsii.Number(30)),\n\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t},\n\tfailoverS3OriginSource: &s3OriginConfig{\n\t\ts3BucketSource: bucket,\n\n\t\t// the properties below are optional\n\t\toriginAccessIdentity: originAccessIdentity,\n\t\toriginHeaders: map[string]*string{\n\t\t\t\"originHeadersKey\": jsii.String(\"originHeaders\"),\n\t\t},\n\t\toriginPath: jsii.String(\"originPath\"),\n\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t},\n\toriginHeaders: map[string]*string{\n\t\t\"originHeadersKey\": jsii.String(\"originHeaders\"),\n\t},\n\toriginPath: jsii.String(\"originPath\"),\n\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\ts3OriginSource: &s3OriginConfig{\n\t\ts3BucketSource: bucket,\n\n\t\t// the properties below are optional\n\t\toriginAccessIdentity: originAccessIdentity,\n\t\toriginHeaders: map[string]*string{\n\t\t\t\"originHeadersKey\": jsii.String(\"originHeaders\"),\n\t\t},\n\t\toriginPath: jsii.String(\"originPath\"),\n\t\toriginShieldRegion: jsii.String(\"originShieldRegion\"),\n\t},\n}",
12118 "version": "1"
12119 },
12120 "$": {
12121 "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const bucket: s3.Bucket;\ndeclare const function_: cloudfront.Function;\ndeclare const keyGroup: cloudfront.KeyGroup;\ndeclare const originAccessIdentity: cloudfront.OriginAccessIdentity;\ndeclare const version: lambda.Version;\nconst sourceConfiguration: cloudfront.SourceConfiguration = {\n behaviors: [{\n allowedMethods: cloudfront.CloudFrontAllowedMethods.GET_HEAD,\n cachedMethods: cloudfront.CloudFrontAllowedCachedMethods.GET_HEAD,\n compress: false,\n defaultTtl: cdk.Duration.minutes(30),\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n function: function_,\n }],\n isDefaultBehavior: false,\n lambdaFunctionAssociations: [{\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambdaFunction: version,\n\n // the properties below are optional\n includeBody: false,\n }],\n maxTtl: cdk.Duration.minutes(30),\n minTtl: cdk.Duration.minutes(30),\n pathPattern: 'pathPattern',\n trustedKeyGroups: [keyGroup],\n trustedSigners: ['trustedSigners'],\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.HTTPS_ONLY,\n }],\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: cdk.Duration.minutes(30),\n customOriginSource: {\n domainName: 'domainName',\n\n // the properties below are optional\n allowedOriginSSLVersions: [cloudfront.OriginSslPolicy.SSL_V3],\n httpPort: 123,\n httpsPort: 123,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originKeepaliveTimeout: cdk.Duration.minutes(30),\n originPath: 'originPath',\n originProtocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,\n originReadTimeout: cdk.Duration.minutes(30),\n originShieldRegion: 'originShieldRegion',\n },\n failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.FORBIDDEN],\n failoverCustomOriginSource: {\n domainName: 'domainName',\n\n // the properties below are optional\n allowedOriginSSLVersions: [cloudfront.OriginSslPolicy.SSL_V3],\n httpPort: 123,\n httpsPort: 123,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originKeepaliveTimeout: cdk.Duration.minutes(30),\n originPath: 'originPath',\n originProtocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,\n originReadTimeout: cdk.Duration.minutes(30),\n originShieldRegion: 'originShieldRegion',\n },\n failoverS3OriginSource: {\n s3BucketSource: bucket,\n\n // the properties below are optional\n originAccessIdentity: originAccessIdentity,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n },\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n s3OriginSource: {\n s3BucketSource: bucket,\n\n // the properties below are optional\n originAccessIdentity: originAccessIdentity,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n },\n};",
12122 "version": "0"
12123 }
12124 },
12125 "location": {
12126 "api": {
12127 "api": "type",
12128 "fqn": "@aws-cdk/aws-cloudfront.SourceConfiguration"
12129 },
12130 "field": {
12131 "field": "example"
12132 }
12133 },
12134 "didCompile": true,
12135 "fqnsReferenced": [
12136 "@aws-cdk/aws-cloudfront.CfnDistribution.ForwardedValuesProperty",
12137 "@aws-cdk/aws-cloudfront.CloudFrontAllowedCachedMethods",
12138 "@aws-cdk/aws-cloudfront.CloudFrontAllowedCachedMethods#GET_HEAD",
12139 "@aws-cdk/aws-cloudfront.CloudFrontAllowedMethods",
12140 "@aws-cdk/aws-cloudfront.CloudFrontAllowedMethods#GET_HEAD",
12141 "@aws-cdk/aws-cloudfront.CustomOriginConfig",
12142 "@aws-cdk/aws-cloudfront.FailoverStatusCode",
12143 "@aws-cdk/aws-cloudfront.FailoverStatusCode#FORBIDDEN",
12144 "@aws-cdk/aws-cloudfront.FunctionEventType",
12145 "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
12146 "@aws-cdk/aws-cloudfront.IFunction",
12147 "@aws-cdk/aws-cloudfront.IOriginAccessIdentity",
12148 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
12149 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
12150 "@aws-cdk/aws-cloudfront.OriginProtocolPolicy",
12151 "@aws-cdk/aws-cloudfront.OriginProtocolPolicy#HTTP_ONLY",
12152 "@aws-cdk/aws-cloudfront.OriginSslPolicy",
12153 "@aws-cdk/aws-cloudfront.OriginSslPolicy#SSL_V3",
12154 "@aws-cdk/aws-cloudfront.S3OriginConfig",
12155 "@aws-cdk/aws-cloudfront.SourceConfiguration",
12156 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
12157 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#HTTPS_ONLY",
12158 "@aws-cdk/aws-lambda.IVersion",
12159 "@aws-cdk/aws-s3.IBucket",
12160 "@aws-cdk/core.Duration",
12161 "@aws-cdk/core.Duration#minutes"
12162 ],
12163 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as cdk from '@aws-cdk/core';\n\ndeclare const bucket: s3.Bucket;\ndeclare const function_: cloudfront.Function;\ndeclare const keyGroup: cloudfront.KeyGroup;\ndeclare const originAccessIdentity: cloudfront.OriginAccessIdentity;\ndeclare const version: lambda.Version;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"@aws-cdk/core\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst sourceConfiguration: cloudfront.SourceConfiguration = {\n behaviors: [{\n allowedMethods: cloudfront.CloudFrontAllowedMethods.GET_HEAD,\n cachedMethods: cloudfront.CloudFrontAllowedCachedMethods.GET_HEAD,\n compress: false,\n defaultTtl: cdk.Duration.minutes(30),\n forwardedValues: {\n queryString: false,\n\n // the properties below are optional\n cookies: {\n forward: 'forward',\n\n // the properties below are optional\n whitelistedNames: ['whitelistedNames'],\n },\n headers: ['headers'],\n queryStringCacheKeys: ['queryStringCacheKeys'],\n },\n functionAssociations: [{\n eventType: cloudfront.FunctionEventType.VIEWER_REQUEST,\n function: function_,\n }],\n isDefaultBehavior: false,\n lambdaFunctionAssociations: [{\n eventType: cloudfront.LambdaEdgeEventType.ORIGIN_REQUEST,\n lambdaFunction: version,\n\n // the properties below are optional\n includeBody: false,\n }],\n maxTtl: cdk.Duration.minutes(30),\n minTtl: cdk.Duration.minutes(30),\n pathPattern: 'pathPattern',\n trustedKeyGroups: [keyGroup],\n trustedSigners: ['trustedSigners'],\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.HTTPS_ONLY,\n }],\n\n // the properties below are optional\n connectionAttempts: 123,\n connectionTimeout: cdk.Duration.minutes(30),\n customOriginSource: {\n domainName: 'domainName',\n\n // the properties below are optional\n allowedOriginSSLVersions: [cloudfront.OriginSslPolicy.SSL_V3],\n httpPort: 123,\n httpsPort: 123,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originKeepaliveTimeout: cdk.Duration.minutes(30),\n originPath: 'originPath',\n originProtocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,\n originReadTimeout: cdk.Duration.minutes(30),\n originShieldRegion: 'originShieldRegion',\n },\n failoverCriteriaStatusCodes: [cloudfront.FailoverStatusCode.FORBIDDEN],\n failoverCustomOriginSource: {\n domainName: 'domainName',\n\n // the properties below are optional\n allowedOriginSSLVersions: [cloudfront.OriginSslPolicy.SSL_V3],\n httpPort: 123,\n httpsPort: 123,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originKeepaliveTimeout: cdk.Duration.minutes(30),\n originPath: 'originPath',\n originProtocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,\n originReadTimeout: cdk.Duration.minutes(30),\n originShieldRegion: 'originShieldRegion',\n },\n failoverS3OriginSource: {\n s3BucketSource: bucket,\n\n // the properties below are optional\n originAccessIdentity: originAccessIdentity,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n },\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n s3OriginSource: {\n s3BucketSource: bucket,\n\n // the properties below are optional\n originAccessIdentity: originAccessIdentity,\n originHeaders: {\n originHeadersKey: 'originHeaders',\n },\n originPath: 'originPath',\n originShieldRegion: 'originShieldRegion',\n },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
12164 "syntaxKindCounter": {
12165 "8": 13,
12166 "10": 27,
12167 "75": 154,
12168 "91": 4,
12169 "130": 5,
12170 "153": 6,
12171 "169": 6,
12172 "192": 11,
12173 "193": 15,
12174 "194": 36,
12175 "196": 8,
12176 "225": 6,
12177 "242": 6,
12178 "243": 6,
12179 "254": 4,
12180 "255": 4,
12181 "256": 4,
12182 "281": 71,
12183 "290": 1
12184 },
12185 "fqnsFingerprint": "bfc98fd5351f260aacd70b2b0220e687210047243519e89f99ee8f07fe0599bd"
12186 },
12187 "ae421cd1d84904bd23e0027c2ee990fa442c9ab0934976a64c5b29f903110907": {
12188 "translations": {
12189 "python": {
12190 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_iam_certificate(\"certificateId\",\n aliases=[\"example.com\"],\n security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3, # default\n ssl_method=cloudfront.SSLMethod.SNI\n )\n)",
12191 "version": "2"
12192 },
12193 "csharp": {
12194 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromIamCertificate(\"certificateId\", new ViewerCertificateOptions {\n Aliases = new [] { \"example.com\" },\n SecurityPolicy = SecurityPolicyProtocol.SSL_V3, // default\n SslMethod = SSLMethod.SNI\n })\n});",
12195 "version": "1"
12196 },
12197 "java": {
12198 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromIamCertificate(\"certificateId\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"example.com\"))\n .securityPolicy(SecurityPolicyProtocol.SSL_V3) // default\n .sslMethod(SSLMethod.SNI)\n .build()))\n .build();",
12199 "version": "1"
12200 },
12201 "go": {
12202 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"certificateId\"), &viewerCertificateOptions{\n\t\taliases: []*string{\n\t\t\tjsii.String(\"example.com\"),\n\t\t},\n\t\tsecurityPolicy: cloudfront.securityPolicyProtocol_SSL_V3,\n\t\t // default\n\t\tsslMethod: cloudfront.sSLMethod_SNI,\n\t}),\n})",
12203 "version": "1"
12204 },
12205 "$": {
12206 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });",
12207 "version": "0"
12208 }
12209 },
12210 "location": {
12211 "api": {
12212 "api": "type",
12213 "fqn": "@aws-cdk/aws-cloudfront.ViewerCertificate"
12214 },
12215 "field": {
12216 "field": "example"
12217 }
12218 },
12219 "didCompile": true,
12220 "fqnsReferenced": [
12221 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
12222 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
12223 "@aws-cdk/aws-cloudfront.S3OriginConfig",
12224 "@aws-cdk/aws-cloudfront.SSLMethod",
12225 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
12226 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
12227 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
12228 "@aws-cdk/aws-cloudfront.ViewerCertificate",
12229 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
12230 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
12231 "@aws-cdk/aws-s3.Bucket",
12232 "@aws-cdk/aws-s3.IBucket",
12233 "constructs.Construct"
12234 ],
12235 "fullSource": "import * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
12236 "syntaxKindCounter": {
12237 "10": 4,
12238 "75": 24,
12239 "104": 2,
12240 "106": 1,
12241 "192": 3,
12242 "193": 5,
12243 "194": 8,
12244 "196": 1,
12245 "197": 2,
12246 "225": 2,
12247 "242": 2,
12248 "243": 2,
12249 "281": 8,
12250 "282": 1
12251 },
12252 "fqnsFingerprint": "553e0e84141237f23233031cbf607034ad3d9c6bd9373a50a3b4012e74732b57"
12253 },
12254 "b8a580234ca969ea073380a0dbcf3553086a517368fbef151246b227a93eb64c": {
12255 "translations": {
12256 "python": {
12257 "source": "s3_bucket_source = s3.Bucket(self, \"Bucket\")\n\ndistribution = cloudfront.CloudFrontWebDistribution(self, \"AnAmazingWebsiteProbably\",\n origin_configs=[cloudfront.SourceConfiguration(\n s3_origin_source=cloudfront.S3OriginConfig(s3_bucket_source=s3_bucket_source),\n behaviors=[cloudfront.Behavior(is_default_behavior=True)]\n )],\n viewer_certificate=cloudfront.ViewerCertificate.from_iam_certificate(\"certificateId\",\n aliases=[\"example.com\"],\n security_policy=cloudfront.SecurityPolicyProtocol.SSL_V3, # default\n ssl_method=cloudfront.SSLMethod.SNI\n )\n)",
12258 "version": "2"
12259 },
12260 "csharp": {
12261 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = new CloudFrontWebDistribution(this, \"AnAmazingWebsiteProbably\", new CloudFrontWebDistributionProps {\n OriginConfigs = new [] { new SourceConfiguration {\n S3OriginSource = new S3OriginConfig { S3BucketSource = s3BucketSource },\n Behaviors = new [] { new Behavior { IsDefaultBehavior = true } }\n } },\n ViewerCertificate = ViewerCertificate.FromIamCertificate(\"certificateId\", new ViewerCertificateOptions {\n Aliases = new [] { \"example.com\" },\n SecurityPolicy = SecurityPolicyProtocol.SSL_V3, // default\n SslMethod = SSLMethod.SNI\n })\n});",
12262 "version": "1"
12263 },
12264 "java": {
12265 "source": "Bucket s3BucketSource = new Bucket(this, \"Bucket\");\n\nCloudFrontWebDistribution distribution = CloudFrontWebDistribution.Builder.create(this, \"AnAmazingWebsiteProbably\")\n .originConfigs(List.of(SourceConfiguration.builder()\n .s3OriginSource(S3OriginConfig.builder().s3BucketSource(s3BucketSource).build())\n .behaviors(List.of(Behavior.builder().isDefaultBehavior(true).build()))\n .build()))\n .viewerCertificate(ViewerCertificate.fromIamCertificate(\"certificateId\", ViewerCertificateOptions.builder()\n .aliases(List.of(\"example.com\"))\n .securityPolicy(SecurityPolicyProtocol.SSL_V3) // default\n .sslMethod(SSLMethod.SNI)\n .build()))\n .build();",
12266 "version": "1"
12267 },
12268 "go": {
12269 "source": "s3BucketSource := s3.NewBucket(this, jsii.String(\"Bucket\"))\n\ndistribution := cloudfront.NewCloudFrontWebDistribution(this, jsii.String(\"AnAmazingWebsiteProbably\"), &cloudFrontWebDistributionProps{\n\toriginConfigs: []sourceConfiguration{\n\t\t&sourceConfiguration{\n\t\t\ts3OriginSource: &s3OriginConfig{\n\t\t\t\ts3BucketSource: s3BucketSource,\n\t\t\t},\n\t\t\tbehaviors: []behavior{\n\t\t\t\t&behavior{\n\t\t\t\t\tisDefaultBehavior: jsii.Boolean(true),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n\tviewerCertificate: cloudfront.viewerCertificate.fromIamCertificate(jsii.String(\"certificateId\"), &viewerCertificateOptions{\n\t\taliases: []*string{\n\t\t\tjsii.String(\"example.com\"),\n\t\t},\n\t\tsecurityPolicy: cloudfront.securityPolicyProtocol_SSL_V3,\n\t\t // default\n\t\tsslMethod: cloudfront.sSLMethod_SNI,\n\t}),\n})",
12270 "version": "1"
12271 },
12272 "$": {
12273 "source": " const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });",
12274 "version": "0"
12275 }
12276 },
12277 "location": {
12278 "api": {
12279 "api": "type",
12280 "fqn": "@aws-cdk/aws-cloudfront.ViewerCertificateOptions"
12281 },
12282 "field": {
12283 "field": "example"
12284 }
12285 },
12286 "didCompile": true,
12287 "fqnsReferenced": [
12288 "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
12289 "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
12290 "@aws-cdk/aws-cloudfront.S3OriginConfig",
12291 "@aws-cdk/aws-cloudfront.SSLMethod",
12292 "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
12293 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
12294 "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
12295 "@aws-cdk/aws-cloudfront.ViewerCertificate",
12296 "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
12297 "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
12298 "@aws-cdk/aws-s3.Bucket",
12299 "@aws-cdk/aws-s3.IBucket",
12300 "constructs.Construct"
12301 ],
12302 "fullSource": "import * as s3 from '@aws-cdk/aws-s3';\nimport { App, Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as cloudfront from '../lib';\n\nclass AcmCertificateAliasStack extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n /// !show\n const s3BucketSource = new s3.Bucket(this, 'Bucket');\n\n const distribution = new cloudfront.CloudFrontWebDistribution(this, 'AnAmazingWebsiteProbably', {\n originConfigs: [{\n s3OriginSource: { s3BucketSource },\n behaviors: [{ isDefaultBehavior: true }],\n }],\n viewerCertificate: cloudfront.ViewerCertificate.fromIamCertificate(\n 'certificateId',\n {\n aliases: ['example.com'],\n securityPolicy: cloudfront.SecurityPolicyProtocol.SSL_V3, // default\n sslMethod: cloudfront.SSLMethod.SNI, // default\n },\n ),\n });\n /// !hide\n\n Array.isArray(s3BucketSource);\n Array.isArray(distribution);\n }\n}\n\nconst app = new App();\nnew AcmCertificateAliasStack(app, 'AcmCertificateAliasStack');\napp.synth();\n",
12303 "syntaxKindCounter": {
12304 "10": 4,
12305 "75": 24,
12306 "104": 2,
12307 "106": 1,
12308 "192": 3,
12309 "193": 5,
12310 "194": 8,
12311 "196": 1,
12312 "197": 2,
12313 "225": 2,
12314 "242": 2,
12315 "243": 2,
12316 "281": 8,
12317 "282": 1
12318 },
12319 "fqnsFingerprint": "553e0e84141237f23233031cbf607034ad3d9c6bd9373a50a3b4012e74732b57"
12320 },
12321 "1eb15ae4863e1346f27f8f251eda4cb277403c7fdf43ed01beb674ca09bcf1c1": {
12322 "translations": {
12323 "python": {
12324 "source": "# Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\n# my_bucket: s3.Bucket\n\nmy_web_distribution = cloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n allowed_methods=cloudfront.AllowedMethods.ALLOW_ALL,\n viewer_protocol_policy=cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n )\n)",
12325 "version": "2"
12326 },
12327 "csharp": {
12328 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nBucket myBucket;\n\nDistribution myWebDistribution = new Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n AllowedMethods = AllowedMethods.ALLOW_ALL,\n ViewerProtocolPolicy = ViewerProtocolPolicy.REDIRECT_TO_HTTPS\n }\n});",
12329 "version": "1"
12330 },
12331 "java": {
12332 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nBucket myBucket;\n\nDistribution myWebDistribution = Distribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .allowedMethods(AllowedMethods.ALLOW_ALL)\n .viewerProtocolPolicy(ViewerProtocolPolicy.REDIRECT_TO_HTTPS)\n .build())\n .build();",
12333 "version": "1"
12334 },
12335 "go": {
12336 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\nvar myBucket bucket\n\nmyWebDistribution := cloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tallowedMethods: cloudfront.allowedMethods_ALLOW_ALL(),\n\t\tviewerProtocolPolicy: cloudfront.viewerProtocolPolicy_REDIRECT_TO_HTTPS,\n\t},\n})",
12337 "version": "1"
12338 },
12339 "$": {
12340 "source": "// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\ndeclare const myBucket: s3.Bucket;\nconst myWebDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n});",
12341 "version": "0"
12342 }
12343 },
12344 "location": {
12345 "api": {
12346 "api": "type",
12347 "fqn": "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy"
12348 },
12349 "field": {
12350 "field": "example"
12351 }
12352 },
12353 "didCompile": true,
12354 "fqnsReferenced": [
12355 "@aws-cdk/aws-cloudfront-origins.S3Origin",
12356 "@aws-cdk/aws-cloudfront.AllowedMethods",
12357 "@aws-cdk/aws-cloudfront.AllowedMethods#ALLOW_ALL",
12358 "@aws-cdk/aws-cloudfront.BehaviorOptions",
12359 "@aws-cdk/aws-cloudfront.Distribution",
12360 "@aws-cdk/aws-cloudfront.DistributionProps",
12361 "@aws-cdk/aws-cloudfront.IOrigin",
12362 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
12363 "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
12364 "@aws-cdk/aws-s3.IBucket",
12365 "constructs.Construct"
12366 ],
12367 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// Create a Distribution with configured HTTP methods and viewer protocol policy of the cache.\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context 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 myWebDistribution = new cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n allowedMethods: cloudfront.AllowedMethods.ALLOW_ALL,\n viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12368 "syntaxKindCounter": {
12369 "10": 1,
12370 "75": 19,
12371 "104": 1,
12372 "130": 1,
12373 "153": 1,
12374 "169": 1,
12375 "193": 2,
12376 "194": 6,
12377 "197": 2,
12378 "225": 2,
12379 "242": 2,
12380 "243": 2,
12381 "281": 4,
12382 "290": 1
12383 },
12384 "fqnsFingerprint": "50620db3ad080e54f01a59a38a6a5c8fb0c235dcdf48e49e85c101f75cb744ce"
12385 },
12386 "3a0e215ba217857c037e2038f206b6104eb7accc87d0e922074607740527801d": {
12387 "translations": {
12388 "python": {
12389 "source": "# my_bucket: s3.Bucket\n# A Lambda@Edge function added to default behavior of a Distribution\n# and triggered on every request\nmy_func = cloudfront.experimental.EdgeFunction(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=my_func.current_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
12390 "version": "2"
12391 },
12392 "csharp": {
12393 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = new Experimental.EdgeFunction(this, \"MyFunction\", new EdgeFunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\"))\n});\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = myFunc.CurrentVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
12394 "version": "1"
12395 },
12396 "java": {
12397 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = EdgeFunction.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .build();\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(myFunc.getCurrentVersion())\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
12398 "version": "1"
12399 },
12400 "go": {
12401 "source": "var myBucket bucket\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nmyFunc := #error#.NewEdgeFunction(this, jsii.String(\"MyFunction\"), &edgeFunctionProps{\n\truntime: lambda.runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler\"))),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: myFunc.currentVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
12402 "version": "1"
12403 },
12404 "$": {
12405 "source": "// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\ndeclare const myBucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});",
12406 "version": "0"
12407 }
12408 },
12409 "location": {
12410 "api": {
12411 "api": "type",
12412 "fqn": "@aws-cdk/aws-cloudfront.experimental.EdgeFunction"
12413 },
12414 "field": {
12415 "field": "example"
12416 }
12417 },
12418 "didCompile": true,
12419 "fqnsReferenced": [
12420 "@aws-cdk/aws-cloudfront-origins.S3Origin",
12421 "@aws-cdk/aws-cloudfront.BehaviorOptions",
12422 "@aws-cdk/aws-cloudfront.Distribution",
12423 "@aws-cdk/aws-cloudfront.DistributionProps",
12424 "@aws-cdk/aws-cloudfront.IOrigin",
12425 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
12426 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
12427 "@aws-cdk/aws-cloudfront.experimental",
12428 "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
12429 "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
12430 "@aws-cdk/aws-lambda.Code",
12431 "@aws-cdk/aws-lambda.Code#fromAsset",
12432 "@aws-cdk/aws-lambda.IVersion",
12433 "@aws-cdk/aws-lambda.Runtime",
12434 "@aws-cdk/aws-lambda.Runtime#NODEJS_14_X",
12435 "@aws-cdk/aws-s3.IBucket",
12436 "constructs.Construct"
12437 ],
12438 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12439 "syntaxKindCounter": {
12440 "10": 4,
12441 "75": 34,
12442 "104": 2,
12443 "130": 1,
12444 "153": 1,
12445 "169": 1,
12446 "192": 1,
12447 "193": 4,
12448 "194": 12,
12449 "196": 2,
12450 "197": 3,
12451 "225": 2,
12452 "226": 1,
12453 "242": 2,
12454 "243": 2,
12455 "281": 8,
12456 "290": 1
12457 },
12458 "fqnsFingerprint": "02b892326549a952196fa477919f4801bcdca3d61c99b33c78df9a86e00a9d31"
12459 },
12460 "95c68d91baeba479398177f34830d4fa41fb80cb05b7ce583c9a89d0b3afcd8e": {
12461 "translations": {
12462 "python": {
12463 "source": "# my_bucket: s3.Bucket\n# A Lambda@Edge function added to default behavior of a Distribution\n# and triggered on every request\nmy_func = cloudfront.experimental.EdgeFunction(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n)\ncloudfront.Distribution(self, \"myDist\",\n default_behavior=cloudfront.BehaviorOptions(\n origin=origins.S3Origin(my_bucket),\n edge_lambdas=[cloudfront.EdgeLambda(\n function_version=my_func.current_version,\n event_type=cloudfront.LambdaEdgeEventType.VIEWER_REQUEST\n )\n ]\n )\n)",
12464 "version": "2"
12465 },
12466 "csharp": {
12467 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = new Experimental.EdgeFunction(this, \"MyFunction\", new EdgeFunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\"))\n});\nnew Distribution(this, \"myDist\", new DistributionProps {\n DefaultBehavior = new BehaviorOptions {\n Origin = new S3Origin(myBucket),\n EdgeLambdas = new [] { new EdgeLambda {\n FunctionVersion = myFunc.CurrentVersion,\n EventType = LambdaEdgeEventType.VIEWER_REQUEST\n } }\n }\n});",
12468 "version": "1"
12469 },
12470 "java": {
12471 "source": "Bucket myBucket;\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nEdgeFunction myFunc = EdgeFunction.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .build();\nDistribution.Builder.create(this, \"myDist\")\n .defaultBehavior(BehaviorOptions.builder()\n .origin(new S3Origin(myBucket))\n .edgeLambdas(List.of(EdgeLambda.builder()\n .functionVersion(myFunc.getCurrentVersion())\n .eventType(LambdaEdgeEventType.VIEWER_REQUEST)\n .build()))\n .build())\n .build();",
12472 "version": "1"
12473 },
12474 "go": {
12475 "source": "var myBucket bucket\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nmyFunc := #error#.NewEdgeFunction(this, jsii.String(\"MyFunction\"), &edgeFunctionProps{\n\truntime: lambda.runtime_NODEJS_14_X(),\n\thandler: jsii.String(\"index.handler\"),\n\tcode: lambda.code.fromAsset(path.join(__dirname, jsii.String(\"lambda-handler\"))),\n})\ncloudfront.NewDistribution(this, jsii.String(\"myDist\"), &distributionProps{\n\tdefaultBehavior: &behaviorOptions{\n\t\torigin: origins.NewS3Origin(myBucket),\n\t\tedgeLambdas: []edgeLambda{\n\t\t\t&edgeLambda{\n\t\t\t\tfunctionVersion: myFunc.currentVersion,\n\t\t\t\teventType: cloudfront.lambdaEdgeEventType_VIEWER_REQUEST,\n\t\t\t},\n\t\t},\n\t},\n})",
12476 "version": "1"
12477 },
12478 "$": {
12479 "source": "// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\ndeclare const myBucket: s3.Bucket;\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});",
12480 "version": "0"
12481 }
12482 },
12483 "location": {
12484 "api": {
12485 "api": "type",
12486 "fqn": "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps"
12487 },
12488 "field": {
12489 "field": "example"
12490 }
12491 },
12492 "didCompile": true,
12493 "fqnsReferenced": [
12494 "@aws-cdk/aws-cloudfront-origins.S3Origin",
12495 "@aws-cdk/aws-cloudfront.BehaviorOptions",
12496 "@aws-cdk/aws-cloudfront.Distribution",
12497 "@aws-cdk/aws-cloudfront.DistributionProps",
12498 "@aws-cdk/aws-cloudfront.IOrigin",
12499 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
12500 "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
12501 "@aws-cdk/aws-cloudfront.experimental",
12502 "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
12503 "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
12504 "@aws-cdk/aws-lambda.Code",
12505 "@aws-cdk/aws-lambda.Code#fromAsset",
12506 "@aws-cdk/aws-lambda.IVersion",
12507 "@aws-cdk/aws-lambda.Runtime",
12508 "@aws-cdk/aws-lambda.Runtime#NODEJS_14_X",
12509 "@aws-cdk/aws-s3.IBucket",
12510 "constructs.Construct"
12511 ],
12512 "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n\n\ndeclare const myBucket: s3.Bucket;\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from 'constructs';\nimport { Duration, Stack } from '@aws-cdk/core';\nimport * as cloudfront from '@aws-cdk/aws-cloudfront';\nimport * as origins from '@aws-cdk/aws-cloudfront-origins';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as ec2 from '@aws-cdk/aws-ec2';\nimport * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';\nimport * as lambda from '@aws-cdk/aws-lambda';\nimport * as path from 'path';\n\nclass Context extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n// A Lambda@Edge function added to default behavior of a Distribution\n// and triggered on every request\nconst myFunc = new cloudfront.experimental.EdgeFunction(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\nnew cloudfront.Distribution(this, 'myDist', {\n defaultBehavior: {\n origin: new origins.S3Origin(myBucket),\n edgeLambdas: [\n {\n functionVersion: myFunc.currentVersion,\n eventType: cloudfront.LambdaEdgeEventType.VIEWER_REQUEST,\n }\n ],\n },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
12513 "syntaxKindCounter": {
12514 "10": 4,
12515 "75": 34,
12516 "104": 2,
12517 "130": 1,
12518 "153": 1,
12519 "169": 1,
12520 "192": 1,
12521 "193": 4,
12522 "194": 12,
12523 "196": 2,
12524 "197": 3,
12525 "225": 2,
12526 "226": 1,
12527 "242": 2,
12528 "243": 2,
12529 "281": 8,
12530 "290": 1
12531 },
12532 "fqnsFingerprint": "02b892326549a952196fa477919f4801bcdca3d61c99b33c78df9a86e00a9d31"
12533 }
12534 }
12535}
\No newline at end of file