164 lines
4.5 KiB
Text
164 lines
4.5 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Input origin as a custom url creates distribution with lambda associations for each event type 1`] = `
|
|
Object {
|
|
"DistributionConfig": Object {
|
|
"Aliases": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
"CacheBehaviors": Object {
|
|
"Items": Array [
|
|
Object {
|
|
"AllowedMethods": Object {
|
|
"CachedMethods": Object {
|
|
"Items": Array [
|
|
"GET",
|
|
"HEAD",
|
|
],
|
|
"Quantity": 2,
|
|
},
|
|
"Items": Array [
|
|
"GET",
|
|
"HEAD",
|
|
],
|
|
"Quantity": 2,
|
|
},
|
|
"Compress": true,
|
|
"DefaultTTL": 10,
|
|
"FieldLevelEncryptionId": "",
|
|
"ForwardedValues": Object {
|
|
"Cookies": Object {
|
|
"Forward": "all",
|
|
},
|
|
"Headers": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
"QueryString": true,
|
|
"QueryStringCacheKeys": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
},
|
|
"LambdaFunctionAssociations": Object {
|
|
"Items": Array [
|
|
Object {
|
|
"EventType": "viewer-request",
|
|
"IncludeBody": true,
|
|
"LambdaFunctionARN": "arn:aws:lambda:us-east-1:123:function:viewerRequestFunction",
|
|
},
|
|
Object {
|
|
"EventType": "origin-request",
|
|
"IncludeBody": true,
|
|
"LambdaFunctionARN": "arn:aws:lambda:us-east-1:123:function:originRequestFunction",
|
|
},
|
|
Object {
|
|
"EventType": "origin-response",
|
|
"IncludeBody": true,
|
|
"LambdaFunctionARN": "arn:aws:lambda:us-east-1:123:function:originResponseFunction",
|
|
},
|
|
Object {
|
|
"EventType": "viewer-response",
|
|
"IncludeBody": true,
|
|
"LambdaFunctionARN": "arn:aws:lambda:us-east-1:123:function:viewerResponseFunction",
|
|
},
|
|
],
|
|
"Quantity": 4,
|
|
},
|
|
"MaxTTL": 10,
|
|
"MinTTL": 10,
|
|
"PathPattern": "/some/path",
|
|
"SmoothStreaming": false,
|
|
"TargetOriginId": "exampleorigin.com",
|
|
"TrustedSigners": Object {
|
|
"Enabled": false,
|
|
"Quantity": 0,
|
|
},
|
|
"ViewerProtocolPolicy": "https-only",
|
|
},
|
|
],
|
|
"Quantity": 1,
|
|
},
|
|
"CallerReference": "1566599541192",
|
|
"Comment": "",
|
|
"DefaultCacheBehavior": Object {
|
|
"AllowedMethods": Object {
|
|
"CachedMethods": Object {
|
|
"Items": Array [
|
|
"HEAD",
|
|
"GET",
|
|
],
|
|
"Quantity": 2,
|
|
},
|
|
"Items": Array [
|
|
"HEAD",
|
|
"GET",
|
|
],
|
|
"Quantity": 2,
|
|
},
|
|
"Compress": false,
|
|
"DefaultTTL": 86400,
|
|
"FieldLevelEncryptionId": "",
|
|
"ForwardedValues": Object {
|
|
"Cookies": Object {
|
|
"Forward": "none",
|
|
},
|
|
"Headers": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
"QueryString": false,
|
|
"QueryStringCacheKeys": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
},
|
|
"LambdaFunctionAssociations": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
"MaxTTL": 31536000,
|
|
"MinTTL": 0,
|
|
"SmoothStreaming": false,
|
|
"TargetOriginId": "exampleorigin.com",
|
|
"TrustedSigners": Object {
|
|
"Enabled": false,
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
"ViewerProtocolPolicy": "redirect-to-https",
|
|
},
|
|
"Enabled": true,
|
|
"HttpVersion": "http2",
|
|
"Origins": Object {
|
|
"Items": Array [
|
|
Object {
|
|
"CustomHeaders": Object {
|
|
"Items": Array [],
|
|
"Quantity": 0,
|
|
},
|
|
"CustomOriginConfig": Object {
|
|
"HTTPPort": 80,
|
|
"HTTPSPort": 443,
|
|
"OriginKeepaliveTimeout": 5,
|
|
"OriginProtocolPolicy": "https-only",
|
|
"OriginReadTimeout": 30,
|
|
"OriginSslProtocols": Object {
|
|
"Items": Array [
|
|
"TLSv1.2",
|
|
],
|
|
"Quantity": 1,
|
|
},
|
|
},
|
|
"DomainName": "exampleorigin.com",
|
|
"Id": "exampleorigin.com",
|
|
"OriginPath": "",
|
|
},
|
|
],
|
|
"Quantity": 1,
|
|
},
|
|
"PriceClass": "PriceClass_All",
|
|
},
|
|
}
|
|
`;
|