@aws-sdk/client-aiops 3.1076.0 → 3.1078.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.
Files changed (53) hide show
  1. package/dist-cjs/index.js +22 -115
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateInvestigationGroupCommand.js +2 -14
  4. package/dist-es/commands/DeleteInvestigationGroupCommand.js +2 -14
  5. package/dist-es/commands/DeleteInvestigationGroupPolicyCommand.js +2 -14
  6. package/dist-es/commands/GetInvestigationGroupCommand.js +2 -14
  7. package/dist-es/commands/GetInvestigationGroupPolicyCommand.js +2 -14
  8. package/dist-es/commands/ListInvestigationGroupsCommand.js +2 -14
  9. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  10. package/dist-es/commands/PutInvestigationGroupPolicyCommand.js +2 -14
  11. package/dist-es/commands/TagResourceCommand.js +2 -14
  12. package/dist-es/commands/UntagResourceCommand.js +2 -14
  13. package/dist-es/commands/UpdateInvestigationGroupCommand.js +2 -14
  14. package/dist-es/index.js +1 -0
  15. package/dist-es/runtimeConfig.browser.js +0 -2
  16. package/dist-es/runtimeConfig.js +1 -2
  17. package/dist-es/runtimeConfig.native.js +0 -2
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-types/commandBuilder.d.ts +18 -0
  20. package/dist-types/commands/CreateInvestigationGroupCommand.d.ts +3 -8
  21. package/dist-types/commands/DeleteInvestigationGroupCommand.d.ts +3 -8
  22. package/dist-types/commands/DeleteInvestigationGroupPolicyCommand.d.ts +3 -8
  23. package/dist-types/commands/GetInvestigationGroupCommand.d.ts +3 -8
  24. package/dist-types/commands/GetInvestigationGroupPolicyCommand.d.ts +3 -8
  25. package/dist-types/commands/ListInvestigationGroupsCommand.d.ts +3 -8
  26. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  27. package/dist-types/commands/PutInvestigationGroupPolicyCommand.d.ts +3 -8
  28. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  29. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  30. package/dist-types/commands/UpdateInvestigationGroupCommand.d.ts +3 -8
  31. package/dist-types/index.d.ts +1 -0
  32. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  33. package/dist-types/runtimeConfig.d.ts +1 -1
  34. package/dist-types/runtimeConfig.native.d.ts +1 -1
  35. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  36. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  37. package/dist-types/ts3.4/commands/CreateInvestigationGroupCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/DeleteInvestigationGroupCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/DeleteInvestigationGroupPolicyCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/GetInvestigationGroupCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/GetInvestigationGroupPolicyCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ListInvestigationGroupsCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/PutInvestigationGroupPolicyCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/UpdateInvestigationGroupCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/index.d.ts +1 -0
  49. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  50. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  51. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  52. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  53. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultAIOpsHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -569,6 +571,7 @@ const getRuntimeConfig$1 = (config) => {
569
571
  serviceTarget: "AIOps",
570
572
  },
571
573
  serviceId: config?.serviceId ?? "AIOps",
574
+ sha256: config?.sha256 ?? Sha256,
572
575
  urlParser: config?.urlParser ?? parseUrl,
573
576
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
574
577
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -602,7 +605,6 @@ const getRuntimeConfig = (config) => {
602
605
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
603
606
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
604
607
  }, config),
605
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
606
608
  streamCollector: config?.streamCollector ?? streamCollector,
607
609
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
608
610
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -690,136 +692,41 @@ class AIOpsClient extends Client {
690
692
  }
691
693
  }
692
694
 
693
- class CreateInvestigationGroupCommand extends Command
694
- .classBuilder()
695
- .ep(commonParams)
696
- .m(function (Command, cs, config, o) {
697
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
698
- })
699
- .s("AIOps", "CreateInvestigationGroup", {})
700
- .n("AIOpsClient", "CreateInvestigationGroupCommand")
701
- .sc(CreateInvestigationGroup$)
702
- .build() {
695
+ const command = makeBuilder(commonParams, "AIOps", "AIOpsClient", getEndpointPlugin);
696
+ const _ep0 = {};
697
+ const _mw0 = (Command, cs, config, o) => [];
698
+
699
+ class CreateInvestigationGroupCommand extends command(_ep0, _mw0, "CreateInvestigationGroup", CreateInvestigationGroup$) {
703
700
  }
704
701
 
705
- class DeleteInvestigationGroupCommand extends Command
706
- .classBuilder()
707
- .ep(commonParams)
708
- .m(function (Command, cs, config, o) {
709
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
710
- })
711
- .s("AIOps", "DeleteInvestigationGroup", {})
712
- .n("AIOpsClient", "DeleteInvestigationGroupCommand")
713
- .sc(DeleteInvestigationGroup$)
714
- .build() {
702
+ class DeleteInvestigationGroupCommand extends command(_ep0, _mw0, "DeleteInvestigationGroup", DeleteInvestigationGroup$) {
715
703
  }
716
704
 
717
- class DeleteInvestigationGroupPolicyCommand extends Command
718
- .classBuilder()
719
- .ep(commonParams)
720
- .m(function (Command, cs, config, o) {
721
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
722
- })
723
- .s("AIOps", "DeleteInvestigationGroupPolicy", {})
724
- .n("AIOpsClient", "DeleteInvestigationGroupPolicyCommand")
725
- .sc(DeleteInvestigationGroupPolicy$)
726
- .build() {
705
+ class DeleteInvestigationGroupPolicyCommand extends command(_ep0, _mw0, "DeleteInvestigationGroupPolicy", DeleteInvestigationGroupPolicy$) {
727
706
  }
728
707
 
729
- class GetInvestigationGroupCommand extends Command
730
- .classBuilder()
731
- .ep(commonParams)
732
- .m(function (Command, cs, config, o) {
733
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
734
- })
735
- .s("AIOps", "GetInvestigationGroup", {})
736
- .n("AIOpsClient", "GetInvestigationGroupCommand")
737
- .sc(GetInvestigationGroup$)
738
- .build() {
708
+ class GetInvestigationGroupCommand extends command(_ep0, _mw0, "GetInvestigationGroup", GetInvestigationGroup$) {
739
709
  }
740
710
 
741
- class GetInvestigationGroupPolicyCommand extends Command
742
- .classBuilder()
743
- .ep(commonParams)
744
- .m(function (Command, cs, config, o) {
745
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
746
- })
747
- .s("AIOps", "GetInvestigationGroupPolicy", {})
748
- .n("AIOpsClient", "GetInvestigationGroupPolicyCommand")
749
- .sc(GetInvestigationGroupPolicy$)
750
- .build() {
711
+ class GetInvestigationGroupPolicyCommand extends command(_ep0, _mw0, "GetInvestigationGroupPolicy", GetInvestigationGroupPolicy$) {
751
712
  }
752
713
 
753
- class ListInvestigationGroupsCommand extends Command
754
- .classBuilder()
755
- .ep(commonParams)
756
- .m(function (Command, cs, config, o) {
757
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
758
- })
759
- .s("AIOps", "ListInvestigationGroups", {})
760
- .n("AIOpsClient", "ListInvestigationGroupsCommand")
761
- .sc(ListInvestigationGroups$)
762
- .build() {
714
+ class ListInvestigationGroupsCommand extends command(_ep0, _mw0, "ListInvestigationGroups", ListInvestigationGroups$) {
763
715
  }
764
716
 
765
- class ListTagsForResourceCommand extends Command
766
- .classBuilder()
767
- .ep(commonParams)
768
- .m(function (Command, cs, config, o) {
769
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
770
- })
771
- .s("AIOps", "ListTagsForResource", {})
772
- .n("AIOpsClient", "ListTagsForResourceCommand")
773
- .sc(ListTagsForResource$)
774
- .build() {
717
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
775
718
  }
776
719
 
777
- class PutInvestigationGroupPolicyCommand extends Command
778
- .classBuilder()
779
- .ep(commonParams)
780
- .m(function (Command, cs, config, o) {
781
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
782
- })
783
- .s("AIOps", "PutInvestigationGroupPolicy", {})
784
- .n("AIOpsClient", "PutInvestigationGroupPolicyCommand")
785
- .sc(PutInvestigationGroupPolicy$)
786
- .build() {
720
+ class PutInvestigationGroupPolicyCommand extends command(_ep0, _mw0, "PutInvestigationGroupPolicy", PutInvestigationGroupPolicy$) {
787
721
  }
788
722
 
789
- class TagResourceCommand extends Command
790
- .classBuilder()
791
- .ep(commonParams)
792
- .m(function (Command, cs, config, o) {
793
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
794
- })
795
- .s("AIOps", "TagResource", {})
796
- .n("AIOpsClient", "TagResourceCommand")
797
- .sc(TagResource$)
798
- .build() {
723
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
799
724
  }
800
725
 
801
- class UntagResourceCommand extends Command
802
- .classBuilder()
803
- .ep(commonParams)
804
- .m(function (Command, cs, config, o) {
805
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
806
- })
807
- .s("AIOps", "UntagResource", {})
808
- .n("AIOpsClient", "UntagResourceCommand")
809
- .sc(UntagResource$)
810
- .build() {
726
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
811
727
  }
812
728
 
813
- class UpdateInvestigationGroupCommand extends Command
814
- .classBuilder()
815
- .ep(commonParams)
816
- .m(function (Command, cs, config, o) {
817
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
818
- })
819
- .s("AIOps", "UpdateInvestigationGroup", {})
820
- .n("AIOpsClient", "UpdateInvestigationGroupCommand")
821
- .sc(UpdateInvestigationGroup$)
822
- .build() {
729
+ class UpdateInvestigationGroupCommand extends command(_ep0, _mw0, "UpdateInvestigationGroup", UpdateInvestigationGroup$) {
823
730
  }
824
731
 
825
732
  const paginateListInvestigationGroups = createPaginator(AIOpsClient, ListInvestigationGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "AIOps", "AIOpsClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateInvestigationGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateInvestigationGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "CreateInvestigationGroup", {})
13
- .n("AIOpsClient", "CreateInvestigationGroupCommand")
14
- .sc(CreateInvestigationGroup$)
15
- .build() {
3
+ export class CreateInvestigationGroupCommand extends command(_ep0, _mw0, "CreateInvestigationGroup", CreateInvestigationGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteInvestigationGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteInvestigationGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "DeleteInvestigationGroup", {})
13
- .n("AIOpsClient", "DeleteInvestigationGroupCommand")
14
- .sc(DeleteInvestigationGroup$)
15
- .build() {
3
+ export class DeleteInvestigationGroupCommand extends command(_ep0, _mw0, "DeleteInvestigationGroup", DeleteInvestigationGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteInvestigationGroupPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteInvestigationGroupPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "DeleteInvestigationGroupPolicy", {})
13
- .n("AIOpsClient", "DeleteInvestigationGroupPolicyCommand")
14
- .sc(DeleteInvestigationGroupPolicy$)
15
- .build() {
3
+ export class DeleteInvestigationGroupPolicyCommand extends command(_ep0, _mw0, "DeleteInvestigationGroupPolicy", DeleteInvestigationGroupPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetInvestigationGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetInvestigationGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "GetInvestigationGroup", {})
13
- .n("AIOpsClient", "GetInvestigationGroupCommand")
14
- .sc(GetInvestigationGroup$)
15
- .build() {
3
+ export class GetInvestigationGroupCommand extends command(_ep0, _mw0, "GetInvestigationGroup", GetInvestigationGroup$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetInvestigationGroupPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetInvestigationGroupPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "GetInvestigationGroupPolicy", {})
13
- .n("AIOpsClient", "GetInvestigationGroupPolicyCommand")
14
- .sc(GetInvestigationGroupPolicy$)
15
- .build() {
3
+ export class GetInvestigationGroupPolicyCommand extends command(_ep0, _mw0, "GetInvestigationGroupPolicy", GetInvestigationGroupPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListInvestigationGroups$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListInvestigationGroupsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "ListInvestigationGroups", {})
13
- .n("AIOpsClient", "ListInvestigationGroupsCommand")
14
- .sc(ListInvestigationGroups$)
15
- .build() {
3
+ export class ListInvestigationGroupsCommand extends command(_ep0, _mw0, "ListInvestigationGroups", ListInvestigationGroups$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "ListTagsForResource", {})
13
- .n("AIOpsClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutInvestigationGroupPolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutInvestigationGroupPolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "PutInvestigationGroupPolicy", {})
13
- .n("AIOpsClient", "PutInvestigationGroupPolicyCommand")
14
- .sc(PutInvestigationGroupPolicy$)
15
- .build() {
3
+ export class PutInvestigationGroupPolicyCommand extends command(_ep0, _mw0, "PutInvestigationGroupPolicy", PutInvestigationGroupPolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "TagResource", {})
13
- .n("AIOpsClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "UntagResource", {})
13
- .n("AIOpsClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateInvestigationGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateInvestigationGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AIOps", "UpdateInvestigationGroup", {})
13
- .n("AIOpsClient", "UpdateInvestigationGroupCommand")
14
- .sc(UpdateInvestigationGroup$)
15
- .build() {
3
+ export class UpdateInvestigationGroupCommand extends command(_ep0, _mw0, "UpdateInvestigationGroup", UpdateInvestigationGroup$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./AIOpsClient";
2
2
  export * from "./AIOps";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "AIOps",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "AIOps",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./AIOpsClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AIOpsClient";
4
2
  import type { CreateInvestigationGroupInput, CreateInvestigationGroupOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateInvestigationGroupCommandInput extends CreateInvestigatio
22
19
  export interface CreateInvestigationGroupCommandOutput extends CreateInvestigationGroupOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateInvestigationGroupCommand_base: {
25
- new (input: CreateInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateInvestigationGroupCommandInput, CreateInvestigationGroupCommandOutput, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateInvestigationGroupCommandInput, CreateInvestigationGroupCommandOutput, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateInvestigationGroupCommandInput, CreateInvestigationGroupCommandOutput, import("..").AIOpsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<CreateInvestigationGroupCommandInput, CreateInvestigationGroupCommandOutput, import("..").AIOpsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates an <i>investigation group</i> in your account. Creating an investigation group is a one-time setup task for each Region in your account. It is a necessary task to be able to perform investigations.</p> <p>Settings in the investigation group help you centrally manage the common properties of your investigations, such as the following:</p> <ul> <li> <p>Who can access the investigations</p> </li> <li> <p>Whether investigation data is encrypted with a customer managed Key Management Service key.</p> </li> <li> <p>How long investigations and their data are retained by default.</p> </li> </ul> <p>Currently, you can have one investigation group in each Region in your account. Each investigation in a Region is a part of the investigation group in that Region</p> <p>To create an investigation group and set up CloudWatch investigations, you must be signed in to an IAM principal that has either the <code>AIOpsConsoleAdminPolicy</code> or the <code>AdministratorAccess</code> IAM policy attached, or to an account that has similar permissions.</p> <important> <p>You can configure CloudWatch alarms to start investigations and add events to investigations. If you create your investigation group with <code>CreateInvestigationGroup</code> and you want to enable alarms to do this, you must use <code>PutInvestigationGroupPolicy</code> to create a resource policy that grants this permission to CloudWatch alarms. </p> <p>For more information about configuring CloudWatch alarms, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html">Using Amazon CloudWatch alarms</a> </p> </important>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AIOpsClient";
4
2
  import type { DeleteInvestigationGroupRequest } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteInvestigationGroupCommandInput extends DeleteInvestigatio
22
19
  export interface DeleteInvestigationGroupCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteInvestigationGroupCommand_base: {
25
- new (input: DeleteInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupCommandInput, DeleteInvestigationGroupCommandOutput, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupCommandInput, DeleteInvestigationGroupCommandOutput, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupCommandInput, DeleteInvestigationGroupCommandOutput, import("..").AIOpsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteInvestigationGroupCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupCommandInput, DeleteInvestigationGroupCommandOutput, import("..").AIOpsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified investigation group from your account. You can currently have one investigation group per Region in your account. After you delete an investigation group, you can later create a new investigation group in the same Region.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AIOpsClient";
4
2
  import type { DeleteInvestigationGroupPolicyOutput, DeleteInvestigationGroupPolicyRequest } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeleteInvestigationGroupPolicyCommandInput extends DeleteInvest
22
19
  export interface DeleteInvestigationGroupPolicyCommandOutput extends DeleteInvestigationGroupPolicyOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteInvestigationGroupPolicyCommand_base: {
25
- new (input: DeleteInvestigationGroupPolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupPolicyCommandInput, DeleteInvestigationGroupPolicyCommandOutput, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteInvestigationGroupPolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupPolicyCommandInput, DeleteInvestigationGroupPolicyCommandOutput, AIOpsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteInvestigationGroupPolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupPolicyCommandInput, DeleteInvestigationGroupPolicyCommandOutput, import("..").AIOpsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteInvestigationGroupPolicyCommandInput): import("@smithy/core/client").CommandImpl<DeleteInvestigationGroupPolicyCommandInput, DeleteInvestigationGroupPolicyCommandOutput, import("..").AIOpsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Removes the IAM resource policy from being associated with the investigation group that you specify.</p>