1 | {
|
2 | "version": "2",
|
3 | "toolVersion": "1.58.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": "49e92ec085aad5b8d22e245fb94b14e8ee462b1549b098000bcc8789491d6e5d"
|
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": "4de76cf8d5e84c59b25c8b57db5260cdd20e105057793c94b71ab85bf4147608"
|
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": "7a41e224058aecd737105e71423fd8f7e2b689347196e7486dae2dff40bf74f3"
|
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": "b861b729494f95b493ce4ad2540c18a92a031afb5f75af039eebb648ff85b59d"
|
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": "1badb07137657c48b51628c80bd1534a39625a11dc25c530b87d2b2a492c1ec3"
|
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": "eb34129f90b6a1efb99f90791403fa5b54e340292d54000a09d4cffef496766b"
|
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": "7aa0f5446a2aeb26651360fcc6ddfab58615dd4571d6b9c705babe901c4d3b38"
|
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": "eb34129f90b6a1efb99f90791403fa5b54e340292d54000a09d4cffef496766b"
|
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": "4635af00af7389ce03416e9ddc8233ae733762c2a958953ab04f5b5958b2fe75"
|
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": "a52dbfb4a0e8ab440ec2ae3cdfd88e60630de57a01ab83c4651e8b9f1ce7a634"
|
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": "1ea57ebfa402d29510427c12537bcfba334257fddbe9e78237c930a0fce75c60"
|
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": "52e84888f39cd09f66be4a78080ea75b3df2213f4031443fa9d1a57a50e885bf"
|
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": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
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": "9d00e0b2b6ba3e99be27a29c4b359f4f83286cbaa5b8b563e2915b04d08d31d8"
|
949 | },
|
950 | "49dd7768d46e3f240a597b5b97f21b918eea594ef55eba9e606de5ee9be87107": {
|
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_12_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_12_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_12_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_12_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_12_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_12_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_12_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": "2396e4bb9f863f8221e011298d3ac516dd8c8eec04fbf1a5867e9969394bb8c4"
|
1024 | },
|
1025 | "24b383a6a464ed5341374a5975b896f02ce3150955e88df6f71a8b094611cb21": {
|
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_12_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_12_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_12_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_12_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_12_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_12_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_12_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": "8c9ac7e2e35f47579d3017ee96ef244a770a0b1fcd236e5437a1f36f14e609f4"
|
1083 | },
|
1084 | "1c149ecacb7ca939ffdd3daf8160f2672c5fbdd93376b0fa6e77dc86434b6f1c": {
|
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_12_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_12_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_12_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_12_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_12_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_12_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_12_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_12_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_12_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_12_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_12_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_12_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_12_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": "3932fd39b79f4225dc7dcea1dd4d1b09af176b507c75e82662268e4ddbd950d1"
|
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": "d7e5ab8474054b803fbd6a4a20b7315a6fcaf03f026bb9d59cb64e66f25dfb9b"
|
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": "b2a618d1ed00eeba0f745f3002e93ae5fd75a319f7cf2f380360fb98fb475b01"
|
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": "7b7ba953586755b0e0d8c51a879dbe30bdc7d83d707d9101fa0e7445cfcdc316"
|
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": "9e42adb5d5745d1d09df33b76d5b90039980bdc0d047009f4309d28bf40b8d0d"
|
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": "80b658311e80d4f13670e6f8f59368088e5d130bea624e1c144ea19febb988a3"
|
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": "2f8b96ccc6bbff53102083eeb9d75d7c8e424fa98a33ea9f25fea4fffa4b0f4c"
|
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": "d530ed3ebb5d5b85298a43e9e2a1038f1598c30f2d50c676f332b398000cf28d"
|
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": "da968b89d70c1180a87624b7a654fd0dba7a03c54dc6976b65d8a30faf2f9ec9"
|
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": "07d9a00687f403f5a04c0f87c7eced4daa3ead9abba7e5f920a52f10bc1135d1"
|
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": "885ab5936eb18d07e57783fe6baa0718ab3a759c648c9bd91927ae646e93d1c3"
|
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": "a82a2d20415c59031682767b41482d04b89d1304bf7ed44103f8982de000a652"
|
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": "15016e186b3c3bc9262c82b428658640d4e107785d300da924015dbc7998def7"
|
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": "0c7e693a403547b8045ed1cf94ff054a49224b60a6be542721b8ccf0b8fe6fc5"
|
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": "4e5ced8877a0e1b250c7fc0a9384949412fbb34109ba5fc294961886627aa598"
|
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": "e8458bb8c5764aa9a4aaf9f6d1ace5cc811542883aedc0f7fcf28c423ee36497"
|
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": "3cb868ceb3e3801cf56650c32a6e86ef680a9ab76bd67a5a87e280ec84066d40"
|
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": "7090e7366e47e70b781750e281c13ba3bba01561dcfcd1fb46f155b86fd91162"
|
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": "f40d662b76b9f7953a3222f4211a8bbc4d593820d03ccd0c24d1e0564f4bf77a"
|
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": "6752451147a047329d95d0eb684ee15796864003e1ace2972423b2290525d092"
|
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": "2753ffeec9aa65d58853cb08d827e3a0366a930123f9f9e423d3b2ffc80df490"
|
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": "b4372dfddab7eef1c1f7c98ebb78ce180569baa9af85998f87fe04797dc54a8d"
|
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": "ec805a4c13a5c1268841535c4feec349f721267920eabb2c9f0c0f9bfc06bc38"
|
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": "23820274ae4d9497cb6e7ef27e3c6d0b433aba99cba922a1429d3f8e9cf96585"
|
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": "7aa0f5446a2aeb26651360fcc6ddfab58615dd4571d6b9c705babe901c4d3b38"
|
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": "eb34129f90b6a1efb99f90791403fa5b54e340292d54000a09d4cffef496766b"
|
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": "7f570dceadfcb69c4400e3eb4754edb8f6a904a70aab9e5598022f77b47de12e"
|
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": "b2a618d1ed00eeba0f745f3002e93ae5fd75a319f7cf2f380360fb98fb475b01"
|
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": "a52dbfb4a0e8ab440ec2ae3cdfd88e60630de57a01ab83c4651e8b9f1ce7a634"
|
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": "a52dbfb4a0e8ab440ec2ae3cdfd88e60630de57a01ab83c4651e8b9f1ce7a634"
|
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": "4635af00af7389ce03416e9ddc8233ae733762c2a958953ab04f5b5958b2fe75"
|
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": "a52dbfb4a0e8ab440ec2ae3cdfd88e60630de57a01ab83c4651e8b9f1ce7a634"
|
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": "a52dbfb4a0e8ab440ec2ae3cdfd88e60630de57a01ab83c4651e8b9f1ce7a634"
|
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: ¶metersInCacheKeyAndForwardedToOriginProperty{\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": "390388bdbf96dbcefa2c51f466b2a713c9bede30fcdc321565f1049404ac905d"
|
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: ¶metersInCacheKeyAndForwardedToOriginProperty{\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 := ¶metersInCacheKeyAndForwardedToOriginProperty{\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: ¶metersInCacheKeyAndForwardedToOriginProperty{\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": "0ba90ff247901633f0a6048f775b65a1d85025751177766600978f9f107f0c10"
|
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": "2f8b96ccc6bbff53102083eeb9d75d7c8e424fa98a33ea9f25fea4fffa4b0f4c"
|
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 | "dc8e4ad5d6441f3fa22504a2191b7500286809fa93c95ed08af66e415fa884a2": {
|
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 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_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 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_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 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 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 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 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 .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 .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 .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 .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\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\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\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\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 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 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 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 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 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 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 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 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": 72,
|
4337 | "75": 138,
|
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": 133,
|
4350 | "290": 1
|
4351 | },
|
4352 | "fqnsFingerprint": "b48772cf4b994bbf33540c25a8ef2e40271b74c4c9aaae8f2f7bfc406c4237de"
|
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 | "e9555fb4582a82d0c2c7d971a6e3f10b9d3cfcf7742ee1890372d04c5a068fae": {
|
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_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 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 .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\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 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 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": 10,
|
5111 | "75": 25,
|
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": 20,
|
5124 | "290": 1
|
5125 | },
|
5126 | "fqnsFingerprint": "83e75e9820913b4a054e0416ba57fd3069c1ffde339555fca7f0b6722f2dbb6c"
|
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 | "6a8551ad10c15c6376bb0e3a9e40858337c7a96ada82761740f7f3d7c2dfd8d7": {
|
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 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_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 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_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 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 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 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 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 .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 .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 .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 .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\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\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\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\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 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 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 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 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 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 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 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 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": 74,
|
5443 | "75": 141,
|
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": 137,
|
5456 | "290": 1
|
5457 | },
|
5458 | "fqnsFingerprint": "400689e707277437413a93f2bc113666ce73cb3dcd95489279bd95445b7a4de2"
|
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": "c5b47ea957f307f0099d4adae89c53e560500874e18813635b561d0ae8355cd7"
|
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": "b45c0dd7c93d0928462edb5b69d96effc7f3b35df3965595a405e81334d55e50"
|
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 | "ae1dc47cfd2ceebd74832546060215df2428f6b869266fa87e85d8cc8260f3ce": {
|
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_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)",
|
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\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});",
|
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\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();",
|
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\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})",
|
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 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});",
|
5869 | "version": "0"
|
5870 | }
|
5871 | },
|
5872 | "location": {
|
5873 | "api": {
|
5874 | "api": "type",
|
5875 | "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy"
|
5876 | },
|
5877 | "field": {
|
5878 | "field": "example"
|
5879 | }
|
5880 | },
|
5881 | "didCompile": true,
|
5882 | "fqnsReferenced": [
|
5883 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy",
|
5884 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicyProps",
|
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 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} }",
|
5888 | "syntaxKindCounter": {
|
5889 | "10": 10,
|
5890 | "75": 16,
|
5891 | "104": 1,
|
5892 | "192": 3,
|
5893 | "193": 5,
|
5894 | "194": 1,
|
5895 | "197": 1,
|
5896 | "225": 1,
|
5897 | "242": 1,
|
5898 | "243": 1,
|
5899 | "254": 1,
|
5900 | "255": 1,
|
5901 | "256": 1,
|
5902 | "281": 12,
|
5903 | "290": 1
|
5904 | },
|
5905 | "fqnsFingerprint": "9e5ab54a190c687107aa3372d6dcff9451e947ad4ffa9cffcb8dd0834551ef3e"
|
5906 | },
|
5907 | "4fe79cb3da0a90d329eec933f98e2706d427e1ba1eeb17762d240066a684c86d": {
|
5908 | "translations": {
|
5909 | "python": {
|
5910 | "source": "# 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)",
|
5911 | "version": "2"
|
5912 | },
|
5913 | "csharp": {
|
5914 | "source": "// 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};",
|
5915 | "version": "1"
|
5916 | },
|
5917 | "java": {
|
5918 | "source": "// The 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();",
|
5919 | "version": "1"
|
5920 | },
|
5921 | "go": {
|
5922 | "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}",
|
5923 | "version": "1"
|
5924 | },
|
5925 | "$": {
|
5926 | "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};",
|
5927 | "version": "0"
|
5928 | }
|
5929 | },
|
5930 | "location": {
|
5931 | "api": {
|
5932 | "api": "type",
|
5933 | "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty"
|
5934 | },
|
5935 | "field": {
|
5936 | "field": "example"
|
5937 | }
|
5938 | },
|
5939 | "didCompile": true,
|
5940 | "fqnsReferenced": [
|
5941 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.CookiesConfigProperty"
|
5942 | ],
|
5943 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
5944 | "syntaxKindCounter": {
|
5945 | "10": 3,
|
5946 | "75": 7,
|
5947 | "153": 2,
|
5948 | "169": 1,
|
5949 | "192": 1,
|
5950 | "193": 1,
|
5951 | "225": 1,
|
5952 | "242": 1,
|
5953 | "243": 1,
|
5954 | "254": 1,
|
5955 | "255": 1,
|
5956 | "256": 1,
|
5957 | "281": 2,
|
5958 | "290": 1
|
5959 | },
|
5960 | "fqnsFingerprint": "4b67e8b237b7d640abee4915edcfab749a14b01f3a78fb6c9ed5efb05a088e62"
|
5961 | },
|
5962 | "e623ea818fa5f44931b6dd2d04fdba3974034d9a2aab4ce4d39b89b57a49c240": {
|
5963 | "translations": {
|
5964 | "python": {
|
5965 | "source": "# 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)",
|
5966 | "version": "2"
|
5967 | },
|
5968 | "csharp": {
|
5969 | "source": "// 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};",
|
5970 | "version": "1"
|
5971 | },
|
5972 | "java": {
|
5973 | "source": "// The 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();",
|
5974 | "version": "1"
|
5975 | },
|
5976 | "go": {
|
5977 | "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}",
|
5978 | "version": "1"
|
5979 | },
|
5980 | "$": {
|
5981 | "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};",
|
5982 | "version": "0"
|
5983 | }
|
5984 | },
|
5985 | "location": {
|
5986 | "api": {
|
5987 | "api": "type",
|
5988 | "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty"
|
5989 | },
|
5990 | "field": {
|
5991 | "field": "example"
|
5992 | }
|
5993 | },
|
5994 | "didCompile": true,
|
5995 | "fqnsReferenced": [
|
5996 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.HeadersConfigProperty"
|
5997 | ],
|
5998 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
5999 | "syntaxKindCounter": {
|
6000 | "10": 3,
|
6001 | "75": 7,
|
6002 | "153": 2,
|
6003 | "169": 1,
|
6004 | "192": 1,
|
6005 | "193": 1,
|
6006 | "225": 1,
|
6007 | "242": 1,
|
6008 | "243": 1,
|
6009 | "254": 1,
|
6010 | "255": 1,
|
6011 | "256": 1,
|
6012 | "281": 2,
|
6013 | "290": 1
|
6014 | },
|
6015 | "fqnsFingerprint": "8bba878b2995208bb2c0a749c1441910612ae88a6bd1d2a0d947b1c0a32b1ab7"
|
6016 | },
|
6017 | "95980e28337ead51ccd933ac5b9131ff15cc6261080a413c74e1de5ab085d991": {
|
6018 | "translations": {
|
6019 | "python": {
|
6020 | "source": "# 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)",
|
6021 | "version": "2"
|
6022 | },
|
6023 | "csharp": {
|
6024 | "source": "// 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};",
|
6025 | "version": "1"
|
6026 | },
|
6027 | "java": {
|
6028 | "source": "// The 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();",
|
6029 | "version": "1"
|
6030 | },
|
6031 | "go": {
|
6032 | "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}",
|
6033 | "version": "1"
|
6034 | },
|
6035 | "$": {
|
6036 | "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};",
|
6037 | "version": "0"
|
6038 | }
|
6039 | },
|
6040 | "location": {
|
6041 | "api": {
|
6042 | "api": "type",
|
6043 | "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty"
|
6044 | },
|
6045 | "field": {
|
6046 | "field": "example"
|
6047 | }
|
6048 | },
|
6049 | "didCompile": true,
|
6050 | "fqnsReferenced": [
|
6051 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.OriginRequestPolicyConfigProperty"
|
6052 | ],
|
6053 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6054 | "syntaxKindCounter": {
|
6055 | "10": 9,
|
6056 | "75": 16,
|
6057 | "153": 2,
|
6058 | "169": 1,
|
6059 | "192": 3,
|
6060 | "193": 4,
|
6061 | "225": 1,
|
6062 | "242": 1,
|
6063 | "243": 1,
|
6064 | "254": 1,
|
6065 | "255": 1,
|
6066 | "256": 1,
|
6067 | "281": 11,
|
6068 | "290": 1
|
6069 | },
|
6070 | "fqnsFingerprint": "f25495428d9f2e938e55520145c25e5397e47a0c3053f8a2c116e7850171056e"
|
6071 | },
|
6072 | "ac307d414ea20c7ed6e6f61fa566f2a1a26d630eebbb18b7d8a534313260009e": {
|
6073 | "translations": {
|
6074 | "python": {
|
6075 | "source": "# 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)",
|
6076 | "version": "2"
|
6077 | },
|
6078 | "csharp": {
|
6079 | "source": "// 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};",
|
6080 | "version": "1"
|
6081 | },
|
6082 | "java": {
|
6083 | "source": "// The 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();",
|
6084 | "version": "1"
|
6085 | },
|
6086 | "go": {
|
6087 | "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}",
|
6088 | "version": "1"
|
6089 | },
|
6090 | "$": {
|
6091 | "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};",
|
6092 | "version": "0"
|
6093 | }
|
6094 | },
|
6095 | "location": {
|
6096 | "api": {
|
6097 | "api": "type",
|
6098 | "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty"
|
6099 | },
|
6100 | "field": {
|
6101 | "field": "example"
|
6102 | }
|
6103 | },
|
6104 | "didCompile": true,
|
6105 | "fqnsReferenced": [
|
6106 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicy.QueryStringsConfigProperty"
|
6107 | ],
|
6108 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6109 | "syntaxKindCounter": {
|
6110 | "10": 3,
|
6111 | "75": 7,
|
6112 | "153": 2,
|
6113 | "169": 1,
|
6114 | "192": 1,
|
6115 | "193": 1,
|
6116 | "225": 1,
|
6117 | "242": 1,
|
6118 | "243": 1,
|
6119 | "254": 1,
|
6120 | "255": 1,
|
6121 | "256": 1,
|
6122 | "281": 2,
|
6123 | "290": 1
|
6124 | },
|
6125 | "fqnsFingerprint": "b7560b0135136ef346e60ea19d9ae14aa476dca4e02c4d1296b2717798c0241b"
|
6126 | },
|
6127 | "1078bcfc57b8abbeadf205e74ac4b6dcf365ba94976884e5ff4218193e026bd1": {
|
6128 | "translations": {
|
6129 | "python": {
|
6130 | "source": "# 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)",
|
6131 | "version": "2"
|
6132 | },
|
6133 | "csharp": {
|
6134 | "source": "// 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};",
|
6135 | "version": "1"
|
6136 | },
|
6137 | "java": {
|
6138 | "source": "// The 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();",
|
6139 | "version": "1"
|
6140 | },
|
6141 | "go": {
|
6142 | "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}",
|
6143 | "version": "1"
|
6144 | },
|
6145 | "$": {
|
6146 | "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};",
|
6147 | "version": "0"
|
6148 | }
|
6149 | },
|
6150 | "location": {
|
6151 | "api": {
|
6152 | "api": "type",
|
6153 | "fqn": "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicyProps"
|
6154 | },
|
6155 | "field": {
|
6156 | "field": "example"
|
6157 | }
|
6158 | },
|
6159 | "didCompile": true,
|
6160 | "fqnsReferenced": [
|
6161 | "@aws-cdk/aws-cloudfront.CfnOriginRequestPolicyProps"
|
6162 | ],
|
6163 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6164 | "syntaxKindCounter": {
|
6165 | "10": 9,
|
6166 | "75": 16,
|
6167 | "153": 1,
|
6168 | "169": 1,
|
6169 | "192": 3,
|
6170 | "193": 5,
|
6171 | "225": 1,
|
6172 | "242": 1,
|
6173 | "243": 1,
|
6174 | "254": 1,
|
6175 | "255": 1,
|
6176 | "256": 1,
|
6177 | "281": 12,
|
6178 | "290": 1
|
6179 | },
|
6180 | "fqnsFingerprint": "b4e8f38345f23b8c287ff6b515ba976477c49604b817bc1859301d1f438ebe15"
|
6181 | },
|
6182 | "8093452f42f8bd2f0c65626c6090692b723c08bee7de6c44052828f3e24b5b0d": {
|
6183 | "translations": {
|
6184 | "python": {
|
6185 | "source": "# 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)",
|
6186 | "version": "2"
|
6187 | },
|
6188 | "csharp": {
|
6189 | "source": "// 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});",
|
6190 | "version": "1"
|
6191 | },
|
6192 | "java": {
|
6193 | "source": "// The 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();",
|
6194 | "version": "1"
|
6195 | },
|
6196 | "go": {
|
6197 | "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})",
|
6198 | "version": "1"
|
6199 | },
|
6200 | "$": {
|
6201 | "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});",
|
6202 | "version": "0"
|
6203 | }
|
6204 | },
|
6205 | "location": {
|
6206 | "api": {
|
6207 | "api": "type",
|
6208 | "fqn": "@aws-cdk/aws-cloudfront.CfnPublicKey"
|
6209 | },
|
6210 | "field": {
|
6211 | "field": "example"
|
6212 | }
|
6213 | },
|
6214 | "didCompile": true,
|
6215 | "fqnsReferenced": [
|
6216 | "@aws-cdk/aws-cloudfront.CfnPublicKey",
|
6217 | "@aws-cdk/aws-cloudfront.CfnPublicKeyProps",
|
6218 | "@aws-cdk/core.Construct"
|
6219 | ],
|
6220 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6221 | "syntaxKindCounter": {
|
6222 | "10": 6,
|
6223 | "75": 9,
|
6224 | "104": 1,
|
6225 | "193": 2,
|
6226 | "194": 1,
|
6227 | "197": 1,
|
6228 | "225": 1,
|
6229 | "242": 1,
|
6230 | "243": 1,
|
6231 | "254": 1,
|
6232 | "255": 1,
|
6233 | "256": 1,
|
6234 | "281": 5,
|
6235 | "290": 1
|
6236 | },
|
6237 | "fqnsFingerprint": "6252f99c739f6b2452b3885198ac29f092942d44a79b5625cd8f0b2cec49e3b0"
|
6238 | },
|
6239 | "525c64f3c4ab4a60e2fb30fb9d336dda01367bc2172619877938e9cc37673e04": {
|
6240 | "translations": {
|
6241 | "python": {
|
6242 | "source": "# 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)",
|
6243 | "version": "2"
|
6244 | },
|
6245 | "csharp": {
|
6246 | "source": "// 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};",
|
6247 | "version": "1"
|
6248 | },
|
6249 | "java": {
|
6250 | "source": "// The 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();",
|
6251 | "version": "1"
|
6252 | },
|
6253 | "go": {
|
6254 | "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}",
|
6255 | "version": "1"
|
6256 | },
|
6257 | "$": {
|
6258 | "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};",
|
6259 | "version": "0"
|
6260 | }
|
6261 | },
|
6262 | "location": {
|
6263 | "api": {
|
6264 | "api": "type",
|
6265 | "fqn": "@aws-cdk/aws-cloudfront.CfnPublicKey.PublicKeyConfigProperty"
|
6266 | },
|
6267 | "field": {
|
6268 | "field": "example"
|
6269 | }
|
6270 | },
|
6271 | "didCompile": true,
|
6272 | "fqnsReferenced": [
|
6273 | "@aws-cdk/aws-cloudfront.CfnPublicKey.PublicKeyConfigProperty"
|
6274 | ],
|
6275 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6276 | "syntaxKindCounter": {
|
6277 | "10": 5,
|
6278 | "75": 9,
|
6279 | "153": 2,
|
6280 | "169": 1,
|
6281 | "193": 1,
|
6282 | "225": 1,
|
6283 | "242": 1,
|
6284 | "243": 1,
|
6285 | "254": 1,
|
6286 | "255": 1,
|
6287 | "256": 1,
|
6288 | "281": 4,
|
6289 | "290": 1
|
6290 | },
|
6291 | "fqnsFingerprint": "dc6997a2aed1a1afedbde9fbf88a1b59df6ed8256d2083abbf81a82a7ab278c6"
|
6292 | },
|
6293 | "0443e15bb40e9052955612f21ae2ec1c7f1291be9e98951008c88b8ae6ce9f9d": {
|
6294 | "translations": {
|
6295 | "python": {
|
6296 | "source": "# 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)",
|
6297 | "version": "2"
|
6298 | },
|
6299 | "csharp": {
|
6300 | "source": "// 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};",
|
6301 | "version": "1"
|
6302 | },
|
6303 | "java": {
|
6304 | "source": "// The 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();",
|
6305 | "version": "1"
|
6306 | },
|
6307 | "go": {
|
6308 | "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}",
|
6309 | "version": "1"
|
6310 | },
|
6311 | "$": {
|
6312 | "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};",
|
6313 | "version": "0"
|
6314 | }
|
6315 | },
|
6316 | "location": {
|
6317 | "api": {
|
6318 | "api": "type",
|
6319 | "fqn": "@aws-cdk/aws-cloudfront.CfnPublicKeyProps"
|
6320 | },
|
6321 | "field": {
|
6322 | "field": "example"
|
6323 | }
|
6324 | },
|
6325 | "didCompile": true,
|
6326 | "fqnsReferenced": [
|
6327 | "@aws-cdk/aws-cloudfront.CfnPublicKeyProps"
|
6328 | ],
|
6329 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6330 | "syntaxKindCounter": {
|
6331 | "10": 5,
|
6332 | "75": 9,
|
6333 | "153": 1,
|
6334 | "169": 1,
|
6335 | "193": 2,
|
6336 | "225": 1,
|
6337 | "242": 1,
|
6338 | "243": 1,
|
6339 | "254": 1,
|
6340 | "255": 1,
|
6341 | "256": 1,
|
6342 | "281": 5,
|
6343 | "290": 1
|
6344 | },
|
6345 | "fqnsFingerprint": "1b4c82b2c8c6dfc7f566447827796d68e51c8f88724ef08006b6199ae12132e2"
|
6346 | },
|
6347 | "ce9e50c0ed556aa345f32d238b05d7b3cf767af86eecc4231a1fdf1415752ac0": {
|
6348 | "translations": {
|
6349 | "python": {
|
6350 | "source": "# 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)",
|
6351 | "version": "2"
|
6352 | },
|
6353 | "csharp": {
|
6354 | "source": "// 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});",
|
6355 | "version": "1"
|
6356 | },
|
6357 | "java": {
|
6358 | "source": "// The 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();",
|
6359 | "version": "1"
|
6360 | },
|
6361 | "go": {
|
6362 | "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})",
|
6363 | "version": "1"
|
6364 | },
|
6365 | "$": {
|
6366 | "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});",
|
6367 | "version": "0"
|
6368 | }
|
6369 | },
|
6370 | "location": {
|
6371 | "api": {
|
6372 | "api": "type",
|
6373 | "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig"
|
6374 | },
|
6375 | "field": {
|
6376 | "field": "example"
|
6377 | }
|
6378 | },
|
6379 | "didCompile": true,
|
6380 | "fqnsReferenced": [
|
6381 | "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig",
|
6382 | "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfigProps",
|
6383 | "@aws-cdk/core.Construct"
|
6384 | ],
|
6385 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6386 | "syntaxKindCounter": {
|
6387 | "8": 1,
|
6388 | "10": 7,
|
6389 | "75": 12,
|
6390 | "104": 1,
|
6391 | "192": 2,
|
6392 | "193": 3,
|
6393 | "194": 1,
|
6394 | "197": 1,
|
6395 | "225": 1,
|
6396 | "242": 1,
|
6397 | "243": 1,
|
6398 | "254": 1,
|
6399 | "255": 1,
|
6400 | "256": 1,
|
6401 | "281": 8,
|
6402 | "290": 1
|
6403 | },
|
6404 | "fqnsFingerprint": "b1a18130fe268cdcd790e8ca9218f806cdbb1b4664b2e7515fa1a3e21fcc2dfe"
|
6405 | },
|
6406 | "449c903a364a64c2f66ae20ad31b432130049091cf85d48d9011c719cad3f82c": {
|
6407 | "translations": {
|
6408 | "python": {
|
6409 | "source": "# 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)",
|
6410 | "version": "2"
|
6411 | },
|
6412 | "csharp": {
|
6413 | "source": "// 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};",
|
6414 | "version": "1"
|
6415 | },
|
6416 | "java": {
|
6417 | "source": "// The 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();",
|
6418 | "version": "1"
|
6419 | },
|
6420 | "go": {
|
6421 | "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}",
|
6422 | "version": "1"
|
6423 | },
|
6424 | "$": {
|
6425 | "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};",
|
6426 | "version": "0"
|
6427 | }
|
6428 | },
|
6429 | "location": {
|
6430 | "api": {
|
6431 | "api": "type",
|
6432 | "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.EndPointProperty"
|
6433 | },
|
6434 | "field": {
|
6435 | "field": "example"
|
6436 | }
|
6437 | },
|
6438 | "didCompile": true,
|
6439 | "fqnsReferenced": [
|
6440 | "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.EndPointProperty"
|
6441 | ],
|
6442 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6443 | "syntaxKindCounter": {
|
6444 | "10": 4,
|
6445 | "75": 9,
|
6446 | "153": 2,
|
6447 | "169": 1,
|
6448 | "193": 2,
|
6449 | "225": 1,
|
6450 | "242": 1,
|
6451 | "243": 1,
|
6452 | "254": 1,
|
6453 | "255": 1,
|
6454 | "256": 1,
|
6455 | "281": 4,
|
6456 | "290": 1
|
6457 | },
|
6458 | "fqnsFingerprint": "1b6ce30ea6e93b65741cbcc7cea2ee320c4a276d863314dc6ee9e51ee984c4fd"
|
6459 | },
|
6460 | "c40c80a3822a52d8a7438fa2d51bfb28d812bedcce41f29c015c3b60bfc83033": {
|
6461 | "translations": {
|
6462 | "python": {
|
6463 | "source": "# 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)",
|
6464 | "version": "2"
|
6465 | },
|
6466 | "csharp": {
|
6467 | "source": "// 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};",
|
6468 | "version": "1"
|
6469 | },
|
6470 | "java": {
|
6471 | "source": "// The 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();",
|
6472 | "version": "1"
|
6473 | },
|
6474 | "go": {
|
6475 | "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}",
|
6476 | "version": "1"
|
6477 | },
|
6478 | "$": {
|
6479 | "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};",
|
6480 | "version": "0"
|
6481 | }
|
6482 | },
|
6483 | "location": {
|
6484 | "api": {
|
6485 | "api": "type",
|
6486 | "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty"
|
6487 | },
|
6488 | "field": {
|
6489 | "field": "example"
|
6490 | }
|
6491 | },
|
6492 | "didCompile": true,
|
6493 | "fqnsReferenced": [
|
6494 | "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfig.KinesisStreamConfigProperty"
|
6495 | ],
|
6496 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6497 | "syntaxKindCounter": {
|
6498 | "10": 3,
|
6499 | "75": 7,
|
6500 | "153": 2,
|
6501 | "169": 1,
|
6502 | "193": 1,
|
6503 | "225": 1,
|
6504 | "242": 1,
|
6505 | "243": 1,
|
6506 | "254": 1,
|
6507 | "255": 1,
|
6508 | "256": 1,
|
6509 | "281": 2,
|
6510 | "290": 1
|
6511 | },
|
6512 | "fqnsFingerprint": "9ffc2d936513a5d54b8cd8566e00638101a534c447ce61039f57b07238cea2c7"
|
6513 | },
|
6514 | "9532a7ba654a8be67743720677e120ee0c25318bf3b64e404bb6f0e3bcf56170": {
|
6515 | "translations": {
|
6516 | "python": {
|
6517 | "source": "# 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)",
|
6518 | "version": "2"
|
6519 | },
|
6520 | "csharp": {
|
6521 | "source": "// 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};",
|
6522 | "version": "1"
|
6523 | },
|
6524 | "java": {
|
6525 | "source": "// The 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();",
|
6526 | "version": "1"
|
6527 | },
|
6528 | "go": {
|
6529 | "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}",
|
6530 | "version": "1"
|
6531 | },
|
6532 | "$": {
|
6533 | "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};",
|
6534 | "version": "0"
|
6535 | }
|
6536 | },
|
6537 | "location": {
|
6538 | "api": {
|
6539 | "api": "type",
|
6540 | "fqn": "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfigProps"
|
6541 | },
|
6542 | "field": {
|
6543 | "field": "example"
|
6544 | }
|
6545 | },
|
6546 | "didCompile": true,
|
6547 | "fqnsReferenced": [
|
6548 | "@aws-cdk/aws-cloudfront.CfnRealtimeLogConfigProps"
|
6549 | ],
|
6550 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6551 | "syntaxKindCounter": {
|
6552 | "8": 1,
|
6553 | "10": 6,
|
6554 | "75": 12,
|
6555 | "153": 1,
|
6556 | "169": 1,
|
6557 | "192": 2,
|
6558 | "193": 3,
|
6559 | "225": 1,
|
6560 | "242": 1,
|
6561 | "243": 1,
|
6562 | "254": 1,
|
6563 | "255": 1,
|
6564 | "256": 1,
|
6565 | "281": 8,
|
6566 | "290": 1
|
6567 | },
|
6568 | "fqnsFingerprint": "f0d55909402cc1e5de6d67f32d1a60e1da0cc853cc7c10475c728c36a9ef935f"
|
6569 | },
|
6570 | "94164a8a780dc3ddb17c9af983c7f15cda79128eae59647ed7af7652dedecd65": {
|
6571 | "translations": {
|
6572 | "python": {
|
6573 | "source": "# 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 )\n)",
|
6574 | "version": "2"
|
6575 | },
|
6576 | "csharp": {
|
6577 | "source": "// 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 }\n});",
|
6578 | "version": "1"
|
6579 | },
|
6580 | "java": {
|
6581 | "source": "// The 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 .build())\n .build();",
|
6582 | "version": "1"
|
6583 | },
|
6584 | "go": {
|
6585 | "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},\n})",
|
6586 | "version": "1"
|
6587 | },
|
6588 | "$": {
|
6589 | "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 },\n});",
|
6590 | "version": "0"
|
6591 | }
|
6592 | },
|
6593 | "location": {
|
6594 | "api": {
|
6595 | "api": "type",
|
6596 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy"
|
6597 | },
|
6598 | "field": {
|
6599 | "field": "example"
|
6600 | }
|
6601 | },
|
6602 | "didCompile": true,
|
6603 | "fqnsReferenced": [
|
6604 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy",
|
6605 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicyProps",
|
6606 | "@aws-cdk/core.Construct"
|
6607 | ],
|
6608 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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 },\n});\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
6609 | "syntaxKindCounter": {
|
6610 | "8": 2,
|
6611 | "10": 14,
|
6612 | "75": 46,
|
6613 | "91": 13,
|
6614 | "104": 1,
|
6615 | "192": 5,
|
6616 | "193": 16,
|
6617 | "194": 1,
|
6618 | "197": 1,
|
6619 | "225": 1,
|
6620 | "242": 1,
|
6621 | "243": 1,
|
6622 | "254": 1,
|
6623 | "255": 1,
|
6624 | "256": 1,
|
6625 | "281": 42,
|
6626 | "290": 1
|
6627 | },
|
6628 | "fqnsFingerprint": "2bc6f432e78ca05a763a79cecb04a5bbb259911965bef0dcadb1b17de14546c5"
|
6629 | },
|
6630 | "50d6d19ed3a341324f811dab9d1f85aa6e1e3245099abb676249bb8b39593f0d": {
|
6631 | "translations": {
|
6632 | "python": {
|
6633 | "source": "# 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)",
|
6634 | "version": "2"
|
6635 | },
|
6636 | "csharp": {
|
6637 | "source": "// 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};",
|
6638 | "version": "1"
|
6639 | },
|
6640 | "java": {
|
6641 | "source": "// The 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();",
|
6642 | "version": "1"
|
6643 | },
|
6644 | "go": {
|
6645 | "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}",
|
6646 | "version": "1"
|
6647 | },
|
6648 | "$": {
|
6649 | "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};",
|
6650 | "version": "0"
|
6651 | }
|
6652 | },
|
6653 | "location": {
|
6654 | "api": {
|
6655 | "api": "type",
|
6656 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty"
|
6657 | },
|
6658 | "field": {
|
6659 | "field": "example"
|
6660 | }
|
6661 | },
|
6662 | "didCompile": true,
|
6663 | "fqnsReferenced": [
|
6664 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowHeadersProperty"
|
6665 | ],
|
6666 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6667 | "syntaxKindCounter": {
|
6668 | "10": 2,
|
6669 | "75": 6,
|
6670 | "153": 2,
|
6671 | "169": 1,
|
6672 | "192": 1,
|
6673 | "193": 1,
|
6674 | "225": 1,
|
6675 | "242": 1,
|
6676 | "243": 1,
|
6677 | "254": 1,
|
6678 | "255": 1,
|
6679 | "256": 1,
|
6680 | "281": 1,
|
6681 | "290": 1
|
6682 | },
|
6683 | "fqnsFingerprint": "a59d5109fb874b139143df44844c1a17c95d974eb0e0563f48771e2b4ed244b0"
|
6684 | },
|
6685 | "7c6c758c1de788605b78bdab1ba0604fed94d4927bbefdf4784e14f381278067": {
|
6686 | "translations": {
|
6687 | "python": {
|
6688 | "source": "# 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)",
|
6689 | "version": "2"
|
6690 | },
|
6691 | "csharp": {
|
6692 | "source": "// 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};",
|
6693 | "version": "1"
|
6694 | },
|
6695 | "java": {
|
6696 | "source": "// The 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();",
|
6697 | "version": "1"
|
6698 | },
|
6699 | "go": {
|
6700 | "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}",
|
6701 | "version": "1"
|
6702 | },
|
6703 | "$": {
|
6704 | "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};",
|
6705 | "version": "0"
|
6706 | }
|
6707 | },
|
6708 | "location": {
|
6709 | "api": {
|
6710 | "api": "type",
|
6711 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty"
|
6712 | },
|
6713 | "field": {
|
6714 | "field": "example"
|
6715 | }
|
6716 | },
|
6717 | "didCompile": true,
|
6718 | "fqnsReferenced": [
|
6719 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowMethodsProperty"
|
6720 | ],
|
6721 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6722 | "syntaxKindCounter": {
|
6723 | "10": 2,
|
6724 | "75": 6,
|
6725 | "153": 2,
|
6726 | "169": 1,
|
6727 | "192": 1,
|
6728 | "193": 1,
|
6729 | "225": 1,
|
6730 | "242": 1,
|
6731 | "243": 1,
|
6732 | "254": 1,
|
6733 | "255": 1,
|
6734 | "256": 1,
|
6735 | "281": 1,
|
6736 | "290": 1
|
6737 | },
|
6738 | "fqnsFingerprint": "9082c598655d18b22e9d0aac20aa5f03b0198b13163815ac7b48701bc1c4fd34"
|
6739 | },
|
6740 | "6df2ce913e96ad9f9db91865e66a6635e88111ba4ca9f7b22f36a1a6c30cbbbb": {
|
6741 | "translations": {
|
6742 | "python": {
|
6743 | "source": "# 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)",
|
6744 | "version": "2"
|
6745 | },
|
6746 | "csharp": {
|
6747 | "source": "// 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};",
|
6748 | "version": "1"
|
6749 | },
|
6750 | "java": {
|
6751 | "source": "// The 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();",
|
6752 | "version": "1"
|
6753 | },
|
6754 | "go": {
|
6755 | "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}",
|
6756 | "version": "1"
|
6757 | },
|
6758 | "$": {
|
6759 | "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};",
|
6760 | "version": "0"
|
6761 | }
|
6762 | },
|
6763 | "location": {
|
6764 | "api": {
|
6765 | "api": "type",
|
6766 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty"
|
6767 | },
|
6768 | "field": {
|
6769 | "field": "example"
|
6770 | }
|
6771 | },
|
6772 | "didCompile": true,
|
6773 | "fqnsReferenced": [
|
6774 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlAllowOriginsProperty"
|
6775 | ],
|
6776 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6777 | "syntaxKindCounter": {
|
6778 | "10": 2,
|
6779 | "75": 6,
|
6780 | "153": 2,
|
6781 | "169": 1,
|
6782 | "192": 1,
|
6783 | "193": 1,
|
6784 | "225": 1,
|
6785 | "242": 1,
|
6786 | "243": 1,
|
6787 | "254": 1,
|
6788 | "255": 1,
|
6789 | "256": 1,
|
6790 | "281": 1,
|
6791 | "290": 1
|
6792 | },
|
6793 | "fqnsFingerprint": "5697c841088a337d2289c188fa3458102cc1a8474856ad6a0f06e9a090ae89d1"
|
6794 | },
|
6795 | "30dc61a552a59d37d3b6d6120b0d754bd1e0998f65c0b3977bb2ca65e86b8613": {
|
6796 | "translations": {
|
6797 | "python": {
|
6798 | "source": "# 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)",
|
6799 | "version": "2"
|
6800 | },
|
6801 | "csharp": {
|
6802 | "source": "// 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};",
|
6803 | "version": "1"
|
6804 | },
|
6805 | "java": {
|
6806 | "source": "// The 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();",
|
6807 | "version": "1"
|
6808 | },
|
6809 | "go": {
|
6810 | "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}",
|
6811 | "version": "1"
|
6812 | },
|
6813 | "$": {
|
6814 | "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};",
|
6815 | "version": "0"
|
6816 | }
|
6817 | },
|
6818 | "location": {
|
6819 | "api": {
|
6820 | "api": "type",
|
6821 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty"
|
6822 | },
|
6823 | "field": {
|
6824 | "field": "example"
|
6825 | }
|
6826 | },
|
6827 | "didCompile": true,
|
6828 | "fqnsReferenced": [
|
6829 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.AccessControlExposeHeadersProperty"
|
6830 | ],
|
6831 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6832 | "syntaxKindCounter": {
|
6833 | "10": 2,
|
6834 | "75": 6,
|
6835 | "153": 2,
|
6836 | "169": 1,
|
6837 | "192": 1,
|
6838 | "193": 1,
|
6839 | "225": 1,
|
6840 | "242": 1,
|
6841 | "243": 1,
|
6842 | "254": 1,
|
6843 | "255": 1,
|
6844 | "256": 1,
|
6845 | "281": 1,
|
6846 | "290": 1
|
6847 | },
|
6848 | "fqnsFingerprint": "099deb5ced13321ad4e3e84a5cdf2cd010447d23ff1e8ca078263bde529d916a"
|
6849 | },
|
6850 | "ab76550769cfaf61a91b4444a0c972a8c902ab018139cad1dfe03f157fea6b17": {
|
6851 | "translations": {
|
6852 | "python": {
|
6853 | "source": "# 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)",
|
6854 | "version": "2"
|
6855 | },
|
6856 | "csharp": {
|
6857 | "source": "// 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};",
|
6858 | "version": "1"
|
6859 | },
|
6860 | "java": {
|
6861 | "source": "// The 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();",
|
6862 | "version": "1"
|
6863 | },
|
6864 | "go": {
|
6865 | "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}",
|
6866 | "version": "1"
|
6867 | },
|
6868 | "$": {
|
6869 | "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};",
|
6870 | "version": "0"
|
6871 | }
|
6872 | },
|
6873 | "location": {
|
6874 | "api": {
|
6875 | "api": "type",
|
6876 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty"
|
6877 | },
|
6878 | "field": {
|
6879 | "field": "example"
|
6880 | }
|
6881 | },
|
6882 | "didCompile": true,
|
6883 | "fqnsReferenced": [
|
6884 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentSecurityPolicyProperty"
|
6885 | ],
|
6886 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6887 | "syntaxKindCounter": {
|
6888 | "10": 2,
|
6889 | "75": 7,
|
6890 | "91": 1,
|
6891 | "153": 2,
|
6892 | "169": 1,
|
6893 | "193": 1,
|
6894 | "225": 1,
|
6895 | "242": 1,
|
6896 | "243": 1,
|
6897 | "254": 1,
|
6898 | "255": 1,
|
6899 | "256": 1,
|
6900 | "281": 2,
|
6901 | "290": 1
|
6902 | },
|
6903 | "fqnsFingerprint": "05cc9b063469989f91fceff39f099bf360557781a0364e270c67eaee838a7637"
|
6904 | },
|
6905 | "4ff73c53532418808fb77c19f7b6ca621cac95fe7ddbe62f581b94701ca9b061": {
|
6906 | "translations": {
|
6907 | "python": {
|
6908 | "source": "# 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)",
|
6909 | "version": "2"
|
6910 | },
|
6911 | "csharp": {
|
6912 | "source": "// 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};",
|
6913 | "version": "1"
|
6914 | },
|
6915 | "java": {
|
6916 | "source": "// The 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();",
|
6917 | "version": "1"
|
6918 | },
|
6919 | "go": {
|
6920 | "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}",
|
6921 | "version": "1"
|
6922 | },
|
6923 | "$": {
|
6924 | "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};",
|
6925 | "version": "0"
|
6926 | }
|
6927 | },
|
6928 | "location": {
|
6929 | "api": {
|
6930 | "api": "type",
|
6931 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty"
|
6932 | },
|
6933 | "field": {
|
6934 | "field": "example"
|
6935 | }
|
6936 | },
|
6937 | "didCompile": true,
|
6938 | "fqnsReferenced": [
|
6939 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ContentTypeOptionsProperty"
|
6940 | ],
|
6941 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6942 | "syntaxKindCounter": {
|
6943 | "10": 1,
|
6944 | "75": 6,
|
6945 | "91": 1,
|
6946 | "153": 2,
|
6947 | "169": 1,
|
6948 | "193": 1,
|
6949 | "225": 1,
|
6950 | "242": 1,
|
6951 | "243": 1,
|
6952 | "254": 1,
|
6953 | "255": 1,
|
6954 | "256": 1,
|
6955 | "281": 1,
|
6956 | "290": 1
|
6957 | },
|
6958 | "fqnsFingerprint": "45020d5972f3235b22b5593ab5956f2b89b22de462232f44e0ef6e67da8d1c7a"
|
6959 | },
|
6960 | "bcbed309a82b7ba7f72bd0fc536d96ab2319b5acf51792189ef16d199d130ffd": {
|
6961 | "translations": {
|
6962 | "python": {
|
6963 | "source": "# 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)",
|
6964 | "version": "2"
|
6965 | },
|
6966 | "csharp": {
|
6967 | "source": "// 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};",
|
6968 | "version": "1"
|
6969 | },
|
6970 | "java": {
|
6971 | "source": "// The 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();",
|
6972 | "version": "1"
|
6973 | },
|
6974 | "go": {
|
6975 | "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}",
|
6976 | "version": "1"
|
6977 | },
|
6978 | "$": {
|
6979 | "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};",
|
6980 | "version": "0"
|
6981 | }
|
6982 | },
|
6983 | "location": {
|
6984 | "api": {
|
6985 | "api": "type",
|
6986 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty"
|
6987 | },
|
6988 | "field": {
|
6989 | "field": "example"
|
6990 | }
|
6991 | },
|
6992 | "didCompile": true,
|
6993 | "fqnsReferenced": [
|
6994 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CorsConfigProperty"
|
6995 | ],
|
6996 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
6997 | "syntaxKindCounter": {
|
6998 | "8": 1,
|
6999 | "10": 5,
|
7000 | "75": 16,
|
7001 | "91": 2,
|
7002 | "153": 2,
|
7003 | "169": 1,
|
7004 | "192": 4,
|
7005 | "193": 5,
|
7006 | "225": 1,
|
7007 | "242": 1,
|
7008 | "243": 1,
|
7009 | "254": 1,
|
7010 | "255": 1,
|
7011 | "256": 1,
|
7012 | "281": 11,
|
7013 | "290": 1
|
7014 | },
|
7015 | "fqnsFingerprint": "d02d92dd46cb87babcbea9c573f78b43d7855230caf4acf0b86005e9e5fd45ec"
|
7016 | },
|
7017 | "99856d47bd38c047dacd74b29965b62367579bccf6162bdfbb3b16353b15348f": {
|
7018 | "translations": {
|
7019 | "python": {
|
7020 | "source": "# 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)",
|
7021 | "version": "2"
|
7022 | },
|
7023 | "csharp": {
|
7024 | "source": "// 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};",
|
7025 | "version": "1"
|
7026 | },
|
7027 | "java": {
|
7028 | "source": "// The 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();",
|
7029 | "version": "1"
|
7030 | },
|
7031 | "go": {
|
7032 | "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}",
|
7033 | "version": "1"
|
7034 | },
|
7035 | "$": {
|
7036 | "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};",
|
7037 | "version": "0"
|
7038 | }
|
7039 | },
|
7040 | "location": {
|
7041 | "api": {
|
7042 | "api": "type",
|
7043 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty"
|
7044 | },
|
7045 | "field": {
|
7046 | "field": "example"
|
7047 | }
|
7048 | },
|
7049 | "didCompile": true,
|
7050 | "fqnsReferenced": [
|
7051 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeaderProperty"
|
7052 | ],
|
7053 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7054 | "syntaxKindCounter": {
|
7055 | "10": 3,
|
7056 | "75": 8,
|
7057 | "91": 1,
|
7058 | "153": 2,
|
7059 | "169": 1,
|
7060 | "193": 1,
|
7061 | "225": 1,
|
7062 | "242": 1,
|
7063 | "243": 1,
|
7064 | "254": 1,
|
7065 | "255": 1,
|
7066 | "256": 1,
|
7067 | "281": 3,
|
7068 | "290": 1
|
7069 | },
|
7070 | "fqnsFingerprint": "328e22d3aa1d3fecd3564d16e20b290efa993c313f767f640e5f8257f3c604cf"
|
7071 | },
|
7072 | "fea6bdb300b1fcdefca8e1ad4c0bbf41836ef5e91bd55458e69dd4d94bdf88e3": {
|
7073 | "translations": {
|
7074 | "python": {
|
7075 | "source": "# 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)",
|
7076 | "version": "2"
|
7077 | },
|
7078 | "csharp": {
|
7079 | "source": "// 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};",
|
7080 | "version": "1"
|
7081 | },
|
7082 | "java": {
|
7083 | "source": "// The 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();",
|
7084 | "version": "1"
|
7085 | },
|
7086 | "go": {
|
7087 | "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}",
|
7088 | "version": "1"
|
7089 | },
|
7090 | "$": {
|
7091 | "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};",
|
7092 | "version": "0"
|
7093 | }
|
7094 | },
|
7095 | "location": {
|
7096 | "api": {
|
7097 | "api": "type",
|
7098 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty"
|
7099 | },
|
7100 | "field": {
|
7101 | "field": "example"
|
7102 | }
|
7103 | },
|
7104 | "didCompile": true,
|
7105 | "fqnsReferenced": [
|
7106 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.CustomHeadersConfigProperty"
|
7107 | ],
|
7108 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7109 | "syntaxKindCounter": {
|
7110 | "10": 3,
|
7111 | "75": 9,
|
7112 | "91": 1,
|
7113 | "153": 2,
|
7114 | "169": 1,
|
7115 | "192": 1,
|
7116 | "193": 2,
|
7117 | "225": 1,
|
7118 | "242": 1,
|
7119 | "243": 1,
|
7120 | "254": 1,
|
7121 | "255": 1,
|
7122 | "256": 1,
|
7123 | "281": 4,
|
7124 | "290": 1
|
7125 | },
|
7126 | "fqnsFingerprint": "ebe093641f8b8e5e7e73d81607440a299f0b22591aaa659a45eb1bde26e43eb0"
|
7127 | },
|
7128 | "b11c24bcaf6bddb4db4c2eb2e96e0c4620d92c637eb56d67cbde24e26e33159a": {
|
7129 | "translations": {
|
7130 | "python": {
|
7131 | "source": "# 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)",
|
7132 | "version": "2"
|
7133 | },
|
7134 | "csharp": {
|
7135 | "source": "// 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};",
|
7136 | "version": "1"
|
7137 | },
|
7138 | "java": {
|
7139 | "source": "// The 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();",
|
7140 | "version": "1"
|
7141 | },
|
7142 | "go": {
|
7143 | "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}",
|
7144 | "version": "1"
|
7145 | },
|
7146 | "$": {
|
7147 | "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};",
|
7148 | "version": "0"
|
7149 | }
|
7150 | },
|
7151 | "location": {
|
7152 | "api": {
|
7153 | "api": "type",
|
7154 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty"
|
7155 | },
|
7156 | "field": {
|
7157 | "field": "example"
|
7158 | }
|
7159 | },
|
7160 | "didCompile": true,
|
7161 | "fqnsReferenced": [
|
7162 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.FrameOptionsProperty"
|
7163 | ],
|
7164 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7165 | "syntaxKindCounter": {
|
7166 | "10": 2,
|
7167 | "75": 7,
|
7168 | "91": 1,
|
7169 | "153": 2,
|
7170 | "169": 1,
|
7171 | "193": 1,
|
7172 | "225": 1,
|
7173 | "242": 1,
|
7174 | "243": 1,
|
7175 | "254": 1,
|
7176 | "255": 1,
|
7177 | "256": 1,
|
7178 | "281": 2,
|
7179 | "290": 1
|
7180 | },
|
7181 | "fqnsFingerprint": "b90533898c656d0139a836c1917dd02712e3eb0efc5994b6eb9d1cc20f8770ee"
|
7182 | },
|
7183 | "69cf4da94cb92fbcad5fb7af3656ff180ad9d588d5b0c4918895b86c1b3d5330": {
|
7184 | "translations": {
|
7185 | "python": {
|
7186 | "source": "# 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)",
|
7187 | "version": "2"
|
7188 | },
|
7189 | "csharp": {
|
7190 | "source": "// 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};",
|
7191 | "version": "1"
|
7192 | },
|
7193 | "java": {
|
7194 | "source": "// The 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();",
|
7195 | "version": "1"
|
7196 | },
|
7197 | "go": {
|
7198 | "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}",
|
7199 | "version": "1"
|
7200 | },
|
7201 | "$": {
|
7202 | "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};",
|
7203 | "version": "0"
|
7204 | }
|
7205 | },
|
7206 | "location": {
|
7207 | "api": {
|
7208 | "api": "type",
|
7209 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty"
|
7210 | },
|
7211 | "field": {
|
7212 | "field": "example"
|
7213 | }
|
7214 | },
|
7215 | "didCompile": true,
|
7216 | "fqnsReferenced": [
|
7217 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ReferrerPolicyProperty"
|
7218 | ],
|
7219 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7220 | "syntaxKindCounter": {
|
7221 | "10": 2,
|
7222 | "75": 7,
|
7223 | "91": 1,
|
7224 | "153": 2,
|
7225 | "169": 1,
|
7226 | "193": 1,
|
7227 | "225": 1,
|
7228 | "242": 1,
|
7229 | "243": 1,
|
7230 | "254": 1,
|
7231 | "255": 1,
|
7232 | "256": 1,
|
7233 | "281": 2,
|
7234 | "290": 1
|
7235 | },
|
7236 | "fqnsFingerprint": "6d8cf7707e39dd2555ec1fa32115745a558dfb0021614bb6be30f5c233e186cf"
|
7237 | },
|
7238 | "9dc2a39a31a02e4c9f4653e572ba48fbaf99995db528af21310c964373fb21f2": {
|
7239 | "translations": {
|
7240 | "python": {
|
7241 | "source": "# 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)",
|
7242 | "version": "2"
|
7243 | },
|
7244 | "csharp": {
|
7245 | "source": "// 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};",
|
7246 | "version": "1"
|
7247 | },
|
7248 | "java": {
|
7249 | "source": "// The 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 .build();",
|
7250 | "version": "1"
|
7251 | },
|
7252 | "go": {
|
7253 | "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}",
|
7254 | "version": "1"
|
7255 | },
|
7256 | "$": {
|
7257 | "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};",
|
7258 | "version": "0"
|
7259 | }
|
7260 | },
|
7261 | "location": {
|
7262 | "api": {
|
7263 | "api": "type",
|
7264 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty"
|
7265 | },
|
7266 | "field": {
|
7267 | "field": "example"
|
7268 | }
|
7269 | },
|
7270 | "didCompile": true,
|
7271 | "fqnsReferenced": [
|
7272 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.ResponseHeadersPolicyConfigProperty"
|
7273 | ],
|
7274 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
7275 | "syntaxKindCounter": {
|
7276 | "8": 2,
|
7277 | "10": 13,
|
7278 | "75": 46,
|
7279 | "91": 13,
|
7280 | "153": 2,
|
7281 | "169": 1,
|
7282 | "192": 5,
|
7283 | "193": 15,
|
7284 | "225": 1,
|
7285 | "242": 1,
|
7286 | "243": 1,
|
7287 | "254": 1,
|
7288 | "255": 1,
|
7289 | "256": 1,
|
7290 | "281": 41,
|
7291 | "290": 1
|
7292 | },
|
7293 | "fqnsFingerprint": "f42db29f8835cc94e899db980455fa5d2330ff8cf95ce677fd51ead821e7860d"
|
7294 | },
|
7295 | "270a9fb3e1c729aeab9204f61ce150f09567690b1f9ebbf1e2a558d0e174763c": {
|
7296 | "translations": {
|
7297 | "python": {
|
7298 | "source": "# 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)",
|
7299 | "version": "2"
|
7300 | },
|
7301 | "csharp": {
|
7302 | "source": "// 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};",
|
7303 | "version": "1"
|
7304 | },
|
7305 | "java": {
|
7306 | "source": "// The 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();",
|
7307 | "version": "1"
|
7308 | },
|
7309 | "go": {
|
7310 | "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}",
|
7311 | "version": "1"
|
7312 | },
|
7313 | "$": {
|
7314 | "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};",
|
7315 | "version": "0"
|
7316 | }
|
7317 | },
|
7318 | "location": {
|
7319 | "api": {
|
7320 | "api": "type",
|
7321 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty"
|
7322 | },
|
7323 | "field": {
|
7324 | "field": "example"
|
7325 | }
|
7326 | },
|
7327 | "didCompile": true,
|
7328 | "fqnsReferenced": [
|
7329 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.SecurityHeadersConfigProperty"
|
7330 | ],
|
7331 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7332 | "syntaxKindCounter": {
|
7333 | "8": 1,
|
7334 | "10": 5,
|
7335 | "75": 26,
|
7336 | "91": 10,
|
7337 | "153": 2,
|
7338 | "169": 1,
|
7339 | "193": 7,
|
7340 | "225": 1,
|
7341 | "242": 1,
|
7342 | "243": 1,
|
7343 | "254": 1,
|
7344 | "255": 1,
|
7345 | "256": 1,
|
7346 | "281": 21,
|
7347 | "290": 1
|
7348 | },
|
7349 | "fqnsFingerprint": "4810439c9e1a3511141f4677145ee0849714c540f0f1202d9c637a77f4729f9e"
|
7350 | },
|
7351 | "e976b2dd9d804d9e83c9c8c6feed092dca3413f7d4620a56fa6e2221873b10e9": {
|
7352 | "translations": {
|
7353 | "python": {
|
7354 | "source": "# 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)",
|
7355 | "version": "2"
|
7356 | },
|
7357 | "csharp": {
|
7358 | "source": "// 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};",
|
7359 | "version": "1"
|
7360 | },
|
7361 | "java": {
|
7362 | "source": "// The 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();",
|
7363 | "version": "1"
|
7364 | },
|
7365 | "go": {
|
7366 | "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}",
|
7367 | "version": "1"
|
7368 | },
|
7369 | "$": {
|
7370 | "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};",
|
7371 | "version": "0"
|
7372 | }
|
7373 | },
|
7374 | "location": {
|
7375 | "api": {
|
7376 | "api": "type",
|
7377 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty"
|
7378 | },
|
7379 | "field": {
|
7380 | "field": "example"
|
7381 | }
|
7382 | },
|
7383 | "didCompile": true,
|
7384 | "fqnsReferenced": [
|
7385 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.StrictTransportSecurityProperty"
|
7386 | ],
|
7387 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7388 | "syntaxKindCounter": {
|
7389 | "8": 1,
|
7390 | "10": 1,
|
7391 | "75": 9,
|
7392 | "91": 3,
|
7393 | "153": 2,
|
7394 | "169": 1,
|
7395 | "193": 1,
|
7396 | "225": 1,
|
7397 | "242": 1,
|
7398 | "243": 1,
|
7399 | "254": 1,
|
7400 | "255": 1,
|
7401 | "256": 1,
|
7402 | "281": 4,
|
7403 | "290": 1
|
7404 | },
|
7405 | "fqnsFingerprint": "9459c6ad2e0fafd42d1213e268d889dabff08a1ec9cbb51569a81b7a4d89abc4"
|
7406 | },
|
7407 | "e625759831c40353d2a7e53c8a9b633ad6037e151e0d3d0cf2035cfbe5f7bb8d": {
|
7408 | "translations": {
|
7409 | "python": {
|
7410 | "source": "# 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)",
|
7411 | "version": "2"
|
7412 | },
|
7413 | "csharp": {
|
7414 | "source": "// 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};",
|
7415 | "version": "1"
|
7416 | },
|
7417 | "java": {
|
7418 | "source": "// The 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();",
|
7419 | "version": "1"
|
7420 | },
|
7421 | "go": {
|
7422 | "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}",
|
7423 | "version": "1"
|
7424 | },
|
7425 | "$": {
|
7426 | "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};",
|
7427 | "version": "0"
|
7428 | }
|
7429 | },
|
7430 | "location": {
|
7431 | "api": {
|
7432 | "api": "type",
|
7433 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty"
|
7434 | },
|
7435 | "field": {
|
7436 | "field": "example"
|
7437 | }
|
7438 | },
|
7439 | "didCompile": true,
|
7440 | "fqnsReferenced": [
|
7441 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicy.XSSProtectionProperty"
|
7442 | ],
|
7443 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7444 | "syntaxKindCounter": {
|
7445 | "10": 2,
|
7446 | "75": 9,
|
7447 | "91": 3,
|
7448 | "153": 2,
|
7449 | "169": 1,
|
7450 | "193": 1,
|
7451 | "225": 1,
|
7452 | "242": 1,
|
7453 | "243": 1,
|
7454 | "254": 1,
|
7455 | "255": 1,
|
7456 | "256": 1,
|
7457 | "281": 4,
|
7458 | "290": 1
|
7459 | },
|
7460 | "fqnsFingerprint": "fac58420e4afc4ded87164bd234415f384003ff87c3299b41b8694f017b003e8"
|
7461 | },
|
7462 | "6e24863c41a4c8c81be54f7f341275ede47341e0ef66f702a825a8cc2b3b329a": {
|
7463 | "translations": {
|
7464 | "python": {
|
7465 | "source": "# 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 )\n)",
|
7466 | "version": "2"
|
7467 | },
|
7468 | "csharp": {
|
7469 | "source": "// 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 }\n};",
|
7470 | "version": "1"
|
7471 | },
|
7472 | "java": {
|
7473 | "source": "// The 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 .build())\n .build();",
|
7474 | "version": "1"
|
7475 | },
|
7476 | "go": {
|
7477 | "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},\n}",
|
7478 | "version": "1"
|
7479 | },
|
7480 | "$": {
|
7481 | "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 },\n};",
|
7482 | "version": "0"
|
7483 | }
|
7484 | },
|
7485 | "location": {
|
7486 | "api": {
|
7487 | "api": "type",
|
7488 | "fqn": "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicyProps"
|
7489 | },
|
7490 | "field": {
|
7491 | "field": "example"
|
7492 | }
|
7493 | },
|
7494 | "didCompile": true,
|
7495 | "fqnsReferenced": [
|
7496 | "@aws-cdk/aws-cloudfront.CfnResponseHeadersPolicyProps"
|
7497 | ],
|
7498 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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 },\n};\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
7499 | "syntaxKindCounter": {
|
7500 | "8": 2,
|
7501 | "10": 13,
|
7502 | "75": 46,
|
7503 | "91": 13,
|
7504 | "153": 1,
|
7505 | "169": 1,
|
7506 | "192": 5,
|
7507 | "193": 16,
|
7508 | "225": 1,
|
7509 | "242": 1,
|
7510 | "243": 1,
|
7511 | "254": 1,
|
7512 | "255": 1,
|
7513 | "256": 1,
|
7514 | "281": 42,
|
7515 | "290": 1
|
7516 | },
|
7517 | "fqnsFingerprint": "aabff9fe2d8ef1e21818bdf4e5c8777fe14d7142a7c5ecdb210610a1c169e12e"
|
7518 | },
|
7519 | "12297ea476e6561a54b03ab1d1e7035af1d86a6fbe3f24e66c691912dffc5f83": {
|
7520 | "translations": {
|
7521 | "python": {
|
7522 | "source": "# 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)",
|
7523 | "version": "2"
|
7524 | },
|
7525 | "csharp": {
|
7526 | "source": "// 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});",
|
7527 | "version": "1"
|
7528 | },
|
7529 | "java": {
|
7530 | "source": "// The 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();",
|
7531 | "version": "1"
|
7532 | },
|
7533 | "go": {
|
7534 | "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})",
|
7535 | "version": "1"
|
7536 | },
|
7537 | "$": {
|
7538 | "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});",
|
7539 | "version": "0"
|
7540 | }
|
7541 | },
|
7542 | "location": {
|
7543 | "api": {
|
7544 | "api": "type",
|
7545 | "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution"
|
7546 | },
|
7547 | "field": {
|
7548 | "field": "example"
|
7549 | }
|
7550 | },
|
7551 | "didCompile": true,
|
7552 | "fqnsReferenced": [
|
7553 | "@aws-cdk/aws-cloudfront.CfnStreamingDistribution",
|
7554 | "@aws-cdk/aws-cloudfront.CfnStreamingDistributionProps",
|
7555 | "@aws-cdk/core.Construct"
|
7556 | ],
|
7557 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7558 | "syntaxKindCounter": {
|
7559 | "10": 12,
|
7560 | "75": 22,
|
7561 | "91": 3,
|
7562 | "104": 1,
|
7563 | "192": 3,
|
7564 | "193": 6,
|
7565 | "194": 1,
|
7566 | "197": 1,
|
7567 | "225": 1,
|
7568 | "242": 1,
|
7569 | "243": 1,
|
7570 | "254": 1,
|
7571 | "255": 1,
|
7572 | "256": 1,
|
7573 | "281": 18,
|
7574 | "290": 1
|
7575 | },
|
7576 | "fqnsFingerprint": "82acd796fdc931b11830ef1f6ccabd0e82fb4c54fe035f65a38dd1b56c0c0656"
|
7577 | },
|
7578 | "36887701875ad191cf330b60b94d7aef7f5c27a03b1815f1a5fc67d2237cb02e": {
|
7579 | "translations": {
|
7580 | "python": {
|
7581 | "source": "# 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)",
|
7582 | "version": "2"
|
7583 | },
|
7584 | "csharp": {
|
7585 | "source": "// 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};",
|
7586 | "version": "1"
|
7587 | },
|
7588 | "java": {
|
7589 | "source": "// The 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();",
|
7590 | "version": "1"
|
7591 | },
|
7592 | "go": {
|
7593 | "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}",
|
7594 | "version": "1"
|
7595 | },
|
7596 | "$": {
|
7597 | "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};",
|
7598 | "version": "0"
|
7599 | }
|
7600 | },
|
7601 | "location": {
|
7602 | "api": {
|
7603 | "api": "type",
|
7604 | "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.LoggingProperty"
|
7605 | },
|
7606 | "field": {
|
7607 | "field": "example"
|
7608 | }
|
7609 | },
|
7610 | "didCompile": true,
|
7611 | "fqnsReferenced": [
|
7612 | "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.LoggingProperty"
|
7613 | ],
|
7614 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7615 | "syntaxKindCounter": {
|
7616 | "10": 3,
|
7617 | "75": 8,
|
7618 | "91": 1,
|
7619 | "153": 2,
|
7620 | "169": 1,
|
7621 | "193": 1,
|
7622 | "225": 1,
|
7623 | "242": 1,
|
7624 | "243": 1,
|
7625 | "254": 1,
|
7626 | "255": 1,
|
7627 | "256": 1,
|
7628 | "281": 3,
|
7629 | "290": 1
|
7630 | },
|
7631 | "fqnsFingerprint": "524603ae3fd9ab22fe1a2a5b51a20a36b108c1d81dcea5f4cc4103f4a00aa495"
|
7632 | },
|
7633 | "d68a50460567b5f5bdd0046943614f0e4801c07810ed46c44876c2ab92e9cd9c": {
|
7634 | "translations": {
|
7635 | "python": {
|
7636 | "source": "# 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)",
|
7637 | "version": "2"
|
7638 | },
|
7639 | "csharp": {
|
7640 | "source": "// 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};",
|
7641 | "version": "1"
|
7642 | },
|
7643 | "java": {
|
7644 | "source": "// The 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();",
|
7645 | "version": "1"
|
7646 | },
|
7647 | "go": {
|
7648 | "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}",
|
7649 | "version": "1"
|
7650 | },
|
7651 | "$": {
|
7652 | "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};",
|
7653 | "version": "0"
|
7654 | }
|
7655 | },
|
7656 | "location": {
|
7657 | "api": {
|
7658 | "api": "type",
|
7659 | "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.S3OriginProperty"
|
7660 | },
|
7661 | "field": {
|
7662 | "field": "example"
|
7663 | }
|
7664 | },
|
7665 | "didCompile": true,
|
7666 | "fqnsReferenced": [
|
7667 | "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.S3OriginProperty"
|
7668 | ],
|
7669 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7670 | "syntaxKindCounter": {
|
7671 | "10": 3,
|
7672 | "75": 7,
|
7673 | "153": 2,
|
7674 | "169": 1,
|
7675 | "193": 1,
|
7676 | "225": 1,
|
7677 | "242": 1,
|
7678 | "243": 1,
|
7679 | "254": 1,
|
7680 | "255": 1,
|
7681 | "256": 1,
|
7682 | "281": 2,
|
7683 | "290": 1
|
7684 | },
|
7685 | "fqnsFingerprint": "a512974884e03d795c0af94b8f2d9e0b7dfbcd8b220cec93b777827c23f570b0"
|
7686 | },
|
7687 | "a859296f2f95b88f697f82302e4d66acc51ddf2dc3cab5c4ab470cadc2c2eba9": {
|
7688 | "translations": {
|
7689 | "python": {
|
7690 | "source": "# 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)",
|
7691 | "version": "2"
|
7692 | },
|
7693 | "csharp": {
|
7694 | "source": "// 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};",
|
7695 | "version": "1"
|
7696 | },
|
7697 | "java": {
|
7698 | "source": "// The 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();",
|
7699 | "version": "1"
|
7700 | },
|
7701 | "go": {
|
7702 | "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}",
|
7703 | "version": "1"
|
7704 | },
|
7705 | "$": {
|
7706 | "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};",
|
7707 | "version": "0"
|
7708 | }
|
7709 | },
|
7710 | "location": {
|
7711 | "api": {
|
7712 | "api": "type",
|
7713 | "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty"
|
7714 | },
|
7715 | "field": {
|
7716 | "field": "example"
|
7717 | }
|
7718 | },
|
7719 | "didCompile": true,
|
7720 | "fqnsReferenced": [
|
7721 | "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.StreamingDistributionConfigProperty"
|
7722 | ],
|
7723 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7724 | "syntaxKindCounter": {
|
7725 | "10": 9,
|
7726 | "75": 19,
|
7727 | "91": 3,
|
7728 | "153": 2,
|
7729 | "169": 1,
|
7730 | "192": 2,
|
7731 | "193": 4,
|
7732 | "225": 1,
|
7733 | "242": 1,
|
7734 | "243": 1,
|
7735 | "254": 1,
|
7736 | "255": 1,
|
7737 | "256": 1,
|
7738 | "281": 14,
|
7739 | "290": 1
|
7740 | },
|
7741 | "fqnsFingerprint": "98039bdde21e5f6a902cb7c7adabb6ca05f3560333240b2de018635feea3efb1"
|
7742 | },
|
7743 | "a02038f2a228ff98df5abcb2ada8533391c93c5d95053cf345acbb3117fb1e4f": {
|
7744 | "translations": {
|
7745 | "python": {
|
7746 | "source": "# 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)",
|
7747 | "version": "2"
|
7748 | },
|
7749 | "csharp": {
|
7750 | "source": "// 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};",
|
7751 | "version": "1"
|
7752 | },
|
7753 | "java": {
|
7754 | "source": "// The 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();",
|
7755 | "version": "1"
|
7756 | },
|
7757 | "go": {
|
7758 | "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}",
|
7759 | "version": "1"
|
7760 | },
|
7761 | "$": {
|
7762 | "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};",
|
7763 | "version": "0"
|
7764 | }
|
7765 | },
|
7766 | "location": {
|
7767 | "api": {
|
7768 | "api": "type",
|
7769 | "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.TrustedSignersProperty"
|
7770 | },
|
7771 | "field": {
|
7772 | "field": "example"
|
7773 | }
|
7774 | },
|
7775 | "didCompile": true,
|
7776 | "fqnsReferenced": [
|
7777 | "@aws-cdk/aws-cloudfront.CfnStreamingDistribution.TrustedSignersProperty"
|
7778 | ],
|
7779 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7780 | "syntaxKindCounter": {
|
7781 | "10": 2,
|
7782 | "75": 7,
|
7783 | "91": 1,
|
7784 | "153": 2,
|
7785 | "169": 1,
|
7786 | "192": 1,
|
7787 | "193": 1,
|
7788 | "225": 1,
|
7789 | "242": 1,
|
7790 | "243": 1,
|
7791 | "254": 1,
|
7792 | "255": 1,
|
7793 | "256": 1,
|
7794 | "281": 2,
|
7795 | "290": 1
|
7796 | },
|
7797 | "fqnsFingerprint": "137bb4852c0bf2b19edf7c80ac83201b12fae4da5d847d4f0449a6470ef23da9"
|
7798 | },
|
7799 | "21ccf11104b98d5b2e4084bf110cadb48fb803c197b180caa2e853464c0aebcb": {
|
7800 | "translations": {
|
7801 | "python": {
|
7802 | "source": "# 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)",
|
7803 | "version": "2"
|
7804 | },
|
7805 | "csharp": {
|
7806 | "source": "// 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};",
|
7807 | "version": "1"
|
7808 | },
|
7809 | "java": {
|
7810 | "source": "// The 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();",
|
7811 | "version": "1"
|
7812 | },
|
7813 | "go": {
|
7814 | "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}",
|
7815 | "version": "1"
|
7816 | },
|
7817 | "$": {
|
7818 | "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};",
|
7819 | "version": "0"
|
7820 | }
|
7821 | },
|
7822 | "location": {
|
7823 | "api": {
|
7824 | "api": "type",
|
7825 | "fqn": "@aws-cdk/aws-cloudfront.CfnStreamingDistributionProps"
|
7826 | },
|
7827 | "field": {
|
7828 | "field": "example"
|
7829 | }
|
7830 | },
|
7831 | "didCompile": true,
|
7832 | "fqnsReferenced": [
|
7833 | "@aws-cdk/aws-cloudfront.CfnStreamingDistributionProps"
|
7834 | ],
|
7835 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
7836 | "syntaxKindCounter": {
|
7837 | "10": 11,
|
7838 | "75": 22,
|
7839 | "91": 3,
|
7840 | "153": 1,
|
7841 | "169": 1,
|
7842 | "192": 3,
|
7843 | "193": 6,
|
7844 | "225": 1,
|
7845 | "242": 1,
|
7846 | "243": 1,
|
7847 | "254": 1,
|
7848 | "255": 1,
|
7849 | "256": 1,
|
7850 | "281": 18,
|
7851 | "290": 1
|
7852 | },
|
7853 | "fqnsFingerprint": "15224c1c2ffbc5c556d1706cf7ff6b9d2fbbfae267eba7a6e1f5714672cb1c91"
|
7854 | },
|
7855 | "bb573e1bbd24bafeef7415e8826bfa7cbb34ccc3312c8ba7d8f6a6294e049aa5": {
|
7856 | "translations": {
|
7857 | "python": {
|
7858 | "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)",
|
7859 | "version": "2"
|
7860 | },
|
7861 | "csharp": {
|
7862 | "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});",
|
7863 | "version": "1"
|
7864 | },
|
7865 | "java": {
|
7866 | "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();",
|
7867 | "version": "1"
|
7868 | },
|
7869 | "go": {
|
7870 | "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})",
|
7871 | "version": "1"
|
7872 | },
|
7873 | "$": {
|
7874 | "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});",
|
7875 | "version": "0"
|
7876 | }
|
7877 | },
|
7878 | "location": {
|
7879 | "api": {
|
7880 | "api": "type",
|
7881 | "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution"
|
7882 | },
|
7883 | "field": {
|
7884 | "field": "markdown",
|
7885 | "line": 5
|
7886 | }
|
7887 | },
|
7888 | "didCompile": true,
|
7889 | "fqnsReferenced": [
|
7890 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
7891 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
7892 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
7893 | "@aws-cdk/aws-s3.Bucket",
|
7894 | "@aws-cdk/aws-s3.IBucket",
|
7895 | "constructs.Construct"
|
7896 | ],
|
7897 | "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",
|
7898 | "syntaxKindCounter": {
|
7899 | "10": 2,
|
7900 | "75": 12,
|
7901 | "104": 2,
|
7902 | "106": 1,
|
7903 | "192": 2,
|
7904 | "193": 4,
|
7905 | "194": 2,
|
7906 | "197": 2,
|
7907 | "225": 2,
|
7908 | "242": 2,
|
7909 | "243": 2,
|
7910 | "281": 5
|
7911 | },
|
7912 | "fqnsFingerprint": "8f4df069fdabec4cc447e5c03c730dd90b157a521c375b6e7ff02f5fbce37d26"
|
7913 | },
|
7914 | "b545e1d546f44fcaeea96e099aac2d10b5db43c927effce97ddda2d4c7a26500": {
|
7915 | "translations": {
|
7916 | "python": {
|
7917 | "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)",
|
7918 | "version": "2"
|
7919 | },
|
7920 | "csharp": {
|
7921 | "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});",
|
7922 | "version": "1"
|
7923 | },
|
7924 | "java": {
|
7925 | "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();",
|
7926 | "version": "1"
|
7927 | },
|
7928 | "go": {
|
7929 | "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})",
|
7930 | "version": "1"
|
7931 | },
|
7932 | "$": {
|
7933 | "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});",
|
7934 | "version": "0"
|
7935 | }
|
7936 | },
|
7937 | "location": {
|
7938 | "api": {
|
7939 | "api": "type",
|
7940 | "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution"
|
7941 | },
|
7942 | "field": {
|
7943 | "field": "example"
|
7944 | }
|
7945 | },
|
7946 | "didCompile": true,
|
7947 | "fqnsReferenced": [
|
7948 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
7949 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
7950 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
7951 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
7952 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
7953 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
7954 | "@aws-cdk/aws-s3.IBucket",
|
7955 | "constructs.Construct"
|
7956 | ],
|
7957 | "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",
|
7958 | "syntaxKindCounter": {
|
7959 | "10": 3,
|
7960 | "75": 18,
|
7961 | "104": 1,
|
7962 | "106": 1,
|
7963 | "130": 1,
|
7964 | "153": 1,
|
7965 | "169": 1,
|
7966 | "192": 3,
|
7967 | "193": 5,
|
7968 | "194": 3,
|
7969 | "196": 1,
|
7970 | "197": 1,
|
7971 | "225": 2,
|
7972 | "226": 1,
|
7973 | "242": 2,
|
7974 | "243": 2,
|
7975 | "281": 7,
|
7976 | "290": 1
|
7977 | },
|
7978 | "fqnsFingerprint": "0c7e693a403547b8045ed1cf94ff054a49224b60a6be542721b8ccf0b8fe6fc5"
|
7979 | },
|
7980 | "6c2f18705e752bbd2fadc8ebaa855db19e9db6117931f908658d2c4f40439e4c": {
|
7981 | "translations": {
|
7982 | "python": {
|
7983 | "source": "# 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)",
|
7984 | "version": "2"
|
7985 | },
|
7986 | "csharp": {
|
7987 | "source": "// 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};",
|
7988 | "version": "1"
|
7989 | },
|
7990 | "java": {
|
7991 | "source": "// The 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();",
|
7992 | "version": "1"
|
7993 | },
|
7994 | "go": {
|
7995 | "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}",
|
7996 | "version": "1"
|
7997 | },
|
7998 | "$": {
|
7999 | "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};",
|
8000 | "version": "0"
|
8001 | }
|
8002 | },
|
8003 | "location": {
|
8004 | "api": {
|
8005 | "api": "type",
|
8006 | "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionAttributes"
|
8007 | },
|
8008 | "field": {
|
8009 | "field": "example"
|
8010 | }
|
8011 | },
|
8012 | "didCompile": true,
|
8013 | "fqnsReferenced": [
|
8014 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionAttributes"
|
8015 | ],
|
8016 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
8017 | "syntaxKindCounter": {
|
8018 | "10": 3,
|
8019 | "75": 6,
|
8020 | "153": 1,
|
8021 | "169": 1,
|
8022 | "193": 1,
|
8023 | "225": 1,
|
8024 | "242": 1,
|
8025 | "243": 1,
|
8026 | "254": 1,
|
8027 | "255": 1,
|
8028 | "256": 1,
|
8029 | "281": 2,
|
8030 | "290": 1
|
8031 | },
|
8032 | "fqnsFingerprint": "6e27b4d7c98b48f498be97925864e9f61fda2b37e3b9b225e8e9442f935cc5e8"
|
8033 | },
|
8034 | "3bd66a256b7c04c1a135a91d5a9eb77bf8a26b826b1290c88641d9484a756bf4": {
|
8035 | "translations": {
|
8036 | "python": {
|
8037 | "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)",
|
8038 | "version": "2"
|
8039 | },
|
8040 | "csharp": {
|
8041 | "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});",
|
8042 | "version": "1"
|
8043 | },
|
8044 | "java": {
|
8045 | "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();",
|
8046 | "version": "1"
|
8047 | },
|
8048 | "go": {
|
8049 | "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})",
|
8050 | "version": "1"
|
8051 | },
|
8052 | "$": {
|
8053 | "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});",
|
8054 | "version": "0"
|
8055 | }
|
8056 | },
|
8057 | "location": {
|
8058 | "api": {
|
8059 | "api": "type",
|
8060 | "fqn": "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps"
|
8061 | },
|
8062 | "field": {
|
8063 | "field": "example"
|
8064 | }
|
8065 | },
|
8066 | "didCompile": true,
|
8067 | "fqnsReferenced": [
|
8068 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
8069 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
8070 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
8071 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
8072 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
8073 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
8074 | "@aws-cdk/aws-s3.IBucket",
|
8075 | "constructs.Construct"
|
8076 | ],
|
8077 | "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",
|
8078 | "syntaxKindCounter": {
|
8079 | "10": 3,
|
8080 | "75": 18,
|
8081 | "104": 1,
|
8082 | "106": 1,
|
8083 | "130": 1,
|
8084 | "153": 1,
|
8085 | "169": 1,
|
8086 | "192": 3,
|
8087 | "193": 5,
|
8088 | "194": 3,
|
8089 | "196": 1,
|
8090 | "197": 1,
|
8091 | "225": 2,
|
8092 | "226": 1,
|
8093 | "242": 2,
|
8094 | "243": 2,
|
8095 | "281": 7,
|
8096 | "290": 1
|
8097 | },
|
8098 | "fqnsFingerprint": "0c7e693a403547b8045ed1cf94ff054a49224b60a6be542721b8ccf0b8fe6fc5"
|
8099 | },
|
8100 | "980e672dae31879ed083be7d019c110c754a0f193719cc2d170f3d5e8d450a39": {
|
8101 | "translations": {
|
8102 | "python": {
|
8103 | "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)",
|
8104 | "version": "2"
|
8105 | },
|
8106 | "csharp": {
|
8107 | "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});",
|
8108 | "version": "1"
|
8109 | },
|
8110 | "java": {
|
8111 | "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();",
|
8112 | "version": "1"
|
8113 | },
|
8114 | "go": {
|
8115 | "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})",
|
8116 | "version": "1"
|
8117 | },
|
8118 | "$": {
|
8119 | "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});",
|
8120 | "version": "0"
|
8121 | }
|
8122 | },
|
8123 | "location": {
|
8124 | "api": {
|
8125 | "api": "type",
|
8126 | "fqn": "@aws-cdk/aws-cloudfront.CustomOriginConfig"
|
8127 | },
|
8128 | "field": {
|
8129 | "field": "example"
|
8130 | }
|
8131 | },
|
8132 | "didCompile": true,
|
8133 | "fqnsReferenced": [
|
8134 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
8135 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
8136 | "@aws-cdk/aws-cloudfront.CustomOriginConfig",
|
8137 | "@aws-cdk/aws-cloudfront.IOriginAccessIdentity",
|
8138 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
8139 | "@aws-cdk/aws-s3.IBucket",
|
8140 | "constructs.Construct"
|
8141 | ],
|
8142 | "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",
|
8143 | "syntaxKindCounter": {
|
8144 | "10": 3,
|
8145 | "75": 20,
|
8146 | "104": 1,
|
8147 | "106": 1,
|
8148 | "130": 2,
|
8149 | "153": 2,
|
8150 | "169": 2,
|
8151 | "192": 3,
|
8152 | "193": 7,
|
8153 | "194": 1,
|
8154 | "197": 1,
|
8155 | "225": 2,
|
8156 | "226": 1,
|
8157 | "242": 2,
|
8158 | "243": 2,
|
8159 | "281": 10,
|
8160 | "290": 1
|
8161 | },
|
8162 | "fqnsFingerprint": "07d9a00687f403f5a04c0f87c7eced4daa3ead9abba7e5f920a52f10bc1135d1"
|
8163 | },
|
8164 | "4bca3b1867b810f99555ebf821b48cd0ecd8fe6eebeca89a1d51fc516596b867": {
|
8165 | "translations": {
|
8166 | "python": {
|
8167 | "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)",
|
8168 | "version": "2"
|
8169 | },
|
8170 | "csharp": {
|
8171 | "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});",
|
8172 | "version": "1"
|
8173 | },
|
8174 | "java": {
|
8175 | "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();",
|
8176 | "version": "1"
|
8177 | },
|
8178 | "go": {
|
8179 | "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})",
|
8180 | "version": "1"
|
8181 | },
|
8182 | "$": {
|
8183 | "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});",
|
8184 | "version": "0"
|
8185 | }
|
8186 | },
|
8187 | "location": {
|
8188 | "api": {
|
8189 | "api": "type",
|
8190 | "fqn": "@aws-cdk/aws-cloudfront.Distribution"
|
8191 | },
|
8192 | "field": {
|
8193 | "field": "example"
|
8194 | }
|
8195 | },
|
8196 | "didCompile": true,
|
8197 | "fqnsReferenced": [
|
8198 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
8199 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
8200 | "@aws-cdk/aws-cloudfront.Distribution",
|
8201 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
8202 | "@aws-cdk/aws-cloudfront.IOrigin",
|
8203 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
8204 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
|
8205 | "@aws-cdk/aws-lambda.IVersion",
|
8206 | "@aws-cdk/aws-lambda.Version",
|
8207 | "@aws-cdk/aws-lambda.Version#fromVersionArn",
|
8208 | "@aws-cdk/aws-s3.IBucket",
|
8209 | "constructs.Construct"
|
8210 | ],
|
8211 | "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",
|
8212 | "syntaxKindCounter": {
|
8213 | "10": 3,
|
8214 | "75": 20,
|
8215 | "104": 2,
|
8216 | "130": 1,
|
8217 | "153": 1,
|
8218 | "169": 1,
|
8219 | "192": 1,
|
8220 | "193": 3,
|
8221 | "194": 6,
|
8222 | "196": 1,
|
8223 | "197": 2,
|
8224 | "225": 2,
|
8225 | "226": 1,
|
8226 | "242": 2,
|
8227 | "243": 2,
|
8228 | "281": 4,
|
8229 | "282": 1,
|
8230 | "290": 1
|
8231 | },
|
8232 | "fqnsFingerprint": "b2a618d1ed00eeba0f745f3002e93ae5fd75a319f7cf2f380360fb98fb475b01"
|
8233 | },
|
8234 | "db4a4e45295cddc85d1018d17521ef8eed2b94e0aaeb9cd773ca435fb0048542": {
|
8235 | "translations": {
|
8236 | "python": {
|
8237 | "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)",
|
8238 | "version": "2"
|
8239 | },
|
8240 | "csharp": {
|
8241 | "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});",
|
8242 | "version": "1"
|
8243 | },
|
8244 | "java": {
|
8245 | "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());",
|
8246 | "version": "1"
|
8247 | },
|
8248 | "go": {
|
8249 | "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})",
|
8250 | "version": "1"
|
8251 | },
|
8252 | "$": {
|
8253 | "source": "// Using a reference to an imported Distribution\nconst distribution = cloudfront.Distribution.fromDistributionAttributes(this, 'ImportedDist', {\n domainName: 'd111111abcdef8.cloudfront.net',\n distributionId: '012345ABCDEF',\n});",
|
8254 | "version": "0"
|
8255 | }
|
8256 | },
|
8257 | "location": {
|
8258 | "api": {
|
8259 | "api": "type",
|
8260 | "fqn": "@aws-cdk/aws-cloudfront.DistributionAttributes"
|
8261 | },
|
8262 | "field": {
|
8263 | "field": "example"
|
8264 | }
|
8265 | },
|
8266 | "didCompile": true,
|
8267 | "fqnsReferenced": [
|
8268 | "@aws-cdk/aws-cloudfront.Distribution",
|
8269 | "@aws-cdk/aws-cloudfront.Distribution#fromDistributionAttributes",
|
8270 | "@aws-cdk/aws-cloudfront.DistributionAttributes",
|
8271 | "@aws-cdk/aws-cloudfront.IDistribution",
|
8272 | "constructs.Construct"
|
8273 | ],
|
8274 | "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",
|
8275 | "syntaxKindCounter": {
|
8276 | "10": 3,
|
8277 | "75": 6,
|
8278 | "104": 1,
|
8279 | "193": 1,
|
8280 | "194": 2,
|
8281 | "196": 1,
|
8282 | "225": 1,
|
8283 | "242": 1,
|
8284 | "243": 1,
|
8285 | "281": 2
|
8286 | },
|
8287 | "fqnsFingerprint": "80b658311e80d4f13670e6f8f59368088e5d130bea624e1c144ea19febb988a3"
|
8288 | },
|
8289 | "a6ccb0dbd34ea28afa6b3a5f9ca414087bf01ca9eda62cbf4063a7daff53bb05": {
|
8290 | "translations": {
|
8291 | "python": {
|
8292 | "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)",
|
8293 | "version": "2"
|
8294 | },
|
8295 | "csharp": {
|
8296 | "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});",
|
8297 | "version": "1"
|
8298 | },
|
8299 | "java": {
|
8300 | "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();",
|
8301 | "version": "1"
|
8302 | },
|
8303 | "go": {
|
8304 | "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})",
|
8305 | "version": "1"
|
8306 | },
|
8307 | "$": {
|
8308 | "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});",
|
8309 | "version": "0"
|
8310 | }
|
8311 | },
|
8312 | "location": {
|
8313 | "api": {
|
8314 | "api": "type",
|
8315 | "fqn": "@aws-cdk/aws-cloudfront.DistributionProps"
|
8316 | },
|
8317 | "field": {
|
8318 | "field": "example"
|
8319 | }
|
8320 | },
|
8321 | "didCompile": true,
|
8322 | "fqnsReferenced": [
|
8323 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
8324 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
8325 | "@aws-cdk/aws-cloudfront.Distribution",
|
8326 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
8327 | "@aws-cdk/aws-cloudfront.IOrigin",
|
8328 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
8329 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
|
8330 | "@aws-cdk/aws-lambda.IVersion",
|
8331 | "@aws-cdk/aws-lambda.Version",
|
8332 | "@aws-cdk/aws-lambda.Version#fromVersionArn",
|
8333 | "@aws-cdk/aws-s3.IBucket",
|
8334 | "constructs.Construct"
|
8335 | ],
|
8336 | "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",
|
8337 | "syntaxKindCounter": {
|
8338 | "10": 3,
|
8339 | "75": 20,
|
8340 | "104": 2,
|
8341 | "130": 1,
|
8342 | "153": 1,
|
8343 | "169": 1,
|
8344 | "192": 1,
|
8345 | "193": 3,
|
8346 | "194": 6,
|
8347 | "196": 1,
|
8348 | "197": 2,
|
8349 | "225": 2,
|
8350 | "226": 1,
|
8351 | "242": 2,
|
8352 | "243": 2,
|
8353 | "281": 4,
|
8354 | "282": 1,
|
8355 | "290": 1
|
8356 | },
|
8357 | "fqnsFingerprint": "b2a618d1ed00eeba0f745f3002e93ae5fd75a319f7cf2f380360fb98fb475b01"
|
8358 | },
|
8359 | "00149ad77545aca823b20cff455d8ba5a470c46c136b0d9a931e9d2552caba9b": {
|
8360 | "translations": {
|
8361 | "python": {
|
8362 | "source": "# 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)",
|
8363 | "version": "2"
|
8364 | },
|
8365 | "csharp": {
|
8366 | "source": "// 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};",
|
8367 | "version": "1"
|
8368 | },
|
8369 | "java": {
|
8370 | "source": "// The 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();",
|
8371 | "version": "1"
|
8372 | },
|
8373 | "go": {
|
8374 | "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}",
|
8375 | "version": "1"
|
8376 | },
|
8377 | "$": {
|
8378 | "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};",
|
8379 | "version": "0"
|
8380 | }
|
8381 | },
|
8382 | "location": {
|
8383 | "api": {
|
8384 | "api": "type",
|
8385 | "fqn": "@aws-cdk/aws-cloudfront.EdgeLambda"
|
8386 | },
|
8387 | "field": {
|
8388 | "field": "example"
|
8389 | }
|
8390 | },
|
8391 | "didCompile": true,
|
8392 | "fqnsReferenced": [
|
8393 | "@aws-cdk/aws-cloudfront.EdgeLambda",
|
8394 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
8395 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
|
8396 | "@aws-cdk/aws-lambda.IVersion"
|
8397 | ],
|
8398 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as 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} }",
|
8399 | "syntaxKindCounter": {
|
8400 | "10": 2,
|
8401 | "75": 15,
|
8402 | "91": 1,
|
8403 | "130": 1,
|
8404 | "153": 2,
|
8405 | "169": 2,
|
8406 | "193": 1,
|
8407 | "194": 2,
|
8408 | "225": 2,
|
8409 | "242": 2,
|
8410 | "243": 2,
|
8411 | "254": 2,
|
8412 | "255": 2,
|
8413 | "256": 2,
|
8414 | "281": 3,
|
8415 | "290": 1
|
8416 | },
|
8417 | "fqnsFingerprint": "58d24f00518dbe5700abce43113f2e78dbf20b739d4a2c81015857b1bb2d9a23"
|
8418 | },
|
8419 | "07b782b14ccc9a2423dcc3f7227a7174a61ebb3793f292221aea96dc57060f5a": {
|
8420 | "translations": {
|
8421 | "python": {
|
8422 | "source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_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)",
|
8423 | "version": "2"
|
8424 | },
|
8425 | "csharp": {
|
8426 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.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};",
|
8427 | "version": "1"
|
8428 | },
|
8429 | "java": {
|
8430 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.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();",
|
8431 | "version": "1"
|
8432 | },
|
8433 | "go": {
|
8434 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport 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}",
|
8435 | "version": "1"
|
8436 | },
|
8437 | "$": {
|
8438 | "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as 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};",
|
8439 | "version": "0"
|
8440 | }
|
8441 | },
|
8442 | "location": {
|
8443 | "api": {
|
8444 | "api": "type",
|
8445 | "fqn": "@aws-cdk/aws-cloudfront.ErrorResponse"
|
8446 | },
|
8447 | "field": {
|
8448 | "field": "example"
|
8449 | }
|
8450 | },
|
8451 | "didCompile": true,
|
8452 | "fqnsReferenced": [
|
8453 | "@aws-cdk/aws-cloudfront.ErrorResponse",
|
8454 | "@aws-cdk/core.Duration",
|
8455 | "@aws-cdk/core.Duration#minutes"
|
8456 | ],
|
8457 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as 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} }",
|
8458 | "syntaxKindCounter": {
|
8459 | "8": 3,
|
8460 | "10": 3,
|
8461 | "75": 12,
|
8462 | "153": 1,
|
8463 | "169": 1,
|
8464 | "193": 1,
|
8465 | "194": 2,
|
8466 | "196": 1,
|
8467 | "225": 1,
|
8468 | "242": 1,
|
8469 | "243": 1,
|
8470 | "254": 2,
|
8471 | "255": 2,
|
8472 | "256": 2,
|
8473 | "281": 4,
|
8474 | "290": 1
|
8475 | },
|
8476 | "fqnsFingerprint": "22967aba68cac93810909a5400528552ef4244d1eacc65d728a6449038ab543b"
|
8477 | },
|
8478 | "dac4b3e527302ffbc21f466aab3168832583876cfd842ad6777c55fdba1d6045": {
|
8479 | "translations": {
|
8480 | "python": {
|
8481 | "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)",
|
8482 | "version": "2"
|
8483 | },
|
8484 | "csharp": {
|
8485 | "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});",
|
8486 | "version": "1"
|
8487 | },
|
8488 | "java": {
|
8489 | "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();",
|
8490 | "version": "1"
|
8491 | },
|
8492 | "go": {
|
8493 | "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})",
|
8494 | "version": "1"
|
8495 | },
|
8496 | "$": {
|
8497 | "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});",
|
8498 | "version": "0"
|
8499 | }
|
8500 | },
|
8501 | "location": {
|
8502 | "api": {
|
8503 | "api": "type",
|
8504 | "fqn": "@aws-cdk/aws-cloudfront.FailoverStatusCode"
|
8505 | },
|
8506 | "field": {
|
8507 | "field": "example"
|
8508 | }
|
8509 | },
|
8510 | "didCompile": true,
|
8511 | "fqnsReferenced": [
|
8512 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
8513 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
8514 | "@aws-cdk/aws-cloudfront.FailoverStatusCode",
|
8515 | "@aws-cdk/aws-cloudfront.FailoverStatusCode#INTERNAL_SERVER_ERROR",
|
8516 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
8517 | "@aws-cdk/aws-s3.Bucket",
|
8518 | "@aws-cdk/aws-s3.Bucket#fromBucketName",
|
8519 | "@aws-cdk/aws-s3.IBucket",
|
8520 | "constructs.Construct"
|
8521 | ],
|
8522 | "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",
|
8523 | "syntaxKindCounter": {
|
8524 | "10": 13,
|
8525 | "75": 25,
|
8526 | "104": 3,
|
8527 | "106": 1,
|
8528 | "192": 3,
|
8529 | "193": 7,
|
8530 | "194": 7,
|
8531 | "196": 2,
|
8532 | "197": 1,
|
8533 | "226": 1,
|
8534 | "281": 16
|
8535 | },
|
8536 | "fqnsFingerprint": "ec805a4c13a5c1268841535c4feec349f721267920eabb2c9f0c0f9bfc06bc38"
|
8537 | },
|
8538 | "174c6f3864857afb8935747f6d00352b9c4be6c172b973e7ba8809207e0b3703": {
|
8539 | "translations": {
|
8540 | "python": {
|
8541 | "source": "# 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)",
|
8542 | "version": "2"
|
8543 | },
|
8544 | "csharp": {
|
8545 | "source": "// 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};",
|
8546 | "version": "1"
|
8547 | },
|
8548 | "java": {
|
8549 | "source": "// The 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();",
|
8550 | "version": "1"
|
8551 | },
|
8552 | "go": {
|
8553 | "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}",
|
8554 | "version": "1"
|
8555 | },
|
8556 | "$": {
|
8557 | "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};",
|
8558 | "version": "0"
|
8559 | }
|
8560 | },
|
8561 | "location": {
|
8562 | "api": {
|
8563 | "api": "type",
|
8564 | "fqn": "@aws-cdk/aws-cloudfront.FileCodeOptions"
|
8565 | },
|
8566 | "field": {
|
8567 | "field": "example"
|
8568 | }
|
8569 | },
|
8570 | "didCompile": true,
|
8571 | "fqnsReferenced": [
|
8572 | "@aws-cdk/aws-cloudfront.FileCodeOptions"
|
8573 | ],
|
8574 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
8575 | "syntaxKindCounter": {
|
8576 | "10": 2,
|
8577 | "75": 5,
|
8578 | "153": 1,
|
8579 | "169": 1,
|
8580 | "193": 1,
|
8581 | "225": 1,
|
8582 | "242": 1,
|
8583 | "243": 1,
|
8584 | "254": 1,
|
8585 | "255": 1,
|
8586 | "256": 1,
|
8587 | "281": 1,
|
8588 | "290": 1
|
8589 | },
|
8590 | "fqnsFingerprint": "b42a83bd1ba4a82f2781349e7d035a2cc945a1b1df9e4434d892b6343e337efd"
|
8591 | },
|
8592 | "c51c11d34cdf2e1e23ce5b55bf67945f5a2d70d8f70d6e7e05709a9780adf901": {
|
8593 | "translations": {
|
8594 | "python": {
|
8595 | "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)",
|
8596 | "version": "2"
|
8597 | },
|
8598 | "csharp": {
|
8599 | "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});",
|
8600 | "version": "1"
|
8601 | },
|
8602 | "java": {
|
8603 | "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();",
|
8604 | "version": "1"
|
8605 | },
|
8606 | "go": {
|
8607 | "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})",
|
8608 | "version": "1"
|
8609 | },
|
8610 | "$": {
|
8611 | "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});",
|
8612 | "version": "0"
|
8613 | }
|
8614 | },
|
8615 | "location": {
|
8616 | "api": {
|
8617 | "api": "type",
|
8618 | "fqn": "@aws-cdk/aws-cloudfront.Function"
|
8619 | },
|
8620 | "field": {
|
8621 | "field": "example"
|
8622 | }
|
8623 | },
|
8624 | "didCompile": true,
|
8625 | "fqnsReferenced": [
|
8626 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
8627 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
8628 | "@aws-cdk/aws-cloudfront.Distribution",
|
8629 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
8630 | "@aws-cdk/aws-cloudfront.Function",
|
8631 | "@aws-cdk/aws-cloudfront.FunctionCode",
|
8632 | "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
|
8633 | "@aws-cdk/aws-cloudfront.FunctionEventType",
|
8634 | "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
|
8635 | "@aws-cdk/aws-cloudfront.FunctionProps",
|
8636 | "@aws-cdk/aws-cloudfront.IFunction",
|
8637 | "@aws-cdk/aws-cloudfront.IOrigin",
|
8638 | "@aws-cdk/aws-s3.IBucket",
|
8639 | "constructs.Construct"
|
8640 | ],
|
8641 | "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",
|
8642 | "syntaxKindCounter": {
|
8643 | "10": 3,
|
8644 | "75": 24,
|
8645 | "104": 2,
|
8646 | "130": 1,
|
8647 | "153": 1,
|
8648 | "169": 1,
|
8649 | "192": 1,
|
8650 | "193": 4,
|
8651 | "194": 7,
|
8652 | "196": 1,
|
8653 | "197": 3,
|
8654 | "225": 2,
|
8655 | "226": 1,
|
8656 | "242": 2,
|
8657 | "243": 2,
|
8658 | "281": 6,
|
8659 | "290": 1
|
8660 | },
|
8661 | "fqnsFingerprint": "7b7ba953586755b0e0d8c51a879dbe30bdc7d83d707d9101fa0e7445cfcdc316"
|
8662 | },
|
8663 | "cf15a0cdb497200f5693a9090b609f4d9df10c6f60c6f51cc411d18c38c8fc4e": {
|
8664 | "translations": {
|
8665 | "python": {
|
8666 | "source": "# 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)",
|
8667 | "version": "2"
|
8668 | },
|
8669 | "csharp": {
|
8670 | "source": "// 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};",
|
8671 | "version": "1"
|
8672 | },
|
8673 | "java": {
|
8674 | "source": "// The 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();",
|
8675 | "version": "1"
|
8676 | },
|
8677 | "go": {
|
8678 | "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}",
|
8679 | "version": "1"
|
8680 | },
|
8681 | "$": {
|
8682 | "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};",
|
8683 | "version": "0"
|
8684 | }
|
8685 | },
|
8686 | "location": {
|
8687 | "api": {
|
8688 | "api": "type",
|
8689 | "fqn": "@aws-cdk/aws-cloudfront.FunctionAssociation"
|
8690 | },
|
8691 | "field": {
|
8692 | "field": "example"
|
8693 | }
|
8694 | },
|
8695 | "didCompile": true,
|
8696 | "fqnsReferenced": [
|
8697 | "@aws-cdk/aws-cloudfront.FunctionAssociation",
|
8698 | "@aws-cdk/aws-cloudfront.FunctionEventType",
|
8699 | "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
|
8700 | "@aws-cdk/aws-cloudfront.IFunction"
|
8701 | ],
|
8702 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
8703 | "syntaxKindCounter": {
|
8704 | "10": 1,
|
8705 | "75": 13,
|
8706 | "130": 1,
|
8707 | "153": 2,
|
8708 | "169": 2,
|
8709 | "193": 1,
|
8710 | "194": 2,
|
8711 | "225": 2,
|
8712 | "242": 2,
|
8713 | "243": 2,
|
8714 | "254": 1,
|
8715 | "255": 1,
|
8716 | "256": 1,
|
8717 | "281": 2,
|
8718 | "290": 1
|
8719 | },
|
8720 | "fqnsFingerprint": "f51288b2c343539e7e18aa8c6e73b2392cacd63ef7451eb650576ca912cb9890"
|
8721 | },
|
8722 | "15c697dffeb4b2a5654a24c9be4d97a5afbed078dc62af0ff4e1519a40b44971": {
|
8723 | "translations": {
|
8724 | "python": {
|
8725 | "source": "# 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)",
|
8726 | "version": "2"
|
8727 | },
|
8728 | "csharp": {
|
8729 | "source": "// 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};",
|
8730 | "version": "1"
|
8731 | },
|
8732 | "java": {
|
8733 | "source": "// The 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();",
|
8734 | "version": "1"
|
8735 | },
|
8736 | "go": {
|
8737 | "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}",
|
8738 | "version": "1"
|
8739 | },
|
8740 | "$": {
|
8741 | "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};",
|
8742 | "version": "0"
|
8743 | }
|
8744 | },
|
8745 | "location": {
|
8746 | "api": {
|
8747 | "api": "type",
|
8748 | "fqn": "@aws-cdk/aws-cloudfront.FunctionAttributes"
|
8749 | },
|
8750 | "field": {
|
8751 | "field": "example"
|
8752 | }
|
8753 | },
|
8754 | "didCompile": true,
|
8755 | "fqnsReferenced": [
|
8756 | "@aws-cdk/aws-cloudfront.FunctionAttributes"
|
8757 | ],
|
8758 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
8759 | "syntaxKindCounter": {
|
8760 | "10": 3,
|
8761 | "75": 6,
|
8762 | "153": 1,
|
8763 | "169": 1,
|
8764 | "193": 1,
|
8765 | "225": 1,
|
8766 | "242": 1,
|
8767 | "243": 1,
|
8768 | "254": 1,
|
8769 | "255": 1,
|
8770 | "256": 1,
|
8771 | "281": 2,
|
8772 | "290": 1
|
8773 | },
|
8774 | "fqnsFingerprint": "7214fd28c87e9ef097e6658c1cf8db0486cf1f81191e6c2778722589cbc08a1d"
|
8775 | },
|
8776 | "5615cc8fbe925909d574d026046e2efd8cd4e8fb45044a7da65ca78b867ccc92": {
|
8777 | "translations": {
|
8778 | "python": {
|
8779 | "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)",
|
8780 | "version": "2"
|
8781 | },
|
8782 | "csharp": {
|
8783 | "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});",
|
8784 | "version": "1"
|
8785 | },
|
8786 | "java": {
|
8787 | "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();",
|
8788 | "version": "1"
|
8789 | },
|
8790 | "go": {
|
8791 | "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})",
|
8792 | "version": "1"
|
8793 | },
|
8794 | "$": {
|
8795 | "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});",
|
8796 | "version": "0"
|
8797 | }
|
8798 | },
|
8799 | "location": {
|
8800 | "api": {
|
8801 | "api": "type",
|
8802 | "fqn": "@aws-cdk/aws-cloudfront.FunctionCode"
|
8803 | },
|
8804 | "field": {
|
8805 | "field": "example"
|
8806 | }
|
8807 | },
|
8808 | "didCompile": true,
|
8809 | "fqnsReferenced": [
|
8810 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
8811 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
8812 | "@aws-cdk/aws-cloudfront.Distribution",
|
8813 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
8814 | "@aws-cdk/aws-cloudfront.Function",
|
8815 | "@aws-cdk/aws-cloudfront.FunctionCode",
|
8816 | "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
|
8817 | "@aws-cdk/aws-cloudfront.FunctionEventType",
|
8818 | "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
|
8819 | "@aws-cdk/aws-cloudfront.FunctionProps",
|
8820 | "@aws-cdk/aws-cloudfront.IFunction",
|
8821 | "@aws-cdk/aws-cloudfront.IOrigin",
|
8822 | "@aws-cdk/aws-s3.IBucket",
|
8823 | "constructs.Construct"
|
8824 | ],
|
8825 | "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",
|
8826 | "syntaxKindCounter": {
|
8827 | "10": 3,
|
8828 | "75": 24,
|
8829 | "104": 2,
|
8830 | "130": 1,
|
8831 | "153": 1,
|
8832 | "169": 1,
|
8833 | "192": 1,
|
8834 | "193": 4,
|
8835 | "194": 7,
|
8836 | "196": 1,
|
8837 | "197": 3,
|
8838 | "225": 2,
|
8839 | "226": 1,
|
8840 | "242": 2,
|
8841 | "243": 2,
|
8842 | "281": 6,
|
8843 | "290": 1
|
8844 | },
|
8845 | "fqnsFingerprint": "7b7ba953586755b0e0d8c51a879dbe30bdc7d83d707d9101fa0e7445cfcdc316"
|
8846 | },
|
8847 | "75539d4143e0e7f171a221b0076362006798f15593168d732943ec3f0636aaaf": {
|
8848 | "translations": {
|
8849 | "python": {
|
8850 | "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)",
|
8851 | "version": "2"
|
8852 | },
|
8853 | "csharp": {
|
8854 | "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});",
|
8855 | "version": "1"
|
8856 | },
|
8857 | "java": {
|
8858 | "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();",
|
8859 | "version": "1"
|
8860 | },
|
8861 | "go": {
|
8862 | "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})",
|
8863 | "version": "1"
|
8864 | },
|
8865 | "$": {
|
8866 | "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});",
|
8867 | "version": "0"
|
8868 | }
|
8869 | },
|
8870 | "location": {
|
8871 | "api": {
|
8872 | "api": "type",
|
8873 | "fqn": "@aws-cdk/aws-cloudfront.FunctionEventType"
|
8874 | },
|
8875 | "field": {
|
8876 | "field": "example"
|
8877 | }
|
8878 | },
|
8879 | "didCompile": true,
|
8880 | "fqnsReferenced": [
|
8881 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
8882 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
8883 | "@aws-cdk/aws-cloudfront.Distribution",
|
8884 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
8885 | "@aws-cdk/aws-cloudfront.Function",
|
8886 | "@aws-cdk/aws-cloudfront.FunctionCode",
|
8887 | "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
|
8888 | "@aws-cdk/aws-cloudfront.FunctionEventType",
|
8889 | "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
|
8890 | "@aws-cdk/aws-cloudfront.FunctionProps",
|
8891 | "@aws-cdk/aws-cloudfront.IFunction",
|
8892 | "@aws-cdk/aws-cloudfront.IOrigin",
|
8893 | "@aws-cdk/aws-s3.IBucket",
|
8894 | "constructs.Construct"
|
8895 | ],
|
8896 | "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",
|
8897 | "syntaxKindCounter": {
|
8898 | "10": 3,
|
8899 | "75": 24,
|
8900 | "104": 2,
|
8901 | "130": 1,
|
8902 | "153": 1,
|
8903 | "169": 1,
|
8904 | "192": 1,
|
8905 | "193": 4,
|
8906 | "194": 7,
|
8907 | "196": 1,
|
8908 | "197": 3,
|
8909 | "225": 2,
|
8910 | "226": 1,
|
8911 | "242": 2,
|
8912 | "243": 2,
|
8913 | "281": 6,
|
8914 | "290": 1
|
8915 | },
|
8916 | "fqnsFingerprint": "7b7ba953586755b0e0d8c51a879dbe30bdc7d83d707d9101fa0e7445cfcdc316"
|
8917 | },
|
8918 | "ba40ba9da4fd588814d6d58e6c0f46a95be6851022d708943e2205ad1e51de6d": {
|
8919 | "translations": {
|
8920 | "python": {
|
8921 | "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)",
|
8922 | "version": "2"
|
8923 | },
|
8924 | "csharp": {
|
8925 | "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});",
|
8926 | "version": "1"
|
8927 | },
|
8928 | "java": {
|
8929 | "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();",
|
8930 | "version": "1"
|
8931 | },
|
8932 | "go": {
|
8933 | "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})",
|
8934 | "version": "1"
|
8935 | },
|
8936 | "$": {
|
8937 | "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});",
|
8938 | "version": "0"
|
8939 | }
|
8940 | },
|
8941 | "location": {
|
8942 | "api": {
|
8943 | "api": "type",
|
8944 | "fqn": "@aws-cdk/aws-cloudfront.FunctionProps"
|
8945 | },
|
8946 | "field": {
|
8947 | "field": "example"
|
8948 | }
|
8949 | },
|
8950 | "didCompile": true,
|
8951 | "fqnsReferenced": [
|
8952 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
8953 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
8954 | "@aws-cdk/aws-cloudfront.Distribution",
|
8955 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
8956 | "@aws-cdk/aws-cloudfront.Function",
|
8957 | "@aws-cdk/aws-cloudfront.FunctionCode",
|
8958 | "@aws-cdk/aws-cloudfront.FunctionCode#fromInline",
|
8959 | "@aws-cdk/aws-cloudfront.FunctionEventType",
|
8960 | "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
|
8961 | "@aws-cdk/aws-cloudfront.FunctionProps",
|
8962 | "@aws-cdk/aws-cloudfront.IFunction",
|
8963 | "@aws-cdk/aws-cloudfront.IOrigin",
|
8964 | "@aws-cdk/aws-s3.IBucket",
|
8965 | "constructs.Construct"
|
8966 | ],
|
8967 | "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",
|
8968 | "syntaxKindCounter": {
|
8969 | "10": 3,
|
8970 | "75": 24,
|
8971 | "104": 2,
|
8972 | "130": 1,
|
8973 | "153": 1,
|
8974 | "169": 1,
|
8975 | "192": 1,
|
8976 | "193": 4,
|
8977 | "194": 7,
|
8978 | "196": 1,
|
8979 | "197": 3,
|
8980 | "225": 2,
|
8981 | "226": 1,
|
8982 | "242": 2,
|
8983 | "243": 2,
|
8984 | "281": 6,
|
8985 | "290": 1
|
8986 | },
|
8987 | "fqnsFingerprint": "7b7ba953586755b0e0d8c51a879dbe30bdc7d83d707d9101fa0e7445cfcdc316"
|
8988 | },
|
8989 | "fb4f882eaf7ff9504a4503aa968c18b436a02833fdf8996b6c32d1ad502ac442": {
|
8990 | "translations": {
|
8991 | "python": {
|
8992 | "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)",
|
8993 | "version": "2"
|
8994 | },
|
8995 | "csharp": {
|
8996 | "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});",
|
8997 | "version": "1"
|
8998 | },
|
8999 | "java": {
|
9000 | "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();",
|
9001 | "version": "1"
|
9002 | },
|
9003 | "go": {
|
9004 | "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})",
|
9005 | "version": "1"
|
9006 | },
|
9007 | "$": {
|
9008 | "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});",
|
9009 | "version": "0"
|
9010 | }
|
9011 | },
|
9012 | "location": {
|
9013 | "api": {
|
9014 | "api": "type",
|
9015 | "fqn": "@aws-cdk/aws-cloudfront.GeoRestriction"
|
9016 | },
|
9017 | "field": {
|
9018 | "field": "example"
|
9019 | }
|
9020 | },
|
9021 | "didCompile": true,
|
9022 | "fqnsReferenced": [
|
9023 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
9024 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
9025 | "@aws-cdk/aws-cloudfront.GeoRestriction",
|
9026 | "@aws-cdk/aws-cloudfront.GeoRestriction#allowlist",
|
9027 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
9028 | "@aws-cdk/aws-s3.IBucket",
|
9029 | "constructs.Construct"
|
9030 | ],
|
9031 | "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",
|
9032 | "syntaxKindCounter": {
|
9033 | "10": 3,
|
9034 | "75": 15,
|
9035 | "104": 1,
|
9036 | "106": 1,
|
9037 | "130": 1,
|
9038 | "153": 1,
|
9039 | "169": 1,
|
9040 | "192": 2,
|
9041 | "193": 4,
|
9042 | "194": 3,
|
9043 | "196": 1,
|
9044 | "197": 1,
|
9045 | "225": 1,
|
9046 | "226": 1,
|
9047 | "242": 1,
|
9048 | "243": 1,
|
9049 | "281": 6,
|
9050 | "290": 1
|
9051 | },
|
9052 | "fqnsFingerprint": "2753ffeec9aa65d58853cb08d827e3a0366a930123f9f9e423d3b2ffc80df490"
|
9053 | },
|
9054 | "19d4f354fd0a11f82f6fbbf701fac6559eeb0c10fb3bbf532d0bcd7d3f6b9844": {
|
9055 | "translations": {
|
9056 | "python": {
|
9057 | "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)",
|
9058 | "version": "2"
|
9059 | },
|
9060 | "csharp": {
|
9061 | "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});",
|
9062 | "version": "1"
|
9063 | },
|
9064 | "java": {
|
9065 | "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();",
|
9066 | "version": "1"
|
9067 | },
|
9068 | "go": {
|
9069 | "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})",
|
9070 | "version": "1"
|
9071 | },
|
9072 | "$": {
|
9073 | "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});",
|
9074 | "version": "0"
|
9075 | }
|
9076 | },
|
9077 | "location": {
|
9078 | "api": {
|
9079 | "api": "type",
|
9080 | "fqn": "@aws-cdk/aws-cloudfront.HeadersFrameOption"
|
9081 | },
|
9082 | "field": {
|
9083 | "field": "example"
|
9084 | }
|
9085 | },
|
9086 | "didCompile": true,
|
9087 | "fqnsReferenced": [
|
9088 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
9089 | "@aws-cdk/aws-cloudfront.Distribution",
|
9090 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
9091 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
9092 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
9093 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
9094 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
9095 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9096 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
9097 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
9098 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
9099 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
9100 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
9101 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
9102 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
9103 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
9104 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
9105 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
9106 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
9107 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
9108 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
9109 | "@aws-cdk/core.Duration",
|
9110 | "@aws-cdk/core.Duration#seconds",
|
9111 | "constructs.Construct"
|
9112 | ],
|
9113 | "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",
|
9114 | "syntaxKindCounter": {
|
9115 | "8": 2,
|
9116 | "10": 18,
|
9117 | "75": 71,
|
9118 | "91": 2,
|
9119 | "104": 3,
|
9120 | "106": 11,
|
9121 | "130": 1,
|
9122 | "153": 1,
|
9123 | "169": 1,
|
9124 | "192": 5,
|
9125 | "193": 16,
|
9126 | "194": 11,
|
9127 | "196": 2,
|
9128 | "197": 3,
|
9129 | "225": 2,
|
9130 | "226": 2,
|
9131 | "242": 2,
|
9132 | "243": 2,
|
9133 | "281": 45,
|
9134 | "290": 1
|
9135 | },
|
9136 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
9137 | },
|
9138 | "eac6abeb7a79220c337704b794bf36e7610d7de35cfae5c51336349da30cff6f": {
|
9139 | "translations": {
|
9140 | "python": {
|
9141 | "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)",
|
9142 | "version": "2"
|
9143 | },
|
9144 | "csharp": {
|
9145 | "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});",
|
9146 | "version": "1"
|
9147 | },
|
9148 | "java": {
|
9149 | "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();",
|
9150 | "version": "1"
|
9151 | },
|
9152 | "go": {
|
9153 | "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})",
|
9154 | "version": "1"
|
9155 | },
|
9156 | "$": {
|
9157 | "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});",
|
9158 | "version": "0"
|
9159 | }
|
9160 | },
|
9161 | "location": {
|
9162 | "api": {
|
9163 | "api": "type",
|
9164 | "fqn": "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy"
|
9165 | },
|
9166 | "field": {
|
9167 | "field": "example"
|
9168 | }
|
9169 | },
|
9170 | "didCompile": true,
|
9171 | "fqnsReferenced": [
|
9172 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
9173 | "@aws-cdk/aws-cloudfront.Distribution",
|
9174 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
9175 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
9176 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
9177 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
9178 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
9179 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9180 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
9181 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
9182 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
9183 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
9184 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
9185 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
9186 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
9187 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
9188 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
9189 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
9190 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
9191 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
9192 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
9193 | "@aws-cdk/core.Duration",
|
9194 | "@aws-cdk/core.Duration#seconds",
|
9195 | "constructs.Construct"
|
9196 | ],
|
9197 | "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",
|
9198 | "syntaxKindCounter": {
|
9199 | "8": 2,
|
9200 | "10": 18,
|
9201 | "75": 71,
|
9202 | "91": 2,
|
9203 | "104": 3,
|
9204 | "106": 11,
|
9205 | "130": 1,
|
9206 | "153": 1,
|
9207 | "169": 1,
|
9208 | "192": 5,
|
9209 | "193": 16,
|
9210 | "194": 11,
|
9211 | "196": 2,
|
9212 | "197": 3,
|
9213 | "225": 2,
|
9214 | "226": 2,
|
9215 | "242": 2,
|
9216 | "243": 2,
|
9217 | "281": 45,
|
9218 | "290": 1
|
9219 | },
|
9220 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
9221 | },
|
9222 | "25d456c69e26e97ee78054206a9d9dfe87120b3892b848156d8de6e9bb516f50": {
|
9223 | "translations": {
|
9224 | "python": {
|
9225 | "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)",
|
9226 | "version": "2"
|
9227 | },
|
9228 | "csharp": {
|
9229 | "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});",
|
9230 | "version": "1"
|
9231 | },
|
9232 | "java": {
|
9233 | "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();",
|
9234 | "version": "1"
|
9235 | },
|
9236 | "go": {
|
9237 | "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})",
|
9238 | "version": "1"
|
9239 | },
|
9240 | "$": {
|
9241 | "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});",
|
9242 | "version": "0"
|
9243 | }
|
9244 | },
|
9245 | "location": {
|
9246 | "api": {
|
9247 | "api": "type",
|
9248 | "fqn": "@aws-cdk/aws-cloudfront.KeyGroup"
|
9249 | },
|
9250 | "field": {
|
9251 | "field": "example"
|
9252 | }
|
9253 | },
|
9254 | "didCompile": true,
|
9255 | "fqnsReferenced": [
|
9256 | "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
|
9257 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
9258 | "@aws-cdk/aws-cloudfront.Distribution",
|
9259 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
9260 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9261 | "@aws-cdk/aws-cloudfront.KeyGroup",
|
9262 | "@aws-cdk/aws-cloudfront.KeyGroupProps",
|
9263 | "@aws-cdk/aws-cloudfront.PublicKey",
|
9264 | "@aws-cdk/aws-cloudfront.PublicKeyProps",
|
9265 | "constructs.Construct"
|
9266 | ],
|
9267 | "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",
|
9268 | "syntaxKindCounter": {
|
9269 | "10": 4,
|
9270 | "75": 19,
|
9271 | "104": 3,
|
9272 | "130": 1,
|
9273 | "143": 1,
|
9274 | "192": 2,
|
9275 | "193": 4,
|
9276 | "194": 4,
|
9277 | "197": 4,
|
9278 | "225": 3,
|
9279 | "226": 1,
|
9280 | "242": 3,
|
9281 | "243": 3,
|
9282 | "281": 5,
|
9283 | "290": 1
|
9284 | },
|
9285 | "fqnsFingerprint": "9d00e0b2b6ba3e99be27a29c4b359f4f83286cbaa5b8b563e2915b04d08d31d8"
|
9286 | },
|
9287 | "16b264cc8d5601e3670fd13317e5ac3369850f2653ee7045fc099bf436a652fb": {
|
9288 | "translations": {
|
9289 | "python": {
|
9290 | "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)",
|
9291 | "version": "2"
|
9292 | },
|
9293 | "csharp": {
|
9294 | "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});",
|
9295 | "version": "1"
|
9296 | },
|
9297 | "java": {
|
9298 | "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();",
|
9299 | "version": "1"
|
9300 | },
|
9301 | "go": {
|
9302 | "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})",
|
9303 | "version": "1"
|
9304 | },
|
9305 | "$": {
|
9306 | "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});",
|
9307 | "version": "0"
|
9308 | }
|
9309 | },
|
9310 | "location": {
|
9311 | "api": {
|
9312 | "api": "type",
|
9313 | "fqn": "@aws-cdk/aws-cloudfront.KeyGroupProps"
|
9314 | },
|
9315 | "field": {
|
9316 | "field": "example"
|
9317 | }
|
9318 | },
|
9319 | "didCompile": true,
|
9320 | "fqnsReferenced": [
|
9321 | "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
|
9322 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
9323 | "@aws-cdk/aws-cloudfront.Distribution",
|
9324 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
9325 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9326 | "@aws-cdk/aws-cloudfront.KeyGroup",
|
9327 | "@aws-cdk/aws-cloudfront.KeyGroupProps",
|
9328 | "@aws-cdk/aws-cloudfront.PublicKey",
|
9329 | "@aws-cdk/aws-cloudfront.PublicKeyProps",
|
9330 | "constructs.Construct"
|
9331 | ],
|
9332 | "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",
|
9333 | "syntaxKindCounter": {
|
9334 | "10": 4,
|
9335 | "75": 19,
|
9336 | "104": 3,
|
9337 | "130": 1,
|
9338 | "143": 1,
|
9339 | "192": 2,
|
9340 | "193": 4,
|
9341 | "194": 4,
|
9342 | "197": 4,
|
9343 | "225": 3,
|
9344 | "226": 1,
|
9345 | "242": 3,
|
9346 | "243": 3,
|
9347 | "281": 5,
|
9348 | "290": 1
|
9349 | },
|
9350 | "fqnsFingerprint": "9d00e0b2b6ba3e99be27a29c4b359f4f83286cbaa5b8b563e2915b04d08d31d8"
|
9351 | },
|
9352 | "0e2385c2d556bba89fc90f3dd76e411c033895558583b4a8288ae4d66effd0fe": {
|
9353 | "translations": {
|
9354 | "python": {
|
9355 | "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_12_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)",
|
9356 | "version": "2"
|
9357 | },
|
9358 | "csharp": {
|
9359 | "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_12_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});",
|
9360 | "version": "1"
|
9361 | },
|
9362 | "java": {
|
9363 | "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_12_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();",
|
9364 | "version": "1"
|
9365 | },
|
9366 | "go": {
|
9367 | "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_12_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})",
|
9368 | "version": "1"
|
9369 | },
|
9370 | "$": {
|
9371 | "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_12_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});",
|
9372 | "version": "0"
|
9373 | }
|
9374 | },
|
9375 | "location": {
|
9376 | "api": {
|
9377 | "api": "type",
|
9378 | "fqn": "@aws-cdk/aws-cloudfront.LambdaEdgeEventType"
|
9379 | },
|
9380 | "field": {
|
9381 | "field": "example"
|
9382 | }
|
9383 | },
|
9384 | "didCompile": true,
|
9385 | "fqnsReferenced": [
|
9386 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
9387 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
9388 | "@aws-cdk/aws-cloudfront.Distribution",
|
9389 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
9390 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9391 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
9392 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
|
9393 | "@aws-cdk/aws-cloudfront.experimental",
|
9394 | "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
|
9395 | "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
|
9396 | "@aws-cdk/aws-lambda.Code",
|
9397 | "@aws-cdk/aws-lambda.Code#fromAsset",
|
9398 | "@aws-cdk/aws-lambda.IVersion",
|
9399 | "@aws-cdk/aws-lambda.Runtime",
|
9400 | "@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
|
9401 | "@aws-cdk/aws-s3.IBucket",
|
9402 | "constructs.Construct"
|
9403 | ],
|
9404 | "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_12_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",
|
9405 | "syntaxKindCounter": {
|
9406 | "10": 4,
|
9407 | "75": 34,
|
9408 | "104": 2,
|
9409 | "130": 1,
|
9410 | "153": 1,
|
9411 | "169": 1,
|
9412 | "192": 1,
|
9413 | "193": 4,
|
9414 | "194": 12,
|
9415 | "196": 2,
|
9416 | "197": 3,
|
9417 | "225": 2,
|
9418 | "226": 1,
|
9419 | "242": 2,
|
9420 | "243": 2,
|
9421 | "281": 8,
|
9422 | "290": 1
|
9423 | },
|
9424 | "fqnsFingerprint": "2396e4bb9f863f8221e011298d3ac516dd8c8eec04fbf1a5867e9969394bb8c4"
|
9425 | },
|
9426 | "8ec9654514c6fe77c59442d653b72c27752d3b307bdbfca57e09e9c4e1c87547": {
|
9427 | "translations": {
|
9428 | "python": {
|
9429 | "source": "# 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)",
|
9430 | "version": "2"
|
9431 | },
|
9432 | "csharp": {
|
9433 | "source": "// 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};",
|
9434 | "version": "1"
|
9435 | },
|
9436 | "java": {
|
9437 | "source": "// The 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();",
|
9438 | "version": "1"
|
9439 | },
|
9440 | "go": {
|
9441 | "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}",
|
9442 | "version": "1"
|
9443 | },
|
9444 | "$": {
|
9445 | "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};",
|
9446 | "version": "0"
|
9447 | }
|
9448 | },
|
9449 | "location": {
|
9450 | "api": {
|
9451 | "api": "type",
|
9452 | "fqn": "@aws-cdk/aws-cloudfront.LambdaFunctionAssociation"
|
9453 | },
|
9454 | "field": {
|
9455 | "field": "example"
|
9456 | }
|
9457 | },
|
9458 | "didCompile": true,
|
9459 | "fqnsReferenced": [
|
9460 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
9461 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
|
9462 | "@aws-cdk/aws-cloudfront.LambdaFunctionAssociation",
|
9463 | "@aws-cdk/aws-lambda.IVersion"
|
9464 | ],
|
9465 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9466 | "syntaxKindCounter": {
|
9467 | "10": 2,
|
9468 | "75": 15,
|
9469 | "91": 1,
|
9470 | "130": 1,
|
9471 | "153": 2,
|
9472 | "169": 2,
|
9473 | "193": 1,
|
9474 | "194": 2,
|
9475 | "225": 2,
|
9476 | "242": 2,
|
9477 | "243": 2,
|
9478 | "254": 2,
|
9479 | "255": 2,
|
9480 | "256": 2,
|
9481 | "281": 3,
|
9482 | "290": 1
|
9483 | },
|
9484 | "fqnsFingerprint": "5e6d65a024dd83874dac0c0549031813ce80a6a4930403babb7cb58770956949"
|
9485 | },
|
9486 | "ae1da42ab7ab63abc40147bdee0ea2d34d9fd9f7939ed396c367f9bf264b6788": {
|
9487 | "translations": {
|
9488 | "python": {
|
9489 | "source": "# 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)",
|
9490 | "version": "2"
|
9491 | },
|
9492 | "csharp": {
|
9493 | "source": "// 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};",
|
9494 | "version": "1"
|
9495 | },
|
9496 | "java": {
|
9497 | "source": "// The 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();",
|
9498 | "version": "1"
|
9499 | },
|
9500 | "go": {
|
9501 | "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}",
|
9502 | "version": "1"
|
9503 | },
|
9504 | "$": {
|
9505 | "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};",
|
9506 | "version": "0"
|
9507 | }
|
9508 | },
|
9509 | "location": {
|
9510 | "api": {
|
9511 | "api": "type",
|
9512 | "fqn": "@aws-cdk/aws-cloudfront.LoggingConfiguration"
|
9513 | },
|
9514 | "field": {
|
9515 | "field": "example"
|
9516 | }
|
9517 | },
|
9518 | "didCompile": true,
|
9519 | "fqnsReferenced": [
|
9520 | "@aws-cdk/aws-cloudfront.LoggingConfiguration",
|
9521 | "@aws-cdk/aws-s3.IBucket"
|
9522 | ],
|
9523 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9524 | "syntaxKindCounter": {
|
9525 | "10": 3,
|
9526 | "75": 12,
|
9527 | "91": 1,
|
9528 | "130": 1,
|
9529 | "153": 2,
|
9530 | "169": 2,
|
9531 | "193": 1,
|
9532 | "225": 2,
|
9533 | "242": 2,
|
9534 | "243": 2,
|
9535 | "254": 2,
|
9536 | "255": 2,
|
9537 | "256": 2,
|
9538 | "281": 3,
|
9539 | "290": 1
|
9540 | },
|
9541 | "fqnsFingerprint": "faf9c13abe584815e19b68f4b7cb0ce69c0a31515b3c616bc7ceaeaa1a97b0ff"
|
9542 | },
|
9543 | "d59a5926bfbf0becfe584e49a9dc40ea5f6ed69544440219c7dc80f6bcf3562e": {
|
9544 | "translations": {
|
9545 | "python": {
|
9546 | "source": "# 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)",
|
9547 | "version": "2"
|
9548 | },
|
9549 | "csharp": {
|
9550 | "source": "// 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});",
|
9551 | "version": "1"
|
9552 | },
|
9553 | "java": {
|
9554 | "source": "// The 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();",
|
9555 | "version": "1"
|
9556 | },
|
9557 | "go": {
|
9558 | "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})",
|
9559 | "version": "1"
|
9560 | },
|
9561 | "$": {
|
9562 | "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});",
|
9563 | "version": "0"
|
9564 | }
|
9565 | },
|
9566 | "location": {
|
9567 | "api": {
|
9568 | "api": "type",
|
9569 | "fqn": "@aws-cdk/aws-cloudfront.OriginAccessIdentity"
|
9570 | },
|
9571 | "field": {
|
9572 | "field": "example"
|
9573 | }
|
9574 | },
|
9575 | "didCompile": true,
|
9576 | "fqnsReferenced": [
|
9577 | "@aws-cdk/aws-cloudfront.OriginAccessIdentity",
|
9578 | "@aws-cdk/aws-cloudfront.OriginAccessIdentityProps",
|
9579 | "constructs.Construct"
|
9580 | ],
|
9581 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9582 | "syntaxKindCounter": {
|
9583 | "10": 3,
|
9584 | "75": 5,
|
9585 | "104": 1,
|
9586 | "193": 1,
|
9587 | "194": 1,
|
9588 | "197": 1,
|
9589 | "225": 1,
|
9590 | "242": 1,
|
9591 | "243": 1,
|
9592 | "254": 1,
|
9593 | "255": 1,
|
9594 | "256": 1,
|
9595 | "281": 1,
|
9596 | "290": 1
|
9597 | },
|
9598 | "fqnsFingerprint": "9548d847d33140db39ba047ff622761156b43ba7ad3fe8613f2cc4f5fa2e63e2"
|
9599 | },
|
9600 | "52759d36d36c9ee594ef2d3917a923ac85359cc2d70fbf1909420bd87c4157ca": {
|
9601 | "translations": {
|
9602 | "python": {
|
9603 | "source": "# 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)",
|
9604 | "version": "2"
|
9605 | },
|
9606 | "csharp": {
|
9607 | "source": "// 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};",
|
9608 | "version": "1"
|
9609 | },
|
9610 | "java": {
|
9611 | "source": "// The 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();",
|
9612 | "version": "1"
|
9613 | },
|
9614 | "go": {
|
9615 | "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}",
|
9616 | "version": "1"
|
9617 | },
|
9618 | "$": {
|
9619 | "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};",
|
9620 | "version": "0"
|
9621 | }
|
9622 | },
|
9623 | "location": {
|
9624 | "api": {
|
9625 | "api": "type",
|
9626 | "fqn": "@aws-cdk/aws-cloudfront.OriginAccessIdentityProps"
|
9627 | },
|
9628 | "field": {
|
9629 | "field": "example"
|
9630 | }
|
9631 | },
|
9632 | "didCompile": true,
|
9633 | "fqnsReferenced": [
|
9634 | "@aws-cdk/aws-cloudfront.OriginAccessIdentityProps"
|
9635 | ],
|
9636 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9637 | "syntaxKindCounter": {
|
9638 | "10": 2,
|
9639 | "75": 5,
|
9640 | "153": 1,
|
9641 | "169": 1,
|
9642 | "193": 1,
|
9643 | "225": 1,
|
9644 | "242": 1,
|
9645 | "243": 1,
|
9646 | "254": 1,
|
9647 | "255": 1,
|
9648 | "256": 1,
|
9649 | "281": 1,
|
9650 | "290": 1
|
9651 | },
|
9652 | "fqnsFingerprint": "79ca006b514e546a3bb9318844dc8ab632f3b82332f04949f277fa2d3fb957c0"
|
9653 | },
|
9654 | "bc50f85858b749b99cd85c9d6aba6dc90887aca5b887687c24be1c8938be6b70": {
|
9655 | "translations": {
|
9656 | "python": {
|
9657 | "source": "# 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_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)",
|
9658 | "version": "2"
|
9659 | },
|
9660 | "csharp": {
|
9661 | "source": "// 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 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};",
|
9662 | "version": "1"
|
9663 | },
|
9664 | "java": {
|
9665 | "source": "// The 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 .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();",
|
9666 | "version": "1"
|
9667 | },
|
9668 | "go": {
|
9669 | "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\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}",
|
9670 | "version": "1"
|
9671 | },
|
9672 | "$": {
|
9673 | "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 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};",
|
9674 | "version": "0"
|
9675 | }
|
9676 | },
|
9677 | "location": {
|
9678 | "api": {
|
9679 | "api": "type",
|
9680 | "fqn": "@aws-cdk/aws-cloudfront.OriginBindConfig"
|
9681 | },
|
9682 | "field": {
|
9683 | "field": "example"
|
9684 | }
|
9685 | },
|
9686 | "didCompile": true,
|
9687 | "fqnsReferenced": [
|
9688 | "@aws-cdk/aws-cloudfront.CfnDistribution.OriginProperty",
|
9689 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9690 | "@aws-cdk/aws-cloudfront.OriginBindConfig",
|
9691 | "@aws-cdk/aws-cloudfront.OriginFailoverConfig"
|
9692 | ],
|
9693 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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 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} }",
|
9694 | "syntaxKindCounter": {
|
9695 | "8": 7,
|
9696 | "10": 10,
|
9697 | "75": 32,
|
9698 | "91": 1,
|
9699 | "130": 1,
|
9700 | "153": 2,
|
9701 | "169": 2,
|
9702 | "192": 3,
|
9703 | "193": 7,
|
9704 | "225": 2,
|
9705 | "242": 2,
|
9706 | "243": 2,
|
9707 | "254": 1,
|
9708 | "255": 1,
|
9709 | "256": 1,
|
9710 | "281": 24,
|
9711 | "290": 1
|
9712 | },
|
9713 | "fqnsFingerprint": "48a5bed233f099db4281def4064c665e97db79b07fd5fba5b80c47983f1475a5"
|
9714 | },
|
9715 | "3a0caaf886e5151eecaf7da879e75fccccf12e4c6dd98c0b1882ed5f4c8611fd": {
|
9716 | "translations": {
|
9717 | "python": {
|
9718 | "source": "# 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)",
|
9719 | "version": "2"
|
9720 | },
|
9721 | "csharp": {
|
9722 | "source": "// 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};",
|
9723 | "version": "1"
|
9724 | },
|
9725 | "java": {
|
9726 | "source": "// The 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();",
|
9727 | "version": "1"
|
9728 | },
|
9729 | "go": {
|
9730 | "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}",
|
9731 | "version": "1"
|
9732 | },
|
9733 | "$": {
|
9734 | "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};",
|
9735 | "version": "0"
|
9736 | }
|
9737 | },
|
9738 | "location": {
|
9739 | "api": {
|
9740 | "api": "type",
|
9741 | "fqn": "@aws-cdk/aws-cloudfront.OriginBindOptions"
|
9742 | },
|
9743 | "field": {
|
9744 | "field": "example"
|
9745 | }
|
9746 | },
|
9747 | "didCompile": true,
|
9748 | "fqnsReferenced": [
|
9749 | "@aws-cdk/aws-cloudfront.OriginBindOptions"
|
9750 | ],
|
9751 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9752 | "syntaxKindCounter": {
|
9753 | "10": 2,
|
9754 | "75": 5,
|
9755 | "153": 1,
|
9756 | "169": 1,
|
9757 | "193": 1,
|
9758 | "225": 1,
|
9759 | "242": 1,
|
9760 | "243": 1,
|
9761 | "254": 1,
|
9762 | "255": 1,
|
9763 | "256": 1,
|
9764 | "281": 1,
|
9765 | "290": 1
|
9766 | },
|
9767 | "fqnsFingerprint": "07e55b2850d654fe4300e7b44c73dc3b96af47eec7bbb4cf831227d685f44b79"
|
9768 | },
|
9769 | "f3614ecb0ae0fce71fbdd8f9780eb1334a14cce5e2975af61242eda44e5b0139": {
|
9770 | "translations": {
|
9771 | "python": {
|
9772 | "source": "# 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)",
|
9773 | "version": "2"
|
9774 | },
|
9775 | "csharp": {
|
9776 | "source": "// 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};",
|
9777 | "version": "1"
|
9778 | },
|
9779 | "java": {
|
9780 | "source": "// The 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();",
|
9781 | "version": "1"
|
9782 | },
|
9783 | "go": {
|
9784 | "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}",
|
9785 | "version": "1"
|
9786 | },
|
9787 | "$": {
|
9788 | "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};",
|
9789 | "version": "0"
|
9790 | }
|
9791 | },
|
9792 | "location": {
|
9793 | "api": {
|
9794 | "api": "type",
|
9795 | "fqn": "@aws-cdk/aws-cloudfront.OriginFailoverConfig"
|
9796 | },
|
9797 | "field": {
|
9798 | "field": "example"
|
9799 | }
|
9800 | },
|
9801 | "didCompile": true,
|
9802 | "fqnsReferenced": [
|
9803 | "@aws-cdk/aws-cloudfront.IOrigin",
|
9804 | "@aws-cdk/aws-cloudfront.OriginFailoverConfig"
|
9805 | ],
|
9806 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9807 | "syntaxKindCounter": {
|
9808 | "8": 1,
|
9809 | "10": 1,
|
9810 | "75": 10,
|
9811 | "130": 1,
|
9812 | "153": 2,
|
9813 | "169": 2,
|
9814 | "192": 1,
|
9815 | "193": 1,
|
9816 | "225": 2,
|
9817 | "242": 2,
|
9818 | "243": 2,
|
9819 | "254": 1,
|
9820 | "255": 1,
|
9821 | "256": 1,
|
9822 | "281": 2,
|
9823 | "290": 1
|
9824 | },
|
9825 | "fqnsFingerprint": "7ed3e208ba0ea4327a5ad57c7da91cff022df9556b3778c36798e8504f7f9a31"
|
9826 | },
|
9827 | "596f70187cabe35a44070539f9f794ab22dde87a3163f9b824aaae7684c0ecef": {
|
9828 | "translations": {
|
9829 | "python": {
|
9830 | "source": "# 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)",
|
9831 | "version": "2"
|
9832 | },
|
9833 | "csharp": {
|
9834 | "source": "// 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};",
|
9835 | "version": "1"
|
9836 | },
|
9837 | "java": {
|
9838 | "source": "// The 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();",
|
9839 | "version": "1"
|
9840 | },
|
9841 | "go": {
|
9842 | "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}",
|
9843 | "version": "1"
|
9844 | },
|
9845 | "$": {
|
9846 | "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};",
|
9847 | "version": "0"
|
9848 | }
|
9849 | },
|
9850 | "location": {
|
9851 | "api": {
|
9852 | "api": "type",
|
9853 | "fqn": "@aws-cdk/aws-cloudfront.OriginOptions"
|
9854 | },
|
9855 | "field": {
|
9856 | "field": "example"
|
9857 | }
|
9858 | },
|
9859 | "didCompile": true,
|
9860 | "fqnsReferenced": [
|
9861 | "@aws-cdk/aws-cloudfront.OriginOptions",
|
9862 | "@aws-cdk/core.Duration",
|
9863 | "@aws-cdk/core.Duration#minutes"
|
9864 | ],
|
9865 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9866 | "syntaxKindCounter": {
|
9867 | "8": 2,
|
9868 | "10": 4,
|
9869 | "75": 13,
|
9870 | "153": 1,
|
9871 | "169": 1,
|
9872 | "193": 2,
|
9873 | "194": 2,
|
9874 | "196": 1,
|
9875 | "225": 1,
|
9876 | "242": 1,
|
9877 | "243": 1,
|
9878 | "254": 2,
|
9879 | "255": 2,
|
9880 | "256": 2,
|
9881 | "281": 5,
|
9882 | "290": 1
|
9883 | },
|
9884 | "fqnsFingerprint": "1993c26f09d9f343ce00f10248e507a33f35ae16d3f67795858bdf7525f5735e"
|
9885 | },
|
9886 | "5a29d3b0e72b09dc446817b5767f3ec5198db753c55a96a057c8b291ec683115": {
|
9887 | "translations": {
|
9888 | "python": {
|
9889 | "source": "# 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)",
|
9890 | "version": "2"
|
9891 | },
|
9892 | "csharp": {
|
9893 | "source": "// 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};",
|
9894 | "version": "1"
|
9895 | },
|
9896 | "java": {
|
9897 | "source": "// The 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();",
|
9898 | "version": "1"
|
9899 | },
|
9900 | "go": {
|
9901 | "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}",
|
9902 | "version": "1"
|
9903 | },
|
9904 | "$": {
|
9905 | "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};",
|
9906 | "version": "0"
|
9907 | }
|
9908 | },
|
9909 | "location": {
|
9910 | "api": {
|
9911 | "api": "type",
|
9912 | "fqn": "@aws-cdk/aws-cloudfront.OriginProps"
|
9913 | },
|
9914 | "field": {
|
9915 | "field": "example"
|
9916 | }
|
9917 | },
|
9918 | "didCompile": true,
|
9919 | "fqnsReferenced": [
|
9920 | "@aws-cdk/aws-cloudfront.OriginProps",
|
9921 | "@aws-cdk/core.Duration",
|
9922 | "@aws-cdk/core.Duration#minutes"
|
9923 | ],
|
9924 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
9925 | "syntaxKindCounter": {
|
9926 | "8": 2,
|
9927 | "10": 5,
|
9928 | "75": 14,
|
9929 | "153": 1,
|
9930 | "169": 1,
|
9931 | "193": 2,
|
9932 | "194": 2,
|
9933 | "196": 1,
|
9934 | "225": 1,
|
9935 | "242": 1,
|
9936 | "243": 1,
|
9937 | "254": 2,
|
9938 | "255": 2,
|
9939 | "256": 2,
|
9940 | "281": 6,
|
9941 | "290": 1
|
9942 | },
|
9943 | "fqnsFingerprint": "cb2c3e15c50242d348d8758f249d27d3c963f916d708964033d43f4b14570bd2"
|
9944 | },
|
9945 | "09b40fe5ef23434153defc89d705f696eace9318390fcc3a2a45e76d601dbc3a": {
|
9946 | "translations": {
|
9947 | "python": {
|
9948 | "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)",
|
9949 | "version": "2"
|
9950 | },
|
9951 | "csharp": {
|
9952 | "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});",
|
9953 | "version": "1"
|
9954 | },
|
9955 | "java": {
|
9956 | "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();",
|
9957 | "version": "1"
|
9958 | },
|
9959 | "go": {
|
9960 | "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})",
|
9961 | "version": "1"
|
9962 | },
|
9963 | "$": {
|
9964 | "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});",
|
9965 | "version": "0"
|
9966 | }
|
9967 | },
|
9968 | "location": {
|
9969 | "api": {
|
9970 | "api": "type",
|
9971 | "fqn": "@aws-cdk/aws-cloudfront.OriginProtocolPolicy"
|
9972 | },
|
9973 | "field": {
|
9974 | "field": "example"
|
9975 | }
|
9976 | },
|
9977 | "didCompile": true,
|
9978 | "fqnsReferenced": [
|
9979 | "@aws-cdk/aws-cloudfront-origins.LoadBalancerV2Origin",
|
9980 | "@aws-cdk/aws-cloudfront-origins.LoadBalancerV2OriginProps",
|
9981 | "@aws-cdk/aws-cloudfront.OriginProtocolPolicy",
|
9982 | "@aws-cdk/aws-cloudfront.OriginProtocolPolicy#MATCH_VIEWER",
|
9983 | "@aws-cdk/aws-elasticloadbalancingv2.ILoadBalancerV2",
|
9984 | "@aws-cdk/core.Duration",
|
9985 | "@aws-cdk/core.Duration#seconds"
|
9986 | ],
|
9987 | "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",
|
9988 | "syntaxKindCounter": {
|
9989 | "8": 4,
|
9990 | "10": 1,
|
9991 | "75": 22,
|
9992 | "130": 1,
|
9993 | "153": 1,
|
9994 | "169": 1,
|
9995 | "193": 1,
|
9996 | "194": 6,
|
9997 | "196": 3,
|
9998 | "197": 1,
|
9999 | "225": 2,
|
10000 | "242": 2,
|
10001 | "243": 2,
|
10002 | "254": 1,
|
10003 | "255": 1,
|
10004 | "256": 1,
|
10005 | "281": 5,
|
10006 | "290": 1
|
10007 | },
|
10008 | "fqnsFingerprint": "5b3b9d0daef42c497e26d59dd4dc2df378e45152e6b877b3c2958cdf36e4df8a"
|
10009 | },
|
10010 | "075e4b4dd935407a936679f65626f2c3707a4a3f3ff8bc3d71d7bde2696fe063": {
|
10011 | "translations": {
|
10012 | "python": {
|
10013 | "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)",
|
10014 | "version": "2"
|
10015 | },
|
10016 | "csharp": {
|
10017 | "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});",
|
10018 | "version": "1"
|
10019 | },
|
10020 | "java": {
|
10021 | "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();",
|
10022 | "version": "1"
|
10023 | },
|
10024 | "go": {
|
10025 | "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})",
|
10026 | "version": "1"
|
10027 | },
|
10028 | "$": {
|
10029 | "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});",
|
10030 | "version": "0"
|
10031 | }
|
10032 | },
|
10033 | "location": {
|
10034 | "api": {
|
10035 | "api": "type",
|
10036 | "fqn": "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior"
|
10037 | },
|
10038 | "field": {
|
10039 | "field": "example"
|
10040 | }
|
10041 | },
|
10042 | "didCompile": true,
|
10043 | "fqnsReferenced": [
|
10044 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10045 | "@aws-cdk/aws-cloudfront.Distribution",
|
10046 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10047 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10048 | "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
|
10049 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
|
10050 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
|
10051 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
|
10052 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
|
10053 | "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
|
10054 | "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
|
10055 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
|
10056 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
|
10057 | "constructs.Construct"
|
10058 | ],
|
10059 | "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",
|
10060 | "syntaxKindCounter": {
|
10061 | "10": 6,
|
10062 | "75": 27,
|
10063 | "104": 2,
|
10064 | "130": 1,
|
10065 | "153": 1,
|
10066 | "169": 1,
|
10067 | "193": 3,
|
10068 | "194": 8,
|
10069 | "196": 3,
|
10070 | "197": 2,
|
10071 | "225": 2,
|
10072 | "226": 1,
|
10073 | "242": 2,
|
10074 | "243": 2,
|
10075 | "281": 8,
|
10076 | "290": 1
|
10077 | },
|
10078 | "fqnsFingerprint": "52e84888f39cd09f66be4a78080ea75b3df2213f4031443fa9d1a57a50e885bf"
|
10079 | },
|
10080 | "52347ad9066881f2e3a8179c3a4ded25bff50035fefa93d75d680d3aca149026": {
|
10081 | "translations": {
|
10082 | "python": {
|
10083 | "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)",
|
10084 | "version": "2"
|
10085 | },
|
10086 | "csharp": {
|
10087 | "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});",
|
10088 | "version": "1"
|
10089 | },
|
10090 | "java": {
|
10091 | "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();",
|
10092 | "version": "1"
|
10093 | },
|
10094 | "go": {
|
10095 | "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})",
|
10096 | "version": "1"
|
10097 | },
|
10098 | "$": {
|
10099 | "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});",
|
10100 | "version": "0"
|
10101 | }
|
10102 | },
|
10103 | "location": {
|
10104 | "api": {
|
10105 | "api": "type",
|
10106 | "fqn": "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior"
|
10107 | },
|
10108 | "field": {
|
10109 | "field": "example"
|
10110 | }
|
10111 | },
|
10112 | "didCompile": true,
|
10113 | "fqnsReferenced": [
|
10114 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10115 | "@aws-cdk/aws-cloudfront.Distribution",
|
10116 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10117 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10118 | "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
|
10119 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
|
10120 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
|
10121 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
|
10122 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
|
10123 | "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
|
10124 | "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
|
10125 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
|
10126 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
|
10127 | "constructs.Construct"
|
10128 | ],
|
10129 | "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",
|
10130 | "syntaxKindCounter": {
|
10131 | "10": 6,
|
10132 | "75": 27,
|
10133 | "104": 2,
|
10134 | "130": 1,
|
10135 | "153": 1,
|
10136 | "169": 1,
|
10137 | "193": 3,
|
10138 | "194": 8,
|
10139 | "196": 3,
|
10140 | "197": 2,
|
10141 | "225": 2,
|
10142 | "226": 1,
|
10143 | "242": 2,
|
10144 | "243": 2,
|
10145 | "281": 8,
|
10146 | "290": 1
|
10147 | },
|
10148 | "fqnsFingerprint": "52e84888f39cd09f66be4a78080ea75b3df2213f4031443fa9d1a57a50e885bf"
|
10149 | },
|
10150 | "3570b618a31468ceaa8043b22c4c297ef211a083c2885de9d61e1e433b705c75": {
|
10151 | "translations": {
|
10152 | "python": {
|
10153 | "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)",
|
10154 | "version": "2"
|
10155 | },
|
10156 | "csharp": {
|
10157 | "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});",
|
10158 | "version": "1"
|
10159 | },
|
10160 | "java": {
|
10161 | "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();",
|
10162 | "version": "1"
|
10163 | },
|
10164 | "go": {
|
10165 | "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})",
|
10166 | "version": "1"
|
10167 | },
|
10168 | "$": {
|
10169 | "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});",
|
10170 | "version": "0"
|
10171 | }
|
10172 | },
|
10173 | "location": {
|
10174 | "api": {
|
10175 | "api": "type",
|
10176 | "fqn": "@aws-cdk/aws-cloudfront.OriginRequestPolicy"
|
10177 | },
|
10178 | "field": {
|
10179 | "field": "example"
|
10180 | }
|
10181 | },
|
10182 | "didCompile": true,
|
10183 | "fqnsReferenced": [
|
10184 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10185 | "@aws-cdk/aws-cloudfront.Distribution",
|
10186 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10187 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10188 | "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
|
10189 | "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
|
10190 | "@aws-cdk/aws-cloudfront.OriginRequestPolicy#CORS_S3_ORIGIN",
|
10191 | "constructs.Construct"
|
10192 | ],
|
10193 | "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",
|
10194 | "syntaxKindCounter": {
|
10195 | "10": 1,
|
10196 | "75": 12,
|
10197 | "104": 1,
|
10198 | "130": 1,
|
10199 | "153": 1,
|
10200 | "169": 1,
|
10201 | "193": 2,
|
10202 | "194": 3,
|
10203 | "197": 1,
|
10204 | "225": 1,
|
10205 | "226": 1,
|
10206 | "242": 1,
|
10207 | "243": 1,
|
10208 | "281": 3,
|
10209 | "290": 1
|
10210 | },
|
10211 | "fqnsFingerprint": "1ea57ebfa402d29510427c12537bcfba334257fddbe9e78237c930a0fce75c60"
|
10212 | },
|
10213 | "2e1e54be5eea0eda7ac612afb238398b75dcda9072b9bc7714ea819f3fe2b42c": {
|
10214 | "translations": {
|
10215 | "python": {
|
10216 | "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)",
|
10217 | "version": "2"
|
10218 | },
|
10219 | "csharp": {
|
10220 | "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});",
|
10221 | "version": "1"
|
10222 | },
|
10223 | "java": {
|
10224 | "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();",
|
10225 | "version": "1"
|
10226 | },
|
10227 | "go": {
|
10228 | "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})",
|
10229 | "version": "1"
|
10230 | },
|
10231 | "$": {
|
10232 | "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});",
|
10233 | "version": "0"
|
10234 | }
|
10235 | },
|
10236 | "location": {
|
10237 | "api": {
|
10238 | "api": "type",
|
10239 | "fqn": "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps"
|
10240 | },
|
10241 | "field": {
|
10242 | "field": "example"
|
10243 | }
|
10244 | },
|
10245 | "didCompile": true,
|
10246 | "fqnsReferenced": [
|
10247 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10248 | "@aws-cdk/aws-cloudfront.Distribution",
|
10249 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10250 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10251 | "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
|
10252 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
|
10253 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
|
10254 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
|
10255 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
|
10256 | "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
|
10257 | "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
|
10258 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
|
10259 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
|
10260 | "constructs.Construct"
|
10261 | ],
|
10262 | "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",
|
10263 | "syntaxKindCounter": {
|
10264 | "10": 6,
|
10265 | "75": 27,
|
10266 | "104": 2,
|
10267 | "130": 1,
|
10268 | "153": 1,
|
10269 | "169": 1,
|
10270 | "193": 3,
|
10271 | "194": 8,
|
10272 | "196": 3,
|
10273 | "197": 2,
|
10274 | "225": 2,
|
10275 | "226": 1,
|
10276 | "242": 2,
|
10277 | "243": 2,
|
10278 | "281": 8,
|
10279 | "290": 1
|
10280 | },
|
10281 | "fqnsFingerprint": "52e84888f39cd09f66be4a78080ea75b3df2213f4031443fa9d1a57a50e885bf"
|
10282 | },
|
10283 | "d907fc9c040256430d5c20152ca25ed14870aaaa489d75f9901ee2aa2620e53d": {
|
10284 | "translations": {
|
10285 | "python": {
|
10286 | "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)",
|
10287 | "version": "2"
|
10288 | },
|
10289 | "csharp": {
|
10290 | "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});",
|
10291 | "version": "1"
|
10292 | },
|
10293 | "java": {
|
10294 | "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();",
|
10295 | "version": "1"
|
10296 | },
|
10297 | "go": {
|
10298 | "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})",
|
10299 | "version": "1"
|
10300 | },
|
10301 | "$": {
|
10302 | "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});",
|
10303 | "version": "0"
|
10304 | }
|
10305 | },
|
10306 | "location": {
|
10307 | "api": {
|
10308 | "api": "type",
|
10309 | "fqn": "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior"
|
10310 | },
|
10311 | "field": {
|
10312 | "field": "example"
|
10313 | }
|
10314 | },
|
10315 | "didCompile": true,
|
10316 | "fqnsReferenced": [
|
10317 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10318 | "@aws-cdk/aws-cloudfront.Distribution",
|
10319 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10320 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10321 | "@aws-cdk/aws-cloudfront.IOriginRequestPolicy",
|
10322 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior",
|
10323 | "@aws-cdk/aws-cloudfront.OriginRequestCookieBehavior#none",
|
10324 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior",
|
10325 | "@aws-cdk/aws-cloudfront.OriginRequestHeaderBehavior#all",
|
10326 | "@aws-cdk/aws-cloudfront.OriginRequestPolicy",
|
10327 | "@aws-cdk/aws-cloudfront.OriginRequestPolicyProps",
|
10328 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior",
|
10329 | "@aws-cdk/aws-cloudfront.OriginRequestQueryStringBehavior#allowList",
|
10330 | "constructs.Construct"
|
10331 | ],
|
10332 | "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",
|
10333 | "syntaxKindCounter": {
|
10334 | "10": 6,
|
10335 | "75": 27,
|
10336 | "104": 2,
|
10337 | "130": 1,
|
10338 | "153": 1,
|
10339 | "169": 1,
|
10340 | "193": 3,
|
10341 | "194": 8,
|
10342 | "196": 3,
|
10343 | "197": 2,
|
10344 | "225": 2,
|
10345 | "226": 1,
|
10346 | "242": 2,
|
10347 | "243": 2,
|
10348 | "281": 8,
|
10349 | "290": 1
|
10350 | },
|
10351 | "fqnsFingerprint": "52e84888f39cd09f66be4a78080ea75b3df2213f4031443fa9d1a57a50e885bf"
|
10352 | },
|
10353 | "a9bf1d84b140d5c44569a8b715f4e84ca07f965edf0245b7e585f1b182d7affa": {
|
10354 | "translations": {
|
10355 | "python": {
|
10356 | "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)",
|
10357 | "version": "2"
|
10358 | },
|
10359 | "csharp": {
|
10360 | "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});",
|
10361 | "version": "1"
|
10362 | },
|
10363 | "java": {
|
10364 | "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();",
|
10365 | "version": "1"
|
10366 | },
|
10367 | "go": {
|
10368 | "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})",
|
10369 | "version": "1"
|
10370 | },
|
10371 | "$": {
|
10372 | "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});",
|
10373 | "version": "0"
|
10374 | }
|
10375 | },
|
10376 | "location": {
|
10377 | "api": {
|
10378 | "api": "type",
|
10379 | "fqn": "@aws-cdk/aws-cloudfront.PublicKey"
|
10380 | },
|
10381 | "field": {
|
10382 | "field": "example"
|
10383 | }
|
10384 | },
|
10385 | "didCompile": true,
|
10386 | "fqnsReferenced": [
|
10387 | "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
|
10388 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10389 | "@aws-cdk/aws-cloudfront.Distribution",
|
10390 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10391 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10392 | "@aws-cdk/aws-cloudfront.KeyGroup",
|
10393 | "@aws-cdk/aws-cloudfront.KeyGroupProps",
|
10394 | "@aws-cdk/aws-cloudfront.PublicKey",
|
10395 | "@aws-cdk/aws-cloudfront.PublicKeyProps",
|
10396 | "constructs.Construct"
|
10397 | ],
|
10398 | "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",
|
10399 | "syntaxKindCounter": {
|
10400 | "10": 4,
|
10401 | "75": 19,
|
10402 | "104": 3,
|
10403 | "130": 1,
|
10404 | "143": 1,
|
10405 | "192": 2,
|
10406 | "193": 4,
|
10407 | "194": 4,
|
10408 | "197": 4,
|
10409 | "225": 3,
|
10410 | "226": 1,
|
10411 | "242": 3,
|
10412 | "243": 3,
|
10413 | "281": 5,
|
10414 | "290": 1
|
10415 | },
|
10416 | "fqnsFingerprint": "9d00e0b2b6ba3e99be27a29c4b359f4f83286cbaa5b8b563e2915b04d08d31d8"
|
10417 | },
|
10418 | "1f53e4f461265faada5e7e1583f22cdd942c4cbd2176ce1cb01186d2e08d70f4": {
|
10419 | "translations": {
|
10420 | "python": {
|
10421 | "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)",
|
10422 | "version": "2"
|
10423 | },
|
10424 | "csharp": {
|
10425 | "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});",
|
10426 | "version": "1"
|
10427 | },
|
10428 | "java": {
|
10429 | "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();",
|
10430 | "version": "1"
|
10431 | },
|
10432 | "go": {
|
10433 | "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})",
|
10434 | "version": "1"
|
10435 | },
|
10436 | "$": {
|
10437 | "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});",
|
10438 | "version": "0"
|
10439 | }
|
10440 | },
|
10441 | "location": {
|
10442 | "api": {
|
10443 | "api": "type",
|
10444 | "fqn": "@aws-cdk/aws-cloudfront.PublicKeyProps"
|
10445 | },
|
10446 | "field": {
|
10447 | "field": "example"
|
10448 | }
|
10449 | },
|
10450 | "didCompile": true,
|
10451 | "fqnsReferenced": [
|
10452 | "@aws-cdk/aws-cloudfront-origins.HttpOrigin",
|
10453 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10454 | "@aws-cdk/aws-cloudfront.Distribution",
|
10455 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10456 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10457 | "@aws-cdk/aws-cloudfront.KeyGroup",
|
10458 | "@aws-cdk/aws-cloudfront.KeyGroupProps",
|
10459 | "@aws-cdk/aws-cloudfront.PublicKey",
|
10460 | "@aws-cdk/aws-cloudfront.PublicKeyProps",
|
10461 | "constructs.Construct"
|
10462 | ],
|
10463 | "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",
|
10464 | "syntaxKindCounter": {
|
10465 | "10": 4,
|
10466 | "75": 19,
|
10467 | "104": 3,
|
10468 | "130": 1,
|
10469 | "143": 1,
|
10470 | "192": 2,
|
10471 | "193": 4,
|
10472 | "194": 4,
|
10473 | "197": 4,
|
10474 | "225": 3,
|
10475 | "226": 1,
|
10476 | "242": 3,
|
10477 | "243": 3,
|
10478 | "281": 5,
|
10479 | "290": 1
|
10480 | },
|
10481 | "fqnsFingerprint": "9d00e0b2b6ba3e99be27a29c4b359f4f83286cbaa5b8b563e2915b04d08d31d8"
|
10482 | },
|
10483 | "524e00ff758eb3c4be838263237f46110209a744b1b49c495e484243cc96bbac": {
|
10484 | "translations": {
|
10485 | "python": {
|
10486 | "source": "# 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)",
|
10487 | "version": "2"
|
10488 | },
|
10489 | "csharp": {
|
10490 | "source": "// 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};",
|
10491 | "version": "1"
|
10492 | },
|
10493 | "java": {
|
10494 | "source": "// The 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();",
|
10495 | "version": "1"
|
10496 | },
|
10497 | "go": {
|
10498 | "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}",
|
10499 | "version": "1"
|
10500 | },
|
10501 | "$": {
|
10502 | "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};",
|
10503 | "version": "0"
|
10504 | }
|
10505 | },
|
10506 | "location": {
|
10507 | "api": {
|
10508 | "api": "type",
|
10509 | "fqn": "@aws-cdk/aws-cloudfront.ResponseCustomHeader"
|
10510 | },
|
10511 | "field": {
|
10512 | "field": "example"
|
10513 | }
|
10514 | },
|
10515 | "didCompile": true,
|
10516 | "fqnsReferenced": [
|
10517 | "@aws-cdk/aws-cloudfront.ResponseCustomHeader"
|
10518 | ],
|
10519 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
10520 | "syntaxKindCounter": {
|
10521 | "10": 3,
|
10522 | "75": 7,
|
10523 | "91": 1,
|
10524 | "153": 1,
|
10525 | "169": 1,
|
10526 | "193": 1,
|
10527 | "225": 1,
|
10528 | "242": 1,
|
10529 | "243": 1,
|
10530 | "254": 1,
|
10531 | "255": 1,
|
10532 | "256": 1,
|
10533 | "281": 3,
|
10534 | "290": 1
|
10535 | },
|
10536 | "fqnsFingerprint": "db2a3cfba4477d1fe448da4f23d1879a424b7638407e1fd90d9c63b5415a6ecd"
|
10537 | },
|
10538 | "c3f0d17f4bb074f6b1e669e4227373cfc3ac8f8d673b5a1c3efb2d8d46757854": {
|
10539 | "translations": {
|
10540 | "python": {
|
10541 | "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)",
|
10542 | "version": "2"
|
10543 | },
|
10544 | "csharp": {
|
10545 | "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});",
|
10546 | "version": "1"
|
10547 | },
|
10548 | "java": {
|
10549 | "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();",
|
10550 | "version": "1"
|
10551 | },
|
10552 | "go": {
|
10553 | "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})",
|
10554 | "version": "1"
|
10555 | },
|
10556 | "$": {
|
10557 | "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});",
|
10558 | "version": "0"
|
10559 | }
|
10560 | },
|
10561 | "location": {
|
10562 | "api": {
|
10563 | "api": "type",
|
10564 | "fqn": "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior"
|
10565 | },
|
10566 | "field": {
|
10567 | "field": "example"
|
10568 | }
|
10569 | },
|
10570 | "didCompile": true,
|
10571 | "fqnsReferenced": [
|
10572 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10573 | "@aws-cdk/aws-cloudfront.Distribution",
|
10574 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10575 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
10576 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
10577 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
10578 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
10579 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10580 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
10581 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
10582 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
10583 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
10584 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
10585 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
10586 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
10587 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
10588 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
10589 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
10590 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
10591 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
10592 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
10593 | "@aws-cdk/core.Duration",
|
10594 | "@aws-cdk/core.Duration#seconds",
|
10595 | "constructs.Construct"
|
10596 | ],
|
10597 | "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",
|
10598 | "syntaxKindCounter": {
|
10599 | "8": 2,
|
10600 | "10": 18,
|
10601 | "75": 71,
|
10602 | "91": 2,
|
10603 | "104": 3,
|
10604 | "106": 11,
|
10605 | "130": 1,
|
10606 | "153": 1,
|
10607 | "169": 1,
|
10608 | "192": 5,
|
10609 | "193": 16,
|
10610 | "194": 11,
|
10611 | "196": 2,
|
10612 | "197": 3,
|
10613 | "225": 2,
|
10614 | "226": 2,
|
10615 | "242": 2,
|
10616 | "243": 2,
|
10617 | "281": 45,
|
10618 | "290": 1
|
10619 | },
|
10620 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
10621 | },
|
10622 | "77ee82051c470b65188eb545d4b36b73c9535fc640f86accf2451fe58606f88b": {
|
10623 | "translations": {
|
10624 | "python": {
|
10625 | "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)",
|
10626 | "version": "2"
|
10627 | },
|
10628 | "csharp": {
|
10629 | "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});",
|
10630 | "version": "1"
|
10631 | },
|
10632 | "java": {
|
10633 | "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();",
|
10634 | "version": "1"
|
10635 | },
|
10636 | "go": {
|
10637 | "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})",
|
10638 | "version": "1"
|
10639 | },
|
10640 | "$": {
|
10641 | "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});",
|
10642 | "version": "0"
|
10643 | }
|
10644 | },
|
10645 | "location": {
|
10646 | "api": {
|
10647 | "api": "type",
|
10648 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy"
|
10649 | },
|
10650 | "field": {
|
10651 | "field": "example"
|
10652 | }
|
10653 | },
|
10654 | "didCompile": true,
|
10655 | "fqnsReferenced": [
|
10656 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10657 | "@aws-cdk/aws-cloudfront.Distribution",
|
10658 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10659 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
10660 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
10661 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
10662 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
10663 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10664 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
10665 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
10666 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
10667 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
10668 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
10669 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
10670 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
10671 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
10672 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
10673 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
10674 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
10675 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
10676 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
10677 | "@aws-cdk/core.Duration",
|
10678 | "@aws-cdk/core.Duration#seconds",
|
10679 | "constructs.Construct"
|
10680 | ],
|
10681 | "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",
|
10682 | "syntaxKindCounter": {
|
10683 | "8": 2,
|
10684 | "10": 18,
|
10685 | "75": 71,
|
10686 | "91": 2,
|
10687 | "104": 3,
|
10688 | "106": 11,
|
10689 | "130": 1,
|
10690 | "153": 1,
|
10691 | "169": 1,
|
10692 | "192": 5,
|
10693 | "193": 16,
|
10694 | "194": 11,
|
10695 | "196": 2,
|
10696 | "197": 3,
|
10697 | "225": 2,
|
10698 | "226": 2,
|
10699 | "242": 2,
|
10700 | "243": 2,
|
10701 | "281": 45,
|
10702 | "290": 1
|
10703 | },
|
10704 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
10705 | },
|
10706 | "67afa77e2f71cc1963f8f785ddeab4a44f160ca527753b83fa6a45ba3ed25503": {
|
10707 | "translations": {
|
10708 | "python": {
|
10709 | "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)",
|
10710 | "version": "2"
|
10711 | },
|
10712 | "csharp": {
|
10713 | "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});",
|
10714 | "version": "1"
|
10715 | },
|
10716 | "java": {
|
10717 | "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();",
|
10718 | "version": "1"
|
10719 | },
|
10720 | "go": {
|
10721 | "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})",
|
10722 | "version": "1"
|
10723 | },
|
10724 | "$": {
|
10725 | "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});",
|
10726 | "version": "0"
|
10727 | }
|
10728 | },
|
10729 | "location": {
|
10730 | "api": {
|
10731 | "api": "type",
|
10732 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions"
|
10733 | },
|
10734 | "field": {
|
10735 | "field": "example"
|
10736 | }
|
10737 | },
|
10738 | "didCompile": true,
|
10739 | "fqnsReferenced": [
|
10740 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10741 | "@aws-cdk/aws-cloudfront.Distribution",
|
10742 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10743 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
10744 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
10745 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
10746 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
10747 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10748 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
10749 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
10750 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
10751 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
10752 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
10753 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
10754 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
10755 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
10756 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
10757 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
10758 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
10759 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
10760 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
10761 | "@aws-cdk/core.Duration",
|
10762 | "@aws-cdk/core.Duration#seconds",
|
10763 | "constructs.Construct"
|
10764 | ],
|
10765 | "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",
|
10766 | "syntaxKindCounter": {
|
10767 | "8": 2,
|
10768 | "10": 18,
|
10769 | "75": 71,
|
10770 | "91": 2,
|
10771 | "104": 3,
|
10772 | "106": 11,
|
10773 | "130": 1,
|
10774 | "153": 1,
|
10775 | "169": 1,
|
10776 | "192": 5,
|
10777 | "193": 16,
|
10778 | "194": 11,
|
10779 | "196": 2,
|
10780 | "197": 3,
|
10781 | "225": 2,
|
10782 | "226": 2,
|
10783 | "242": 2,
|
10784 | "243": 2,
|
10785 | "281": 45,
|
10786 | "290": 1
|
10787 | },
|
10788 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
10789 | },
|
10790 | "d90cd9f6eeadc4b81dbb2e73a31a49fdf329805d1e947aa44708074e2cfa546b": {
|
10791 | "translations": {
|
10792 | "python": {
|
10793 | "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)",
|
10794 | "version": "2"
|
10795 | },
|
10796 | "csharp": {
|
10797 | "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});",
|
10798 | "version": "1"
|
10799 | },
|
10800 | "java": {
|
10801 | "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();",
|
10802 | "version": "1"
|
10803 | },
|
10804 | "go": {
|
10805 | "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})",
|
10806 | "version": "1"
|
10807 | },
|
10808 | "$": {
|
10809 | "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});",
|
10810 | "version": "0"
|
10811 | }
|
10812 | },
|
10813 | "location": {
|
10814 | "api": {
|
10815 | "api": "type",
|
10816 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior"
|
10817 | },
|
10818 | "field": {
|
10819 | "field": "example"
|
10820 | }
|
10821 | },
|
10822 | "didCompile": true,
|
10823 | "fqnsReferenced": [
|
10824 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10825 | "@aws-cdk/aws-cloudfront.Distribution",
|
10826 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10827 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
10828 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
10829 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
10830 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
10831 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10832 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
10833 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
10834 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
10835 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
10836 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
10837 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
10838 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
10839 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
10840 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
10841 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
10842 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
10843 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
10844 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
10845 | "@aws-cdk/core.Duration",
|
10846 | "@aws-cdk/core.Duration#seconds",
|
10847 | "constructs.Construct"
|
10848 | ],
|
10849 | "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",
|
10850 | "syntaxKindCounter": {
|
10851 | "8": 2,
|
10852 | "10": 18,
|
10853 | "75": 71,
|
10854 | "91": 2,
|
10855 | "104": 3,
|
10856 | "106": 11,
|
10857 | "130": 1,
|
10858 | "153": 1,
|
10859 | "169": 1,
|
10860 | "192": 5,
|
10861 | "193": 16,
|
10862 | "194": 11,
|
10863 | "196": 2,
|
10864 | "197": 3,
|
10865 | "225": 2,
|
10866 | "226": 2,
|
10867 | "242": 2,
|
10868 | "243": 2,
|
10869 | "281": 45,
|
10870 | "290": 1
|
10871 | },
|
10872 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
10873 | },
|
10874 | "c34c9706bbfee6e9c4ec6c25d5e83b293fb4b5247597612d13786e6e084882ba": {
|
10875 | "translations": {
|
10876 | "python": {
|
10877 | "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)",
|
10878 | "version": "2"
|
10879 | },
|
10880 | "csharp": {
|
10881 | "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});",
|
10882 | "version": "1"
|
10883 | },
|
10884 | "java": {
|
10885 | "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();",
|
10886 | "version": "1"
|
10887 | },
|
10888 | "go": {
|
10889 | "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})",
|
10890 | "version": "1"
|
10891 | },
|
10892 | "$": {
|
10893 | "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});",
|
10894 | "version": "0"
|
10895 | }
|
10896 | },
|
10897 | "location": {
|
10898 | "api": {
|
10899 | "api": "type",
|
10900 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions"
|
10901 | },
|
10902 | "field": {
|
10903 | "field": "example"
|
10904 | }
|
10905 | },
|
10906 | "didCompile": true,
|
10907 | "fqnsReferenced": [
|
10908 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10909 | "@aws-cdk/aws-cloudfront.Distribution",
|
10910 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10911 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
10912 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
10913 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
10914 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
10915 | "@aws-cdk/aws-cloudfront.IOrigin",
|
10916 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
10917 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
10918 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
10919 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
10920 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
10921 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
10922 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
10923 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
10924 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
10925 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
10926 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
10927 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
10928 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
10929 | "@aws-cdk/core.Duration",
|
10930 | "@aws-cdk/core.Duration#seconds",
|
10931 | "constructs.Construct"
|
10932 | ],
|
10933 | "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",
|
10934 | "syntaxKindCounter": {
|
10935 | "8": 2,
|
10936 | "10": 18,
|
10937 | "75": 71,
|
10938 | "91": 2,
|
10939 | "104": 3,
|
10940 | "106": 11,
|
10941 | "130": 1,
|
10942 | "153": 1,
|
10943 | "169": 1,
|
10944 | "192": 5,
|
10945 | "193": 16,
|
10946 | "194": 11,
|
10947 | "196": 2,
|
10948 | "197": 3,
|
10949 | "225": 2,
|
10950 | "226": 2,
|
10951 | "242": 2,
|
10952 | "243": 2,
|
10953 | "281": 45,
|
10954 | "290": 1
|
10955 | },
|
10956 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
10957 | },
|
10958 | "161a33466a81a744ee69fd15510072901a3f24933ad7d9886d0b2d8cfba06667": {
|
10959 | "translations": {
|
10960 | "python": {
|
10961 | "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)",
|
10962 | "version": "2"
|
10963 | },
|
10964 | "csharp": {
|
10965 | "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});",
|
10966 | "version": "1"
|
10967 | },
|
10968 | "java": {
|
10969 | "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();",
|
10970 | "version": "1"
|
10971 | },
|
10972 | "go": {
|
10973 | "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})",
|
10974 | "version": "1"
|
10975 | },
|
10976 | "$": {
|
10977 | "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});",
|
10978 | "version": "0"
|
10979 | }
|
10980 | },
|
10981 | "location": {
|
10982 | "api": {
|
10983 | "api": "type",
|
10984 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy"
|
10985 | },
|
10986 | "field": {
|
10987 | "field": "example"
|
10988 | }
|
10989 | },
|
10990 | "didCompile": true,
|
10991 | "fqnsReferenced": [
|
10992 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
10993 | "@aws-cdk/aws-cloudfront.Distribution",
|
10994 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
10995 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
10996 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
10997 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
10998 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
10999 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11000 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
11001 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
11002 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
11003 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
11004 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
11005 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
11006 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
11007 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
11008 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
11009 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
11010 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
11011 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
11012 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
11013 | "@aws-cdk/core.Duration",
|
11014 | "@aws-cdk/core.Duration#seconds",
|
11015 | "constructs.Construct"
|
11016 | ],
|
11017 | "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",
|
11018 | "syntaxKindCounter": {
|
11019 | "8": 2,
|
11020 | "10": 18,
|
11021 | "75": 71,
|
11022 | "91": 2,
|
11023 | "104": 3,
|
11024 | "106": 11,
|
11025 | "130": 1,
|
11026 | "153": 1,
|
11027 | "169": 1,
|
11028 | "192": 5,
|
11029 | "193": 16,
|
11030 | "194": 11,
|
11031 | "196": 2,
|
11032 | "197": 3,
|
11033 | "225": 2,
|
11034 | "226": 2,
|
11035 | "242": 2,
|
11036 | "243": 2,
|
11037 | "281": 45,
|
11038 | "290": 1
|
11039 | },
|
11040 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
11041 | },
|
11042 | "a1201145b07724cf721ef53afdb1e3457ff990a1478f9b11d1ed965ae04b070f": {
|
11043 | "translations": {
|
11044 | "python": {
|
11045 | "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)",
|
11046 | "version": "2"
|
11047 | },
|
11048 | "csharp": {
|
11049 | "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});",
|
11050 | "version": "1"
|
11051 | },
|
11052 | "java": {
|
11053 | "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();",
|
11054 | "version": "1"
|
11055 | },
|
11056 | "go": {
|
11057 | "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})",
|
11058 | "version": "1"
|
11059 | },
|
11060 | "$": {
|
11061 | "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});",
|
11062 | "version": "0"
|
11063 | }
|
11064 | },
|
11065 | "location": {
|
11066 | "api": {
|
11067 | "api": "type",
|
11068 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps"
|
11069 | },
|
11070 | "field": {
|
11071 | "field": "example"
|
11072 | }
|
11073 | },
|
11074 | "didCompile": true,
|
11075 | "fqnsReferenced": [
|
11076 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11077 | "@aws-cdk/aws-cloudfront.Distribution",
|
11078 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11079 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
11080 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
11081 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
11082 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
11083 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11084 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
11085 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
11086 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
11087 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
11088 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
11089 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
11090 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
11091 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
11092 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
11093 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
11094 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
11095 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
11096 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
11097 | "@aws-cdk/core.Duration",
|
11098 | "@aws-cdk/core.Duration#seconds",
|
11099 | "constructs.Construct"
|
11100 | ],
|
11101 | "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",
|
11102 | "syntaxKindCounter": {
|
11103 | "8": 2,
|
11104 | "10": 18,
|
11105 | "75": 71,
|
11106 | "91": 2,
|
11107 | "104": 3,
|
11108 | "106": 11,
|
11109 | "130": 1,
|
11110 | "153": 1,
|
11111 | "169": 1,
|
11112 | "192": 5,
|
11113 | "193": 16,
|
11114 | "194": 11,
|
11115 | "196": 2,
|
11116 | "197": 3,
|
11117 | "225": 2,
|
11118 | "226": 2,
|
11119 | "242": 2,
|
11120 | "243": 2,
|
11121 | "281": 45,
|
11122 | "290": 1
|
11123 | },
|
11124 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
11125 | },
|
11126 | "dcf5a0c7ab65d0cbcd3cb7ea522382fe7b202d60c2bb18ecf2e62d119625799f": {
|
11127 | "translations": {
|
11128 | "python": {
|
11129 | "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)",
|
11130 | "version": "2"
|
11131 | },
|
11132 | "csharp": {
|
11133 | "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});",
|
11134 | "version": "1"
|
11135 | },
|
11136 | "java": {
|
11137 | "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();",
|
11138 | "version": "1"
|
11139 | },
|
11140 | "go": {
|
11141 | "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})",
|
11142 | "version": "1"
|
11143 | },
|
11144 | "$": {
|
11145 | "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});",
|
11146 | "version": "0"
|
11147 | }
|
11148 | },
|
11149 | "location": {
|
11150 | "api": {
|
11151 | "api": "type",
|
11152 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy"
|
11153 | },
|
11154 | "field": {
|
11155 | "field": "example"
|
11156 | }
|
11157 | },
|
11158 | "didCompile": true,
|
11159 | "fqnsReferenced": [
|
11160 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11161 | "@aws-cdk/aws-cloudfront.Distribution",
|
11162 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11163 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
11164 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
11165 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
11166 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
11167 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11168 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
11169 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
11170 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
11171 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
11172 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
11173 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
11174 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
11175 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
11176 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
11177 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
11178 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
11179 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
11180 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
11181 | "@aws-cdk/core.Duration",
|
11182 | "@aws-cdk/core.Duration#seconds",
|
11183 | "constructs.Construct"
|
11184 | ],
|
11185 | "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",
|
11186 | "syntaxKindCounter": {
|
11187 | "8": 2,
|
11188 | "10": 18,
|
11189 | "75": 71,
|
11190 | "91": 2,
|
11191 | "104": 3,
|
11192 | "106": 11,
|
11193 | "130": 1,
|
11194 | "153": 1,
|
11195 | "169": 1,
|
11196 | "192": 5,
|
11197 | "193": 16,
|
11198 | "194": 11,
|
11199 | "196": 2,
|
11200 | "197": 3,
|
11201 | "225": 2,
|
11202 | "226": 2,
|
11203 | "242": 2,
|
11204 | "243": 2,
|
11205 | "281": 45,
|
11206 | "290": 1
|
11207 | },
|
11208 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
11209 | },
|
11210 | "fafc6c6c974df9957690090523feb72f1aeebc99b0b868bfc8aed240ba7ccf4c": {
|
11211 | "translations": {
|
11212 | "python": {
|
11213 | "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)",
|
11214 | "version": "2"
|
11215 | },
|
11216 | "csharp": {
|
11217 | "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});",
|
11218 | "version": "1"
|
11219 | },
|
11220 | "java": {
|
11221 | "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();",
|
11222 | "version": "1"
|
11223 | },
|
11224 | "go": {
|
11225 | "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})",
|
11226 | "version": "1"
|
11227 | },
|
11228 | "$": {
|
11229 | "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});",
|
11230 | "version": "0"
|
11231 | }
|
11232 | },
|
11233 | "location": {
|
11234 | "api": {
|
11235 | "api": "type",
|
11236 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity"
|
11237 | },
|
11238 | "field": {
|
11239 | "field": "example"
|
11240 | }
|
11241 | },
|
11242 | "didCompile": true,
|
11243 | "fqnsReferenced": [
|
11244 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11245 | "@aws-cdk/aws-cloudfront.Distribution",
|
11246 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11247 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
11248 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
11249 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
11250 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
11251 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11252 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
11253 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
11254 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
11255 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
11256 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
11257 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
11258 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
11259 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
11260 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
11261 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
11262 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
11263 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
11264 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
11265 | "@aws-cdk/core.Duration",
|
11266 | "@aws-cdk/core.Duration#seconds",
|
11267 | "constructs.Construct"
|
11268 | ],
|
11269 | "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",
|
11270 | "syntaxKindCounter": {
|
11271 | "8": 2,
|
11272 | "10": 18,
|
11273 | "75": 71,
|
11274 | "91": 2,
|
11275 | "104": 3,
|
11276 | "106": 11,
|
11277 | "130": 1,
|
11278 | "153": 1,
|
11279 | "169": 1,
|
11280 | "192": 5,
|
11281 | "193": 16,
|
11282 | "194": 11,
|
11283 | "196": 2,
|
11284 | "197": 3,
|
11285 | "225": 2,
|
11286 | "226": 2,
|
11287 | "242": 2,
|
11288 | "243": 2,
|
11289 | "281": 45,
|
11290 | "290": 1
|
11291 | },
|
11292 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
11293 | },
|
11294 | "83f1b164f334633959162a40c5be8b4b27a7aaa3b2ad17dd854479a15ae377a1": {
|
11295 | "translations": {
|
11296 | "python": {
|
11297 | "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)",
|
11298 | "version": "2"
|
11299 | },
|
11300 | "csharp": {
|
11301 | "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});",
|
11302 | "version": "1"
|
11303 | },
|
11304 | "java": {
|
11305 | "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();",
|
11306 | "version": "1"
|
11307 | },
|
11308 | "go": {
|
11309 | "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})",
|
11310 | "version": "1"
|
11311 | },
|
11312 | "$": {
|
11313 | "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});",
|
11314 | "version": "0"
|
11315 | }
|
11316 | },
|
11317 | "location": {
|
11318 | "api": {
|
11319 | "api": "type",
|
11320 | "fqn": "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection"
|
11321 | },
|
11322 | "field": {
|
11323 | "field": "example"
|
11324 | }
|
11325 | },
|
11326 | "didCompile": true,
|
11327 | "fqnsReferenced": [
|
11328 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11329 | "@aws-cdk/aws-cloudfront.Distribution",
|
11330 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11331 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
11332 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
11333 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
11334 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
11335 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11336 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
11337 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
11338 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
11339 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
11340 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
11341 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
11342 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
11343 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
11344 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
11345 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
11346 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
11347 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
11348 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
11349 | "@aws-cdk/core.Duration",
|
11350 | "@aws-cdk/core.Duration#seconds",
|
11351 | "constructs.Construct"
|
11352 | ],
|
11353 | "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",
|
11354 | "syntaxKindCounter": {
|
11355 | "8": 2,
|
11356 | "10": 18,
|
11357 | "75": 71,
|
11358 | "91": 2,
|
11359 | "104": 3,
|
11360 | "106": 11,
|
11361 | "130": 1,
|
11362 | "153": 1,
|
11363 | "169": 1,
|
11364 | "192": 5,
|
11365 | "193": 16,
|
11366 | "194": 11,
|
11367 | "196": 2,
|
11368 | "197": 3,
|
11369 | "225": 2,
|
11370 | "226": 2,
|
11371 | "242": 2,
|
11372 | "243": 2,
|
11373 | "281": 45,
|
11374 | "290": 1
|
11375 | },
|
11376 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
11377 | },
|
11378 | "fc966ece0d92e163b17eca84d8c330d451f43281647c5445142429eea83ac195": {
|
11379 | "translations": {
|
11380 | "python": {
|
11381 | "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)",
|
11382 | "version": "2"
|
11383 | },
|
11384 | "csharp": {
|
11385 | "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});",
|
11386 | "version": "1"
|
11387 | },
|
11388 | "java": {
|
11389 | "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();",
|
11390 | "version": "1"
|
11391 | },
|
11392 | "go": {
|
11393 | "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})",
|
11394 | "version": "1"
|
11395 | },
|
11396 | "$": {
|
11397 | "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});",
|
11398 | "version": "0"
|
11399 | }
|
11400 | },
|
11401 | "location": {
|
11402 | "api": {
|
11403 | "api": "type",
|
11404 | "fqn": "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior"
|
11405 | },
|
11406 | "field": {
|
11407 | "field": "example"
|
11408 | }
|
11409 | },
|
11410 | "didCompile": true,
|
11411 | "fqnsReferenced": [
|
11412 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11413 | "@aws-cdk/aws-cloudfront.Distribution",
|
11414 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11415 | "@aws-cdk/aws-cloudfront.HeadersFrameOption",
|
11416 | "@aws-cdk/aws-cloudfront.HeadersFrameOption#DENY",
|
11417 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy",
|
11418 | "@aws-cdk/aws-cloudfront.HeadersReferrerPolicy#NO_REFERRER",
|
11419 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11420 | "@aws-cdk/aws-cloudfront.IResponseHeadersPolicy",
|
11421 | "@aws-cdk/aws-cloudfront.ResponseCustomHeadersBehavior",
|
11422 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentSecurityPolicy",
|
11423 | "@aws-cdk/aws-cloudfront.ResponseHeadersContentTypeOptions",
|
11424 | "@aws-cdk/aws-cloudfront.ResponseHeadersCorsBehavior",
|
11425 | "@aws-cdk/aws-cloudfront.ResponseHeadersFrameOptions",
|
11426 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy",
|
11427 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicy#CORS_ALLOW_ALL_ORIGINS",
|
11428 | "@aws-cdk/aws-cloudfront.ResponseHeadersPolicyProps",
|
11429 | "@aws-cdk/aws-cloudfront.ResponseHeadersReferrerPolicy",
|
11430 | "@aws-cdk/aws-cloudfront.ResponseHeadersStrictTransportSecurity",
|
11431 | "@aws-cdk/aws-cloudfront.ResponseHeadersXSSProtection",
|
11432 | "@aws-cdk/aws-cloudfront.ResponseSecurityHeadersBehavior",
|
11433 | "@aws-cdk/core.Duration",
|
11434 | "@aws-cdk/core.Duration#seconds",
|
11435 | "constructs.Construct"
|
11436 | ],
|
11437 | "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",
|
11438 | "syntaxKindCounter": {
|
11439 | "8": 2,
|
11440 | "10": 18,
|
11441 | "75": 71,
|
11442 | "91": 2,
|
11443 | "104": 3,
|
11444 | "106": 11,
|
11445 | "130": 1,
|
11446 | "153": 1,
|
11447 | "169": 1,
|
11448 | "192": 5,
|
11449 | "193": 16,
|
11450 | "194": 11,
|
11451 | "196": 2,
|
11452 | "197": 3,
|
11453 | "225": 2,
|
11454 | "226": 2,
|
11455 | "242": 2,
|
11456 | "243": 2,
|
11457 | "281": 45,
|
11458 | "290": 1
|
11459 | },
|
11460 | "fqnsFingerprint": "cdcc28ab1fa9af556d474d3eebe5216d5c27779709fed90e2b81a555793f8b9a"
|
11461 | },
|
11462 | "2ff3e6e5e10916371e202d35c4f21ee0c06c583c43ed74f4d23650c424884956": {
|
11463 | "translations": {
|
11464 | "python": {
|
11465 | "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)",
|
11466 | "version": "2"
|
11467 | },
|
11468 | "csharp": {
|
11469 | "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});",
|
11470 | "version": "1"
|
11471 | },
|
11472 | "java": {
|
11473 | "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();",
|
11474 | "version": "1"
|
11475 | },
|
11476 | "go": {
|
11477 | "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})",
|
11478 | "version": "1"
|
11479 | },
|
11480 | "$": {
|
11481 | "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});",
|
11482 | "version": "0"
|
11483 | }
|
11484 | },
|
11485 | "location": {
|
11486 | "api": {
|
11487 | "api": "type",
|
11488 | "fqn": "@aws-cdk/aws-cloudfront.S3OriginConfig"
|
11489 | },
|
11490 | "field": {
|
11491 | "field": "example"
|
11492 | }
|
11493 | },
|
11494 | "didCompile": true,
|
11495 | "fqnsReferenced": [
|
11496 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
11497 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
11498 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
11499 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
11500 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
11501 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
11502 | "@aws-cdk/aws-s3.IBucket",
|
11503 | "constructs.Construct"
|
11504 | ],
|
11505 | "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",
|
11506 | "syntaxKindCounter": {
|
11507 | "10": 3,
|
11508 | "75": 18,
|
11509 | "104": 1,
|
11510 | "106": 1,
|
11511 | "130": 1,
|
11512 | "153": 1,
|
11513 | "169": 1,
|
11514 | "192": 3,
|
11515 | "193": 5,
|
11516 | "194": 3,
|
11517 | "196": 1,
|
11518 | "197": 1,
|
11519 | "225": 2,
|
11520 | "226": 1,
|
11521 | "242": 2,
|
11522 | "243": 2,
|
11523 | "281": 7,
|
11524 | "290": 1
|
11525 | },
|
11526 | "fqnsFingerprint": "0c7e693a403547b8045ed1cf94ff054a49224b60a6be542721b8ccf0b8fe6fc5"
|
11527 | },
|
11528 | "c20da6e46ae81508cb187997130d934989cea300bac3b93d3632478ebbbce2ee": {
|
11529 | "translations": {
|
11530 | "python": {
|
11531 | "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)",
|
11532 | "version": "2"
|
11533 | },
|
11534 | "csharp": {
|
11535 | "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});",
|
11536 | "version": "1"
|
11537 | },
|
11538 | "java": {
|
11539 | "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();",
|
11540 | "version": "1"
|
11541 | },
|
11542 | "go": {
|
11543 | "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})",
|
11544 | "version": "1"
|
11545 | },
|
11546 | "$": {
|
11547 | "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 });",
|
11548 | "version": "0"
|
11549 | }
|
11550 | },
|
11551 | "location": {
|
11552 | "api": {
|
11553 | "api": "type",
|
11554 | "fqn": "@aws-cdk/aws-cloudfront.SSLMethod"
|
11555 | },
|
11556 | "field": {
|
11557 | "field": "example"
|
11558 | }
|
11559 | },
|
11560 | "didCompile": true,
|
11561 | "fqnsReferenced": [
|
11562 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
11563 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
11564 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
11565 | "@aws-cdk/aws-cloudfront.SSLMethod",
|
11566 | "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
|
11567 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
|
11568 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
|
11569 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
11570 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
11571 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
11572 | "@aws-cdk/aws-s3.Bucket",
|
11573 | "@aws-cdk/aws-s3.IBucket",
|
11574 | "constructs.Construct"
|
11575 | ],
|
11576 | "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",
|
11577 | "syntaxKindCounter": {
|
11578 | "10": 4,
|
11579 | "75": 24,
|
11580 | "104": 2,
|
11581 | "106": 1,
|
11582 | "192": 3,
|
11583 | "193": 5,
|
11584 | "194": 8,
|
11585 | "196": 1,
|
11586 | "197": 2,
|
11587 | "225": 2,
|
11588 | "242": 2,
|
11589 | "243": 2,
|
11590 | "281": 8,
|
11591 | "282": 1
|
11592 | },
|
11593 | "fqnsFingerprint": "f40d662b76b9f7953a3222f4211a8bbc4d593820d03ccd0c24d1e0564f4bf77a"
|
11594 | },
|
11595 | "d8f730e470ded7a8242981ff07a5eae90d19dc0301d08bb5e29ed4724873e235": {
|
11596 | "translations": {
|
11597 | "python": {
|
11598 | "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)",
|
11599 | "version": "2"
|
11600 | },
|
11601 | "csharp": {
|
11602 | "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});",
|
11603 | "version": "1"
|
11604 | },
|
11605 | "java": {
|
11606 | "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();",
|
11607 | "version": "1"
|
11608 | },
|
11609 | "go": {
|
11610 | "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})",
|
11611 | "version": "1"
|
11612 | },
|
11613 | "$": {
|
11614 | "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 });",
|
11615 | "version": "0"
|
11616 | }
|
11617 | },
|
11618 | "location": {
|
11619 | "api": {
|
11620 | "api": "type",
|
11621 | "fqn": "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol"
|
11622 | },
|
11623 | "field": {
|
11624 | "field": "example"
|
11625 | }
|
11626 | },
|
11627 | "didCompile": true,
|
11628 | "fqnsReferenced": [
|
11629 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
11630 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
11631 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
11632 | "@aws-cdk/aws-cloudfront.SSLMethod",
|
11633 | "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
|
11634 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
|
11635 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
|
11636 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
11637 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
11638 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
11639 | "@aws-cdk/aws-s3.Bucket",
|
11640 | "@aws-cdk/aws-s3.IBucket",
|
11641 | "constructs.Construct"
|
11642 | ],
|
11643 | "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",
|
11644 | "syntaxKindCounter": {
|
11645 | "10": 4,
|
11646 | "75": 24,
|
11647 | "104": 2,
|
11648 | "106": 1,
|
11649 | "192": 3,
|
11650 | "193": 5,
|
11651 | "194": 8,
|
11652 | "196": 1,
|
11653 | "197": 2,
|
11654 | "225": 2,
|
11655 | "242": 2,
|
11656 | "243": 2,
|
11657 | "281": 8,
|
11658 | "282": 1
|
11659 | },
|
11660 | "fqnsFingerprint": "f40d662b76b9f7953a3222f4211a8bbc4d593820d03ccd0c24d1e0564f4bf77a"
|
11661 | },
|
11662 | "7ae62c1b8e34dae5b0c2055258e637e3db42b51442c9c2141f3f0189de21cc4a": {
|
11663 | "translations": {
|
11664 | "python": {
|
11665 | "source": "# 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)",
|
11666 | "version": "2"
|
11667 | },
|
11668 | "csharp": {
|
11669 | "source": "// 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};",
|
11670 | "version": "1"
|
11671 | },
|
11672 | "java": {
|
11673 | "source": "// The 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();",
|
11674 | "version": "1"
|
11675 | },
|
11676 | "go": {
|
11677 | "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}",
|
11678 | "version": "1"
|
11679 | },
|
11680 | "$": {
|
11681 | "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};",
|
11682 | "version": "0"
|
11683 | }
|
11684 | },
|
11685 | "location": {
|
11686 | "api": {
|
11687 | "api": "type",
|
11688 | "fqn": "@aws-cdk/aws-cloudfront.SourceConfiguration"
|
11689 | },
|
11690 | "field": {
|
11691 | "field": "example"
|
11692 | }
|
11693 | },
|
11694 | "didCompile": true,
|
11695 | "fqnsReferenced": [
|
11696 | "@aws-cdk/aws-cloudfront.CfnDistribution.ForwardedValuesProperty",
|
11697 | "@aws-cdk/aws-cloudfront.CloudFrontAllowedCachedMethods",
|
11698 | "@aws-cdk/aws-cloudfront.CloudFrontAllowedCachedMethods#GET_HEAD",
|
11699 | "@aws-cdk/aws-cloudfront.CloudFrontAllowedMethods",
|
11700 | "@aws-cdk/aws-cloudfront.CloudFrontAllowedMethods#GET_HEAD",
|
11701 | "@aws-cdk/aws-cloudfront.CustomOriginConfig",
|
11702 | "@aws-cdk/aws-cloudfront.FailoverStatusCode",
|
11703 | "@aws-cdk/aws-cloudfront.FailoverStatusCode#FORBIDDEN",
|
11704 | "@aws-cdk/aws-cloudfront.FunctionEventType",
|
11705 | "@aws-cdk/aws-cloudfront.FunctionEventType#VIEWER_REQUEST",
|
11706 | "@aws-cdk/aws-cloudfront.IFunction",
|
11707 | "@aws-cdk/aws-cloudfront.IOriginAccessIdentity",
|
11708 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
11709 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#ORIGIN_REQUEST",
|
11710 | "@aws-cdk/aws-cloudfront.OriginProtocolPolicy",
|
11711 | "@aws-cdk/aws-cloudfront.OriginProtocolPolicy#HTTP_ONLY",
|
11712 | "@aws-cdk/aws-cloudfront.OriginSslPolicy",
|
11713 | "@aws-cdk/aws-cloudfront.OriginSslPolicy#SSL_V3",
|
11714 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
11715 | "@aws-cdk/aws-cloudfront.SourceConfiguration",
|
11716 | "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
|
11717 | "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#HTTPS_ONLY",
|
11718 | "@aws-cdk/aws-lambda.IVersion",
|
11719 | "@aws-cdk/aws-s3.IBucket",
|
11720 | "@aws-cdk/core.Duration",
|
11721 | "@aws-cdk/core.Duration#minutes"
|
11722 | ],
|
11723 | "fullSource": "// Hoisted imports begin after !show marker below\n/// !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} }",
|
11724 | "syntaxKindCounter": {
|
11725 | "8": 13,
|
11726 | "10": 27,
|
11727 | "75": 154,
|
11728 | "91": 4,
|
11729 | "130": 5,
|
11730 | "153": 6,
|
11731 | "169": 6,
|
11732 | "192": 11,
|
11733 | "193": 15,
|
11734 | "194": 36,
|
11735 | "196": 8,
|
11736 | "225": 6,
|
11737 | "242": 6,
|
11738 | "243": 6,
|
11739 | "254": 4,
|
11740 | "255": 4,
|
11741 | "256": 4,
|
11742 | "281": 71,
|
11743 | "290": 1
|
11744 | },
|
11745 | "fqnsFingerprint": "44f427325bbdc2820ac01dfcf6345c9376f1f91b687ee0534e9d60bc05937c7c"
|
11746 | },
|
11747 | "ae421cd1d84904bd23e0027c2ee990fa442c9ab0934976a64c5b29f903110907": {
|
11748 | "translations": {
|
11749 | "python": {
|
11750 | "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)",
|
11751 | "version": "2"
|
11752 | },
|
11753 | "csharp": {
|
11754 | "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});",
|
11755 | "version": "1"
|
11756 | },
|
11757 | "java": {
|
11758 | "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();",
|
11759 | "version": "1"
|
11760 | },
|
11761 | "go": {
|
11762 | "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})",
|
11763 | "version": "1"
|
11764 | },
|
11765 | "$": {
|
11766 | "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 });",
|
11767 | "version": "0"
|
11768 | }
|
11769 | },
|
11770 | "location": {
|
11771 | "api": {
|
11772 | "api": "type",
|
11773 | "fqn": "@aws-cdk/aws-cloudfront.ViewerCertificate"
|
11774 | },
|
11775 | "field": {
|
11776 | "field": "example"
|
11777 | }
|
11778 | },
|
11779 | "didCompile": true,
|
11780 | "fqnsReferenced": [
|
11781 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
11782 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
11783 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
11784 | "@aws-cdk/aws-cloudfront.SSLMethod",
|
11785 | "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
|
11786 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
|
11787 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
|
11788 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
11789 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
11790 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
11791 | "@aws-cdk/aws-s3.Bucket",
|
11792 | "@aws-cdk/aws-s3.IBucket",
|
11793 | "constructs.Construct"
|
11794 | ],
|
11795 | "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",
|
11796 | "syntaxKindCounter": {
|
11797 | "10": 4,
|
11798 | "75": 24,
|
11799 | "104": 2,
|
11800 | "106": 1,
|
11801 | "192": 3,
|
11802 | "193": 5,
|
11803 | "194": 8,
|
11804 | "196": 1,
|
11805 | "197": 2,
|
11806 | "225": 2,
|
11807 | "242": 2,
|
11808 | "243": 2,
|
11809 | "281": 8,
|
11810 | "282": 1
|
11811 | },
|
11812 | "fqnsFingerprint": "f40d662b76b9f7953a3222f4211a8bbc4d593820d03ccd0c24d1e0564f4bf77a"
|
11813 | },
|
11814 | "b8a580234ca969ea073380a0dbcf3553086a517368fbef151246b227a93eb64c": {
|
11815 | "translations": {
|
11816 | "python": {
|
11817 | "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)",
|
11818 | "version": "2"
|
11819 | },
|
11820 | "csharp": {
|
11821 | "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});",
|
11822 | "version": "1"
|
11823 | },
|
11824 | "java": {
|
11825 | "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();",
|
11826 | "version": "1"
|
11827 | },
|
11828 | "go": {
|
11829 | "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})",
|
11830 | "version": "1"
|
11831 | },
|
11832 | "$": {
|
11833 | "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 });",
|
11834 | "version": "0"
|
11835 | }
|
11836 | },
|
11837 | "location": {
|
11838 | "api": {
|
11839 | "api": "type",
|
11840 | "fqn": "@aws-cdk/aws-cloudfront.ViewerCertificateOptions"
|
11841 | },
|
11842 | "field": {
|
11843 | "field": "example"
|
11844 | }
|
11845 | },
|
11846 | "didCompile": true,
|
11847 | "fqnsReferenced": [
|
11848 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistribution",
|
11849 | "@aws-cdk/aws-cloudfront.CloudFrontWebDistributionProps",
|
11850 | "@aws-cdk/aws-cloudfront.S3OriginConfig",
|
11851 | "@aws-cdk/aws-cloudfront.SSLMethod",
|
11852 | "@aws-cdk/aws-cloudfront.SSLMethod#SNI",
|
11853 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol",
|
11854 | "@aws-cdk/aws-cloudfront.SecurityPolicyProtocol#SSL_V3",
|
11855 | "@aws-cdk/aws-cloudfront.ViewerCertificate",
|
11856 | "@aws-cdk/aws-cloudfront.ViewerCertificate#fromIamCertificate",
|
11857 | "@aws-cdk/aws-cloudfront.ViewerCertificateOptions",
|
11858 | "@aws-cdk/aws-s3.Bucket",
|
11859 | "@aws-cdk/aws-s3.IBucket",
|
11860 | "constructs.Construct"
|
11861 | ],
|
11862 | "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",
|
11863 | "syntaxKindCounter": {
|
11864 | "10": 4,
|
11865 | "75": 24,
|
11866 | "104": 2,
|
11867 | "106": 1,
|
11868 | "192": 3,
|
11869 | "193": 5,
|
11870 | "194": 8,
|
11871 | "196": 1,
|
11872 | "197": 2,
|
11873 | "225": 2,
|
11874 | "242": 2,
|
11875 | "243": 2,
|
11876 | "281": 8,
|
11877 | "282": 1
|
11878 | },
|
11879 | "fqnsFingerprint": "f40d662b76b9f7953a3222f4211a8bbc4d593820d03ccd0c24d1e0564f4bf77a"
|
11880 | },
|
11881 | "1eb15ae4863e1346f27f8f251eda4cb277403c7fdf43ed01beb674ca09bcf1c1": {
|
11882 | "translations": {
|
11883 | "python": {
|
11884 | "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)",
|
11885 | "version": "2"
|
11886 | },
|
11887 | "csharp": {
|
11888 | "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});",
|
11889 | "version": "1"
|
11890 | },
|
11891 | "java": {
|
11892 | "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();",
|
11893 | "version": "1"
|
11894 | },
|
11895 | "go": {
|
11896 | "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})",
|
11897 | "version": "1"
|
11898 | },
|
11899 | "$": {
|
11900 | "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});",
|
11901 | "version": "0"
|
11902 | }
|
11903 | },
|
11904 | "location": {
|
11905 | "api": {
|
11906 | "api": "type",
|
11907 | "fqn": "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy"
|
11908 | },
|
11909 | "field": {
|
11910 | "field": "example"
|
11911 | }
|
11912 | },
|
11913 | "didCompile": true,
|
11914 | "fqnsReferenced": [
|
11915 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
11916 | "@aws-cdk/aws-cloudfront.AllowedMethods",
|
11917 | "@aws-cdk/aws-cloudfront.AllowedMethods#ALLOW_ALL",
|
11918 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11919 | "@aws-cdk/aws-cloudfront.Distribution",
|
11920 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11921 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11922 | "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy",
|
11923 | "@aws-cdk/aws-cloudfront.ViewerProtocolPolicy#REDIRECT_TO_HTTPS",
|
11924 | "@aws-cdk/aws-s3.IBucket",
|
11925 | "constructs.Construct"
|
11926 | ],
|
11927 | "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",
|
11928 | "syntaxKindCounter": {
|
11929 | "10": 1,
|
11930 | "75": 19,
|
11931 | "104": 1,
|
11932 | "130": 1,
|
11933 | "153": 1,
|
11934 | "169": 1,
|
11935 | "193": 2,
|
11936 | "194": 6,
|
11937 | "197": 2,
|
11938 | "225": 2,
|
11939 | "242": 2,
|
11940 | "243": 2,
|
11941 | "281": 4,
|
11942 | "290": 1
|
11943 | },
|
11944 | "fqnsFingerprint": "eb34129f90b6a1efb99f90791403fa5b54e340292d54000a09d4cffef496766b"
|
11945 | },
|
11946 | "98d25810537d12b2f956eb65a84252e0867362d127e7c29d9c48eaa926bf386a": {
|
11947 | "translations": {
|
11948 | "python": {
|
11949 | "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_12_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)",
|
11950 | "version": "2"
|
11951 | },
|
11952 | "csharp": {
|
11953 | "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_12_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});",
|
11954 | "version": "1"
|
11955 | },
|
11956 | "java": {
|
11957 | "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_12_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();",
|
11958 | "version": "1"
|
11959 | },
|
11960 | "go": {
|
11961 | "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_12_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})",
|
11962 | "version": "1"
|
11963 | },
|
11964 | "$": {
|
11965 | "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_12_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});",
|
11966 | "version": "0"
|
11967 | }
|
11968 | },
|
11969 | "location": {
|
11970 | "api": {
|
11971 | "api": "type",
|
11972 | "fqn": "@aws-cdk/aws-cloudfront.experimental.EdgeFunction"
|
11973 | },
|
11974 | "field": {
|
11975 | "field": "example"
|
11976 | }
|
11977 | },
|
11978 | "didCompile": true,
|
11979 | "fqnsReferenced": [
|
11980 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
11981 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
11982 | "@aws-cdk/aws-cloudfront.Distribution",
|
11983 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
11984 | "@aws-cdk/aws-cloudfront.IOrigin",
|
11985 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
11986 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
|
11987 | "@aws-cdk/aws-cloudfront.experimental",
|
11988 | "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
|
11989 | "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
|
11990 | "@aws-cdk/aws-lambda.Code",
|
11991 | "@aws-cdk/aws-lambda.Code#fromAsset",
|
11992 | "@aws-cdk/aws-lambda.IVersion",
|
11993 | "@aws-cdk/aws-lambda.Runtime",
|
11994 | "@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
|
11995 | "@aws-cdk/aws-s3.IBucket",
|
11996 | "constructs.Construct"
|
11997 | ],
|
11998 | "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_12_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",
|
11999 | "syntaxKindCounter": {
|
12000 | "10": 4,
|
12001 | "75": 34,
|
12002 | "104": 2,
|
12003 | "130": 1,
|
12004 | "153": 1,
|
12005 | "169": 1,
|
12006 | "192": 1,
|
12007 | "193": 4,
|
12008 | "194": 12,
|
12009 | "196": 2,
|
12010 | "197": 3,
|
12011 | "225": 2,
|
12012 | "226": 1,
|
12013 | "242": 2,
|
12014 | "243": 2,
|
12015 | "281": 8,
|
12016 | "290": 1
|
12017 | },
|
12018 | "fqnsFingerprint": "2396e4bb9f863f8221e011298d3ac516dd8c8eec04fbf1a5867e9969394bb8c4"
|
12019 | },
|
12020 | "94237c1ffa5ccc6413369349513ec796c8214fff22421892597e8e00bd9eb542": {
|
12021 | "translations": {
|
12022 | "python": {
|
12023 | "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_12_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)",
|
12024 | "version": "2"
|
12025 | },
|
12026 | "csharp": {
|
12027 | "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_12_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});",
|
12028 | "version": "1"
|
12029 | },
|
12030 | "java": {
|
12031 | "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_12_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();",
|
12032 | "version": "1"
|
12033 | },
|
12034 | "go": {
|
12035 | "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_12_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})",
|
12036 | "version": "1"
|
12037 | },
|
12038 | "$": {
|
12039 | "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_12_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});",
|
12040 | "version": "0"
|
12041 | }
|
12042 | },
|
12043 | "location": {
|
12044 | "api": {
|
12045 | "api": "type",
|
12046 | "fqn": "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps"
|
12047 | },
|
12048 | "field": {
|
12049 | "field": "example"
|
12050 | }
|
12051 | },
|
12052 | "didCompile": true,
|
12053 | "fqnsReferenced": [
|
12054 | "@aws-cdk/aws-cloudfront-origins.S3Origin",
|
12055 | "@aws-cdk/aws-cloudfront.BehaviorOptions",
|
12056 | "@aws-cdk/aws-cloudfront.Distribution",
|
12057 | "@aws-cdk/aws-cloudfront.DistributionProps",
|
12058 | "@aws-cdk/aws-cloudfront.IOrigin",
|
12059 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType",
|
12060 | "@aws-cdk/aws-cloudfront.LambdaEdgeEventType#VIEWER_REQUEST",
|
12061 | "@aws-cdk/aws-cloudfront.experimental",
|
12062 | "@aws-cdk/aws-cloudfront.experimental.EdgeFunction",
|
12063 | "@aws-cdk/aws-cloudfront.experimental.EdgeFunctionProps",
|
12064 | "@aws-cdk/aws-lambda.Code",
|
12065 | "@aws-cdk/aws-lambda.Code#fromAsset",
|
12066 | "@aws-cdk/aws-lambda.IVersion",
|
12067 | "@aws-cdk/aws-lambda.Runtime",
|
12068 | "@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
|
12069 | "@aws-cdk/aws-s3.IBucket",
|
12070 | "constructs.Construct"
|
12071 | ],
|
12072 | "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_12_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",
|
12073 | "syntaxKindCounter": {
|
12074 | "10": 4,
|
12075 | "75": 34,
|
12076 | "104": 2,
|
12077 | "130": 1,
|
12078 | "153": 1,
|
12079 | "169": 1,
|
12080 | "192": 1,
|
12081 | "193": 4,
|
12082 | "194": 12,
|
12083 | "196": 2,
|
12084 | "197": 3,
|
12085 | "225": 2,
|
12086 | "226": 1,
|
12087 | "242": 2,
|
12088 | "243": 2,
|
12089 | "281": 8,
|
12090 | "290": 1
|
12091 | },
|
12092 | "fqnsFingerprint": "2396e4bb9f863f8221e011298d3ac516dd8c8eec04fbf1a5867e9969394bb8c4"
|
12093 | }
|
12094 | }
|
12095 | }
|