@aws-sdk/client-guardduty 3.328.0 → 3.329.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/README.md CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  # @aws-sdk/client-guardduty
4
4
 
5
- [![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-guardduty/latest.svg)](https://www.npmjs.com/package/@aws-sdk/client-guardduty)
6
- [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-guardduty.svg)](https://www.npmjs.com/package/@aws-sdk/client-guardduty)
7
-
8
5
  ## Description
9
6
 
10
7
  AWS SDK for JavaScript GuardDuty Client for Node.js, Browser and React Native.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UsageStatisticType = exports.UsageFeature = exports.ThreatIntelSetStatus = exports.ScanCriterionKey = exports.IpSetStatus = exports.FindingStatisticType = exports.Feedback = exports.EbsSnapshotPreservation = exports.DetectorStatus = exports.DetectorFeatureResult = exports.PublishingStatus = exports.OrgFeature = exports.OrgFeatureAdditionalConfiguration = exports.OrgFeatureStatus = exports.ScanType = exports.ScanStatus = exports.ScanResult = exports.DataSource = exports.CriterionKey = exports.ThreatIntelSetFormat = exports.DestinationType = exports.IpSetFormat = exports.FilterAction = exports.FindingPublishingFrequency = exports.DetectorFeature = exports.FeatureStatus = exports.FeatureAdditionalConfiguration = exports.CoverageStatisticsType = exports.OrderBy = exports.CoverageSortKey = exports.CoverageFilterCriterionKey = exports.ResourceType = exports.CoverageStatus = exports.ConflictException = exports.DataSourceStatus = exports.AutoEnableMembers = exports.AdminStatus = exports.FreeTrialFeatureResult = exports.InternalServerErrorException = exports.BadRequestException = void 0;
3
+ exports.UsageStatisticType = exports.UsageFeature = exports.ThreatIntelSetStatus = exports.ScanCriterionKey = exports.IpSetStatus = exports.FindingStatisticType = exports.Feedback = exports.EbsSnapshotPreservation = exports.DetectorStatus = exports.DetectorFeatureResult = exports.PublishingStatus = exports.OrgFeature = exports.OrgFeatureAdditionalConfiguration = exports.OrgFeatureStatus = exports.ScanType = exports.ScanStatus = exports.ScanResult = exports.DataSource = exports.CriterionKey = exports.ThreatIntelSetFormat = exports.DestinationType = exports.IpSetFormat = exports.FilterAction = exports.FindingPublishingFrequency = exports.DetectorFeature = exports.FeatureStatus = exports.FeatureAdditionalConfiguration = exports.CoverageStatisticsType = exports.OrderBy = exports.CoverageSortKey = exports.CoverageFilterCriterionKey = exports.ResourceType = exports.CoverageStatus = exports.ConflictException = exports.DataSourceStatus = exports.AutoEnableMembers = exports.AdminStatus = exports.FreeTrialFeatureResult = exports.AccessDeniedException = exports.InternalServerErrorException = exports.BadRequestException = void 0;
4
4
  const GuardDutyServiceException_1 = require("./GuardDutyServiceException");
5
5
  class BadRequestException extends GuardDutyServiceException_1.GuardDutyServiceException {
6
6
  constructor(opts) {
@@ -32,6 +32,21 @@ class InternalServerErrorException extends GuardDutyServiceException_1.GuardDuty
32
32
  }
33
33
  }
34
34
  exports.InternalServerErrorException = InternalServerErrorException;
35
+ class AccessDeniedException extends GuardDutyServiceException_1.GuardDutyServiceException {
36
+ constructor(opts) {
37
+ super({
38
+ name: "AccessDeniedException",
39
+ $fault: "client",
40
+ ...opts,
41
+ });
42
+ this.name = "AccessDeniedException";
43
+ this.$fault = "client";
44
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
45
+ this.Message = opts.Message;
46
+ this.Type = opts.Type;
47
+ }
48
+ }
49
+ exports.AccessDeniedException = AccessDeniedException;
35
50
  exports.FreeTrialFeatureResult = {
36
51
  CLOUD_TRAIL: "CLOUD_TRAIL",
37
52
  DNS_LOGS: "DNS_LOGS",
@@ -3411,6 +3411,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
3411
3411
  };
3412
3412
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3413
3413
  switch (errorCode) {
3414
+ case "AccessDeniedException":
3415
+ case "com.amazonaws.guardduty#AccessDeniedException":
3416
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3414
3417
  case "BadRequestException":
3415
3418
  case "com.amazonaws.guardduty#BadRequestException":
3416
3419
  throw await de_BadRequestExceptionRes(parsedOutput, context);
@@ -3596,6 +3599,9 @@ const de_TagResourceCommandError = async (output, context) => {
3596
3599
  };
3597
3600
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3598
3601
  switch (errorCode) {
3602
+ case "AccessDeniedException":
3603
+ case "com.amazonaws.guardduty#AccessDeniedException":
3604
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3599
3605
  case "BadRequestException":
3600
3606
  case "com.amazonaws.guardduty#BadRequestException":
3601
3607
  throw await de_BadRequestExceptionRes(parsedOutput, context);
@@ -3662,6 +3668,9 @@ const de_UntagResourceCommandError = async (output, context) => {
3662
3668
  };
3663
3669
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3664
3670
  switch (errorCode) {
3671
+ case "AccessDeniedException":
3672
+ case "com.amazonaws.guardduty#AccessDeniedException":
3673
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3665
3674
  case "BadRequestException":
3666
3675
  case "com.amazonaws.guardduty#BadRequestException":
3667
3676
  throw await de_BadRequestExceptionRes(parsedOutput, context);
@@ -3983,6 +3992,20 @@ const de_UpdateThreatIntelSetCommandError = async (output, context) => {
3983
3992
  }
3984
3993
  };
3985
3994
  const throwDefaultError = (0, smithy_client_1.withBaseException)(GuardDutyServiceException_1.GuardDutyServiceException);
3995
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3996
+ const contents = (0, smithy_client_1.map)({});
3997
+ const data = parsedOutput.body;
3998
+ const doc = (0, smithy_client_1.take)(data, {
3999
+ Message: [, smithy_client_1.expectString, `message`],
4000
+ Type: [, smithy_client_1.expectString, `__type`],
4001
+ });
4002
+ Object.assign(contents, doc);
4003
+ const exception = new models_0_1.AccessDeniedException({
4004
+ $metadata: deserializeMetadata(parsedOutput),
4005
+ ...contents,
4006
+ });
4007
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4008
+ };
3986
4009
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3987
4010
  const contents = (0, smithy_client_1.map)({});
3988
4011
  const data = parsedOutput.body;
@@ -27,6 +27,20 @@ export class InternalServerErrorException extends __BaseException {
27
27
  this.Type = opts.Type;
28
28
  }
29
29
  }
30
+ export class AccessDeniedException extends __BaseException {
31
+ constructor(opts) {
32
+ super({
33
+ name: "AccessDeniedException",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ this.name = "AccessDeniedException";
38
+ this.$fault = "client";
39
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
40
+ this.Message = opts.Message;
41
+ this.Type = opts.Type;
42
+ }
43
+ }
30
44
  export const FreeTrialFeatureResult = {
31
45
  CLOUD_TRAIL: "CLOUD_TRAIL",
32
46
  DNS_LOGS: "DNS_LOGS",
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { GuardDutyServiceException as __BaseException } from "../models/GuardDutyServiceException";
5
- import { BadRequestException, ConflictException, InternalServerErrorException, } from "../models/models_0";
5
+ import { AccessDeniedException, BadRequestException, ConflictException, InternalServerErrorException, } from "../models/models_0";
6
6
  export const se_AcceptAdministratorInvitationCommand = async (input, context) => {
7
7
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
8
  const headers = {
@@ -3286,6 +3286,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
3286
3286
  };
3287
3287
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3288
3288
  switch (errorCode) {
3289
+ case "AccessDeniedException":
3290
+ case "com.amazonaws.guardduty#AccessDeniedException":
3291
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3289
3292
  case "BadRequestException":
3290
3293
  case "com.amazonaws.guardduty#BadRequestException":
3291
3294
  throw await de_BadRequestExceptionRes(parsedOutput, context);
@@ -3466,6 +3469,9 @@ const de_TagResourceCommandError = async (output, context) => {
3466
3469
  };
3467
3470
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3468
3471
  switch (errorCode) {
3472
+ case "AccessDeniedException":
3473
+ case "com.amazonaws.guardduty#AccessDeniedException":
3474
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3469
3475
  case "BadRequestException":
3470
3476
  case "com.amazonaws.guardduty#BadRequestException":
3471
3477
  throw await de_BadRequestExceptionRes(parsedOutput, context);
@@ -3530,6 +3536,9 @@ const de_UntagResourceCommandError = async (output, context) => {
3530
3536
  };
3531
3537
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3532
3538
  switch (errorCode) {
3539
+ case "AccessDeniedException":
3540
+ case "com.amazonaws.guardduty#AccessDeniedException":
3541
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3533
3542
  case "BadRequestException":
3534
3543
  case "com.amazonaws.guardduty#BadRequestException":
3535
3544
  throw await de_BadRequestExceptionRes(parsedOutput, context);
@@ -3842,6 +3851,20 @@ const de_UpdateThreatIntelSetCommandError = async (output, context) => {
3842
3851
  }
3843
3852
  };
3844
3853
  const throwDefaultError = withBaseException(__BaseException);
3854
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3855
+ const contents = map({});
3856
+ const data = parsedOutput.body;
3857
+ const doc = take(data, {
3858
+ Message: [, __expectString, `message`],
3859
+ Type: [, __expectString, `__type`],
3860
+ });
3861
+ Object.assign(contents, doc);
3862
+ const exception = new AccessDeniedException({
3863
+ $metadata: deserializeMetadata(parsedOutput),
3864
+ ...contents,
3865
+ });
3866
+ return __decorateServiceException(exception, parsedOutput.body);
3867
+ };
3845
3868
  const de_BadRequestExceptionRes = async (parsedOutput, context) => {
3846
3869
  const contents = map({});
3847
3870
  const data = parsedOutput.body;
@@ -47,6 +47,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
47
47
  * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
48
48
  * @see {@link GuardDutyClientResolvedConfig | config} for GuardDutyClient's `config` shape.
49
49
  *
50
+ * @throws {@link AccessDeniedException} (client fault)
51
+ * <p>An access denied exception object.</p>
52
+ *
50
53
  * @throws {@link BadRequestException} (client fault)
51
54
  * <p>A bad request exception object.</p>
52
55
  *
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
5
- import { StartMonitoringMembersRequest, StartMonitoringMembersResponse } from "../models/models_0";
5
+ import { StartMonitoringMembersRequest } from "../models/models_0";
6
+ import { StartMonitoringMembersResponse } from "../models/models_1";
6
7
  /**
7
8
  * @public
8
9
  *
@@ -44,6 +44,9 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
44
44
  * @see {@link TagResourceCommandOutput} for command's `response` shape.
45
45
  * @see {@link GuardDutyClientResolvedConfig | config} for GuardDutyClient's `config` shape.
46
46
  *
47
+ * @throws {@link AccessDeniedException} (client fault)
48
+ * <p>An access denied exception object.</p>
49
+ *
47
50
  * @throws {@link BadRequestException} (client fault)
48
51
  * <p>A bad request exception object.</p>
49
52
  *
@@ -44,6 +44,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
44
44
  * @see {@link UntagResourceCommandOutput} for command's `response` shape.
45
45
  * @see {@link GuardDutyClientResolvedConfig | config} for GuardDutyClient's `config` shape.
46
46
  *
47
+ * @throws {@link AccessDeniedException} (client fault)
48
+ * <p>An access denied exception object.</p>
49
+ *
47
50
  * @throws {@link BadRequestException} (client fault)
48
51
  * <p>A bad request exception object.</p>
49
52
  *
@@ -104,6 +104,26 @@ export interface AccessControlList {
104
104
  */
105
105
  AllowsPublicWriteAccess?: boolean;
106
106
  }
107
+ /**
108
+ * @public
109
+ * <p>An access denied exception object.</p>
110
+ */
111
+ export declare class AccessDeniedException extends __BaseException {
112
+ readonly name: "AccessDeniedException";
113
+ readonly $fault: "client";
114
+ /**
115
+ * <p>The error message.</p>
116
+ */
117
+ Message?: string;
118
+ /**
119
+ * <p>The error type.</p>
120
+ */
121
+ Type?: string;
122
+ /**
123
+ * @internal
124
+ */
125
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
126
+ }
107
127
  /**
108
128
  * @public
109
129
  * <p>Contains information about the access keys.</p>
@@ -5713,13 +5733,3 @@ export interface StartMonitoringMembersRequest {
5713
5733
  */
5714
5734
  AccountIds: string[] | undefined;
5715
5735
  }
5716
- /**
5717
- * @public
5718
- */
5719
- export interface StartMonitoringMembersResponse {
5720
- /**
5721
- * <p>A list of objects that contain the unprocessed account and a result string that explains
5722
- * why it was unprocessed.</p>
5723
- */
5724
- UnprocessedAccounts: UnprocessedAccount[] | undefined;
5725
- }
@@ -1,4 +1,14 @@
1
1
  import { AutoEnableMembers, DataSourceConfigurations, DestinationProperties, DetectorFeatureConfiguration, EbsSnapshotPreservation, FeatureStatus, Feedback, FilterAction, FindingCriteria, FindingPublishingFrequency, OrgFeature, OrgFeatureAdditionalConfiguration, OrgFeatureStatus, ScanResourceCriteria, UnprocessedAccount } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface StartMonitoringMembersResponse {
6
+ /**
7
+ * <p>A list of objects that contain the unprocessed account and a result string that explains
8
+ * why it was unprocessed.</p>
9
+ */
10
+ UnprocessedAccounts: UnprocessedAccount[] | undefined;
11
+ }
2
12
  /**
3
13
  * @public
4
14
  */
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../GuardDutyClient";
14
- import {
15
- StartMonitoringMembersRequest,
16
- StartMonitoringMembersResponse,
17
- } from "../models/models_0";
14
+ import { StartMonitoringMembersRequest } from "../models/models_0";
15
+ import { StartMonitoringMembersResponse } from "../models/models_1";
18
16
  export interface StartMonitoringMembersCommandInput
19
17
  extends StartMonitoringMembersRequest {}
20
18
  export interface StartMonitoringMembersCommandOutput
@@ -34,6 +34,15 @@ export interface AccessControlList {
34
34
  AllowsPublicReadAccess?: boolean;
35
35
  AllowsPublicWriteAccess?: boolean;
36
36
  }
37
+ export declare class AccessDeniedException extends __BaseException {
38
+ readonly name: "AccessDeniedException";
39
+ readonly $fault: "client";
40
+ Message?: string;
41
+ Type?: string;
42
+ constructor(
43
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
44
+ );
45
+ }
37
46
  export interface AccessKeyDetails {
38
47
  AccessKeyId?: string;
39
48
  PrincipalId?: string;
@@ -1560,6 +1569,3 @@ export interface StartMonitoringMembersRequest {
1560
1569
  DetectorId: string | undefined;
1561
1570
  AccountIds: string[] | undefined;
1562
1571
  }
1563
- export interface StartMonitoringMembersResponse {
1564
- UnprocessedAccounts: UnprocessedAccount[] | undefined;
1565
- }
@@ -15,6 +15,9 @@ import {
15
15
  ScanResourceCriteria,
16
16
  UnprocessedAccount,
17
17
  } from "./models_0";
18
+ export interface StartMonitoringMembersResponse {
19
+ UnprocessedAccounts: UnprocessedAccount[] | undefined;
20
+ }
18
21
  export interface StopMonitoringMembersRequest {
19
22
  DetectorId: string | undefined;
20
23
  AccountIds: string[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-guardduty",
3
3
  "description": "AWS SDK for JavaScript Guardduty Client for Node.js, Browser and React Native",
4
- "version": "3.328.0",
4
+ "version": "3.329.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",
@@ -21,37 +21,37 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.328.0",
25
- "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.328.0",
27
- "@aws-sdk/fetch-http-handler": "3.310.0",
28
- "@aws-sdk/hash-node": "3.310.0",
29
- "@aws-sdk/invalid-dependency": "3.310.0",
30
- "@aws-sdk/middleware-content-length": "3.325.0",
31
- "@aws-sdk/middleware-endpoint": "3.325.0",
32
- "@aws-sdk/middleware-host-header": "3.325.0",
33
- "@aws-sdk/middleware-logger": "3.325.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.325.0",
35
- "@aws-sdk/middleware-retry": "3.327.0",
36
- "@aws-sdk/middleware-serde": "3.325.0",
37
- "@aws-sdk/middleware-signing": "3.325.0",
38
- "@aws-sdk/middleware-stack": "3.325.0",
39
- "@aws-sdk/middleware-user-agent": "3.327.0",
40
- "@aws-sdk/node-config-provider": "3.310.0",
41
- "@aws-sdk/node-http-handler": "3.328.0",
42
- "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.325.0",
44
- "@aws-sdk/types": "3.310.0",
45
- "@aws-sdk/url-parser": "3.310.0",
24
+ "@aws-sdk/client-sts": "3.329.0",
25
+ "@aws-sdk/config-resolver": "3.329.0",
26
+ "@aws-sdk/credential-provider-node": "3.329.0",
27
+ "@aws-sdk/fetch-http-handler": "3.329.0",
28
+ "@aws-sdk/hash-node": "3.329.0",
29
+ "@aws-sdk/invalid-dependency": "3.329.0",
30
+ "@aws-sdk/middleware-content-length": "3.329.0",
31
+ "@aws-sdk/middleware-endpoint": "3.329.0",
32
+ "@aws-sdk/middleware-host-header": "3.329.0",
33
+ "@aws-sdk/middleware-logger": "3.329.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.329.0",
35
+ "@aws-sdk/middleware-retry": "3.329.0",
36
+ "@aws-sdk/middleware-serde": "3.329.0",
37
+ "@aws-sdk/middleware-signing": "3.329.0",
38
+ "@aws-sdk/middleware-stack": "3.329.0",
39
+ "@aws-sdk/middleware-user-agent": "3.329.0",
40
+ "@aws-sdk/node-config-provider": "3.329.0",
41
+ "@aws-sdk/node-http-handler": "3.329.0",
42
+ "@aws-sdk/protocol-http": "3.329.0",
43
+ "@aws-sdk/smithy-client": "3.329.0",
44
+ "@aws-sdk/types": "3.329.0",
45
+ "@aws-sdk/url-parser": "3.329.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.325.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.325.0",
51
- "@aws-sdk/util-endpoints": "3.327.0",
52
- "@aws-sdk/util-retry": "3.327.0",
53
- "@aws-sdk/util-user-agent-browser": "3.310.0",
54
- "@aws-sdk/util-user-agent-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.329.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.329.0",
51
+ "@aws-sdk/util-endpoints": "3.329.0",
52
+ "@aws-sdk/util-retry": "3.329.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.329.0",
54
+ "@aws-sdk/util-user-agent-node": "3.329.0",
55
55
  "@aws-sdk/util-utf8": "3.310.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"