@aws-sdk/client-inspector2 3.696.0 → 3.699.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 +22 -22
- package/dist-es/models/models_0.js +13 -13
- package/dist-es/protocols/Aws_restJson1.js +3 -3
- package/dist-types/commands/AssociateMemberCommand.d.ts +11 -1
- package/dist-types/models/models_0.d.ts +18 -18
- package/dist-types/ts3.4/models/models_0.d.ts +8 -8
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -592,6 +592,24 @@ var _InternalServerException = class _InternalServerException extends Inspector2
|
|
|
592
592
|
};
|
|
593
593
|
__name(_InternalServerException, "InternalServerException");
|
|
594
594
|
var InternalServerException = _InternalServerException;
|
|
595
|
+
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends Inspector2ServiceException {
|
|
596
|
+
/**
|
|
597
|
+
* @internal
|
|
598
|
+
*/
|
|
599
|
+
constructor(opts) {
|
|
600
|
+
super({
|
|
601
|
+
name: "ServiceQuotaExceededException",
|
|
602
|
+
$fault: "client",
|
|
603
|
+
...opts
|
|
604
|
+
});
|
|
605
|
+
this.name = "ServiceQuotaExceededException";
|
|
606
|
+
this.$fault = "client";
|
|
607
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
608
|
+
this.resourceId = opts.resourceId;
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
612
|
+
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
595
613
|
var _ThrottlingException = class _ThrottlingException extends Inspector2ServiceException {
|
|
596
614
|
/**
|
|
597
615
|
* @internal
|
|
@@ -941,24 +959,6 @@ var FilterAction = {
|
|
|
941
959
|
NONE: "NONE",
|
|
942
960
|
SUPPRESS: "SUPPRESS"
|
|
943
961
|
};
|
|
944
|
-
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends Inspector2ServiceException {
|
|
945
|
-
/**
|
|
946
|
-
* @internal
|
|
947
|
-
*/
|
|
948
|
-
constructor(opts) {
|
|
949
|
-
super({
|
|
950
|
-
name: "ServiceQuotaExceededException",
|
|
951
|
-
$fault: "client",
|
|
952
|
-
...opts
|
|
953
|
-
});
|
|
954
|
-
this.name = "ServiceQuotaExceededException";
|
|
955
|
-
this.$fault = "client";
|
|
956
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
957
|
-
this.resourceId = opts.resourceId;
|
|
958
|
-
}
|
|
959
|
-
};
|
|
960
|
-
__name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
|
|
961
|
-
var ServiceQuotaExceededException = _ServiceQuotaExceededException;
|
|
962
962
|
var ReportFormat = {
|
|
963
963
|
CSV: "CSV",
|
|
964
964
|
JSON: "JSON"
|
|
@@ -2890,6 +2890,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2890
2890
|
case "InternalServerException":
|
|
2891
2891
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
2892
2892
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2893
|
+
case "ServiceQuotaExceededException":
|
|
2894
|
+
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
2895
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2893
2896
|
case "ThrottlingException":
|
|
2894
2897
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
2895
2898
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -2902,9 +2905,6 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2902
2905
|
case "BadRequestException":
|
|
2903
2906
|
case "com.amazonaws.inspector2#BadRequestException":
|
|
2904
2907
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2905
|
-
case "ServiceQuotaExceededException":
|
|
2906
|
-
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
2907
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2908
2908
|
case "ConflictException":
|
|
2909
2909
|
case "com.amazonaws.inspector2#ConflictException":
|
|
2910
2910
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
@@ -4845,6 +4845,7 @@ var StopCisSessionStatus = {
|
|
|
4845
4845
|
AggregationType,
|
|
4846
4846
|
Architecture,
|
|
4847
4847
|
InternalServerException,
|
|
4848
|
+
ServiceQuotaExceededException,
|
|
4848
4849
|
ThrottlingException,
|
|
4849
4850
|
ValidationExceptionReason,
|
|
4850
4851
|
ValidationException,
|
|
@@ -4892,7 +4893,6 @@ var StopCisSessionStatus = {
|
|
|
4892
4893
|
ScanStatusCode,
|
|
4893
4894
|
ScanType,
|
|
4894
4895
|
FilterAction,
|
|
4895
|
-
ServiceQuotaExceededException,
|
|
4896
4896
|
ReportFormat,
|
|
4897
4897
|
SbomReportFormat,
|
|
4898
4898
|
ResourceStringComparison,
|
|
@@ -209,6 +209,19 @@ export class InternalServerException extends __BaseException {
|
|
|
209
209
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
213
|
+
constructor(opts) {
|
|
214
|
+
super({
|
|
215
|
+
name: "ServiceQuotaExceededException",
|
|
216
|
+
$fault: "client",
|
|
217
|
+
...opts,
|
|
218
|
+
});
|
|
219
|
+
this.name = "ServiceQuotaExceededException";
|
|
220
|
+
this.$fault = "client";
|
|
221
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
222
|
+
this.resourceId = opts.resourceId;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
212
225
|
export class ThrottlingException extends __BaseException {
|
|
213
226
|
constructor(opts) {
|
|
214
227
|
super({
|
|
@@ -533,19 +546,6 @@ export const FilterAction = {
|
|
|
533
546
|
NONE: "NONE",
|
|
534
547
|
SUPPRESS: "SUPPRESS",
|
|
535
548
|
};
|
|
536
|
-
export class ServiceQuotaExceededException extends __BaseException {
|
|
537
|
-
constructor(opts) {
|
|
538
|
-
super({
|
|
539
|
-
name: "ServiceQuotaExceededException",
|
|
540
|
-
$fault: "client",
|
|
541
|
-
...opts,
|
|
542
|
-
});
|
|
543
|
-
this.name = "ServiceQuotaExceededException";
|
|
544
|
-
this.$fault = "client";
|
|
545
|
-
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
546
|
-
this.resourceId = opts.resourceId;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
549
|
export const ReportFormat = {
|
|
550
550
|
CSV: "CSV",
|
|
551
551
|
JSON: "JSON",
|
|
@@ -1677,6 +1677,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1677
1677
|
case "InternalServerException":
|
|
1678
1678
|
case "com.amazonaws.inspector2#InternalServerException":
|
|
1679
1679
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1680
|
+
case "ServiceQuotaExceededException":
|
|
1681
|
+
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
1682
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1680
1683
|
case "ThrottlingException":
|
|
1681
1684
|
case "com.amazonaws.inspector2#ThrottlingException":
|
|
1682
1685
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -1689,9 +1692,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1689
1692
|
case "BadRequestException":
|
|
1690
1693
|
case "com.amazonaws.inspector2#BadRequestException":
|
|
1691
1694
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ServiceQuotaExceededException":
|
|
1693
|
-
case "com.amazonaws.inspector2#ServiceQuotaExceededException":
|
|
1694
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1695
1695
|
case "ConflictException":
|
|
1696
1696
|
case "com.amazonaws.inspector2#ConflictException":
|
|
1697
1697
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
@@ -27,7 +27,13 @@ declare const AssociateMemberCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>
|
|
30
|
+
* <p>
|
|
31
|
+
* Associates an Amazon Web Services account with an Amazon Inspector delegated administrator.
|
|
32
|
+
* An HTTP 200 response indicates the association was started but doesn’t indicate whether it completed.
|
|
33
|
+
* You can check if the association completed using <a href="https://docs.aws.amazon.com/inspector/v2/APIReference/API_ListMembers.html">ListMembers</a> for multiple accounts or <a href="https://docs.aws.amazon.com/inspector/v2/APIReference/API_GetMember.html">GetMembers</a> for a single account.
|
|
34
|
+
* An HTTP 402 response indicates the association failed because the organization size exceeded its limit.
|
|
35
|
+
* For information on limits, see <a href="https://docs.aws.amazon.com/inspector/latest/user/quotas.html">Amazon Inspector quotas</a>.
|
|
36
|
+
* </p>
|
|
31
37
|
* @example
|
|
32
38
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
39
|
* ```javascript
|
|
@@ -57,6 +63,10 @@ declare const AssociateMemberCommand_base: {
|
|
|
57
63
|
* @throws {@link InternalServerException} (server fault)
|
|
58
64
|
* <p>The request has failed due to an internal failure of the Amazon Inspector service.</p>
|
|
59
65
|
*
|
|
66
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
67
|
+
* <p>You have exceeded your service quota. To perform the requested action, remove some of
|
|
68
|
+
* the relevant resources, or use Service Quotas to request a service quota increase.</p>
|
|
69
|
+
*
|
|
60
70
|
* @throws {@link ThrottlingException} (client fault)
|
|
61
71
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
62
72
|
*
|
|
@@ -1707,6 +1707,24 @@ export declare class InternalServerException extends __BaseException {
|
|
|
1707
1707
|
*/
|
|
1708
1708
|
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
1709
1709
|
}
|
|
1710
|
+
/**
|
|
1711
|
+
* <p>You have exceeded your service quota. To perform the requested action, remove some of
|
|
1712
|
+
* the relevant resources, or use Service Quotas to request a service quota increase.</p>
|
|
1713
|
+
* @public
|
|
1714
|
+
*/
|
|
1715
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
1716
|
+
readonly name: "ServiceQuotaExceededException";
|
|
1717
|
+
readonly $fault: "client";
|
|
1718
|
+
/**
|
|
1719
|
+
* <p>The ID of the resource that exceeds a service quota.</p>
|
|
1720
|
+
* @public
|
|
1721
|
+
*/
|
|
1722
|
+
resourceId: string | undefined;
|
|
1723
|
+
/**
|
|
1724
|
+
* @internal
|
|
1725
|
+
*/
|
|
1726
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
1727
|
+
}
|
|
1710
1728
|
/**
|
|
1711
1729
|
* <p>The limit on the number of requests per second was exceeded.</p>
|
|
1712
1730
|
* @public
|
|
@@ -4795,24 +4813,6 @@ export interface CreateFilterResponse {
|
|
|
4795
4813
|
*/
|
|
4796
4814
|
arn: string | undefined;
|
|
4797
4815
|
}
|
|
4798
|
-
/**
|
|
4799
|
-
* <p>You have exceeded your service quota. To perform the requested action, remove some of
|
|
4800
|
-
* the relevant resources, or use Service Quotas to request a service quota increase.</p>
|
|
4801
|
-
* @public
|
|
4802
|
-
*/
|
|
4803
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
4804
|
-
readonly name: "ServiceQuotaExceededException";
|
|
4805
|
-
readonly $fault: "client";
|
|
4806
|
-
/**
|
|
4807
|
-
* <p>The ID of the resource that exceeds a service quota.</p>
|
|
4808
|
-
* @public
|
|
4809
|
-
*/
|
|
4810
|
-
resourceId: string | undefined;
|
|
4811
|
-
/**
|
|
4812
|
-
* @internal
|
|
4813
|
-
*/
|
|
4814
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
4815
|
-
}
|
|
4816
4816
|
/**
|
|
4817
4817
|
* @public
|
|
4818
4818
|
* @enum
|
|
@@ -777,6 +777,14 @@ export declare class InternalServerException extends __BaseException {
|
|
|
777
777
|
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
778
778
|
);
|
|
779
779
|
}
|
|
780
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
781
|
+
readonly name: "ServiceQuotaExceededException";
|
|
782
|
+
readonly $fault: "client";
|
|
783
|
+
resourceId: string | undefined;
|
|
784
|
+
constructor(
|
|
785
|
+
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
786
|
+
);
|
|
787
|
+
}
|
|
780
788
|
export declare class ThrottlingException extends __BaseException {
|
|
781
789
|
readonly name: "ThrottlingException";
|
|
782
790
|
readonly $fault: "client";
|
|
@@ -1713,14 +1721,6 @@ export interface CreateFilterRequest {
|
|
|
1713
1721
|
export interface CreateFilterResponse {
|
|
1714
1722
|
arn: string | undefined;
|
|
1715
1723
|
}
|
|
1716
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
1717
|
-
readonly name: "ServiceQuotaExceededException";
|
|
1718
|
-
readonly $fault: "client";
|
|
1719
|
-
resourceId: string | undefined;
|
|
1720
|
-
constructor(
|
|
1721
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
1722
|
-
);
|
|
1723
|
-
}
|
|
1724
1724
|
export declare const ReportFormat: {
|
|
1725
1725
|
readonly CSV: "CSV";
|
|
1726
1726
|
readonly JSON: "JSON";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.699.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-inspector2",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.699.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.699.0",
|
|
25
25
|
"@aws-sdk/core": "3.696.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.699.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.696.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.696.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.696.0",
|