@aws-sdk/client-s3outposts 3.293.0 → 3.295.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.
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class CreateEndpointCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class CreateEndpointCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateEndpointCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class DeleteEndpointCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class DeleteEndpointCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteEndpointCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class ListEndpointsCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class ListEndpointsCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListEndpointsCommand.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class ListOutpostsWithS3Command extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class ListOutpostsWithS3Command extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListOutpostsWithS3Command.getEndpointParameterInstructions()));
@@ -7,10 +7,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
9
  class ListSharedEndpointsCommand extends smithy_client_1.Command {
10
- constructor(input) {
11
- super();
12
- this.input = input;
13
- }
14
10
  static getEndpointParameterInstructions() {
15
11
  return {
16
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -19,6 +15,10 @@ class ListSharedEndpointsCommand extends smithy_client_1.Command {
19
15
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
16
  };
21
17
  }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
22
  resolveMiddleware(clientStack, configuration, options) {
23
23
  this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
24
  this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListSharedEndpointsCommand.getEndpointParameterInstructions()));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListSharedEndpointsResultFilterSensitiveLog = exports.ListSharedEndpointsRequestFilterSensitiveLog = exports.ListOutpostsWithS3ResultFilterSensitiveLog = exports.OutpostFilterSensitiveLog = exports.ListOutpostsWithS3RequestFilterSensitiveLog = exports.ListEndpointsResultFilterSensitiveLog = exports.ListEndpointsRequestFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.NetworkInterfaceFilterSensitiveLog = exports.DeleteEndpointRequestFilterSensitiveLog = exports.CreateEndpointResultFilterSensitiveLog = exports.CreateEndpointRequestFilterSensitiveLog = exports.EndpointStatus = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.EndpointAccessType = exports.ConflictException = exports.AccessDeniedException = void 0;
3
+ exports.ListSharedEndpointsResultFilterSensitiveLog = exports.ListSharedEndpointsRequestFilterSensitiveLog = exports.ListOutpostsWithS3ResultFilterSensitiveLog = exports.OutpostFilterSensitiveLog = exports.ListOutpostsWithS3RequestFilterSensitiveLog = exports.ListEndpointsResultFilterSensitiveLog = exports.ListEndpointsRequestFilterSensitiveLog = exports.EndpointFilterSensitiveLog = exports.NetworkInterfaceFilterSensitiveLog = exports.FailedReasonFilterSensitiveLog = exports.DeleteEndpointRequestFilterSensitiveLog = exports.CreateEndpointResultFilterSensitiveLog = exports.CreateEndpointRequestFilterSensitiveLog = exports.EndpointStatus = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.OutpostOfflineException = exports.InternalServerException = exports.EndpointAccessType = exports.ConflictException = exports.AccessDeniedException = void 0;
4
4
  const S3OutpostsServiceException_1 = require("./S3OutpostsServiceException");
5
5
  class AccessDeniedException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
6
6
  constructor(opts) {
@@ -49,6 +49,20 @@ class InternalServerException extends S3OutpostsServiceException_1.S3OutpostsSer
49
49
  }
50
50
  }
51
51
  exports.InternalServerException = InternalServerException;
52
+ class OutpostOfflineException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
53
+ constructor(opts) {
54
+ super({
55
+ name: "OutpostOfflineException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ this.name = "OutpostOfflineException";
60
+ this.$fault = "client";
61
+ Object.setPrototypeOf(this, OutpostOfflineException.prototype);
62
+ this.Message = opts.Message;
63
+ }
64
+ }
65
+ exports.OutpostOfflineException = OutpostOfflineException;
52
66
  class ResourceNotFoundException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
53
67
  constructor(opts) {
54
68
  super({
@@ -94,6 +108,8 @@ exports.ValidationException = ValidationException;
94
108
  var EndpointStatus;
95
109
  (function (EndpointStatus) {
96
110
  EndpointStatus["AVAILABLE"] = "Available";
111
+ EndpointStatus["CREATE_FAILED"] = "Create_Failed";
112
+ EndpointStatus["DELETE_FAILED"] = "Delete_Failed";
97
113
  EndpointStatus["DELETING"] = "Deleting";
98
114
  EndpointStatus["PENDING"] = "Pending";
99
115
  })(EndpointStatus = exports.EndpointStatus || (exports.EndpointStatus = {}));
@@ -109,6 +125,10 @@ const DeleteEndpointRequestFilterSensitiveLog = (obj) => ({
109
125
  ...obj,
110
126
  });
111
127
  exports.DeleteEndpointRequestFilterSensitiveLog = DeleteEndpointRequestFilterSensitiveLog;
128
+ const FailedReasonFilterSensitiveLog = (obj) => ({
129
+ ...obj,
130
+ });
131
+ exports.FailedReasonFilterSensitiveLog = FailedReasonFilterSensitiveLog;
112
132
  const NetworkInterfaceFilterSensitiveLog = (obj) => ({
113
133
  ...obj,
114
134
  });
@@ -145,6 +145,9 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
145
145
  case "InternalServerException":
146
146
  case "com.amazonaws.s3outposts#InternalServerException":
147
147
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
148
+ case "OutpostOfflineException":
149
+ case "com.amazonaws.s3outposts#OutpostOfflineException":
150
+ throw await deserializeAws_restJson1OutpostOfflineExceptionResponse(parsedOutput, context);
148
151
  case "ResourceNotFoundException":
149
152
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
150
153
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -188,6 +191,9 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
188
191
  case "InternalServerException":
189
192
  case "com.amazonaws.s3outposts#InternalServerException":
190
193
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
194
+ case "OutpostOfflineException":
195
+ case "com.amazonaws.s3outposts#OutpostOfflineException":
196
+ throw await deserializeAws_restJson1OutpostOfflineExceptionResponse(parsedOutput, context);
191
197
  case "ResourceNotFoundException":
192
198
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
193
199
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -388,6 +394,18 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
388
394
  });
389
395
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
390
396
  };
397
+ const deserializeAws_restJson1OutpostOfflineExceptionResponse = async (parsedOutput, context) => {
398
+ const contents = map({});
399
+ const data = parsedOutput.body;
400
+ if (data.Message != null) {
401
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
402
+ }
403
+ const exception = new models_0_1.OutpostOfflineException({
404
+ $metadata: deserializeMetadata(parsedOutput),
405
+ ...contents,
406
+ });
407
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
408
+ };
391
409
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
392
410
  const contents = map({});
393
411
  const data = parsedOutput.body;
@@ -433,6 +451,7 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
433
451
  : undefined,
434
452
  CustomerOwnedIpv4Pool: (0, smithy_client_1.expectString)(output.CustomerOwnedIpv4Pool),
435
453
  EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
454
+ FailedReason: output.FailedReason != null ? deserializeAws_restJson1FailedReason(output.FailedReason, context) : undefined,
436
455
  NetworkInterfaces: output.NetworkInterfaces != null
437
456
  ? deserializeAws_restJson1NetworkInterfaces(output.NetworkInterfaces, context)
438
457
  : undefined,
@@ -454,6 +473,12 @@ const deserializeAws_restJson1Endpoints = (output, context) => {
454
473
  });
455
474
  return retVal;
456
475
  };
476
+ const deserializeAws_restJson1FailedReason = (output, context) => {
477
+ return {
478
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
479
+ Message: (0, smithy_client_1.expectString)(output.Message),
480
+ };
481
+ };
457
482
  const deserializeAws_restJson1NetworkInterface = (output, context) => {
458
483
  return {
459
484
  NetworkInterfaceId: (0, smithy_client_1.expectString)(output.NetworkInterfaceId),
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { CreateEndpointRequestFilterSensitiveLog, CreateEndpointResultFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1CreateEndpointCommand, serializeAws_restJson1CreateEndpointCommand, } from "../protocols/Aws_restJson1";
6
6
  export class CreateEndpointCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class CreateEndpointCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, CreateEndpointCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { DeleteEndpointRequestFilterSensitiveLog } from "../models/models_0";
5
5
  import { deserializeAws_restJson1DeleteEndpointCommand, serializeAws_restJson1DeleteEndpointCommand, } from "../protocols/Aws_restJson1";
6
6
  export class DeleteEndpointCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class DeleteEndpointCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, DeleteEndpointCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { ListEndpointsRequestFilterSensitiveLog, ListEndpointsResultFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ListEndpointsCommand, serializeAws_restJson1ListEndpointsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListEndpointsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class ListEndpointsCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, ListEndpointsCommand.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { ListOutpostsWithS3RequestFilterSensitiveLog, ListOutpostsWithS3ResultFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ListOutpostsWithS3Command, serializeAws_restJson1ListOutpostsWithS3Command, } from "../protocols/Aws_restJson1";
6
6
  export class ListOutpostsWithS3Command extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class ListOutpostsWithS3Command extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, ListOutpostsWithS3Command.getEndpointParameterInstructions()));
@@ -4,10 +4,6 @@ import { Command as $Command } from "@aws-sdk/smithy-client";
4
4
  import { ListSharedEndpointsRequestFilterSensitiveLog, ListSharedEndpointsResultFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ListSharedEndpointsCommand, serializeAws_restJson1ListSharedEndpointsCommand, } from "../protocols/Aws_restJson1";
6
6
  export class ListSharedEndpointsCommand extends $Command {
7
- constructor(input) {
8
- super();
9
- this.input = input;
10
- }
11
7
  static getEndpointParameterInstructions() {
12
8
  return {
13
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -16,6 +12,10 @@ export class ListSharedEndpointsCommand extends $Command {
16
12
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
13
  };
18
14
  }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
19
  resolveMiddleware(clientStack, configuration, options) {
20
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
21
  this.middlewareStack.use(getEndpointPlugin(configuration, ListSharedEndpointsCommand.getEndpointParameterInstructions()));
@@ -43,6 +43,19 @@ export class InternalServerException extends __BaseException {
43
43
  this.Message = opts.Message;
44
44
  }
45
45
  }
46
+ export class OutpostOfflineException extends __BaseException {
47
+ constructor(opts) {
48
+ super({
49
+ name: "OutpostOfflineException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ this.name = "OutpostOfflineException";
54
+ this.$fault = "client";
55
+ Object.setPrototypeOf(this, OutpostOfflineException.prototype);
56
+ this.Message = opts.Message;
57
+ }
58
+ }
46
59
  export class ResourceNotFoundException extends __BaseException {
47
60
  constructor(opts) {
48
61
  super({
@@ -85,6 +98,8 @@ export class ValidationException extends __BaseException {
85
98
  export var EndpointStatus;
86
99
  (function (EndpointStatus) {
87
100
  EndpointStatus["AVAILABLE"] = "Available";
101
+ EndpointStatus["CREATE_FAILED"] = "Create_Failed";
102
+ EndpointStatus["DELETE_FAILED"] = "Delete_Failed";
88
103
  EndpointStatus["DELETING"] = "Deleting";
89
104
  EndpointStatus["PENDING"] = "Pending";
90
105
  })(EndpointStatus || (EndpointStatus = {}));
@@ -97,6 +112,9 @@ export const CreateEndpointResultFilterSensitiveLog = (obj) => ({
97
112
  export const DeleteEndpointRequestFilterSensitiveLog = (obj) => ({
98
113
  ...obj,
99
114
  });
115
+ export const FailedReasonFilterSensitiveLog = (obj) => ({
116
+ ...obj,
117
+ });
100
118
  export const NetworkInterfaceFilterSensitiveLog = (obj) => ({
101
119
  ...obj,
102
120
  });
@@ -1,6 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
3
+ import { AccessDeniedException, ConflictException, InternalServerException, OutpostOfflineException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
4
4
  import { S3OutpostsServiceException as __BaseException } from "../models/S3OutpostsServiceException";
5
5
  export const serializeAws_restJson1CreateEndpointCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -136,6 +136,9 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
136
136
  case "InternalServerException":
137
137
  case "com.amazonaws.s3outposts#InternalServerException":
138
138
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
139
+ case "OutpostOfflineException":
140
+ case "com.amazonaws.s3outposts#OutpostOfflineException":
141
+ throw await deserializeAws_restJson1OutpostOfflineExceptionResponse(parsedOutput, context);
139
142
  case "ResourceNotFoundException":
140
143
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
141
144
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -178,6 +181,9 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
178
181
  case "InternalServerException":
179
182
  case "com.amazonaws.s3outposts#InternalServerException":
180
183
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
184
+ case "OutpostOfflineException":
185
+ case "com.amazonaws.s3outposts#OutpostOfflineException":
186
+ throw await deserializeAws_restJson1OutpostOfflineExceptionResponse(parsedOutput, context);
181
187
  case "ResourceNotFoundException":
182
188
  case "com.amazonaws.s3outposts#ResourceNotFoundException":
183
189
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
@@ -375,6 +381,18 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
375
381
  });
376
382
  return __decorateServiceException(exception, parsedOutput.body);
377
383
  };
384
+ const deserializeAws_restJson1OutpostOfflineExceptionResponse = async (parsedOutput, context) => {
385
+ const contents = map({});
386
+ const data = parsedOutput.body;
387
+ if (data.Message != null) {
388
+ contents.Message = __expectString(data.Message);
389
+ }
390
+ const exception = new OutpostOfflineException({
391
+ $metadata: deserializeMetadata(parsedOutput),
392
+ ...contents,
393
+ });
394
+ return __decorateServiceException(exception, parsedOutput.body);
395
+ };
378
396
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
379
397
  const contents = map({});
380
398
  const data = parsedOutput.body;
@@ -420,6 +438,7 @@ const deserializeAws_restJson1Endpoint = (output, context) => {
420
438
  : undefined,
421
439
  CustomerOwnedIpv4Pool: __expectString(output.CustomerOwnedIpv4Pool),
422
440
  EndpointArn: __expectString(output.EndpointArn),
441
+ FailedReason: output.FailedReason != null ? deserializeAws_restJson1FailedReason(output.FailedReason, context) : undefined,
423
442
  NetworkInterfaces: output.NetworkInterfaces != null
424
443
  ? deserializeAws_restJson1NetworkInterfaces(output.NetworkInterfaces, context)
425
444
  : undefined,
@@ -441,6 +460,12 @@ const deserializeAws_restJson1Endpoints = (output, context) => {
441
460
  });
442
461
  return retVal;
443
462
  };
463
+ const deserializeAws_restJson1FailedReason = (output, context) => {
464
+ return {
465
+ ErrorCode: __expectString(output.ErrorCode),
466
+ Message: __expectString(output.Message),
467
+ };
468
+ };
444
469
  const deserializeAws_restJson1NetworkInterface = (output, context) => {
445
470
  return {
446
471
  NetworkInterfaceId: __expectString(output.NetworkInterfaceId),
@@ -13,8 +13,8 @@ import { ListEndpointsCommandInput, ListEndpointsCommandOutput } from "./command
13
13
  import { ListOutpostsWithS3CommandInput, ListOutpostsWithS3CommandOutput } from "./commands/ListOutpostsWithS3Command";
14
14
  import { ListSharedEndpointsCommandInput, ListSharedEndpointsCommandOutput } from "./commands/ListSharedEndpointsCommand";
15
15
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
16
- export declare type ServiceInputTypes = CreateEndpointCommandInput | DeleteEndpointCommandInput | ListEndpointsCommandInput | ListOutpostsWithS3CommandInput | ListSharedEndpointsCommandInput;
17
- export declare type ServiceOutputTypes = CreateEndpointCommandOutput | DeleteEndpointCommandOutput | ListEndpointsCommandOutput | ListOutpostsWithS3CommandOutput | ListSharedEndpointsCommandOutput;
16
+ export type ServiceInputTypes = CreateEndpointCommandInput | DeleteEndpointCommandInput | ListEndpointsCommandInput | ListOutpostsWithS3CommandInput | ListSharedEndpointsCommandInput;
17
+ export type ServiceOutputTypes = CreateEndpointCommandOutput | DeleteEndpointCommandOutput | ListEndpointsCommandOutput | ListOutpostsWithS3CommandOutput | ListSharedEndpointsCommandOutput;
18
18
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
19
19
  /**
20
20
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -115,13 +115,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
115
115
  */
116
116
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
117
117
  }
118
- declare type S3OutpostsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
118
+ type S3OutpostsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
119
119
  /**
120
120
  * The configuration interface of S3OutpostsClient class constructor that set the region, credentials and other options.
121
121
  */
122
122
  export interface S3OutpostsClientConfig extends S3OutpostsClientConfigType {
123
123
  }
124
- declare type S3OutpostsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
124
+ type S3OutpostsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
125
125
  /**
126
126
  * The resolved configuration interface of S3OutpostsClient class. This is resolved and normalized from the {@link S3OutpostsClientConfig | constructor configuration interface}.
127
127
  */
@@ -55,6 +55,9 @@ export interface CreateEndpointCommandOutput extends CreateEndpointResult, __Met
55
55
  * @throws {@link InternalServerException} (server fault)
56
56
  * <p>There was an exception with the internal server.</p>
57
57
  *
58
+ * @throws {@link OutpostOfflineException} (client fault)
59
+ * <p>The service link connection to your Outposts home Region is down. Check your connection and try again.</p>
60
+ *
58
61
  * @throws {@link ResourceNotFoundException} (client fault)
59
62
  * <p>The requested resource was not found.</p>
60
63
  *
@@ -52,6 +52,9 @@ export interface DeleteEndpointCommandOutput extends __MetadataBearer {
52
52
  * @throws {@link InternalServerException} (server fault)
53
53
  * <p>There was an exception with the internal server.</p>
54
54
  *
55
+ * @throws {@link OutpostOfflineException} (client fault)
56
+ * <p>The service link connection to your Outposts home Region is down. Check your connection and try again.</p>
57
+ *
55
58
  * @throws {@link ResourceNotFoundException} (client fault)
56
59
  * <p>The requested resource was not found.</p>
57
60
  *
@@ -5,7 +5,7 @@ export interface ClientInputEndpointParameters {
5
5
  useFipsEndpoint?: boolean | Provider<boolean>;
6
6
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
7
7
  }
8
- export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
8
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
9
9
  defaultSigningName: string;
10
10
  };
11
11
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
@@ -78,6 +78,18 @@ export declare class InternalServerException extends __BaseException {
78
78
  */
79
79
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
80
80
  }
81
+ /**
82
+ * <p>The service link connection to your Outposts home Region is down. Check your connection and try again.</p>
83
+ */
84
+ export declare class OutpostOfflineException extends __BaseException {
85
+ readonly name: "OutpostOfflineException";
86
+ readonly $fault: "client";
87
+ Message?: string;
88
+ /**
89
+ * @internal
90
+ */
91
+ constructor(opts: __ExceptionOptionType<OutpostOfflineException, __BaseException>);
92
+ }
81
93
  /**
82
94
  * <p>The requested resource was not found.</p>
83
95
  */
@@ -124,6 +136,19 @@ export interface DeleteEndpointRequest {
124
136
  */
125
137
  OutpostId: string | undefined;
126
138
  }
139
+ /**
140
+ * <p>The failure reason, if any, for a create or delete endpoint operation.</p>
141
+ */
142
+ export interface FailedReason {
143
+ /**
144
+ * <p>The failure code, if any, for a create or delete endpoint operation.</p>
145
+ */
146
+ ErrorCode?: string;
147
+ /**
148
+ * <p>Additional error details describing the endpoint failure and recommended action.</p>
149
+ */
150
+ Message?: string;
151
+ }
127
152
  /**
128
153
  * <p>The container for the network interface.</p>
129
154
  */
@@ -135,6 +160,8 @@ export interface NetworkInterface {
135
160
  }
136
161
  export declare enum EndpointStatus {
137
162
  AVAILABLE = "Available",
163
+ CREATE_FAILED = "Create_Failed",
164
+ DELETE_FAILED = "Delete_Failed",
138
165
  DELETING = "Deleting",
139
166
  PENDING = "Pending"
140
167
  }
@@ -189,6 +216,10 @@ export interface Endpoint {
189
216
  * <p>The ID of the customer-owned IPv4 address pool used for the endpoint.</p>
190
217
  */
191
218
  CustomerOwnedIpv4Pool?: string;
219
+ /**
220
+ * <p>The failure reason, if any, for a create or delete endpoint operation.</p>
221
+ */
222
+ FailedReason?: FailedReason;
192
223
  }
193
224
  export interface ListEndpointsRequest {
194
225
  /**
@@ -305,6 +336,10 @@ export declare const CreateEndpointResultFilterSensitiveLog: (obj: CreateEndpoin
305
336
  * @internal
306
337
  */
307
338
  export declare const DeleteEndpointRequestFilterSensitiveLog: (obj: DeleteEndpointRequest) => any;
339
+ /**
340
+ * @internal
341
+ */
342
+ export declare const FailedReasonFilterSensitiveLog: (obj: FailedReason) => any;
308
343
  /**
309
344
  * @internal
310
345
  */
@@ -69,13 +69,13 @@ import {
69
69
  ClientResolvedEndpointParameters,
70
70
  EndpointParameters,
71
71
  } from "./endpoint/EndpointParameters";
72
- export declare type ServiceInputTypes =
72
+ export type ServiceInputTypes =
73
73
  | CreateEndpointCommandInput
74
74
  | DeleteEndpointCommandInput
75
75
  | ListEndpointsCommandInput
76
76
  | ListOutpostsWithS3CommandInput
77
77
  | ListSharedEndpointsCommandInput;
78
- export declare type ServiceOutputTypes =
78
+ export type ServiceOutputTypes =
79
79
  | CreateEndpointCommandOutput
80
80
  | DeleteEndpointCommandOutput
81
81
  | ListEndpointsCommandOutput
@@ -105,7 +105,7 @@ export interface ClientDefaults
105
105
  logger?: __Logger;
106
106
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
107
107
  }
108
- declare type S3OutpostsClientConfigType = Partial<
108
+ type S3OutpostsClientConfigType = Partial<
109
109
  __SmithyConfiguration<__HttpHandlerOptions>
110
110
  > &
111
111
  ClientDefaults &
@@ -117,7 +117,7 @@ declare type S3OutpostsClientConfigType = Partial<
117
117
  UserAgentInputConfig &
118
118
  ClientInputEndpointParameters;
119
119
  export interface S3OutpostsClientConfig extends S3OutpostsClientConfigType {}
120
- declare type S3OutpostsClientResolvedConfigType =
120
+ type S3OutpostsClientResolvedConfigType =
121
121
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
122
122
  Required<ClientDefaults> &
123
123
  RegionResolvedConfig &
@@ -16,10 +16,9 @@ export interface ClientInputEndpointParameters {
16
16
  | EndpointV2
17
17
  | Provider<EndpointV2>;
18
18
  }
19
- export declare type ClientResolvedEndpointParameters =
20
- ClientInputEndpointParameters & {
21
- defaultSigningName: string;
22
- };
19
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
20
+ defaultSigningName: string;
21
+ };
23
22
  export declare const resolveClientEndpointParameters: <T>(
24
23
  options: T & ClientInputEndpointParameters
25
24
  ) => T &
@@ -36,6 +36,14 @@ export declare class InternalServerException extends __BaseException {
36
36
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
37
37
  );
38
38
  }
39
+ export declare class OutpostOfflineException extends __BaseException {
40
+ readonly name: "OutpostOfflineException";
41
+ readonly $fault: "client";
42
+ Message?: string;
43
+ constructor(
44
+ opts: __ExceptionOptionType<OutpostOfflineException, __BaseException>
45
+ );
46
+ }
39
47
  export declare class ResourceNotFoundException extends __BaseException {
40
48
  readonly name: "ResourceNotFoundException";
41
49
  readonly $fault: "client";
@@ -64,11 +72,17 @@ export interface DeleteEndpointRequest {
64
72
  EndpointId: string | undefined;
65
73
  OutpostId: string | undefined;
66
74
  }
75
+ export interface FailedReason {
76
+ ErrorCode?: string;
77
+ Message?: string;
78
+ }
67
79
  export interface NetworkInterface {
68
80
  NetworkInterfaceId?: string;
69
81
  }
70
82
  export declare enum EndpointStatus {
71
83
  AVAILABLE = "Available",
84
+ CREATE_FAILED = "Create_Failed",
85
+ DELETE_FAILED = "Delete_Failed",
72
86
  DELETING = "Deleting",
73
87
  PENDING = "Pending",
74
88
  }
@@ -84,6 +98,7 @@ export interface Endpoint {
84
98
  SecurityGroupId?: string;
85
99
  AccessType?: EndpointAccessType | string;
86
100
  CustomerOwnedIpv4Pool?: string;
101
+ FailedReason?: FailedReason;
87
102
  }
88
103
  export interface ListEndpointsRequest {
89
104
  NextToken?: string;
@@ -125,6 +140,7 @@ export declare const CreateEndpointResultFilterSensitiveLog: (
125
140
  export declare const DeleteEndpointRequestFilterSensitiveLog: (
126
141
  obj: DeleteEndpointRequest
127
142
  ) => any;
143
+ export declare const FailedReasonFilterSensitiveLog: (obj: FailedReason) => any;
128
144
  export declare const NetworkInterfaceFilterSensitiveLog: (
129
145
  obj: NetworkInterface
130
146
  ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3outposts",
3
3
  "description": "AWS SDK for JavaScript S3outposts Client for Node.js, Browser and React Native",
4
- "version": "3.293.0",
4
+ "version": "3.295.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,49 +20,49 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.293.0",
24
- "@aws-sdk/config-resolver": "3.292.0",
25
- "@aws-sdk/credential-provider-node": "3.293.0",
26
- "@aws-sdk/fetch-http-handler": "3.292.0",
27
- "@aws-sdk/hash-node": "3.292.0",
28
- "@aws-sdk/invalid-dependency": "3.292.0",
29
- "@aws-sdk/middleware-content-length": "3.292.0",
30
- "@aws-sdk/middleware-endpoint": "3.292.0",
31
- "@aws-sdk/middleware-host-header": "3.292.0",
32
- "@aws-sdk/middleware-logger": "3.292.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.292.0",
34
- "@aws-sdk/middleware-retry": "3.293.0",
35
- "@aws-sdk/middleware-serde": "3.292.0",
36
- "@aws-sdk/middleware-signing": "3.292.0",
37
- "@aws-sdk/middleware-stack": "3.292.0",
38
- "@aws-sdk/middleware-user-agent": "3.293.0",
39
- "@aws-sdk/node-config-provider": "3.292.0",
40
- "@aws-sdk/node-http-handler": "3.292.0",
41
- "@aws-sdk/protocol-http": "3.292.0",
42
- "@aws-sdk/smithy-client": "3.292.0",
43
- "@aws-sdk/types": "3.292.0",
44
- "@aws-sdk/url-parser": "3.292.0",
45
- "@aws-sdk/util-base64": "3.292.0",
46
- "@aws-sdk/util-body-length-browser": "3.292.0",
47
- "@aws-sdk/util-body-length-node": "3.292.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.292.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.292.0",
50
- "@aws-sdk/util-endpoints": "3.293.0",
51
- "@aws-sdk/util-retry": "3.292.0",
52
- "@aws-sdk/util-user-agent-browser": "3.292.0",
53
- "@aws-sdk/util-user-agent-node": "3.292.0",
54
- "@aws-sdk/util-utf8": "3.292.0",
55
- "tslib": "^2.3.1"
23
+ "@aws-sdk/client-sts": "3.295.0",
24
+ "@aws-sdk/config-resolver": "3.295.0",
25
+ "@aws-sdk/credential-provider-node": "3.295.0",
26
+ "@aws-sdk/fetch-http-handler": "3.295.0",
27
+ "@aws-sdk/hash-node": "3.295.0",
28
+ "@aws-sdk/invalid-dependency": "3.295.0",
29
+ "@aws-sdk/middleware-content-length": "3.295.0",
30
+ "@aws-sdk/middleware-endpoint": "3.295.0",
31
+ "@aws-sdk/middleware-host-header": "3.295.0",
32
+ "@aws-sdk/middleware-logger": "3.295.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.295.0",
34
+ "@aws-sdk/middleware-retry": "3.295.0",
35
+ "@aws-sdk/middleware-serde": "3.295.0",
36
+ "@aws-sdk/middleware-signing": "3.295.0",
37
+ "@aws-sdk/middleware-stack": "3.295.0",
38
+ "@aws-sdk/middleware-user-agent": "3.295.0",
39
+ "@aws-sdk/node-config-provider": "3.295.0",
40
+ "@aws-sdk/node-http-handler": "3.295.0",
41
+ "@aws-sdk/protocol-http": "3.295.0",
42
+ "@aws-sdk/smithy-client": "3.295.0",
43
+ "@aws-sdk/types": "3.295.0",
44
+ "@aws-sdk/url-parser": "3.295.0",
45
+ "@aws-sdk/util-base64": "3.295.0",
46
+ "@aws-sdk/util-body-length-browser": "3.295.0",
47
+ "@aws-sdk/util-body-length-node": "3.295.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.295.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.295.0",
50
+ "@aws-sdk/util-endpoints": "3.295.0",
51
+ "@aws-sdk/util-retry": "3.295.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.295.0",
53
+ "@aws-sdk/util-user-agent-node": "3.295.0",
54
+ "@aws-sdk/util-utf8": "3.295.0",
55
+ "tslib": "^2.5.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@aws-sdk/service-client-documentation-generator": "3.293.0",
58
+ "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
59
  "@tsconfig/node14": "1.0.3",
60
60
  "@types/node": "^14.14.31",
61
61
  "concurrently": "7.0.0",
62
62
  "downlevel-dts": "0.10.1",
63
63
  "rimraf": "3.0.2",
64
64
  "typedoc": "0.23.23",
65
- "typescript": "~4.6.2"
65
+ "typescript": "~4.9.5"
66
66
  },
67
67
  "engines": {
68
68
  "node": ">=14.0.0"