@aws-sdk/client-cloudfront 3.712.0 → 3.714.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-cjs/index.js +12 -0
- package/dist-cjs/runtimeConfig.js +8 -6
- package/dist-es/protocols/Aws_restXml.js +12 -0
- package/dist-es/runtimeConfig.js +8 -6
- package/dist-types/CloudFrontClient.d.ts +18 -0
- package/dist-types/commands/CopyDistributionCommand.d.ts +2 -0
- package/dist-types/commands/CreateDistributionCommand.d.ts +4 -0
- package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +4 -0
- package/dist-types/commands/GetDistributionCommand.d.ts +2 -0
- package/dist-types/commands/GetDistributionConfigCommand.d.ts +2 -0
- package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +2 -0
- package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +2 -0
- package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +2 -0
- package/dist-types/commands/ListDistributionsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateDistributionCommand.d.ts +4 -0
- package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +34 -11
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudFrontClient.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +14 -14
package/dist-cjs/index.js
CHANGED
|
@@ -10481,6 +10481,12 @@ var se_VpcOriginConfig = /* @__PURE__ */ __name((input, context) => {
|
|
|
10481
10481
|
if (input[_VOI] != null) {
|
|
10482
10482
|
bn.c(import_xml_builder.XmlNode.of(_st, input[_VOI]).n(_VOI));
|
|
10483
10483
|
}
|
|
10484
|
+
if (input[_ORT] != null) {
|
|
10485
|
+
bn.c(import_xml_builder.XmlNode.of(_i, String(input[_ORT])).n(_ORT));
|
|
10486
|
+
}
|
|
10487
|
+
if (input[_OKT] != null) {
|
|
10488
|
+
bn.c(import_xml_builder.XmlNode.of(_i, String(input[_OKT])).n(_OKT));
|
|
10489
|
+
}
|
|
10484
10490
|
return bn;
|
|
10485
10491
|
}, "se_VpcOriginConfig");
|
|
10486
10492
|
var se_VpcOriginEndpointConfig = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -13378,6 +13384,12 @@ var de_VpcOriginConfig = /* @__PURE__ */ __name((output, context) => {
|
|
|
13378
13384
|
if (output[_VOI] != null) {
|
|
13379
13385
|
contents[_VOI] = (0, import_smithy_client.expectString)(output[_VOI]);
|
|
13380
13386
|
}
|
|
13387
|
+
if (output[_ORT] != null) {
|
|
13388
|
+
contents[_ORT] = (0, import_smithy_client.strictParseInt32)(output[_ORT]);
|
|
13389
|
+
}
|
|
13390
|
+
if (output[_OKT] != null) {
|
|
13391
|
+
contents[_OKT] = (0, import_smithy_client.strictParseInt32)(output[_OKT]);
|
|
13392
|
+
}
|
|
13381
13393
|
return contents;
|
|
13382
13394
|
}, "de_VpcOriginConfig");
|
|
13383
13395
|
var de_VpcOriginEndpointConfig = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -23,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
24
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
|
+
const profileConfig = { profile: config?.profile };
|
|
26
27
|
return {
|
|
27
28
|
...clientSharedValues,
|
|
28
29
|
...config,
|
|
@@ -32,19 +33,20 @@ const getRuntimeConfig = (config) => {
|
|
|
32
33
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
33
34
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
35
|
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: config?.region ??
|
|
36
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
37
|
+
region: config?.region ??
|
|
38
|
+
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
37
39
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
38
40
|
retryMode: config?.retryMode ??
|
|
39
41
|
(0, node_config_provider_1.loadConfig)({
|
|
40
42
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
43
|
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
42
|
-
}),
|
|
44
|
+
}, config),
|
|
43
45
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
44
46
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
45
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
-
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
49
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
|
|
48
50
|
};
|
|
49
51
|
};
|
|
50
52
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -7012,6 +7012,12 @@ const se_VpcOriginConfig = (input, context) => {
|
|
|
7012
7012
|
if (input[_VOI] != null) {
|
|
7013
7013
|
bn.c(__XmlNode.of(_st, input[_VOI]).n(_VOI));
|
|
7014
7014
|
}
|
|
7015
|
+
if (input[_ORT] != null) {
|
|
7016
|
+
bn.c(__XmlNode.of(_i, String(input[_ORT])).n(_ORT));
|
|
7017
|
+
}
|
|
7018
|
+
if (input[_OKT] != null) {
|
|
7019
|
+
bn.c(__XmlNode.of(_i, String(input[_OKT])).n(_OKT));
|
|
7020
|
+
}
|
|
7015
7021
|
return bn;
|
|
7016
7022
|
};
|
|
7017
7023
|
const se_VpcOriginEndpointConfig = (input, context) => {
|
|
@@ -10094,6 +10100,12 @@ const de_VpcOriginConfig = (output, context) => {
|
|
|
10094
10100
|
if (output[_VOI] != null) {
|
|
10095
10101
|
contents[_VOI] = __expectString(output[_VOI]);
|
|
10096
10102
|
}
|
|
10103
|
+
if (output[_ORT] != null) {
|
|
10104
|
+
contents[_ORT] = __strictParseInt32(output[_ORT]);
|
|
10105
|
+
}
|
|
10106
|
+
if (output[_OKT] != null) {
|
|
10107
|
+
contents[_OKT] = __strictParseInt32(output[_OKT]);
|
|
10108
|
+
}
|
|
10097
10109
|
return contents;
|
|
10098
10110
|
};
|
|
10099
10111
|
const de_VpcOriginEndpointConfig = (output, context) => {
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -19,6 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
19
19
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
20
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
21
|
awsCheckVersion(process.version);
|
|
22
|
+
const profileConfig = { profile: config?.profile };
|
|
22
23
|
return {
|
|
23
24
|
...clientSharedValues,
|
|
24
25
|
...config,
|
|
@@ -28,18 +29,19 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
29
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
31
|
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
|
-
region: config?.region ??
|
|
32
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
33
|
+
region: config?.region ??
|
|
34
|
+
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
|
|
33
35
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
34
36
|
retryMode: config?.retryMode ??
|
|
35
37
|
loadNodeConfig({
|
|
36
38
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
39
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
|
-
}),
|
|
40
|
+
}, config),
|
|
39
41
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
42
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
|
|
45
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
|
|
44
46
|
};
|
|
45
47
|
};
|
|
@@ -216,6 +216,24 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
216
216
|
* The AWS region to which this client will send requests
|
|
217
217
|
*/
|
|
218
218
|
region?: string | __Provider<string>;
|
|
219
|
+
/**
|
|
220
|
+
* Setting a client profile is similar to setting a value for the
|
|
221
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
222
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
223
|
+
*
|
|
224
|
+
* When set, and only for environments where an AWS configuration
|
|
225
|
+
* file exists, fields configurable by this file will be retrieved
|
|
226
|
+
* from the specified profile within that file.
|
|
227
|
+
* Conflicting code configuration and environment variables will
|
|
228
|
+
* still have higher priority.
|
|
229
|
+
*
|
|
230
|
+
* For client credential resolution that involves checking the AWS
|
|
231
|
+
* configuration file, the client's profile (this value) will be
|
|
232
|
+
* used unless a different profile is set in the credential
|
|
233
|
+
* provider options.
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
236
|
+
profile?: string;
|
|
219
237
|
/**
|
|
220
238
|
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
221
239
|
* @internal
|
|
@@ -148,6 +148,8 @@ declare const CopyDistributionCommand_base: {
|
|
|
148
148
|
* // },
|
|
149
149
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
150
150
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
151
|
+
* // OriginReadTimeout: Number("int"),
|
|
152
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
151
153
|
* // },
|
|
152
154
|
* // ConnectionAttempts: Number("int"),
|
|
153
155
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -78,6 +78,8 @@ declare const CreateDistributionCommand_base: {
|
|
|
78
78
|
* },
|
|
79
79
|
* VpcOriginConfig: { // VpcOriginConfig
|
|
80
80
|
* VpcOriginId: "STRING_VALUE", // required
|
|
81
|
+
* OriginReadTimeout: Number("int"),
|
|
82
|
+
* OriginKeepaliveTimeout: Number("int"),
|
|
81
83
|
* },
|
|
82
84
|
* ConnectionAttempts: Number("int"),
|
|
83
85
|
* ConnectionTimeout: Number("int"),
|
|
@@ -417,6 +419,8 @@ declare const CreateDistributionCommand_base: {
|
|
|
417
419
|
* // },
|
|
418
420
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
419
421
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
422
|
+
* // OriginReadTimeout: Number("int"),
|
|
423
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
420
424
|
* // },
|
|
421
425
|
* // ConnectionAttempts: Number("int"),
|
|
422
426
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -92,6 +92,8 @@ declare const CreateDistributionWithTagsCommand_base: {
|
|
|
92
92
|
* },
|
|
93
93
|
* VpcOriginConfig: { // VpcOriginConfig
|
|
94
94
|
* VpcOriginId: "STRING_VALUE", // required
|
|
95
|
+
* OriginReadTimeout: Number("int"),
|
|
96
|
+
* OriginKeepaliveTimeout: Number("int"),
|
|
95
97
|
* },
|
|
96
98
|
* ConnectionAttempts: Number("int"),
|
|
97
99
|
* ConnectionTimeout: Number("int"),
|
|
@@ -440,6 +442,8 @@ declare const CreateDistributionWithTagsCommand_base: {
|
|
|
440
442
|
* // },
|
|
441
443
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
442
444
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
445
|
+
* // OriginReadTimeout: Number("int"),
|
|
446
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
443
447
|
* // },
|
|
444
448
|
* // ConnectionAttempts: Number("int"),
|
|
445
449
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -120,6 +120,8 @@ declare const GetDistributionCommand_base: {
|
|
|
120
120
|
* // },
|
|
121
121
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
122
122
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
123
|
+
* // OriginReadTimeout: Number("int"),
|
|
124
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
123
125
|
* // },
|
|
124
126
|
* // ConnectionAttempts: Number("int"),
|
|
125
127
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -83,6 +83,8 @@ declare const GetDistributionConfigCommand_base: {
|
|
|
83
83
|
* // },
|
|
84
84
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
85
85
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
86
|
+
* // OriginReadTimeout: Number("int"),
|
|
87
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
86
88
|
* // },
|
|
87
89
|
* // ConnectionAttempts: Number("int"),
|
|
88
90
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -95,6 +95,8 @@ declare const ListDistributionsByAnycastIpListIdCommand_base: {
|
|
|
95
95
|
* // },
|
|
96
96
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
97
97
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
98
|
+
* // OriginReadTimeout: Number("int"),
|
|
99
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
98
100
|
* // },
|
|
99
101
|
* // ConnectionAttempts: Number("int"),
|
|
100
102
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -105,6 +105,8 @@ declare const ListDistributionsByRealtimeLogConfigCommand_base: {
|
|
|
105
105
|
* // },
|
|
106
106
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
107
107
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
108
|
+
* // OriginReadTimeout: Number("int"),
|
|
109
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
108
110
|
* // },
|
|
109
111
|
* // ConnectionAttempts: Number("int"),
|
|
110
112
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -95,6 +95,8 @@ declare const ListDistributionsByWebACLIdCommand_base: {
|
|
|
95
95
|
* // },
|
|
96
96
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
97
97
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
98
|
+
* // OriginReadTimeout: Number("int"),
|
|
99
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
98
100
|
* // },
|
|
99
101
|
* // ConnectionAttempts: Number("int"),
|
|
100
102
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -94,6 +94,8 @@ declare const ListDistributionsCommand_base: {
|
|
|
94
94
|
* // },
|
|
95
95
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
96
96
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
97
|
+
* // OriginReadTimeout: Number("int"),
|
|
98
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
97
99
|
* // },
|
|
98
100
|
* // ConnectionAttempts: Number("int"),
|
|
99
101
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -111,6 +111,8 @@ declare const UpdateDistributionCommand_base: {
|
|
|
111
111
|
* },
|
|
112
112
|
* VpcOriginConfig: { // VpcOriginConfig
|
|
113
113
|
* VpcOriginId: "STRING_VALUE", // required
|
|
114
|
+
* OriginReadTimeout: Number("int"),
|
|
115
|
+
* OriginKeepaliveTimeout: Number("int"),
|
|
114
116
|
* },
|
|
115
117
|
* ConnectionAttempts: Number("int"),
|
|
116
118
|
* ConnectionTimeout: Number("int"),
|
|
@@ -452,6 +454,8 @@ declare const UpdateDistributionCommand_base: {
|
|
|
452
454
|
* // },
|
|
453
455
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
454
456
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
457
|
+
* // OriginReadTimeout: Number("int"),
|
|
458
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
455
459
|
* // },
|
|
456
460
|
* // ConnectionAttempts: Number("int"),
|
|
457
461
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -144,6 +144,8 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
|
|
|
144
144
|
* // },
|
|
145
145
|
* // VpcOriginConfig: { // VpcOriginConfig
|
|
146
146
|
* // VpcOriginId: "STRING_VALUE", // required
|
|
147
|
+
* // OriginReadTimeout: Number("int"),
|
|
148
|
+
* // OriginKeepaliveTimeout: Number("int"),
|
|
147
149
|
* // },
|
|
148
150
|
* // ConnectionAttempts: Number("int"),
|
|
149
151
|
* // ConnectionTimeout: Number("int"),
|
|
@@ -2532,7 +2532,7 @@ export interface CustomOriginConfig {
|
|
|
2532
2532
|
* also known as the <i>origin response timeout</i>. The minimum timeout is 1
|
|
2533
2533
|
* second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is
|
|
2534
2534
|
* 30 seconds.</p>
|
|
2535
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout">
|
|
2535
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout">Response timeout (custom origins only)</a> in the
|
|
2536
2536
|
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
2537
2537
|
* @public
|
|
2538
2538
|
*/
|
|
@@ -2541,7 +2541,7 @@ export interface CustomOriginConfig {
|
|
|
2541
2541
|
* <p>Specifies how long, in seconds, CloudFront persists its connection to the origin. The
|
|
2542
2542
|
* minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't
|
|
2543
2543
|
* specify otherwise) is 5 seconds.</p>
|
|
2544
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout">
|
|
2544
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout">Keep-alive timeout (custom origins only)</a> in the
|
|
2545
2545
|
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
2546
2546
|
* @public
|
|
2547
2547
|
*/
|
|
@@ -2624,6 +2624,25 @@ export interface VpcOriginConfig {
|
|
|
2624
2624
|
* @public
|
|
2625
2625
|
*/
|
|
2626
2626
|
VpcOriginId: string | undefined;
|
|
2627
|
+
/**
|
|
2628
|
+
* <p>Specifies how long, in seconds, CloudFront waits for a response from the origin. This is
|
|
2629
|
+
* also known as the <i>origin response timeout</i>. The minimum timeout is 1
|
|
2630
|
+
* second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is
|
|
2631
|
+
* 30 seconds.</p>
|
|
2632
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout">Response timeout (custom origins only)</a> in the
|
|
2633
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
2634
|
+
* @public
|
|
2635
|
+
*/
|
|
2636
|
+
OriginReadTimeout?: number | undefined;
|
|
2637
|
+
/**
|
|
2638
|
+
* <p>Specifies how long, in seconds, CloudFront persists its connection to the origin. The
|
|
2639
|
+
* minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't
|
|
2640
|
+
* specify otherwise) is 5 seconds.</p>
|
|
2641
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout">Keep-alive timeout (custom origins only)</a> in the
|
|
2642
|
+
* <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
2643
|
+
* @public
|
|
2644
|
+
*/
|
|
2645
|
+
OriginKeepaliveTimeout?: number | undefined;
|
|
2627
2646
|
}
|
|
2628
2647
|
/**
|
|
2629
2648
|
* <p>An origin.</p>
|
|
@@ -3128,13 +3147,18 @@ export interface DistributionConfig {
|
|
|
3128
3147
|
*/
|
|
3129
3148
|
Aliases?: Aliases | undefined;
|
|
3130
3149
|
/**
|
|
3131
|
-
* <p>
|
|
3132
|
-
*
|
|
3133
|
-
*
|
|
3134
|
-
*
|
|
3135
|
-
*
|
|
3136
|
-
*
|
|
3137
|
-
* <code
|
|
3150
|
+
* <p>When a viewer requests the root URL for your distribution, the default root object is the
|
|
3151
|
+
* object that you want CloudFront to request from your origin. For example, if your root URL is
|
|
3152
|
+
* <code>https://www.example.com</code>, you can specify CloudFront to return the
|
|
3153
|
+
* <code>index.html</code> file as the default root object. You can specify a default
|
|
3154
|
+
* root object so that viewers see a specific file or object, instead of another object in
|
|
3155
|
+
* your distribution (for example,
|
|
3156
|
+
* <code>https://www.example.com/product-description.html</code>). A default root
|
|
3157
|
+
* object avoids exposing the contents of your distribution.</p>
|
|
3158
|
+
* <p>You can specify the object name or a path to the object name (for example,
|
|
3159
|
+
* <code>index.html</code> or <code>exampleFolderName/index.html</code>). Your string
|
|
3160
|
+
* can't begin with a forward slash (<code>/</code>). Only specify the object name or the
|
|
3161
|
+
* path to the object.</p>
|
|
3138
3162
|
* <p>If you don't want to specify a default root object when you create a distribution,
|
|
3139
3163
|
* include an empty <code>DefaultRootObject</code> element.</p>
|
|
3140
3164
|
* <p>To delete the default root object from an existing distribution, update the
|
|
@@ -3142,8 +3166,7 @@ export interface DistributionConfig {
|
|
|
3142
3166
|
* element.</p>
|
|
3143
3167
|
* <p>To replace the default root object, update the distribution configuration and specify
|
|
3144
3168
|
* the new object.</p>
|
|
3145
|
-
* <p>For more information about the default root object, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html">
|
|
3146
|
-
* Default Root Object</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
3169
|
+
* <p>For more information about the default root object, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DefaultRootObject.html">Specify a default root object</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
|
|
3147
3170
|
* @public
|
|
3148
3171
|
*/
|
|
3149
3172
|
DefaultRootObject?: string | undefined;
|
|
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
26
26
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
27
27
|
disableHostPrefix: boolean;
|
|
28
28
|
serviceId: string;
|
|
29
|
+
profile?: string | undefined;
|
|
29
30
|
logger: import("@smithy/types").Logger;
|
|
30
31
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
31
32
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
27
27
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
28
28
|
disableHostPrefix: boolean;
|
|
29
29
|
serviceId: string;
|
|
30
|
+
profile?: string | undefined;
|
|
30
31
|
logger: import("@smithy/types").Logger;
|
|
31
32
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
32
33
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
@@ -20,6 +20,7 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
20
20
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
22
22
|
region: string | import("@smithy/types").Provider<any>;
|
|
23
|
+
profile?: string | undefined;
|
|
23
24
|
defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
|
|
24
25
|
credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
|
|
25
26
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
@@ -803,6 +803,7 @@ export interface ClientDefaults
|
|
|
803
803
|
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
804
804
|
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
805
805
|
region?: string | __Provider<string>;
|
|
806
|
+
profile?: string;
|
|
806
807
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
807
808
|
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
808
809
|
maxAttempts?: number | __Provider<number>;
|
|
@@ -487,6 +487,8 @@ export interface S3OriginConfig {
|
|
|
487
487
|
}
|
|
488
488
|
export interface VpcOriginConfig {
|
|
489
489
|
VpcOriginId: string | undefined;
|
|
490
|
+
OriginReadTimeout?: number | undefined;
|
|
491
|
+
OriginKeepaliveTimeout?: number | undefined;
|
|
490
492
|
}
|
|
491
493
|
export interface Origin {
|
|
492
494
|
Id: string | undefined;
|
|
@@ -33,6 +33,7 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
33
33
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
34
34
|
disableHostPrefix: boolean;
|
|
35
35
|
serviceId: string;
|
|
36
|
+
profile?: string | undefined;
|
|
36
37
|
logger: import("@smithy/types").Logger;
|
|
37
38
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
38
39
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
@@ -38,6 +38,7 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
38
38
|
utf8Encoder: (input: string | Uint8Array) => string;
|
|
39
39
|
disableHostPrefix: boolean;
|
|
40
40
|
serviceId: string;
|
|
41
|
+
profile?: string | undefined;
|
|
41
42
|
logger: import("@smithy/types").Logger;
|
|
42
43
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
44
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
@@ -22,6 +22,7 @@ export declare const getRuntimeConfig: (config: CloudFrontClientConfig) => {
|
|
|
22
22
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
23
23
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
24
24
|
region: string | import("@smithy/types").Provider<any>;
|
|
25
|
+
profile?: string | undefined;
|
|
25
26
|
defaultUserAgentProvider: (
|
|
26
27
|
config?:
|
|
27
28
|
| import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudfront",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.714.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudfront",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.714.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.714.0",
|
|
25
|
+
"@aws-sdk/core": "3.714.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.714.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.714.0",
|
|
28
|
+
"@aws-sdk/middleware-logger": "3.714.0",
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.714.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.714.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.714.0",
|
|
32
|
+
"@aws-sdk/types": "3.714.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.714.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.714.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.714.0",
|
|
36
36
|
"@aws-sdk/xml-builder": "3.709.0",
|
|
37
37
|
"@smithy/config-resolver": "^3.0.13",
|
|
38
38
|
"@smithy/core": "^2.5.5",
|