@aws-sdk/client-securityhub 3.583.0 → 3.587.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 CHANGED
@@ -597,7 +597,8 @@ var Target;
597
597
  })(Target || (Target = {}));
598
598
  var TargetType = {
599
599
  ACCOUNT: "ACCOUNT",
600
- ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT"
600
+ ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT",
601
+ ROOT: "ROOT"
601
602
  };
602
603
  var ParameterValue;
603
604
  ((ParameterValue2) => {
@@ -1406,11 +1407,11 @@ var se_GetFindingHistoryCommand = /* @__PURE__ */ __name(async (input, context)
1406
1407
  let body;
1407
1408
  body = JSON.stringify(
1408
1409
  (0, import_smithy_client.take)(input, {
1409
- EndTime: (_) => _.toISOString().split(".")[0] + "Z",
1410
+ EndTime: (_) => (0, import_smithy_client.serializeDateTime)(_),
1410
1411
  FindingIdentifier: (_) => (0, import_smithy_client._json)(_),
1411
1412
  MaxResults: [],
1412
1413
  NextToken: [],
1413
- StartTime: (_) => _.toISOString().split(".")[0] + "Z"
1414
+ StartTime: (_) => (0, import_smithy_client.serializeDateTime)(_)
1414
1415
  })
1415
1416
  );
1416
1417
  b.m("POST").h(headers).b(body);
@@ -67,6 +67,7 @@ export var Target;
67
67
  export const TargetType = {
68
68
  ACCOUNT: "ACCOUNT",
69
69
  ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT",
70
+ ROOT: "ROOT",
70
71
  };
71
72
  export var ParameterValue;
72
73
  (function (ParameterValue) {
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, InternalException, InvalidAccessException, InvalidInputException, LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
5
5
  import { ParameterValue, Policy, ResourceConflictException, ResourceInUseException, } from "../models/models_2";
6
6
  import { SecurityHubServiceException as __BaseException } from "../models/SecurityHubServiceException";
@@ -601,11 +601,11 @@ export const se_GetFindingHistoryCommand = async (input, context) => {
601
601
  b.bp("/findingHistory/get");
602
602
  let body;
603
603
  body = JSON.stringify(take(input, {
604
- EndTime: (_) => _.toISOString().split(".")[0] + "Z",
604
+ EndTime: (_) => __serializeDateTime(_),
605
605
  FindingIdentifier: (_) => _json(_),
606
606
  MaxResults: [],
607
607
  NextToken: [],
608
- StartTime: (_) => _.toISOString().split(".")[0] + "Z",
608
+ StartTime: (_) => __serializeDateTime(_),
609
609
  }));
610
610
  b.m("POST").h(headers).b(body);
611
611
  return b.build();
@@ -55,7 +55,7 @@ declare const BatchGetConfigurationPolicyAssociationsCommand_base: {
55
55
  * // { // ConfigurationPolicyAssociationSummary
56
56
  * // ConfigurationPolicyId: "STRING_VALUE",
57
57
  * // TargetId: "STRING_VALUE",
58
- * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT",
58
+ * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT" || "ROOT",
59
59
  * // AssociationType: "INHERITED" || "APPLIED",
60
60
  * // UpdatedAt: new Date("TIMESTAMP"),
61
61
  * // AssociationStatus: "PENDING" || "SUCCESS" || "FAILED",
@@ -49,7 +49,7 @@ declare const GetConfigurationPolicyAssociationCommand_base: {
49
49
  * // { // GetConfigurationPolicyAssociationResponse
50
50
  * // ConfigurationPolicyId: "STRING_VALUE",
51
51
  * // TargetId: "STRING_VALUE",
52
- * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT",
52
+ * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT" || "ROOT",
53
53
  * // AssociationType: "INHERITED" || "APPLIED",
54
54
  * // UpdatedAt: new Date("TIMESTAMP"),
55
55
  * // AssociationStatus: "PENDING" || "SUCCESS" || "FAILED",
@@ -52,7 +52,7 @@ declare const ListConfigurationPolicyAssociationsCommand_base: {
52
52
  * // { // ConfigurationPolicyAssociationSummary
53
53
  * // ConfigurationPolicyId: "STRING_VALUE",
54
54
  * // TargetId: "STRING_VALUE",
55
- * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT",
55
+ * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT" || "ROOT",
56
56
  * // AssociationType: "INHERITED" || "APPLIED",
57
57
  * // UpdatedAt: new Date("TIMESTAMP"),
58
58
  * // AssociationStatus: "PENDING" || "SUCCESS" || "FAILED",
@@ -50,7 +50,7 @@ declare const StartConfigurationPolicyAssociationCommand_base: {
50
50
  * // { // StartConfigurationPolicyAssociationResponse
51
51
  * // ConfigurationPolicyId: "STRING_VALUE",
52
52
  * // TargetId: "STRING_VALUE",
53
- * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT",
53
+ * // TargetType: "ACCOUNT" || "ORGANIZATIONAL_UNIT" || "ROOT",
54
54
  * // AssociationType: "INHERITED" || "APPLIED",
55
55
  * // UpdatedAt: new Date("TIMESTAMP"),
56
56
  * // AssociationStatus: "PENDING" || "SUCCESS" || "FAILED",
@@ -3916,6 +3916,7 @@ export interface BatchGetConfigurationPolicyAssociationsRequest {
3916
3916
  export declare const TargetType: {
3917
3917
  readonly ACCOUNT: "ACCOUNT";
3918
3918
  readonly ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT";
3919
+ readonly ROOT: "ROOT";
3919
3920
  };
3920
3921
  /**
3921
3922
  * @public
@@ -808,6 +808,7 @@ export interface BatchGetConfigurationPolicyAssociationsRequest {
808
808
  export declare const TargetType: {
809
809
  readonly ACCOUNT: "ACCOUNT";
810
810
  readonly ORGANIZATIONAL_UNIT: "ORGANIZATIONAL_UNIT";
811
+ readonly ROOT: "ROOT";
811
812
  };
812
813
  export type TargetType = (typeof TargetType)[keyof typeof TargetType];
813
814
  export interface ConfigurationPolicyAssociationSummary {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityhub",
3
3
  "description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
4
- "version": "3.583.0",
4
+ "version": "3.587.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-securityhub",
@@ -20,41 +20,41 @@
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-sso-oidc": "3.583.0",
24
- "@aws-sdk/client-sts": "3.583.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.583.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
30
- "@aws-sdk/middleware-user-agent": "3.583.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
30
+ "@aws-sdk/middleware-user-agent": "3.587.0",
31
+ "@aws-sdk/region-config-resolver": "3.587.0",
32
32
  "@aws-sdk/types": "3.577.0",
33
- "@aws-sdk/util-endpoints": "3.583.0",
33
+ "@aws-sdk/util-endpoints": "3.587.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
- "@aws-sdk/util-user-agent-node": "3.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
35
+ "@aws-sdk/util-user-agent-node": "3.587.0",
36
+ "@smithy/config-resolver": "^3.0.1",
37
+ "@smithy/core": "^2.1.1",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",
41
41
  "@smithy/middleware-content-length": "^3.0.0",
42
- "@smithy/middleware-endpoint": "^3.0.0",
43
- "@smithy/middleware-retry": "^3.0.1",
42
+ "@smithy/middleware-endpoint": "^3.0.1",
43
+ "@smithy/middleware-retry": "^3.0.3",
44
44
  "@smithy/middleware-serde": "^3.0.0",
45
45
  "@smithy/middleware-stack": "^3.0.0",
46
- "@smithy/node-config-provider": "^3.0.0",
46
+ "@smithy/node-config-provider": "^3.1.0",
47
47
  "@smithy/node-http-handler": "^3.0.0",
48
48
  "@smithy/protocol-http": "^4.0.0",
49
- "@smithy/smithy-client": "^3.0.1",
49
+ "@smithy/smithy-client": "^3.1.1",
50
50
  "@smithy/types": "^3.0.0",
51
51
  "@smithy/url-parser": "^3.0.0",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.3",
56
+ "@smithy/util-defaults-mode-node": "^3.0.3",
57
+ "@smithy/util-endpoints": "^2.0.1",
58
58
  "@smithy/util-middleware": "^3.0.0",
59
59
  "@smithy/util-retry": "^3.0.0",
60
60
  "@smithy/util-utf8": "^3.0.0",