@aws-sdk/client-cloudfront 3.937.0 → 3.939.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.
Files changed (112) hide show
  1. package/README.md +120 -0
  2. package/dist-cjs/index.js +977 -63
  3. package/dist-es/CloudFront.js +30 -0
  4. package/dist-es/commands/CreateConnectionFunctionCommand.js +16 -0
  5. package/dist-es/commands/CreateTrustStoreCommand.js +16 -0
  6. package/dist-es/commands/DeleteConnectionFunctionCommand.js +16 -0
  7. package/dist-es/commands/DeleteTrustStoreCommand.js +16 -0
  8. package/dist-es/commands/DescribeConnectionFunctionCommand.js +16 -0
  9. package/dist-es/commands/GetConnectionFunctionCommand.js +16 -0
  10. package/dist-es/commands/GetTrustStoreCommand.js +16 -0
  11. package/dist-es/commands/ListConnectionFunctionsCommand.js +16 -0
  12. package/dist-es/commands/ListDistributionsByConnectionFunctionCommand.js +16 -0
  13. package/dist-es/commands/ListDistributionsByTrustStoreCommand.js +16 -0
  14. package/dist-es/commands/ListTrustStoresCommand.js +16 -0
  15. package/dist-es/commands/PublishConnectionFunctionCommand.js +16 -0
  16. package/dist-es/commands/TestConnectionFunctionCommand.js +16 -0
  17. package/dist-es/commands/UpdateConnectionFunctionCommand.js +16 -0
  18. package/dist-es/commands/UpdateTrustStoreCommand.js +16 -0
  19. package/dist-es/commands/index.js +18 -3
  20. package/dist-es/models/enums.js +17 -8
  21. package/dist-es/models/errors.js +14 -14
  22. package/dist-es/pagination/ListConnectionFunctionsPaginator.js +4 -0
  23. package/dist-es/pagination/ListDistributionsByConnectionFunctionPaginator.js +4 -0
  24. package/dist-es/pagination/ListDistributionsByTrustStorePaginator.js +4 -0
  25. package/dist-es/pagination/ListTrustStoresPaginator.js +4 -0
  26. package/dist-es/pagination/index.js +4 -0
  27. package/dist-es/schemas/schemas_0.js +708 -27
  28. package/dist-types/CloudFront.d.ts +107 -0
  29. package/dist-types/CloudFrontClient.d.ts +17 -2
  30. package/dist-types/commands/CopyDistributionCommand.d.ts +11 -0
  31. package/dist-types/commands/CreateConnectionFunctionCommand.d.ts +138 -0
  32. package/dist-types/commands/CreateDistributionCommand.d.ts +22 -0
  33. package/dist-types/commands/CreateDistributionWithTagsCommand.d.ts +22 -0
  34. package/dist-types/commands/CreateTrustStoreCommand.d.ts +117 -0
  35. package/dist-types/commands/DeleteConnectionFunctionCommand.d.ts +94 -0
  36. package/dist-types/commands/DeleteTrustStoreCommand.d.ts +91 -0
  37. package/dist-types/commands/DescribeConnectionFunctionCommand.d.ts +108 -0
  38. package/dist-types/commands/GetConnectionFunctionCommand.d.ts +93 -0
  39. package/dist-types/commands/GetDistributionCommand.d.ts +11 -0
  40. package/dist-types/commands/GetDistributionConfigCommand.d.ts +11 -0
  41. package/dist-types/commands/GetManagedCertificateDetailsCommand.d.ts +2 -1
  42. package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +1 -1
  43. package/dist-types/commands/GetOriginAccessControlCommand.d.ts +1 -1
  44. package/dist-types/commands/GetOriginAccessControlConfigCommand.d.ts +1 -1
  45. package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +1 -1
  46. package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +1 -1
  47. package/dist-types/commands/GetPublicKeyCommand.d.ts +1 -1
  48. package/dist-types/commands/GetPublicKeyConfigCommand.d.ts +1 -1
  49. package/dist-types/commands/GetTrustStoreCommand.d.ts +92 -0
  50. package/dist-types/commands/ListConnectionFunctionsCommand.d.ts +108 -0
  51. package/dist-types/commands/ListDistributionsByAnycastIpListIdCommand.d.ts +11 -0
  52. package/dist-types/commands/ListDistributionsByConnectionFunctionCommand.d.ts +412 -0
  53. package/dist-types/commands/ListDistributionsByConnectionModeCommand.d.ts +11 -0
  54. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +11 -0
  55. package/dist-types/commands/ListDistributionsByTrustStoreCommand.d.ts +412 -0
  56. package/dist-types/commands/ListDistributionsByWebACLIdCommand.d.ts +11 -0
  57. package/dist-types/commands/ListDistributionsCommand.d.ts +11 -0
  58. package/dist-types/commands/ListTrustStoresCommand.d.ts +96 -0
  59. package/dist-types/commands/PublishConnectionFunctionCommand.d.ts +113 -0
  60. package/dist-types/commands/TestConnectionFunctionCommand.d.ts +123 -0
  61. package/dist-types/commands/UpdateConnectionFunctionCommand.d.ts +130 -0
  62. package/dist-types/commands/UpdateDistributionCommand.d.ts +22 -0
  63. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +11 -0
  64. package/dist-types/commands/UpdateTrustStoreCommand.d.ts +107 -0
  65. package/dist-types/commands/index.d.ts +18 -3
  66. package/dist-types/models/enums.d.ts +49 -24
  67. package/dist-types/models/errors.d.ts +13 -13
  68. package/dist-types/models/models_0.d.ts +440 -288
  69. package/dist-types/models/models_1.d.ts +601 -2
  70. package/dist-types/pagination/ListConnectionFunctionsPaginator.d.ts +7 -0
  71. package/dist-types/pagination/ListDistributionsByConnectionFunctionPaginator.d.ts +7 -0
  72. package/dist-types/pagination/ListDistributionsByTrustStorePaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListTrustStoresPaginator.d.ts +7 -0
  74. package/dist-types/pagination/index.d.ts +4 -0
  75. package/dist-types/schemas/schemas_0.d.ts +54 -0
  76. package/dist-types/ts3.4/CloudFront.d.ts +263 -0
  77. package/dist-types/ts3.4/CloudFrontClient.d.ts +90 -0
  78. package/dist-types/ts3.4/commands/CreateConnectionFunctionCommand.d.ts +51 -0
  79. package/dist-types/ts3.4/commands/CreateTrustStoreCommand.d.ts +50 -0
  80. package/dist-types/ts3.4/commands/DeleteConnectionFunctionCommand.d.ts +47 -0
  81. package/dist-types/ts3.4/commands/DeleteTrustStoreCommand.d.ts +45 -0
  82. package/dist-types/ts3.4/commands/DescribeConnectionFunctionCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/GetConnectionFunctionCommand.d.ts +58 -0
  84. package/dist-types/ts3.4/commands/GetManagedCertificateDetailsCommand.d.ts +2 -4
  85. package/dist-types/ts3.4/commands/GetMonitoringSubscriptionCommand.d.ts +1 -1
  86. package/dist-types/ts3.4/commands/GetOriginAccessControlCommand.d.ts +1 -1
  87. package/dist-types/ts3.4/commands/GetOriginAccessControlConfigCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/GetOriginRequestPolicyCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/GetOriginRequestPolicyConfigCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/GetPublicKeyConfigCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/GetTrustStoreCommand.d.ts +47 -0
  93. package/dist-types/ts3.4/commands/ListConnectionFunctionsCommand.d.ts +51 -0
  94. package/dist-types/ts3.4/commands/ListDistributionsByConnectionFunctionCommand.d.ts +51 -0
  95. package/dist-types/ts3.4/commands/ListDistributionsByTrustStoreCommand.d.ts +51 -0
  96. package/dist-types/ts3.4/commands/ListTrustStoresCommand.d.ts +50 -0
  97. package/dist-types/ts3.4/commands/PublishConnectionFunctionCommand.d.ts +51 -0
  98. package/dist-types/ts3.4/commands/TestConnectionFunctionCommand.d.ts +51 -0
  99. package/dist-types/ts3.4/commands/UpdateConnectionFunctionCommand.d.ts +51 -0
  100. package/dist-types/ts3.4/commands/UpdateTrustStoreCommand.d.ts +50 -0
  101. package/dist-types/ts3.4/commands/index.d.ts +18 -3
  102. package/dist-types/ts3.4/models/enums.d.ts +24 -11
  103. package/dist-types/ts3.4/models/errors.d.ts +8 -8
  104. package/dist-types/ts3.4/models/models_0.d.ts +117 -75
  105. package/dist-types/ts3.4/models/models_1.d.ts +165 -0
  106. package/dist-types/ts3.4/pagination/ListConnectionFunctionsPaginator.d.ts +11 -0
  107. package/dist-types/ts3.4/pagination/ListDistributionsByConnectionFunctionPaginator.d.ts +11 -0
  108. package/dist-types/ts3.4/pagination/ListDistributionsByTrustStorePaginator.d.ts +11 -0
  109. package/dist-types/ts3.4/pagination/ListTrustStoresPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  111. package/dist-types/ts3.4/schemas/schemas_0.d.ts +54 -0
  112. package/package.json +2 -2
@@ -0,0 +1,123 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { TestConnectionFunctionRequest, TestConnectionFunctionResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link TestConnectionFunctionCommand}.
14
+ */
15
+ export interface TestConnectionFunctionCommandInput extends TestConnectionFunctionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TestConnectionFunctionCommand}.
21
+ */
22
+ export interface TestConnectionFunctionCommandOutput extends TestConnectionFunctionResult, __MetadataBearer {
23
+ }
24
+ declare const TestConnectionFunctionCommand_base: {
25
+ new (input: TestConnectionFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<TestConnectionFunctionCommandInput, TestConnectionFunctionCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: TestConnectionFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<TestConnectionFunctionCommandInput, TestConnectionFunctionCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Tests a connection function.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, TestConnectionFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, TestConnectionFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // TestConnectionFunctionRequest
40
+ * Id: "STRING_VALUE", // required
41
+ * IfMatch: "STRING_VALUE", // required
42
+ * Stage: "DEVELOPMENT" || "LIVE",
43
+ * ConnectionObject: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
44
+ * };
45
+ * const command = new TestConnectionFunctionCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // TestConnectionFunctionResult
48
+ * // ConnectionFunctionTestResult: { // ConnectionFunctionTestResult
49
+ * // ConnectionFunctionSummary: { // ConnectionFunctionSummary
50
+ * // Name: "STRING_VALUE", // required
51
+ * // Id: "STRING_VALUE", // required
52
+ * // ConnectionFunctionConfig: { // FunctionConfig
53
+ * // Comment: "STRING_VALUE", // required
54
+ * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
55
+ * // KeyValueStoreAssociations: { // KeyValueStoreAssociations
56
+ * // Quantity: Number("int"), // required
57
+ * // Items: [ // KeyValueStoreAssociationList
58
+ * // { // KeyValueStoreAssociation
59
+ * // KeyValueStoreARN: "STRING_VALUE", // required
60
+ * // },
61
+ * // ],
62
+ * // },
63
+ * // },
64
+ * // ConnectionFunctionArn: "STRING_VALUE", // required
65
+ * // Status: "STRING_VALUE", // required
66
+ * // Stage: "DEVELOPMENT" || "LIVE", // required
67
+ * // CreatedTime: new Date("TIMESTAMP"), // required
68
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
69
+ * // },
70
+ * // ComputeUtilization: "STRING_VALUE",
71
+ * // ConnectionFunctionExecutionLogs: [ // FunctionExecutionLogList
72
+ * // "STRING_VALUE",
73
+ * // ],
74
+ * // ConnectionFunctionErrorMessage: "STRING_VALUE",
75
+ * // ConnectionFunctionOutput: "STRING_VALUE",
76
+ * // },
77
+ * // };
78
+ *
79
+ * ```
80
+ *
81
+ * @param TestConnectionFunctionCommandInput - {@link TestConnectionFunctionCommandInput}
82
+ * @returns {@link TestConnectionFunctionCommandOutput}
83
+ * @see {@link TestConnectionFunctionCommandInput} for command's `input` shape.
84
+ * @see {@link TestConnectionFunctionCommandOutput} for command's `response` shape.
85
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
86
+ *
87
+ * @throws {@link EntityNotFound} (client fault)
88
+ * <p>The entity was not found.</p>
89
+ *
90
+ * @throws {@link InvalidArgument} (client fault)
91
+ * <p>An argument is invalid.</p>
92
+ *
93
+ * @throws {@link InvalidIfMatchVersion} (client fault)
94
+ * <p>The <code>If-Match</code> version is missing or not valid.</p>
95
+ *
96
+ * @throws {@link PreconditionFailed} (client fault)
97
+ * <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
98
+ *
99
+ * @throws {@link TestFunctionFailed} (server fault)
100
+ * <p>The CloudFront function failed.</p>
101
+ *
102
+ * @throws {@link UnsupportedOperation} (client fault)
103
+ * <p>This operation is not supported in this Amazon Web Services Region.</p>
104
+ *
105
+ * @throws {@link CloudFrontServiceException}
106
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
107
+ *
108
+ *
109
+ * @public
110
+ */
111
+ export declare class TestConnectionFunctionCommand extends TestConnectionFunctionCommand_base {
112
+ /** @internal type navigation helper, not in runtime. */
113
+ protected static __types: {
114
+ api: {
115
+ input: TestConnectionFunctionRequest;
116
+ output: TestConnectionFunctionResult;
117
+ };
118
+ sdk: {
119
+ input: TestConnectionFunctionCommandInput;
120
+ output: TestConnectionFunctionCommandOutput;
121
+ };
122
+ };
123
+ }
@@ -0,0 +1,130 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { UpdateConnectionFunctionRequest, UpdateConnectionFunctionResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateConnectionFunctionCommand}.
14
+ */
15
+ export interface UpdateConnectionFunctionCommandInput extends UpdateConnectionFunctionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateConnectionFunctionCommand}.
21
+ */
22
+ export interface UpdateConnectionFunctionCommandOutput extends UpdateConnectionFunctionResult, __MetadataBearer {
23
+ }
24
+ declare const UpdateConnectionFunctionCommand_base: {
25
+ new (input: UpdateConnectionFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConnectionFunctionCommandInput, UpdateConnectionFunctionCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateConnectionFunctionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateConnectionFunctionCommandInput, UpdateConnectionFunctionCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a connection function.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, UpdateConnectionFunctionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, UpdateConnectionFunctionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // UpdateConnectionFunctionRequest
40
+ * Id: "STRING_VALUE", // required
41
+ * IfMatch: "STRING_VALUE", // required
42
+ * ConnectionFunctionConfig: { // FunctionConfig
43
+ * Comment: "STRING_VALUE", // required
44
+ * Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
45
+ * KeyValueStoreAssociations: { // KeyValueStoreAssociations
46
+ * Quantity: Number("int"), // required
47
+ * Items: [ // KeyValueStoreAssociationList
48
+ * { // KeyValueStoreAssociation
49
+ * KeyValueStoreARN: "STRING_VALUE", // required
50
+ * },
51
+ * ],
52
+ * },
53
+ * },
54
+ * ConnectionFunctionCode: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
55
+ * };
56
+ * const command = new UpdateConnectionFunctionCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // UpdateConnectionFunctionResult
59
+ * // ConnectionFunctionSummary: { // ConnectionFunctionSummary
60
+ * // Name: "STRING_VALUE", // required
61
+ * // Id: "STRING_VALUE", // required
62
+ * // ConnectionFunctionConfig: { // FunctionConfig
63
+ * // Comment: "STRING_VALUE", // required
64
+ * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
65
+ * // KeyValueStoreAssociations: { // KeyValueStoreAssociations
66
+ * // Quantity: Number("int"), // required
67
+ * // Items: [ // KeyValueStoreAssociationList
68
+ * // { // KeyValueStoreAssociation
69
+ * // KeyValueStoreARN: "STRING_VALUE", // required
70
+ * // },
71
+ * // ],
72
+ * // },
73
+ * // },
74
+ * // ConnectionFunctionArn: "STRING_VALUE", // required
75
+ * // Status: "STRING_VALUE", // required
76
+ * // Stage: "DEVELOPMENT" || "LIVE", // required
77
+ * // CreatedTime: new Date("TIMESTAMP"), // required
78
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
79
+ * // },
80
+ * // ETag: "STRING_VALUE",
81
+ * // };
82
+ *
83
+ * ```
84
+ *
85
+ * @param UpdateConnectionFunctionCommandInput - {@link UpdateConnectionFunctionCommandInput}
86
+ * @returns {@link UpdateConnectionFunctionCommandOutput}
87
+ * @see {@link UpdateConnectionFunctionCommandInput} for command's `input` shape.
88
+ * @see {@link UpdateConnectionFunctionCommandOutput} for command's `response` shape.
89
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
90
+ *
91
+ * @throws {@link AccessDenied} (client fault)
92
+ * <p>Access denied.</p>
93
+ *
94
+ * @throws {@link EntityNotFound} (client fault)
95
+ * <p>The entity was not found.</p>
96
+ *
97
+ * @throws {@link EntitySizeLimitExceeded} (client fault)
98
+ * <p>The entity size limit was exceeded.</p>
99
+ *
100
+ * @throws {@link InvalidArgument} (client fault)
101
+ * <p>An argument is invalid.</p>
102
+ *
103
+ * @throws {@link InvalidIfMatchVersion} (client fault)
104
+ * <p>The <code>If-Match</code> version is missing or not valid.</p>
105
+ *
106
+ * @throws {@link PreconditionFailed} (client fault)
107
+ * <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
108
+ *
109
+ * @throws {@link UnsupportedOperation} (client fault)
110
+ * <p>This operation is not supported in this Amazon Web Services Region.</p>
111
+ *
112
+ * @throws {@link CloudFrontServiceException}
113
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
114
+ *
115
+ *
116
+ * @public
117
+ */
118
+ export declare class UpdateConnectionFunctionCommand extends UpdateConnectionFunctionCommand_base {
119
+ /** @internal type navigation helper, not in runtime. */
120
+ protected static __types: {
121
+ api: {
122
+ input: UpdateConnectionFunctionRequest;
123
+ output: UpdateConnectionFunctionResult;
124
+ };
125
+ sdk: {
126
+ input: UpdateConnectionFunctionCommandInput;
127
+ output: UpdateConnectionFunctionCommandOutput;
128
+ };
129
+ };
130
+ }
@@ -355,6 +355,17 @@ declare const UpdateDistributionCommand_base: {
355
355
  * ],
356
356
  * },
357
357
  * ConnectionMode: "direct" || "tenant-only",
358
+ * ViewerMtlsConfig: { // ViewerMtlsConfig
359
+ * Mode: "required" || "optional",
360
+ * TrustStoreConfig: { // TrustStoreConfig
361
+ * TrustStoreId: "STRING_VALUE", // required
362
+ * AdvertiseTrustStoreCaNames: true || false,
363
+ * IgnoreCertificateExpiry: true || false,
364
+ * },
365
+ * },
366
+ * ConnectionFunctionAssociation: { // ConnectionFunctionAssociation
367
+ * Id: "STRING_VALUE", // required
368
+ * },
358
369
  * },
359
370
  * Id: "STRING_VALUE", // required
360
371
  * IfMatch: "STRING_VALUE",
@@ -717,6 +728,17 @@ declare const UpdateDistributionCommand_base: {
717
728
  * // ],
718
729
  * // },
719
730
  * // ConnectionMode: "direct" || "tenant-only",
731
+ * // ViewerMtlsConfig: { // ViewerMtlsConfig
732
+ * // Mode: "required" || "optional",
733
+ * // TrustStoreConfig: { // TrustStoreConfig
734
+ * // TrustStoreId: "STRING_VALUE", // required
735
+ * // AdvertiseTrustStoreCaNames: true || false,
736
+ * // IgnoreCertificateExpiry: true || false,
737
+ * // },
738
+ * // },
739
+ * // ConnectionFunctionAssociation: { // ConnectionFunctionAssociation
740
+ * // Id: "STRING_VALUE", // required
741
+ * // },
720
742
  * // },
721
743
  * // AliasICPRecordals: [ // AliasICPRecordals
722
744
  * // { // AliasICPRecordal
@@ -399,6 +399,17 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
399
399
  * // ],
400
400
  * // },
401
401
  * // ConnectionMode: "direct" || "tenant-only",
402
+ * // ViewerMtlsConfig: { // ViewerMtlsConfig
403
+ * // Mode: "required" || "optional",
404
+ * // TrustStoreConfig: { // TrustStoreConfig
405
+ * // TrustStoreId: "STRING_VALUE", // required
406
+ * // AdvertiseTrustStoreCaNames: true || false,
407
+ * // IgnoreCertificateExpiry: true || false,
408
+ * // },
409
+ * // },
410
+ * // ConnectionFunctionAssociation: { // ConnectionFunctionAssociation
411
+ * // Id: "STRING_VALUE", // required
412
+ * // },
402
413
  * // },
403
414
  * // AliasICPRecordals: [ // AliasICPRecordals
404
415
  * // { // AliasICPRecordal
@@ -0,0 +1,107 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { UpdateTrustStoreRequest, UpdateTrustStoreResult } from "../models/models_1";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateTrustStoreCommand}.
14
+ */
15
+ export interface UpdateTrustStoreCommandInput extends UpdateTrustStoreRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateTrustStoreCommand}.
21
+ */
22
+ export interface UpdateTrustStoreCommandOutput extends UpdateTrustStoreResult, __MetadataBearer {
23
+ }
24
+ declare const UpdateTrustStoreCommand_base: {
25
+ new (input: UpdateTrustStoreCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTrustStoreCommandInput, UpdateTrustStoreCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateTrustStoreCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateTrustStoreCommandInput, UpdateTrustStoreCommandOutput, CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a trust store.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { CloudFrontClient, UpdateTrustStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
35
+ * // const { CloudFrontClient, UpdateTrustStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
36
+ * // import type { CloudFrontClientConfig } from "@aws-sdk/client-cloudfront";
37
+ * const config = {}; // type is CloudFrontClientConfig
38
+ * const client = new CloudFrontClient(config);
39
+ * const input = { // UpdateTrustStoreRequest
40
+ * Id: "STRING_VALUE", // required
41
+ * CaCertificatesBundleSource: { // CaCertificatesBundleSource Union: only one key present
42
+ * CaCertificatesBundleS3Location: { // CaCertificatesBundleS3Location
43
+ * Bucket: "STRING_VALUE", // required
44
+ * Key: "STRING_VALUE", // required
45
+ * Region: "STRING_VALUE", // required
46
+ * Version: "STRING_VALUE",
47
+ * },
48
+ * },
49
+ * IfMatch: "STRING_VALUE", // required
50
+ * };
51
+ * const command = new UpdateTrustStoreCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // UpdateTrustStoreResult
54
+ * // TrustStore: { // TrustStore
55
+ * // Id: "STRING_VALUE",
56
+ * // Arn: "STRING_VALUE",
57
+ * // Name: "STRING_VALUE",
58
+ * // Status: "pending" || "active" || "failed",
59
+ * // NumberOfCaCertificates: Number("int"),
60
+ * // LastModifiedTime: new Date("TIMESTAMP"),
61
+ * // Reason: "STRING_VALUE",
62
+ * // },
63
+ * // ETag: "STRING_VALUE",
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param UpdateTrustStoreCommandInput - {@link UpdateTrustStoreCommandInput}
69
+ * @returns {@link UpdateTrustStoreCommandOutput}
70
+ * @see {@link UpdateTrustStoreCommandInput} for command's `input` shape.
71
+ * @see {@link UpdateTrustStoreCommandOutput} for command's `response` shape.
72
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
73
+ *
74
+ * @throws {@link AccessDenied} (client fault)
75
+ * <p>Access denied.</p>
76
+ *
77
+ * @throws {@link EntityNotFound} (client fault)
78
+ * <p>The entity was not found.</p>
79
+ *
80
+ * @throws {@link InvalidArgument} (client fault)
81
+ * <p>An argument is invalid.</p>
82
+ *
83
+ * @throws {@link InvalidIfMatchVersion} (client fault)
84
+ * <p>The <code>If-Match</code> version is missing or not valid.</p>
85
+ *
86
+ * @throws {@link PreconditionFailed} (client fault)
87
+ * <p>The precondition in one or more of the request fields evaluated to <code>false</code>.</p>
88
+ *
89
+ * @throws {@link CloudFrontServiceException}
90
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
91
+ *
92
+ *
93
+ * @public
94
+ */
95
+ export declare class UpdateTrustStoreCommand extends UpdateTrustStoreCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: UpdateTrustStoreRequest;
100
+ output: UpdateTrustStoreResult;
101
+ };
102
+ sdk: {
103
+ input: UpdateTrustStoreCommandInput;
104
+ output: UpdateTrustStoreCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -5,6 +5,7 @@ export * from "./CopyDistributionCommand";
5
5
  export * from "./CreateAnycastIpListCommand";
6
6
  export * from "./CreateCachePolicyCommand";
7
7
  export * from "./CreateCloudFrontOriginAccessIdentityCommand";
8
+ export * from "./CreateConnectionFunctionCommand";
8
9
  export * from "./CreateConnectionGroupCommand";
9
10
  export * from "./CreateContinuousDeploymentPolicyCommand";
10
11
  export * from "./CreateDistributionCommand";
@@ -25,10 +26,12 @@ export * from "./CreateRealtimeLogConfigCommand";
25
26
  export * from "./CreateResponseHeadersPolicyCommand";
26
27
  export * from "./CreateStreamingDistributionCommand";
27
28
  export * from "./CreateStreamingDistributionWithTagsCommand";
29
+ export * from "./CreateTrustStoreCommand";
28
30
  export * from "./CreateVpcOriginCommand";
29
31
  export * from "./DeleteAnycastIpListCommand";
30
32
  export * from "./DeleteCachePolicyCommand";
31
33
  export * from "./DeleteCloudFrontOriginAccessIdentityCommand";
34
+ export * from "./DeleteConnectionFunctionCommand";
32
35
  export * from "./DeleteConnectionGroupCommand";
33
36
  export * from "./DeleteContinuousDeploymentPolicyCommand";
34
37
  export * from "./DeleteDistributionCommand";
@@ -46,7 +49,9 @@ export * from "./DeleteRealtimeLogConfigCommand";
46
49
  export * from "./DeleteResourcePolicyCommand";
47
50
  export * from "./DeleteResponseHeadersPolicyCommand";
48
51
  export * from "./DeleteStreamingDistributionCommand";
52
+ export * from "./DeleteTrustStoreCommand";
49
53
  export * from "./DeleteVpcOriginCommand";
54
+ export * from "./DescribeConnectionFunctionCommand";
50
55
  export * from "./DescribeFunctionCommand";
51
56
  export * from "./DescribeKeyValueStoreCommand";
52
57
  export * from "./DisassociateDistributionTenantWebACLCommand";
@@ -56,6 +61,7 @@ export * from "./GetCachePolicyCommand";
56
61
  export * from "./GetCachePolicyConfigCommand";
57
62
  export * from "./GetCloudFrontOriginAccessIdentityCommand";
58
63
  export * from "./GetCloudFrontOriginAccessIdentityConfigCommand";
64
+ export * from "./GetConnectionFunctionCommand";
59
65
  export * from "./GetConnectionGroupByRoutingEndpointCommand";
60
66
  export * from "./GetConnectionGroupCommand";
61
67
  export * from "./GetContinuousDeploymentPolicyCommand";
@@ -87,24 +93,28 @@ export * from "./GetResponseHeadersPolicyCommand";
87
93
  export * from "./GetResponseHeadersPolicyConfigCommand";
88
94
  export * from "./GetStreamingDistributionCommand";
89
95
  export * from "./GetStreamingDistributionConfigCommand";
96
+ export * from "./GetTrustStoreCommand";
90
97
  export * from "./GetVpcOriginCommand";
91
98
  export * from "./ListAnycastIpListsCommand";
92
99
  export * from "./ListCachePoliciesCommand";
93
100
  export * from "./ListCloudFrontOriginAccessIdentitiesCommand";
94
101
  export * from "./ListConflictingAliasesCommand";
102
+ export * from "./ListConnectionFunctionsCommand";
95
103
  export * from "./ListConnectionGroupsCommand";
96
104
  export * from "./ListContinuousDeploymentPoliciesCommand";
97
105
  export * from "./ListDistributionsByAnycastIpListIdCommand";
98
- export * from "./ListDistributionTenantsCommand";
99
106
  export * from "./ListDistributionsByCachePolicyIdCommand";
100
- export * from "./ListDistributionTenantsByCustomizationCommand";
107
+ export * from "./ListDistributionsByConnectionFunctionCommand";
108
+ export * from "./ListDistributionTenantsCommand";
101
109
  export * from "./ListDistributionsByConnectionModeCommand";
110
+ export * from "./ListDistributionTenantsByCustomizationCommand";
102
111
  export * from "./ListDistributionsByKeyGroupCommand";
103
112
  export * from "./ListDistributionsByOriginRequestPolicyIdCommand";
104
113
  export * from "./ListDistributionsByOwnedResourceCommand";
105
114
  export * from "./ListDistributionsByRealtimeLogConfigCommand";
106
- export * from "./ListDistributionsByResponseHeadersPolicyIdCommand";
107
115
  export * from "./ListDistributionsCommand";
116
+ export * from "./ListDistributionsByResponseHeadersPolicyIdCommand";
117
+ export * from "./ListDistributionsByTrustStoreCommand";
108
118
  export * from "./ListDistributionsByVpcOriginIdCommand";
109
119
  export * from "./ListDistributionsByWebACLIdCommand";
110
120
  export * from "./ListDomainConflictsCommand";
@@ -122,15 +132,19 @@ export * from "./ListRealtimeLogConfigsCommand";
122
132
  export * from "./ListResponseHeadersPoliciesCommand";
123
133
  export * from "./ListStreamingDistributionsCommand";
124
134
  export * from "./ListTagsForResourceCommand";
135
+ export * from "./ListTrustStoresCommand";
125
136
  export * from "./ListVpcOriginsCommand";
137
+ export * from "./PublishConnectionFunctionCommand";
126
138
  export * from "./PublishFunctionCommand";
127
139
  export * from "./PutResourcePolicyCommand";
128
140
  export * from "./TagResourceCommand";
141
+ export * from "./TestConnectionFunctionCommand";
129
142
  export * from "./TestFunctionCommand";
130
143
  export * from "./UntagResourceCommand";
131
144
  export * from "./UpdateAnycastIpListCommand";
132
145
  export * from "./UpdateCachePolicyCommand";
133
146
  export * from "./UpdateCloudFrontOriginAccessIdentityCommand";
147
+ export * from "./UpdateConnectionFunctionCommand";
134
148
  export * from "./UpdateConnectionGroupCommand";
135
149
  export * from "./UpdateContinuousDeploymentPolicyCommand";
136
150
  export * from "./UpdateDistributionCommand";
@@ -148,5 +162,6 @@ export * from "./UpdatePublicKeyCommand";
148
162
  export * from "./UpdateRealtimeLogConfigCommand";
149
163
  export * from "./UpdateResponseHeadersPolicyCommand";
150
164
  export * from "./UpdateStreamingDistributionCommand";
165
+ export * from "./UpdateTrustStoreCommand";
151
166
  export * from "./UpdateVpcOriginCommand";
152
167
  export * from "./VerifyDnsConfigurationCommand";
@@ -322,6 +322,42 @@ export declare const SSLSupportMethod: {
322
322
  * @public
323
323
  */
324
324
  export type SSLSupportMethod = (typeof SSLSupportMethod)[keyof typeof SSLSupportMethod];
325
+ /**
326
+ * @public
327
+ * @enum
328
+ */
329
+ export declare const ViewerMtlsMode: {
330
+ readonly Optional: "optional";
331
+ readonly Required: "required";
332
+ };
333
+ /**
334
+ * @public
335
+ */
336
+ export type ViewerMtlsMode = (typeof ViewerMtlsMode)[keyof typeof ViewerMtlsMode];
337
+ /**
338
+ * @public
339
+ * @enum
340
+ */
341
+ export declare const FunctionRuntime: {
342
+ readonly cloudfront_js_1_0: "cloudfront-js-1.0";
343
+ readonly cloudfront_js_2_0: "cloudfront-js-2.0";
344
+ };
345
+ /**
346
+ * @public
347
+ */
348
+ export type FunctionRuntime = (typeof FunctionRuntime)[keyof typeof FunctionRuntime];
349
+ /**
350
+ * @public
351
+ * @enum
352
+ */
353
+ export declare const FunctionStage: {
354
+ readonly DEVELOPMENT: "DEVELOPMENT";
355
+ readonly LIVE: "LIVE";
356
+ };
357
+ /**
358
+ * @public
359
+ */
360
+ export type FunctionStage = (typeof FunctionStage)[keyof typeof FunctionStage];
325
361
  /**
326
362
  * @public
327
363
  * @enum
@@ -381,30 +417,6 @@ export declare const Format: {
381
417
  * @public
382
418
  */
383
419
  export type Format = (typeof Format)[keyof typeof Format];
384
- /**
385
- * @public
386
- * @enum
387
- */
388
- export declare const FunctionRuntime: {
389
- readonly cloudfront_js_1_0: "cloudfront-js-1.0";
390
- readonly cloudfront_js_2_0: "cloudfront-js-2.0";
391
- };
392
- /**
393
- * @public
394
- */
395
- export type FunctionRuntime = (typeof FunctionRuntime)[keyof typeof FunctionRuntime];
396
- /**
397
- * @public
398
- * @enum
399
- */
400
- export declare const FunctionStage: {
401
- readonly DEVELOPMENT: "DEVELOPMENT";
402
- readonly LIVE: "LIVE";
403
- };
404
- /**
405
- * @public
406
- */
407
- export type FunctionStage = (typeof FunctionStage)[keyof typeof FunctionStage];
408
420
  /**
409
421
  * @public
410
422
  * @enum
@@ -539,6 +551,19 @@ export declare const ReferrerPolicyList: {
539
551
  * @public
540
552
  */
541
553
  export type ReferrerPolicyList = (typeof ReferrerPolicyList)[keyof typeof ReferrerPolicyList];
554
+ /**
555
+ * @public
556
+ * @enum
557
+ */
558
+ export declare const TrustStoreStatus: {
559
+ readonly Active: "active";
560
+ readonly Failed: "failed";
561
+ readonly Pending: "pending";
562
+ };
563
+ /**
564
+ * @public
565
+ */
566
+ export type TrustStoreStatus = (typeof TrustStoreStatus)[keyof typeof TrustStoreStatus];
542
567
  /**
543
568
  * @public
544
569
  * @enum
@@ -1066,6 +1066,19 @@ export declare class TooManyCloudFrontOriginAccessIdentities extends __BaseExcep
1066
1066
  */
1067
1067
  constructor(opts: __ExceptionOptionType<TooManyCloudFrontOriginAccessIdentities, __BaseException>);
1068
1068
  }
1069
+ /**
1070
+ * <p>The entity size limit was exceeded.</p>
1071
+ * @public
1072
+ */
1073
+ export declare class EntitySizeLimitExceeded extends __BaseException {
1074
+ readonly name: "EntitySizeLimitExceeded";
1075
+ readonly $fault: "client";
1076
+ Message?: string | undefined;
1077
+ /**
1078
+ * @internal
1079
+ */
1080
+ constructor(opts: __ExceptionOptionType<EntitySizeLimitExceeded, __BaseException>);
1081
+ }
1069
1082
  /**
1070
1083
  * <p>A continuous deployment policy with this configuration already exists.</p>
1071
1084
  * @public
@@ -1417,19 +1430,6 @@ export declare class TooManyPublicKeysInKeyGroup extends __BaseException {
1417
1430
  */
1418
1431
  constructor(opts: __ExceptionOptionType<TooManyPublicKeysInKeyGroup, __BaseException>);
1419
1432
  }
1420
- /**
1421
- * <p>The entity size limit was exceeded.</p>
1422
- * @public
1423
- */
1424
- export declare class EntitySizeLimitExceeded extends __BaseException {
1425
- readonly name: "EntitySizeLimitExceeded";
1426
- readonly $fault: "client";
1427
- Message?: string | undefined;
1428
- /**
1429
- * @internal
1430
- */
1431
- constructor(opts: __ExceptionOptionType<EntitySizeLimitExceeded, __BaseException>);
1432
- }
1433
1433
  /**
1434
1434
  * <p>A monitoring subscription already exists for the specified distribution.</p>
1435
1435
  * @public