@aws-sdk/client-lightsail 3.987.0 → 3.988.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +180 -5078
- package/dist-cjs/models/LightsailServiceException.js +12 -0
- package/dist-cjs/models/errors.js +156 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +4198 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +102 -96
- package/dist-types/schemas/schemas_0.d.ts +15 -8
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -8
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LightsailServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class LightsailServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, LightsailServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.LightsailServiceException = LightsailServiceException;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnauthenticatedException = exports.ServiceException = exports.RegionSetupInProgressException = exports.OperationFailureException = exports.NotFoundException = exports.InvalidInputException = exports.AccountSetupInProgressException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const LightsailServiceException_1 = require("./LightsailServiceException");
|
|
5
|
+
class AccessDeniedException extends LightsailServiceException_1.LightsailServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
code;
|
|
9
|
+
docs;
|
|
10
|
+
tip;
|
|
11
|
+
constructor(opts) {
|
|
12
|
+
super({
|
|
13
|
+
name: "AccessDeniedException",
|
|
14
|
+
$fault: "client",
|
|
15
|
+
...opts,
|
|
16
|
+
});
|
|
17
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
+
this.code = opts.code;
|
|
19
|
+
this.docs = opts.docs;
|
|
20
|
+
this.tip = opts.tip;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
24
|
+
class AccountSetupInProgressException extends LightsailServiceException_1.LightsailServiceException {
|
|
25
|
+
name = "AccountSetupInProgressException";
|
|
26
|
+
$fault = "client";
|
|
27
|
+
code;
|
|
28
|
+
docs;
|
|
29
|
+
tip;
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "AccountSetupInProgressException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
Object.setPrototypeOf(this, AccountSetupInProgressException.prototype);
|
|
37
|
+
this.code = opts.code;
|
|
38
|
+
this.docs = opts.docs;
|
|
39
|
+
this.tip = opts.tip;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.AccountSetupInProgressException = AccountSetupInProgressException;
|
|
43
|
+
class InvalidInputException extends LightsailServiceException_1.LightsailServiceException {
|
|
44
|
+
name = "InvalidInputException";
|
|
45
|
+
$fault = "client";
|
|
46
|
+
code;
|
|
47
|
+
docs;
|
|
48
|
+
tip;
|
|
49
|
+
constructor(opts) {
|
|
50
|
+
super({
|
|
51
|
+
name: "InvalidInputException",
|
|
52
|
+
$fault: "client",
|
|
53
|
+
...opts,
|
|
54
|
+
});
|
|
55
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
56
|
+
this.code = opts.code;
|
|
57
|
+
this.docs = opts.docs;
|
|
58
|
+
this.tip = opts.tip;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.InvalidInputException = InvalidInputException;
|
|
62
|
+
class NotFoundException extends LightsailServiceException_1.LightsailServiceException {
|
|
63
|
+
name = "NotFoundException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
code;
|
|
66
|
+
docs;
|
|
67
|
+
tip;
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "NotFoundException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
75
|
+
this.code = opts.code;
|
|
76
|
+
this.docs = opts.docs;
|
|
77
|
+
this.tip = opts.tip;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.NotFoundException = NotFoundException;
|
|
81
|
+
class OperationFailureException extends LightsailServiceException_1.LightsailServiceException {
|
|
82
|
+
name = "OperationFailureException";
|
|
83
|
+
$fault = "client";
|
|
84
|
+
code;
|
|
85
|
+
docs;
|
|
86
|
+
tip;
|
|
87
|
+
constructor(opts) {
|
|
88
|
+
super({
|
|
89
|
+
name: "OperationFailureException",
|
|
90
|
+
$fault: "client",
|
|
91
|
+
...opts,
|
|
92
|
+
});
|
|
93
|
+
Object.setPrototypeOf(this, OperationFailureException.prototype);
|
|
94
|
+
this.code = opts.code;
|
|
95
|
+
this.docs = opts.docs;
|
|
96
|
+
this.tip = opts.tip;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.OperationFailureException = OperationFailureException;
|
|
100
|
+
class RegionSetupInProgressException extends LightsailServiceException_1.LightsailServiceException {
|
|
101
|
+
name = "RegionSetupInProgressException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
code;
|
|
104
|
+
docs;
|
|
105
|
+
tip;
|
|
106
|
+
constructor(opts) {
|
|
107
|
+
super({
|
|
108
|
+
name: "RegionSetupInProgressException",
|
|
109
|
+
$fault: "client",
|
|
110
|
+
...opts,
|
|
111
|
+
});
|
|
112
|
+
Object.setPrototypeOf(this, RegionSetupInProgressException.prototype);
|
|
113
|
+
this.code = opts.code;
|
|
114
|
+
this.docs = opts.docs;
|
|
115
|
+
this.tip = opts.tip;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.RegionSetupInProgressException = RegionSetupInProgressException;
|
|
119
|
+
class ServiceException extends LightsailServiceException_1.LightsailServiceException {
|
|
120
|
+
name = "ServiceException";
|
|
121
|
+
$fault = "server";
|
|
122
|
+
code;
|
|
123
|
+
docs;
|
|
124
|
+
tip;
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "ServiceException",
|
|
128
|
+
$fault: "server",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, ServiceException.prototype);
|
|
132
|
+
this.code = opts.code;
|
|
133
|
+
this.docs = opts.docs;
|
|
134
|
+
this.tip = opts.tip;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.ServiceException = ServiceException;
|
|
138
|
+
class UnauthenticatedException extends LightsailServiceException_1.LightsailServiceException {
|
|
139
|
+
name = "UnauthenticatedException";
|
|
140
|
+
$fault = "client";
|
|
141
|
+
code;
|
|
142
|
+
docs;
|
|
143
|
+
tip;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "UnauthenticatedException",
|
|
147
|
+
$fault: "client",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, UnauthenticatedException.prototype);
|
|
151
|
+
this.code = opts.code;
|
|
152
|
+
this.docs = opts.docs;
|
|
153
|
+
this.tip = opts.tip;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.UnauthenticatedException = UnauthenticatedException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2016-11-28",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.lightsail",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2016-11-28",
|
|
33
35
|
serviceTarget: "Lightsail_20161128",
|
|
34
36
|
},
|