@aws-sdk/client-cloudfront 3.299.0 → 3.301.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AssociateAliasCommand.d.ts +4 -0
- package/dist-types/commands/CopyDistributionCommand.d.ts +6 -0
- package/dist-types/commands/CreateCachePolicyCommand.d.ts +40 -0
- package/dist-types/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +6 -0
- package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +25 -0
- package/dist-types/commands/CreateDistributionCommand.d.ts +289 -0
- package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +299 -0
- package/dist-types/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +31 -0
- package/dist-types/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +22 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +8 -0
- package/dist-types/commands/CreateInvalidationCommand.d.ts +12 -0
- package/dist-types/commands/CreateKeyGroupCommand.d.ts +9 -0
- package/dist-types/commands/CreateMonitoringSubscriptionCommand.d.ts +8 -0
- package/dist-types/commands/CreateOriginAccessControlCommand.d.ts +9 -0
- package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +33 -0
- package/dist-types/commands/CreatePublicKeyCommand.d.ts +8 -0
- package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +16 -0
- package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +86 -0
- package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +30 -0
- package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +40 -0
- package/dist-types/commands/DeleteCachePolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +4 -0
- package/dist-types/commands/DeleteContinuousDeploymentPolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteDistributionCommand.d.ts +4 -0
- package/dist-types/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +4 -0
- package/dist-types/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +4 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +4 -0
- package/dist-types/commands/DeleteKeyGroupCommand.d.ts +4 -0
- package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +3 -0
- package/dist-types/commands/DeleteOriginAccessControlCommand.d.ts +4 -0
- package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeletePublicKeyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +4 -0
- package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +4 -0
- package/dist-types/commands/DescribeFunctionCommand.d.ts +4 -0
- package/dist-types/commands/GetCachePolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +3 -0
- package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetContinuousDeploymentPolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetContinuousDeploymentPolicyConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetDistributionCommand.d.ts +3 -0
- package/dist-types/commands/GetDistributionConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +3 -0
- package/dist-types/commands/GetFieldLevelEncryptionConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetFieldLevelEncryptionProfileCommand.d.ts +3 -0
- package/dist-types/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +4 -0
- package/dist-types/commands/GetInvalidationCommand.d.ts +4 -0
- package/dist-types/commands/GetKeyGroupCommand.d.ts +3 -0
- package/dist-types/commands/GetKeyGroupConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +3 -0
- package/dist-types/commands/GetOriginAccessControlCommand.d.ts +3 -0
- package/dist-types/commands/GetOriginAccessControlConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetPublicKeyCommand.d.ts +3 -0
- package/dist-types/commands/GetPublicKeyConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetRealtimeLogConfigCommand.d.ts +4 -0
- package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +3 -0
- package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +3 -0
- package/dist-types/commands/GetStreamingDistributionCommand.d.ts +3 -0
- package/dist-types/commands/GetStreamingDistributionConfigCommand.d.ts +3 -0
- package/dist-types/commands/ListCachePoliciesCommand.d.ts +5 -0
- package/dist-types/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +4 -0
- package/dist-types/commands/ListConflictingAliasesCommand.d.ts +6 -0
- package/dist-types/commands/ListContinuousDeploymentPoliciesCommand.d.ts +4 -0
- package/dist-types/commands/ListDistributionsByCachePolicyIdCommand.d.ts +5 -0
- package/dist-types/commands/ListDistributionsByKeyGroupCommand.d.ts +5 -0
- package/dist-types/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +5 -0
- package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +6 -0
- package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +5 -0
- package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +5 -0
- package/dist-types/commands/ListDistributionsCommand.d.ts +4 -0
- package/dist-types/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +4 -0
- package/dist-types/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +4 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +5 -0
- package/dist-types/commands/ListInvalidationsCommand.d.ts +5 -0
- package/dist-types/commands/ListKeyGroupsCommand.d.ts +4 -0
- package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +4 -0
- package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +5 -0
- package/dist-types/commands/ListPublicKeysCommand.d.ts +4 -0
- package/dist-types/commands/ListRealtimeLogConfigsCommand.d.ts +4 -0
- package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +5 -0
- package/dist-types/commands/ListStreamingDistributionsCommand.d.ts +4 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/PublishFunctionCommand.d.ts +4 -0
- package/dist-types/commands/TagResourceCommand.d.ts +11 -0
- package/dist-types/commands/TestFunctionCommand.d.ts +6 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -0
- package/dist-types/commands/UpdateCachePolicyCommand.d.ts +42 -0
- package/dist-types/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +8 -0
- package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +27 -0
- package/dist-types/commands/UpdateDistributionCommand.d.ts +291 -0
- package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +5 -0
- package/dist-types/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +33 -0
- package/dist-types/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +24 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +9 -0
- package/dist-types/commands/UpdateKeyGroupCommand.d.ts +11 -0
- package/dist-types/commands/UpdateOriginAccessControlCommand.d.ts +11 -0
- package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +35 -0
- package/dist-types/commands/UpdatePublicKeyCommand.d.ts +10 -0
- package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +17 -0
- package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +88 -0
- package/dist-types/commands/UpdateStreamingDistributionCommand.d.ts +32 -0
- package/package.json +8 -8
|
@@ -36,6 +36,10 @@ export interface AssociateAliasCommandOutput extends __MetadataBearer {
|
|
|
36
36
|
* import { CloudFrontClient, AssociateAliasCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
37
37
|
* // const { CloudFrontClient, AssociateAliasCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
38
38
|
* const client = new CloudFrontClient(config);
|
|
39
|
+
* const input = { // AssociateAliasRequest
|
|
40
|
+
* TargetDistributionId: "STRING_VALUE", // required
|
|
41
|
+
* Alias: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
39
43
|
* const command = new AssociateAliasCommand(input);
|
|
40
44
|
* const response = await client.send(command);
|
|
41
45
|
* ```
|
|
@@ -32,6 +32,12 @@ export interface CopyDistributionCommandOutput extends CopyDistributionResult, _
|
|
|
32
32
|
* import { CloudFrontClient, CopyDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
33
33
|
* // const { CloudFrontClient, CopyDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
34
34
|
* const client = new CloudFrontClient(config);
|
|
35
|
+
* const input = { // CopyDistributionRequest
|
|
36
|
+
* PrimaryDistributionId: "STRING_VALUE", // required
|
|
37
|
+
* Staging: true || false,
|
|
38
|
+
* IfMatch: "STRING_VALUE",
|
|
39
|
+
* CallerReference: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
35
41
|
* const command = new CopyDistributionCommand(input);
|
|
36
42
|
* const response = await client.send(command);
|
|
37
43
|
* ```
|
|
@@ -48,6 +48,46 @@ export interface CreateCachePolicyCommandOutput extends CreateCachePolicyResult,
|
|
|
48
48
|
* import { CloudFrontClient, CreateCachePolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
49
49
|
* // const { CloudFrontClient, CreateCachePolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
50
50
|
* const client = new CloudFrontClient(config);
|
|
51
|
+
* const input = { // CreateCachePolicyRequest
|
|
52
|
+
* CachePolicyConfig: { // CachePolicyConfig
|
|
53
|
+
* Comment: "STRING_VALUE",
|
|
54
|
+
* Name: "STRING_VALUE", // required
|
|
55
|
+
* DefaultTTL: Number("long"),
|
|
56
|
+
* MaxTTL: Number("long"),
|
|
57
|
+
* MinTTL: Number("long"), // required
|
|
58
|
+
* ParametersInCacheKeyAndForwardedToOrigin: { // ParametersInCacheKeyAndForwardedToOrigin
|
|
59
|
+
* EnableAcceptEncodingGzip: true || false, // required
|
|
60
|
+
* EnableAcceptEncodingBrotli: true || false,
|
|
61
|
+
* HeadersConfig: { // CachePolicyHeadersConfig
|
|
62
|
+
* HeaderBehavior: "none" || "whitelist", // required
|
|
63
|
+
* Headers: { // Headers
|
|
64
|
+
* Quantity: Number("int"), // required
|
|
65
|
+
* Items: [ // HeaderList
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
68
|
+
* },
|
|
69
|
+
* },
|
|
70
|
+
* CookiesConfig: { // CachePolicyCookiesConfig
|
|
71
|
+
* CookieBehavior: "none" || "whitelist" || "allExcept" || "all", // required
|
|
72
|
+
* Cookies: { // CookieNames
|
|
73
|
+
* Quantity: Number("int"), // required
|
|
74
|
+
* Items: [ // CookieNameList
|
|
75
|
+
* "STRING_VALUE",
|
|
76
|
+
* ],
|
|
77
|
+
* },
|
|
78
|
+
* },
|
|
79
|
+
* QueryStringsConfig: { // CachePolicyQueryStringsConfig
|
|
80
|
+
* QueryStringBehavior: "none" || "whitelist" || "allExcept" || "all", // required
|
|
81
|
+
* QueryStrings: { // QueryStringNames
|
|
82
|
+
* Quantity: Number("int"), // required
|
|
83
|
+
* Items: [ // QueryStringNamesList
|
|
84
|
+
* "STRING_VALUE",
|
|
85
|
+
* ],
|
|
86
|
+
* },
|
|
87
|
+
* },
|
|
88
|
+
* },
|
|
89
|
+
* },
|
|
90
|
+
* };
|
|
51
91
|
* const command = new CreateCachePolicyCommand(input);
|
|
52
92
|
* const response = await client.send(command);
|
|
53
93
|
* ```
|
|
@@ -30,6 +30,12 @@ export interface CreateCloudFrontOriginAccessIdentityCommandOutput extends Creat
|
|
|
30
30
|
* import { CloudFrontClient, CreateCloudFrontOriginAccessIdentityCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
31
31
|
* // const { CloudFrontClient, CreateCloudFrontOriginAccessIdentityCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
32
32
|
* const client = new CloudFrontClient(config);
|
|
33
|
+
* const input = { // CreateCloudFrontOriginAccessIdentityRequest
|
|
34
|
+
* CloudFrontOriginAccessIdentityConfig: { // CloudFrontOriginAccessIdentityConfig
|
|
35
|
+
* CallerReference: "STRING_VALUE", // required
|
|
36
|
+
* Comment: "STRING_VALUE", // required
|
|
37
|
+
* },
|
|
38
|
+
* };
|
|
33
39
|
* const command = new CreateCloudFrontOriginAccessIdentityCommand(input);
|
|
34
40
|
* const response = await client.send(command);
|
|
35
41
|
* ```
|
|
@@ -34,6 +34,31 @@ export interface CreateContinuousDeploymentPolicyCommandOutput extends CreateCon
|
|
|
34
34
|
* import { CloudFrontClient, CreateContinuousDeploymentPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
35
35
|
* // const { CloudFrontClient, CreateContinuousDeploymentPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
36
36
|
* const client = new CloudFrontClient(config);
|
|
37
|
+
* const input = { // CreateContinuousDeploymentPolicyRequest
|
|
38
|
+
* ContinuousDeploymentPolicyConfig: { // ContinuousDeploymentPolicyConfig
|
|
39
|
+
* StagingDistributionDnsNames: { // StagingDistributionDnsNames
|
|
40
|
+
* Quantity: Number("int"), // required
|
|
41
|
+
* Items: [ // StagingDistributionDnsNameList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* },
|
|
45
|
+
* Enabled: true || false, // required
|
|
46
|
+
* TrafficConfig: { // TrafficConfig
|
|
47
|
+
* SingleWeightConfig: { // ContinuousDeploymentSingleWeightConfig
|
|
48
|
+
* Weight: Number("float"), // required
|
|
49
|
+
* SessionStickinessConfig: { // SessionStickinessConfig
|
|
50
|
+
* IdleTTL: Number("int"), // required
|
|
51
|
+
* MaximumTTL: Number("int"), // required
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* SingleHeaderConfig: { // ContinuousDeploymentSingleHeaderConfig
|
|
55
|
+
* Header: "STRING_VALUE", // required
|
|
56
|
+
* Value: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* Type: "SingleWeight" || "SingleHeader", // required
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* };
|
|
37
62
|
* const command = new CreateContinuousDeploymentPolicyCommand(input);
|
|
38
63
|
* const response = await client.send(command);
|
|
39
64
|
* ```
|
|
@@ -26,6 +26,295 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
|
|
|
26
26
|
* import { CloudFrontClient, CreateDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
|
|
27
27
|
* // const { CloudFrontClient, CreateDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
|
|
28
28
|
* const client = new CloudFrontClient(config);
|
|
29
|
+
* const input = { // CreateDistributionRequest
|
|
30
|
+
* DistributionConfig: { // DistributionConfig
|
|
31
|
+
* CallerReference: "STRING_VALUE", // required
|
|
32
|
+
* Aliases: { // Aliases
|
|
33
|
+
* Quantity: Number("int"), // required
|
|
34
|
+
* Items: [ // AliasList
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* },
|
|
38
|
+
* DefaultRootObject: "STRING_VALUE",
|
|
39
|
+
* Origins: { // Origins
|
|
40
|
+
* Quantity: Number("int"), // required
|
|
41
|
+
* Items: [ // OriginList // required
|
|
42
|
+
* { // Origin
|
|
43
|
+
* Id: "STRING_VALUE", // required
|
|
44
|
+
* DomainName: "STRING_VALUE", // required
|
|
45
|
+
* OriginPath: "STRING_VALUE",
|
|
46
|
+
* CustomHeaders: { // CustomHeaders
|
|
47
|
+
* Quantity: Number("int"), // required
|
|
48
|
+
* Items: [ // OriginCustomHeadersList
|
|
49
|
+
* { // OriginCustomHeader
|
|
50
|
+
* HeaderName: "STRING_VALUE", // required
|
|
51
|
+
* HeaderValue: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* S3OriginConfig: { // S3OriginConfig
|
|
56
|
+
* OriginAccessIdentity: "STRING_VALUE", // required
|
|
57
|
+
* },
|
|
58
|
+
* CustomOriginConfig: { // CustomOriginConfig
|
|
59
|
+
* HTTPPort: Number("int"), // required
|
|
60
|
+
* HTTPSPort: Number("int"), // required
|
|
61
|
+
* OriginProtocolPolicy: "http-only" || "match-viewer" || "https-only", // required
|
|
62
|
+
* OriginSslProtocols: { // OriginSslProtocols
|
|
63
|
+
* Quantity: Number("int"), // required
|
|
64
|
+
* Items: [ // SslProtocolsList // required
|
|
65
|
+
* "SSLv3" || "TLSv1" || "TLSv1.1" || "TLSv1.2",
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* OriginReadTimeout: Number("int"),
|
|
69
|
+
* OriginKeepaliveTimeout: Number("int"),
|
|
70
|
+
* },
|
|
71
|
+
* ConnectionAttempts: Number("int"),
|
|
72
|
+
* ConnectionTimeout: Number("int"),
|
|
73
|
+
* OriginShield: { // OriginShield
|
|
74
|
+
* Enabled: true || false, // required
|
|
75
|
+
* OriginShieldRegion: "STRING_VALUE",
|
|
76
|
+
* },
|
|
77
|
+
* OriginAccessControlId: "STRING_VALUE",
|
|
78
|
+
* },
|
|
79
|
+
* ],
|
|
80
|
+
* },
|
|
81
|
+
* OriginGroups: { // OriginGroups
|
|
82
|
+
* Quantity: Number("int"), // required
|
|
83
|
+
* Items: [ // OriginGroupList
|
|
84
|
+
* { // OriginGroup
|
|
85
|
+
* Id: "STRING_VALUE", // required
|
|
86
|
+
* FailoverCriteria: { // OriginGroupFailoverCriteria
|
|
87
|
+
* StatusCodes: { // StatusCodes
|
|
88
|
+
* Quantity: Number("int"), // required
|
|
89
|
+
* Items: [ // StatusCodeList // required
|
|
90
|
+
* Number("int"),
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
93
|
+
* },
|
|
94
|
+
* Members: { // OriginGroupMembers
|
|
95
|
+
* Quantity: Number("int"), // required
|
|
96
|
+
* Items: [ // OriginGroupMemberList // required
|
|
97
|
+
* { // OriginGroupMember
|
|
98
|
+
* OriginId: "STRING_VALUE", // required
|
|
99
|
+
* },
|
|
100
|
+
* ],
|
|
101
|
+
* },
|
|
102
|
+
* },
|
|
103
|
+
* ],
|
|
104
|
+
* },
|
|
105
|
+
* DefaultCacheBehavior: { // DefaultCacheBehavior
|
|
106
|
+
* TargetOriginId: "STRING_VALUE", // required
|
|
107
|
+
* TrustedSigners: { // TrustedSigners
|
|
108
|
+
* Enabled: true || false, // required
|
|
109
|
+
* Quantity: Number("int"), // required
|
|
110
|
+
* Items: [ // AwsAccountNumberList
|
|
111
|
+
* "STRING_VALUE",
|
|
112
|
+
* ],
|
|
113
|
+
* },
|
|
114
|
+
* TrustedKeyGroups: { // TrustedKeyGroups
|
|
115
|
+
* Enabled: true || false, // required
|
|
116
|
+
* Quantity: Number("int"), // required
|
|
117
|
+
* Items: [ // TrustedKeyGroupIdList
|
|
118
|
+
* "STRING_VALUE",
|
|
119
|
+
* ],
|
|
120
|
+
* },
|
|
121
|
+
* ViewerProtocolPolicy: "allow-all" || "https-only" || "redirect-to-https", // required
|
|
122
|
+
* AllowedMethods: { // AllowedMethods
|
|
123
|
+
* Quantity: Number("int"), // required
|
|
124
|
+
* Items: [ // MethodsList // required
|
|
125
|
+
* "GET" || "HEAD" || "POST" || "PUT" || "PATCH" || "OPTIONS" || "DELETE",
|
|
126
|
+
* ],
|
|
127
|
+
* CachedMethods: { // CachedMethods
|
|
128
|
+
* Quantity: Number("int"), // required
|
|
129
|
+
* Items: [ // required
|
|
130
|
+
* "GET" || "HEAD" || "POST" || "PUT" || "PATCH" || "OPTIONS" || "DELETE",
|
|
131
|
+
* ],
|
|
132
|
+
* },
|
|
133
|
+
* },
|
|
134
|
+
* SmoothStreaming: true || false,
|
|
135
|
+
* Compress: true || false,
|
|
136
|
+
* LambdaFunctionAssociations: { // LambdaFunctionAssociations
|
|
137
|
+
* Quantity: Number("int"), // required
|
|
138
|
+
* Items: [ // LambdaFunctionAssociationList
|
|
139
|
+
* { // LambdaFunctionAssociation
|
|
140
|
+
* LambdaFunctionARN: "STRING_VALUE", // required
|
|
141
|
+
* EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
|
|
142
|
+
* IncludeBody: true || false,
|
|
143
|
+
* },
|
|
144
|
+
* ],
|
|
145
|
+
* },
|
|
146
|
+
* FunctionAssociations: { // FunctionAssociations
|
|
147
|
+
* Quantity: Number("int"), // required
|
|
148
|
+
* Items: [ // FunctionAssociationList
|
|
149
|
+
* { // FunctionAssociation
|
|
150
|
+
* FunctionARN: "STRING_VALUE", // required
|
|
151
|
+
* EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
|
|
152
|
+
* },
|
|
153
|
+
* ],
|
|
154
|
+
* },
|
|
155
|
+
* FieldLevelEncryptionId: "STRING_VALUE",
|
|
156
|
+
* RealtimeLogConfigArn: "STRING_VALUE",
|
|
157
|
+
* CachePolicyId: "STRING_VALUE",
|
|
158
|
+
* OriginRequestPolicyId: "STRING_VALUE",
|
|
159
|
+
* ResponseHeadersPolicyId: "STRING_VALUE",
|
|
160
|
+
* ForwardedValues: { // ForwardedValues
|
|
161
|
+
* QueryString: true || false, // required
|
|
162
|
+
* Cookies: { // CookiePreference
|
|
163
|
+
* Forward: "none" || "whitelist" || "all", // required
|
|
164
|
+
* WhitelistedNames: { // CookieNames
|
|
165
|
+
* Quantity: Number("int"), // required
|
|
166
|
+
* Items: [ // CookieNameList
|
|
167
|
+
* "STRING_VALUE",
|
|
168
|
+
* ],
|
|
169
|
+
* },
|
|
170
|
+
* },
|
|
171
|
+
* Headers: { // Headers
|
|
172
|
+
* Quantity: Number("int"), // required
|
|
173
|
+
* Items: [ // HeaderList
|
|
174
|
+
* "STRING_VALUE",
|
|
175
|
+
* ],
|
|
176
|
+
* },
|
|
177
|
+
* QueryStringCacheKeys: { // QueryStringCacheKeys
|
|
178
|
+
* Quantity: Number("int"), // required
|
|
179
|
+
* Items: [ // QueryStringCacheKeysList
|
|
180
|
+
* "STRING_VALUE",
|
|
181
|
+
* ],
|
|
182
|
+
* },
|
|
183
|
+
* },
|
|
184
|
+
* MinTTL: Number("long"),
|
|
185
|
+
* DefaultTTL: Number("long"),
|
|
186
|
+
* MaxTTL: Number("long"),
|
|
187
|
+
* },
|
|
188
|
+
* CacheBehaviors: { // CacheBehaviors
|
|
189
|
+
* Quantity: Number("int"), // required
|
|
190
|
+
* Items: [ // CacheBehaviorList
|
|
191
|
+
* { // CacheBehavior
|
|
192
|
+
* PathPattern: "STRING_VALUE", // required
|
|
193
|
+
* TargetOriginId: "STRING_VALUE", // required
|
|
194
|
+
* TrustedSigners: {
|
|
195
|
+
* Enabled: true || false, // required
|
|
196
|
+
* Quantity: Number("int"), // required
|
|
197
|
+
* Items: [
|
|
198
|
+
* "STRING_VALUE",
|
|
199
|
+
* ],
|
|
200
|
+
* },
|
|
201
|
+
* TrustedKeyGroups: {
|
|
202
|
+
* Enabled: true || false, // required
|
|
203
|
+
* Quantity: Number("int"), // required
|
|
204
|
+
* Items: [
|
|
205
|
+
* "STRING_VALUE",
|
|
206
|
+
* ],
|
|
207
|
+
* },
|
|
208
|
+
* ViewerProtocolPolicy: "allow-all" || "https-only" || "redirect-to-https", // required
|
|
209
|
+
* AllowedMethods: {
|
|
210
|
+
* Quantity: Number("int"), // required
|
|
211
|
+
* Items: "<MethodsList>", // required
|
|
212
|
+
* CachedMethods: {
|
|
213
|
+
* Quantity: Number("int"), // required
|
|
214
|
+
* Items: "<MethodsList>", // required
|
|
215
|
+
* },
|
|
216
|
+
* },
|
|
217
|
+
* SmoothStreaming: true || false,
|
|
218
|
+
* Compress: true || false,
|
|
219
|
+
* LambdaFunctionAssociations: {
|
|
220
|
+
* Quantity: Number("int"), // required
|
|
221
|
+
* Items: [
|
|
222
|
+
* {
|
|
223
|
+
* LambdaFunctionARN: "STRING_VALUE", // required
|
|
224
|
+
* EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
|
|
225
|
+
* IncludeBody: true || false,
|
|
226
|
+
* },
|
|
227
|
+
* ],
|
|
228
|
+
* },
|
|
229
|
+
* FunctionAssociations: {
|
|
230
|
+
* Quantity: Number("int"), // required
|
|
231
|
+
* Items: [
|
|
232
|
+
* {
|
|
233
|
+
* FunctionARN: "STRING_VALUE", // required
|
|
234
|
+
* EventType: "viewer-request" || "viewer-response" || "origin-request" || "origin-response", // required
|
|
235
|
+
* },
|
|
236
|
+
* ],
|
|
237
|
+
* },
|
|
238
|
+
* FieldLevelEncryptionId: "STRING_VALUE",
|
|
239
|
+
* RealtimeLogConfigArn: "STRING_VALUE",
|
|
240
|
+
* CachePolicyId: "STRING_VALUE",
|
|
241
|
+
* OriginRequestPolicyId: "STRING_VALUE",
|
|
242
|
+
* ResponseHeadersPolicyId: "STRING_VALUE",
|
|
243
|
+
* ForwardedValues: {
|
|
244
|
+
* QueryString: true || false, // required
|
|
245
|
+
* Cookies: {
|
|
246
|
+
* Forward: "none" || "whitelist" || "all", // required
|
|
247
|
+
* WhitelistedNames: {
|
|
248
|
+
* Quantity: Number("int"), // required
|
|
249
|
+
* Items: [
|
|
250
|
+
* "STRING_VALUE",
|
|
251
|
+
* ],
|
|
252
|
+
* },
|
|
253
|
+
* },
|
|
254
|
+
* Headers: {
|
|
255
|
+
* Quantity: Number("int"), // required
|
|
256
|
+
* Items: [
|
|
257
|
+
* "STRING_VALUE",
|
|
258
|
+
* ],
|
|
259
|
+
* },
|
|
260
|
+
* QueryStringCacheKeys: {
|
|
261
|
+
* Quantity: Number("int"), // required
|
|
262
|
+
* Items: [
|
|
263
|
+
* "STRING_VALUE",
|
|
264
|
+
* ],
|
|
265
|
+
* },
|
|
266
|
+
* },
|
|
267
|
+
* MinTTL: Number("long"),
|
|
268
|
+
* DefaultTTL: Number("long"),
|
|
269
|
+
* MaxTTL: Number("long"),
|
|
270
|
+
* },
|
|
271
|
+
* ],
|
|
272
|
+
* },
|
|
273
|
+
* CustomErrorResponses: { // CustomErrorResponses
|
|
274
|
+
* Quantity: Number("int"), // required
|
|
275
|
+
* Items: [ // CustomErrorResponseList
|
|
276
|
+
* { // CustomErrorResponse
|
|
277
|
+
* ErrorCode: Number("int"), // required
|
|
278
|
+
* ResponsePagePath: "STRING_VALUE",
|
|
279
|
+
* ResponseCode: "STRING_VALUE",
|
|
280
|
+
* ErrorCachingMinTTL: Number("long"),
|
|
281
|
+
* },
|
|
282
|
+
* ],
|
|
283
|
+
* },
|
|
284
|
+
* Comment: "STRING_VALUE", // required
|
|
285
|
+
* Logging: { // LoggingConfig
|
|
286
|
+
* Enabled: true || false, // required
|
|
287
|
+
* IncludeCookies: true || false, // required
|
|
288
|
+
* Bucket: "STRING_VALUE", // required
|
|
289
|
+
* Prefix: "STRING_VALUE", // required
|
|
290
|
+
* },
|
|
291
|
+
* PriceClass: "PriceClass_100" || "PriceClass_200" || "PriceClass_All",
|
|
292
|
+
* Enabled: true || false, // required
|
|
293
|
+
* ViewerCertificate: { // ViewerCertificate
|
|
294
|
+
* CloudFrontDefaultCertificate: true || false,
|
|
295
|
+
* IAMCertificateId: "STRING_VALUE",
|
|
296
|
+
* ACMCertificateArn: "STRING_VALUE",
|
|
297
|
+
* SSLSupportMethod: "sni-only" || "vip" || "static-ip",
|
|
298
|
+
* MinimumProtocolVersion: "SSLv3" || "TLSv1" || "TLSv1_2016" || "TLSv1.1_2016" || "TLSv1.2_2018" || "TLSv1.2_2019" || "TLSv1.2_2021",
|
|
299
|
+
* Certificate: "STRING_VALUE",
|
|
300
|
+
* CertificateSource: "cloudfront" || "iam" || "acm",
|
|
301
|
+
* },
|
|
302
|
+
* Restrictions: { // Restrictions
|
|
303
|
+
* GeoRestriction: { // GeoRestriction
|
|
304
|
+
* RestrictionType: "blacklist" || "whitelist" || "none", // required
|
|
305
|
+
* Quantity: Number("int"), // required
|
|
306
|
+
* Items: [ // LocationList
|
|
307
|
+
* "STRING_VALUE",
|
|
308
|
+
* ],
|
|
309
|
+
* },
|
|
310
|
+
* },
|
|
311
|
+
* WebACLId: "STRING_VALUE",
|
|
312
|
+
* HttpVersion: "http1.1" || "http2" || "http3" || "http2and3",
|
|
313
|
+
* IsIPV6Enabled: true || false,
|
|
314
|
+
* ContinuousDeploymentPolicyId: "STRING_VALUE",
|
|
315
|
+
* Staging: true || false,
|
|
316
|
+
* },
|
|
317
|
+
* };
|
|
29
318
|
* const command = new CreateDistributionCommand(input);
|
|
30
319
|
* const response = await client.send(command);
|
|
31
320
|
* ```
|