@aws-sdk/client-inspector2 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 +94 -3799
- package/dist-cjs/models/Inspector2ServiceException.js +12 -0
- package/dist-cjs/models/errors.js +126 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +3240 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +130 -124
- 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.Inspector2ServiceException = 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 Inspector2ServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, Inspector2ServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.Inspector2ServiceException = Inspector2ServiceException;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceNotFoundException = exports.ConflictException = exports.BadRequestException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const Inspector2ServiceException_1 = require("./Inspector2ServiceException");
|
|
5
|
+
class AccessDeniedException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class InternalServerException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
19
|
+
name = "InternalServerException";
|
|
20
|
+
$fault = "server";
|
|
21
|
+
$retryable = {};
|
|
22
|
+
retryAfterSeconds;
|
|
23
|
+
constructor(opts) {
|
|
24
|
+
super({
|
|
25
|
+
name: "InternalServerException",
|
|
26
|
+
$fault: "server",
|
|
27
|
+
...opts,
|
|
28
|
+
});
|
|
29
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
30
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.InternalServerException = InternalServerException;
|
|
34
|
+
class ServiceQuotaExceededException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
35
|
+
name = "ServiceQuotaExceededException";
|
|
36
|
+
$fault = "client";
|
|
37
|
+
resourceId;
|
|
38
|
+
constructor(opts) {
|
|
39
|
+
super({
|
|
40
|
+
name: "ServiceQuotaExceededException",
|
|
41
|
+
$fault: "client",
|
|
42
|
+
...opts,
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
45
|
+
this.resourceId = opts.resourceId;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
49
|
+
class ThrottlingException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
50
|
+
name = "ThrottlingException";
|
|
51
|
+
$fault = "client";
|
|
52
|
+
$retryable = {
|
|
53
|
+
throttling: true,
|
|
54
|
+
};
|
|
55
|
+
retryAfterSeconds;
|
|
56
|
+
constructor(opts) {
|
|
57
|
+
super({
|
|
58
|
+
name: "ThrottlingException",
|
|
59
|
+
$fault: "client",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
63
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.ThrottlingException = ThrottlingException;
|
|
67
|
+
class ValidationException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
68
|
+
name = "ValidationException";
|
|
69
|
+
$fault = "client";
|
|
70
|
+
reason;
|
|
71
|
+
fields;
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "ValidationException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
79
|
+
this.reason = opts.reason;
|
|
80
|
+
this.fields = opts.fields;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.ValidationException = ValidationException;
|
|
84
|
+
class BadRequestException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
85
|
+
name = "BadRequestException";
|
|
86
|
+
$fault = "client";
|
|
87
|
+
constructor(opts) {
|
|
88
|
+
super({
|
|
89
|
+
name: "BadRequestException",
|
|
90
|
+
$fault: "client",
|
|
91
|
+
...opts,
|
|
92
|
+
});
|
|
93
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.BadRequestException = BadRequestException;
|
|
97
|
+
class ConflictException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
98
|
+
name = "ConflictException";
|
|
99
|
+
$fault = "client";
|
|
100
|
+
resourceId;
|
|
101
|
+
resourceType;
|
|
102
|
+
constructor(opts) {
|
|
103
|
+
super({
|
|
104
|
+
name: "ConflictException",
|
|
105
|
+
$fault: "client",
|
|
106
|
+
...opts,
|
|
107
|
+
});
|
|
108
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
109
|
+
this.resourceId = opts.resourceId;
|
|
110
|
+
this.resourceType = opts.resourceType;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.ConflictException = ConflictException;
|
|
114
|
+
class ResourceNotFoundException extends Inspector2ServiceException_1.Inspector2ServiceException {
|
|
115
|
+
name = "ResourceNotFoundException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
constructor(opts) {
|
|
118
|
+
super({
|
|
119
|
+
name: "ResourceNotFoundException",
|
|
120
|
+
$fault: "client",
|
|
121
|
+
...opts,
|
|
122
|
+
});
|
|
123
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
@@ -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: "2020-06-08",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.inspector2",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2020-06-08",
|
|
33
35
|
serviceTarget: "Inspector2",
|
|
34
36
|
},
|