@aws-sdk/client-s3outposts 3.34.0 → 3.37.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 (130) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/S3Outposts.js +1 -5
  3. package/{dist/cjs → dist-cjs}/S3OutpostsClient.js +8 -17
  4. package/dist-cjs/commands/CreateEndpointCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteEndpointCommand.js +36 -0
  6. package/dist-cjs/commands/ListEndpointsCommand.js +36 -0
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -37
  11. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  12. package/{dist/cjs → dist-cjs}/pagination/ListEndpointsPaginator.js +1 -12
  13. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +3 -9
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  18. package/{dist/es → dist-es}/S3Outposts.js +1 -2
  19. package/{dist/es → dist-es}/S3OutpostsClient.js +1 -2
  20. package/{dist/es → dist-es}/commands/CreateEndpointCommand.js +2 -3
  21. package/{dist/es → dist-es}/commands/DeleteEndpointCommand.js +2 -3
  22. package/{dist/es → dist-es}/commands/ListEndpointsCommand.js +2 -3
  23. package/{dist/es → dist-es}/endpoints.js +1 -2
  24. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  25. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  26. package/{dist/es → dist-es}/models/models_0.js +0 -1
  27. package/dist-es/pagination/Interfaces.js +1 -0
  28. package/{dist/es → dist-es}/pagination/ListEndpointsPaginator.js +1 -2
  29. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
  30. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  31. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  32. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  33. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  34. package/{dist/types → dist-types}/S3Outposts.d.ts +2 -2
  35. package/{dist/types → dist-types}/S3OutpostsClient.d.ts +4 -4
  36. package/{dist/types → dist-types}/commands/CreateEndpointCommand.d.ts +3 -3
  37. package/{dist/types → dist-types}/commands/DeleteEndpointCommand.d.ts +3 -3
  38. package/{dist/types → dist-types}/commands/ListEndpointsCommand.d.ts +3 -3
  39. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  40. package/{index.ts → dist-types/index.d.ts} +0 -0
  41. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  42. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  43. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  44. package/{dist/types → dist-types}/pagination/ListEndpointsPaginator.d.ts +1 -1
  45. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  46. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  47. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  48. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  49. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  50. package/dist-types/ts3.4/S3Outposts.d.ts +20 -0
  51. package/dist-types/ts3.4/S3OutpostsClient.d.ts +70 -0
  52. package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +17 -0
  55. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  57. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +152 -0
  59. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  60. package/{dist/types → dist-types}/ts3.4/pagination/ListEndpointsPaginator.d.ts +1 -1
  61. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  62. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  63. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  64. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  65. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  66. package/package.json +45 -42
  67. package/S3Outposts.ts +0 -179
  68. package/S3OutpostsClient.ts +0 -238
  69. package/commands/CreateEndpointCommand.ts +0 -115
  70. package/commands/DeleteEndpointCommand.ts +0 -115
  71. package/commands/ListEndpointsCommand.ts +0 -113
  72. package/dist/cjs/S3Outposts.js.map +0 -1
  73. package/dist/cjs/S3OutpostsClient.js.map +0 -1
  74. package/dist/cjs/commands/CreateEndpointCommand.js +0 -82
  75. package/dist/cjs/commands/CreateEndpointCommand.js.map +0 -1
  76. package/dist/cjs/commands/DeleteEndpointCommand.js +0 -82
  77. package/dist/cjs/commands/DeleteEndpointCommand.js.map +0 -1
  78. package/dist/cjs/commands/ListEndpointsCommand.js +0 -80
  79. package/dist/cjs/commands/ListEndpointsCommand.js.map +0 -1
  80. package/dist/cjs/endpoints.js.map +0 -1
  81. package/dist/cjs/index.js.map +0 -1
  82. package/dist/cjs/models/index.js.map +0 -1
  83. package/dist/cjs/models/models_0.js.map +0 -1
  84. package/dist/cjs/package.json +0 -91
  85. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  86. package/dist/cjs/pagination/ListEndpointsPaginator.js.map +0 -1
  87. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  88. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  89. package/dist/cjs/runtimeConfig.js.map +0 -1
  90. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  91. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  92. package/dist/es/S3Outposts.js.map +0 -1
  93. package/dist/es/S3OutpostsClient.js.map +0 -1
  94. package/dist/es/commands/CreateEndpointCommand.js.map +0 -1
  95. package/dist/es/commands/DeleteEndpointCommand.js.map +0 -1
  96. package/dist/es/commands/ListEndpointsCommand.js.map +0 -1
  97. package/dist/es/endpoints.js.map +0 -1
  98. package/dist/es/index.js +0 -9
  99. package/dist/es/index.js.map +0 -1
  100. package/dist/es/models/index.js +0 -2
  101. package/dist/es/models/index.js.map +0 -1
  102. package/dist/es/models/models_0.js.map +0 -1
  103. package/dist/es/package.json +0 -91
  104. package/dist/es/pagination/Interfaces.js +0 -2
  105. package/dist/es/pagination/Interfaces.js.map +0 -1
  106. package/dist/es/pagination/ListEndpointsPaginator.js.map +0 -1
  107. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  108. package/dist/es/runtimeConfig.browser.js.map +0 -1
  109. package/dist/es/runtimeConfig.js.map +0 -1
  110. package/dist/es/runtimeConfig.native.js.map +0 -1
  111. package/dist/es/runtimeConfig.shared.js.map +0 -1
  112. package/dist/types/ts3.4/S3Outposts.d.ts +0 -89
  113. package/dist/types/ts3.4/S3OutpostsClient.d.ts +0 -135
  114. package/dist/types/ts3.4/commands/CreateEndpointCommand.d.ts +0 -56
  115. package/dist/types/ts3.4/commands/DeleteEndpointCommand.d.ts +0 -56
  116. package/dist/types/ts3.4/commands/ListEndpointsCommand.d.ts +0 -54
  117. package/dist/types/ts3.4/models/models_0.d.ts +0 -245
  118. package/endpoints.ts +0 -57
  119. package/jest.config.js +0 -4
  120. package/models/models_0.ts +0 -312
  121. package/pagination/Interfaces.ts +0 -7
  122. package/pagination/ListEndpointsPaginator.ts +0 -58
  123. package/protocols/Aws_restJson1.ts +0 -556
  124. package/runtimeConfig.browser.ts +0 -40
  125. package/runtimeConfig.native.ts +0 -16
  126. package/runtimeConfig.shared.ts +0 -16
  127. package/runtimeConfig.ts +0 -45
  128. package/tsconfig.es.json +0 -10
  129. package/tsconfig.json +0 -31
  130. package/tsconfig.types.json +0 -8
@@ -1,312 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- /**
4
- * <p>Access was denied for this action.</p>
5
- */
6
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
7
- name: "AccessDeniedException";
8
- $fault: "client";
9
- Message?: string;
10
- }
11
-
12
- export namespace AccessDeniedException {
13
- /**
14
- * @internal
15
- */
16
- export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
17
- ...obj,
18
- });
19
- }
20
-
21
- /**
22
- * <p>There was a conflict with this action, and it could not be completed.</p>
23
- */
24
- export interface ConflictException extends __SmithyException, $MetadataBearer {
25
- name: "ConflictException";
26
- $fault: "client";
27
- Message?: string;
28
- }
29
-
30
- export namespace ConflictException {
31
- /**
32
- * @internal
33
- */
34
- export const filterSensitiveLog = (obj: ConflictException): any => ({
35
- ...obj,
36
- });
37
- }
38
-
39
- export enum EndpointAccessType {
40
- CUSTOMER_OWNED_IP = "CustomerOwnedIp",
41
- PRIVATE = "Private",
42
- }
43
-
44
- export interface CreateEndpointRequest {
45
- /**
46
- * <p>The ID of the AWS Outposts. </p>
47
- */
48
- OutpostId: string | undefined;
49
-
50
- /**
51
- * <p>The ID of the subnet in the selected VPC. The endpoint subnet
52
- * must belong to the Outpost that has the Amazon S3 on Outposts provisioned.</p>
53
- */
54
- SubnetId: string | undefined;
55
-
56
- /**
57
- * <p>The ID of the security group to use with the endpoint.</p>
58
- */
59
- SecurityGroupId: string | undefined;
60
-
61
- /**
62
- * <p>The type of access for the on-premise network connectivity for the
63
- * Outpost endpoint. To access the endpoint from an on-premises network, you must
64
- * specify the access type and provide the customer owned IPv4 pool.</p>
65
- */
66
- AccessType?: EndpointAccessType | string;
67
-
68
- /**
69
- * <p>The ID of the customer-owned IPv4 pool for the endpoint.
70
- * IP addresses will be allocated from this pool for the endpoint.</p>
71
- */
72
- CustomerOwnedIpv4Pool?: string;
73
- }
74
-
75
- export namespace CreateEndpointRequest {
76
- /**
77
- * @internal
78
- */
79
- export const filterSensitiveLog = (obj: CreateEndpointRequest): any => ({
80
- ...obj,
81
- });
82
- }
83
-
84
- export interface CreateEndpointResult {
85
- /**
86
- * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
87
- */
88
- EndpointArn?: string;
89
- }
90
-
91
- export namespace CreateEndpointResult {
92
- /**
93
- * @internal
94
- */
95
- export const filterSensitiveLog = (obj: CreateEndpointResult): any => ({
96
- ...obj,
97
- });
98
- }
99
-
100
- /**
101
- * <p>There was an exception with the internal server.</p>
102
- */
103
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
104
- name: "InternalServerException";
105
- $fault: "server";
106
- Message?: string;
107
- }
108
-
109
- export namespace InternalServerException {
110
- /**
111
- * @internal
112
- */
113
- export const filterSensitiveLog = (obj: InternalServerException): any => ({
114
- ...obj,
115
- });
116
- }
117
-
118
- /**
119
- * <p>The requested resource was not found.</p>
120
- */
121
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
122
- name: "ResourceNotFoundException";
123
- $fault: "client";
124
- Message?: string;
125
- }
126
-
127
- export namespace ResourceNotFoundException {
128
- /**
129
- * @internal
130
- */
131
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
132
- ...obj,
133
- });
134
- }
135
-
136
- /**
137
- * <p>There was an exception validating this data.</p>
138
- */
139
- export interface ValidationException extends __SmithyException, $MetadataBearer {
140
- name: "ValidationException";
141
- $fault: "client";
142
- Message?: string;
143
- }
144
-
145
- export namespace ValidationException {
146
- /**
147
- * @internal
148
- */
149
- export const filterSensitiveLog = (obj: ValidationException): any => ({
150
- ...obj,
151
- });
152
- }
153
-
154
- export interface DeleteEndpointRequest {
155
- /**
156
- * <p>The ID of the endpoint.</p>
157
- */
158
- EndpointId: string | undefined;
159
-
160
- /**
161
- * <p>The ID of the AWS Outposts. </p>
162
- */
163
- OutpostId: string | undefined;
164
- }
165
-
166
- export namespace DeleteEndpointRequest {
167
- /**
168
- * @internal
169
- */
170
- export const filterSensitiveLog = (obj: DeleteEndpointRequest): any => ({
171
- ...obj,
172
- });
173
- }
174
-
175
- /**
176
- * <p>The container for the network interface.</p>
177
- */
178
- export interface NetworkInterface {
179
- /**
180
- * <p>The ID for the network interface.</p>
181
- */
182
- NetworkInterfaceId?: string;
183
- }
184
-
185
- export namespace NetworkInterface {
186
- /**
187
- * @internal
188
- */
189
- export const filterSensitiveLog = (obj: NetworkInterface): any => ({
190
- ...obj,
191
- });
192
- }
193
-
194
- export enum EndpointStatus {
195
- AVAILABLE = "Available",
196
- DELETING = "Deleting",
197
- PENDING = "Pending",
198
- }
199
-
200
- /**
201
- * <p>Amazon S3 on Outposts Access Points simplify managing data access at scale for shared datasets in S3 on Outposts.
202
- * S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your
203
- * virtual private cloud (VPC). For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/AccessingS3Outposts.html">
204
- * Accessing S3 on Outposts using VPC only access points</a>.</p>
205
- */
206
- export interface Endpoint {
207
- /**
208
- * <p>The Amazon Resource Name (ARN) of the endpoint.</p>
209
- */
210
- EndpointArn?: string;
211
-
212
- /**
213
- * <p>The ID of the AWS Outposts.</p>
214
- */
215
- OutpostsId?: string;
216
-
217
- /**
218
- * <p>The VPC CIDR committed by this endpoint.</p>
219
- */
220
- CidrBlock?: string;
221
-
222
- /**
223
- * <p>The status of the endpoint.</p>
224
- */
225
- Status?: EndpointStatus | string;
226
-
227
- /**
228
- * <p>The time the endpoint was created.</p>
229
- */
230
- CreationTime?: Date;
231
-
232
- /**
233
- * <p>The network interface of the endpoint.</p>
234
- */
235
- NetworkInterfaces?: NetworkInterface[];
236
-
237
- /**
238
- * <p>The ID of the VPC used for the endpoint.</p>
239
- */
240
- VpcId?: string;
241
-
242
- /**
243
- * <p>The ID of the subnet used for the endpoint.</p>
244
- */
245
- SubnetId?: string;
246
-
247
- /**
248
- * <p>The ID of the security group used for the endpoint.</p>
249
- */
250
- SecurityGroupId?: string;
251
-
252
- /**
253
- * <p></p>
254
- */
255
- AccessType?: EndpointAccessType | string;
256
-
257
- /**
258
- * <p>The ID of the customer-owned IPv4 pool used for the endpoint.</p>
259
- */
260
- CustomerOwnedIpv4Pool?: string;
261
- }
262
-
263
- export namespace Endpoint {
264
- /**
265
- * @internal
266
- */
267
- export const filterSensitiveLog = (obj: Endpoint): any => ({
268
- ...obj,
269
- });
270
- }
271
-
272
- export interface ListEndpointsRequest {
273
- /**
274
- * <p>The next endpoint requested in the list.</p>
275
- */
276
- NextToken?: string;
277
-
278
- /**
279
- * <p>The max number of endpoints that can be returned on the request.</p>
280
- */
281
- MaxResults?: number;
282
- }
283
-
284
- export namespace ListEndpointsRequest {
285
- /**
286
- * @internal
287
- */
288
- export const filterSensitiveLog = (obj: ListEndpointsRequest): any => ({
289
- ...obj,
290
- });
291
- }
292
-
293
- export interface ListEndpointsResult {
294
- /**
295
- * <p>Returns an array of endpoints associated with AWS Outposts.</p>
296
- */
297
- Endpoints?: Endpoint[];
298
-
299
- /**
300
- * <p>The next endpoint returned in the list.</p>
301
- */
302
- NextToken?: string;
303
- }
304
-
305
- export namespace ListEndpointsResult {
306
- /**
307
- * @internal
308
- */
309
- export const filterSensitiveLog = (obj: ListEndpointsResult): any => ({
310
- ...obj,
311
- });
312
- }
@@ -1,7 +0,0 @@
1
- import { S3Outposts } from "../S3Outposts";
2
- import { S3OutpostsClient } from "../S3OutpostsClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
-
5
- export interface S3OutpostsPaginationConfiguration extends PaginationConfiguration {
6
- client: S3Outposts | S3OutpostsClient;
7
- }
@@ -1,58 +0,0 @@
1
- import { S3Outposts } from "../S3Outposts";
2
- import { S3OutpostsClient } from "../S3OutpostsClient";
3
- import {
4
- ListEndpointsCommand,
5
- ListEndpointsCommandInput,
6
- ListEndpointsCommandOutput,
7
- } from "../commands/ListEndpointsCommand";
8
- import { S3OutpostsPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
-
11
- /**
12
- * @private
13
- */
14
- const makePagedClientRequest = async (
15
- client: S3OutpostsClient,
16
- input: ListEndpointsCommandInput,
17
- ...args: any
18
- ): Promise<ListEndpointsCommandOutput> => {
19
- // @ts-ignore
20
- return await client.send(new ListEndpointsCommand(input), ...args);
21
- };
22
- /**
23
- * @private
24
- */
25
- const makePagedRequest = async (
26
- client: S3Outposts,
27
- input: ListEndpointsCommandInput,
28
- ...args: any
29
- ): Promise<ListEndpointsCommandOutput> => {
30
- // @ts-ignore
31
- return await client.listEndpoints(input, ...args);
32
- };
33
- export async function* paginateListEndpoints(
34
- config: S3OutpostsPaginationConfiguration,
35
- input: ListEndpointsCommandInput,
36
- ...additionalArguments: any
37
- ): Paginator<ListEndpointsCommandOutput> {
38
- // ToDo: replace with actual type instead of typeof input.NextToken
39
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
40
- let hasNext = true;
41
- let page: ListEndpointsCommandOutput;
42
- while (hasNext) {
43
- input.NextToken = token;
44
- input["MaxResults"] = config.pageSize;
45
- if (config.client instanceof S3Outposts) {
46
- page = await makePagedRequest(config.client, input, ...additionalArguments);
47
- } else if (config.client instanceof S3OutpostsClient) {
48
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
49
- } else {
50
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
51
- }
52
- yield page;
53
- token = page.NextToken;
54
- hasNext = !!token;
55
- }
56
- // @ts-ignore
57
- return undefined;
58
- }