@aws-sdk/client-pca-connector-scep 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 (56) hide show
  1. package/dist-cjs/index.js +23 -125
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateChallengeCommand.js +2 -14
  4. package/dist-es/commands/CreateConnectorCommand.js +2 -14
  5. package/dist-es/commands/DeleteChallengeCommand.js +2 -14
  6. package/dist-es/commands/DeleteConnectorCommand.js +2 -14
  7. package/dist-es/commands/GetChallengeMetadataCommand.js +2 -14
  8. package/dist-es/commands/GetChallengePasswordCommand.js +2 -14
  9. package/dist-es/commands/GetConnectorCommand.js +2 -14
  10. package/dist-es/commands/ListChallengeMetadataCommand.js +2 -14
  11. package/dist-es/commands/ListConnectorsCommand.js +2 -14
  12. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  13. package/dist-es/commands/TagResourceCommand.js +2 -14
  14. package/dist-es/commands/UntagResourceCommand.js +2 -14
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/runtimeConfig.browser.js +0 -2
  17. package/dist-es/runtimeConfig.js +1 -2
  18. package/dist-es/runtimeConfig.native.js +0 -2
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/CreateChallengeCommand.d.ts +3 -8
  22. package/dist-types/commands/CreateConnectorCommand.d.ts +3 -8
  23. package/dist-types/commands/DeleteChallengeCommand.d.ts +3 -8
  24. package/dist-types/commands/DeleteConnectorCommand.d.ts +3 -8
  25. package/dist-types/commands/GetChallengeMetadataCommand.d.ts +3 -8
  26. package/dist-types/commands/GetChallengePasswordCommand.d.ts +3 -8
  27. package/dist-types/commands/GetConnectorCommand.d.ts +3 -8
  28. package/dist-types/commands/ListChallengeMetadataCommand.d.ts +3 -8
  29. package/dist-types/commands/ListConnectorsCommand.d.ts +3 -8
  30. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  31. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/CreateChallengeCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DeleteChallengeCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/GetChallengeMetadataCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/GetChallengePasswordCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/GetConnectorCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/ListChallengeMetadataCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/index.d.ts +1 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  56. 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 defaultPcaConnectorScepHttpAuthSchemeParametersProvider = 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
 
@@ -627,6 +629,7 @@ const getRuntimeConfig$1 = (config) => {
627
629
  serviceTarget: "PcaConnectorScep",
628
630
  },
629
631
  serviceId: config?.serviceId ?? "Pca Connector Scep",
632
+ sha256: config?.sha256 ?? Sha256,
630
633
  urlParser: config?.urlParser ?? parseUrl,
631
634
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
632
635
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -660,7 +663,6 @@ const getRuntimeConfig = (config) => {
660
663
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
661
664
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
662
665
  }, config),
663
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
664
666
  streamCollector: config?.streamCollector ?? streamCollector,
665
667
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
666
668
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -748,148 +750,44 @@ class PcaConnectorScepClient extends Client {
748
750
  }
749
751
  }
750
752
 
751
- class CreateChallengeCommand extends Command
752
- .classBuilder()
753
- .ep(commonParams)
754
- .m(function (Command, cs, config, o) {
755
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
756
- })
757
- .s("PcaConnectorScep", "CreateChallenge", {})
758
- .n("PcaConnectorScepClient", "CreateChallengeCommand")
759
- .sc(CreateChallenge$)
760
- .build() {
753
+ const command = makeBuilder(commonParams, "PcaConnectorScep", "PcaConnectorScepClient", getEndpointPlugin);
754
+ const _ep0 = {};
755
+ const _mw0 = (Command, cs, config, o) => [];
756
+
757
+ class CreateChallengeCommand extends command(_ep0, _mw0, "CreateChallenge", CreateChallenge$) {
761
758
  }
762
759
 
763
- class CreateConnectorCommand extends Command
764
- .classBuilder()
765
- .ep(commonParams)
766
- .m(function (Command, cs, config, o) {
767
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
768
- })
769
- .s("PcaConnectorScep", "CreateConnector", {})
770
- .n("PcaConnectorScepClient", "CreateConnectorCommand")
771
- .sc(CreateConnector$)
772
- .build() {
760
+ class CreateConnectorCommand extends command(_ep0, _mw0, "CreateConnector", CreateConnector$) {
773
761
  }
774
762
 
775
- class DeleteChallengeCommand extends Command
776
- .classBuilder()
777
- .ep(commonParams)
778
- .m(function (Command, cs, config, o) {
779
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
780
- })
781
- .s("PcaConnectorScep", "DeleteChallenge", {})
782
- .n("PcaConnectorScepClient", "DeleteChallengeCommand")
783
- .sc(DeleteChallenge$)
784
- .build() {
763
+ class DeleteChallengeCommand extends command(_ep0, _mw0, "DeleteChallenge", DeleteChallenge$) {
785
764
  }
786
765
 
787
- class DeleteConnectorCommand extends Command
788
- .classBuilder()
789
- .ep(commonParams)
790
- .m(function (Command, cs, config, o) {
791
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
792
- })
793
- .s("PcaConnectorScep", "DeleteConnector", {})
794
- .n("PcaConnectorScepClient", "DeleteConnectorCommand")
795
- .sc(DeleteConnector$)
796
- .build() {
766
+ class DeleteConnectorCommand extends command(_ep0, _mw0, "DeleteConnector", DeleteConnector$) {
797
767
  }
798
768
 
799
- class GetChallengeMetadataCommand extends Command
800
- .classBuilder()
801
- .ep(commonParams)
802
- .m(function (Command, cs, config, o) {
803
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
804
- })
805
- .s("PcaConnectorScep", "GetChallengeMetadata", {})
806
- .n("PcaConnectorScepClient", "GetChallengeMetadataCommand")
807
- .sc(GetChallengeMetadata$)
808
- .build() {
769
+ class GetChallengeMetadataCommand extends command(_ep0, _mw0, "GetChallengeMetadata", GetChallengeMetadata$) {
809
770
  }
810
771
 
811
- class GetChallengePasswordCommand extends Command
812
- .classBuilder()
813
- .ep(commonParams)
814
- .m(function (Command, cs, config, o) {
815
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
816
- })
817
- .s("PcaConnectorScep", "GetChallengePassword", {})
818
- .n("PcaConnectorScepClient", "GetChallengePasswordCommand")
819
- .sc(GetChallengePassword$)
820
- .build() {
772
+ class GetChallengePasswordCommand extends command(_ep0, _mw0, "GetChallengePassword", GetChallengePassword$) {
821
773
  }
822
774
 
823
- class GetConnectorCommand extends Command
824
- .classBuilder()
825
- .ep(commonParams)
826
- .m(function (Command, cs, config, o) {
827
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
828
- })
829
- .s("PcaConnectorScep", "GetConnector", {})
830
- .n("PcaConnectorScepClient", "GetConnectorCommand")
831
- .sc(GetConnector$)
832
- .build() {
775
+ class GetConnectorCommand extends command(_ep0, _mw0, "GetConnector", GetConnector$) {
833
776
  }
834
777
 
835
- class ListChallengeMetadataCommand extends Command
836
- .classBuilder()
837
- .ep(commonParams)
838
- .m(function (Command, cs, config, o) {
839
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
840
- })
841
- .s("PcaConnectorScep", "ListChallengeMetadata", {})
842
- .n("PcaConnectorScepClient", "ListChallengeMetadataCommand")
843
- .sc(ListChallengeMetadata$)
844
- .build() {
778
+ class ListChallengeMetadataCommand extends command(_ep0, _mw0, "ListChallengeMetadata", ListChallengeMetadata$) {
845
779
  }
846
780
 
847
- class ListConnectorsCommand extends Command
848
- .classBuilder()
849
- .ep(commonParams)
850
- .m(function (Command, cs, config, o) {
851
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
852
- })
853
- .s("PcaConnectorScep", "ListConnectors", {})
854
- .n("PcaConnectorScepClient", "ListConnectorsCommand")
855
- .sc(ListConnectors$)
856
- .build() {
781
+ class ListConnectorsCommand extends command(_ep0, _mw0, "ListConnectors", ListConnectors$) {
857
782
  }
858
783
 
859
- class ListTagsForResourceCommand extends Command
860
- .classBuilder()
861
- .ep(commonParams)
862
- .m(function (Command, cs, config, o) {
863
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
864
- })
865
- .s("PcaConnectorScep", "ListTagsForResource", {})
866
- .n("PcaConnectorScepClient", "ListTagsForResourceCommand")
867
- .sc(ListTagsForResource$)
868
- .build() {
784
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
869
785
  }
870
786
 
871
- class TagResourceCommand extends Command
872
- .classBuilder()
873
- .ep(commonParams)
874
- .m(function (Command, cs, config, o) {
875
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
876
- })
877
- .s("PcaConnectorScep", "TagResource", {})
878
- .n("PcaConnectorScepClient", "TagResourceCommand")
879
- .sc(TagResource$)
880
- .build() {
787
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
881
788
  }
882
789
 
883
- class UntagResourceCommand extends Command
884
- .classBuilder()
885
- .ep(commonParams)
886
- .m(function (Command, cs, config, o) {
887
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
888
- })
889
- .s("PcaConnectorScep", "UntagResource", {})
890
- .n("PcaConnectorScepClient", "UntagResourceCommand")
891
- .sc(UntagResource$)
892
- .build() {
790
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
893
791
  }
894
792
 
895
793
  const paginateListChallengeMetadata = createPaginator(PcaConnectorScepClient, ListChallengeMetadataCommand, "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, "PcaConnectorScep", "PcaConnectorScepClient", 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 { CreateChallenge$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateChallengeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "CreateChallenge", {})
13
- .n("PcaConnectorScepClient", "CreateChallengeCommand")
14
- .sc(CreateChallenge$)
15
- .build() {
3
+ export class CreateChallengeCommand extends command(_ep0, _mw0, "CreateChallenge", CreateChallenge$) {
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 { CreateConnector$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateConnectorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "CreateConnector", {})
13
- .n("PcaConnectorScepClient", "CreateConnectorCommand")
14
- .sc(CreateConnector$)
15
- .build() {
3
+ export class CreateConnectorCommand extends command(_ep0, _mw0, "CreateConnector", CreateConnector$) {
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 { DeleteChallenge$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteChallengeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "DeleteChallenge", {})
13
- .n("PcaConnectorScepClient", "DeleteChallengeCommand")
14
- .sc(DeleteChallenge$)
15
- .build() {
3
+ export class DeleteChallengeCommand extends command(_ep0, _mw0, "DeleteChallenge", DeleteChallenge$) {
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 { DeleteConnector$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteConnectorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "DeleteConnector", {})
13
- .n("PcaConnectorScepClient", "DeleteConnectorCommand")
14
- .sc(DeleteConnector$)
15
- .build() {
3
+ export class DeleteConnectorCommand extends command(_ep0, _mw0, "DeleteConnector", DeleteConnector$) {
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 { GetChallengeMetadata$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetChallengeMetadataCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "GetChallengeMetadata", {})
13
- .n("PcaConnectorScepClient", "GetChallengeMetadataCommand")
14
- .sc(GetChallengeMetadata$)
15
- .build() {
3
+ export class GetChallengeMetadataCommand extends command(_ep0, _mw0, "GetChallengeMetadata", GetChallengeMetadata$) {
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 { GetChallengePassword$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetChallengePasswordCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "GetChallengePassword", {})
13
- .n("PcaConnectorScepClient", "GetChallengePasswordCommand")
14
- .sc(GetChallengePassword$)
15
- .build() {
3
+ export class GetChallengePasswordCommand extends command(_ep0, _mw0, "GetChallengePassword", GetChallengePassword$) {
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 { GetConnector$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetConnectorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "GetConnector", {})
13
- .n("PcaConnectorScepClient", "GetConnectorCommand")
14
- .sc(GetConnector$)
15
- .build() {
3
+ export class GetConnectorCommand extends command(_ep0, _mw0, "GetConnector", GetConnector$) {
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 { ListChallengeMetadata$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListChallengeMetadataCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "ListChallengeMetadata", {})
13
- .n("PcaConnectorScepClient", "ListChallengeMetadataCommand")
14
- .sc(ListChallengeMetadata$)
15
- .build() {
3
+ export class ListChallengeMetadataCommand extends command(_ep0, _mw0, "ListChallengeMetadata", ListChallengeMetadata$) {
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 { ListConnectors$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListConnectorsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("PcaConnectorScep", "ListConnectors", {})
13
- .n("PcaConnectorScepClient", "ListConnectorsCommand")
14
- .sc(ListConnectors$)
15
- .build() {
3
+ export class ListConnectorsCommand extends command(_ep0, _mw0, "ListConnectors", ListConnectors$) {
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("PcaConnectorScep", "ListTagsForResource", {})
13
- .n("PcaConnectorScepClient", "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 { 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("PcaConnectorScep", "TagResource", {})
13
- .n("PcaConnectorScepClient", "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("PcaConnectorScep", "UntagResource", {})
13
- .n("PcaConnectorScepClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./PcaConnectorScepClient";
2
2
  export * from "./PcaConnectorScep";
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: "PcaConnectorScep",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "Pca Connector Scep",
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 { PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./PcaConnectorScepClient";
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, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, PcaConnectorScepClientResolvedConfig, 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
2
  import type { CreateChallengeRequest, CreateChallengeResponse } from "../models/models_0";
4
- import type { PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PcaConnectorScepClient";
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 CreateChallengeCommandInput extends CreateChallengeRequest {
22
19
  export interface CreateChallengeCommandOutput extends CreateChallengeResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateChallengeCommand_base: {
25
- new (input: CreateChallengeCommandInput): import("@smithy/core/client").CommandImpl<CreateChallengeCommandInput, CreateChallengeCommandOutput, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateChallengeCommandInput): import("@smithy/core/client").CommandImpl<CreateChallengeCommandInput, CreateChallengeCommandOutput, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateChallengeCommandInput): import("@smithy/core/client").CommandImpl<CreateChallengeCommandInput, CreateChallengeCommandOutput, import("..").PcaConnectorScepClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateChallengeCommandInput): import("@smithy/core/client").CommandImpl<CreateChallengeCommandInput, CreateChallengeCommandOutput, import("..").PcaConnectorScepClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>For general-purpose connectors. Creates a <i>challenge password</i> for the specified connector. The SCEP protocol uses a challenge password to authenticate a request before issuing a certificate from a certificate authority (CA). Your SCEP clients include the challenge password as part of their certificate request to Connector for SCEP. To retrieve the connector Amazon Resource Names (ARNs) for the connectors in your account, call <a href="https://docs.aws.amazon.com/pca-connector-scep/latest/APIReference/API_ListConnectors.html">ListConnectors</a>.</p> <p>To create additional challenge passwords for the connector, call <code>CreateChallenge</code> again. We recommend frequently rotating your challenge passwords.</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
2
  import type { CreateConnectorRequest, CreateConnectorResponse } from "../models/models_0";
4
- import type { PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PcaConnectorScepClient";
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 CreateConnectorCommandInput extends CreateConnectorRequest {
22
19
  export interface CreateConnectorCommandOutput extends CreateConnectorResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateConnectorCommand_base: {
25
- new (input: CreateConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorCommandInput, CreateConnectorCommandOutput, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorCommandInput, CreateConnectorCommandOutput, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorCommandInput, CreateConnectorCommandOutput, import("..").PcaConnectorScepClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateConnectorCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorCommandInput, CreateConnectorCommandOutput, import("..").PcaConnectorScepClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a SCEP connector. A SCEP connector links Amazon Web Services Private Certificate Authority to your SCEP-compatible devices and mobile device management (MDM) systems. Before you create a connector, you must complete a set of prerequisites, including creation of a private certificate authority (CA) to use with this connector. For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/scep-connector.htmlconnector-for-scep-prerequisites.html">Connector for SCEP prerequisites</a>.</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
2
  import type { DeleteChallengeRequest } from "../models/models_0";
4
- import type { PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PcaConnectorScepClient";
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 DeleteChallengeCommandInput extends DeleteChallengeRequest {
22
19
  export interface DeleteChallengeCommandOutput extends __MetadataBearer {
23
20
  }
24
21
  declare const DeleteChallengeCommand_base: {
25
- new (input: DeleteChallengeCommandInput): import("@smithy/core/client").CommandImpl<DeleteChallengeCommandInput, DeleteChallengeCommandOutput, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteChallengeCommandInput): import("@smithy/core/client").CommandImpl<DeleteChallengeCommandInput, DeleteChallengeCommandOutput, PcaConnectorScepClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteChallengeCommandInput): import("@smithy/core/client").CommandImpl<DeleteChallengeCommandInput, DeleteChallengeCommandOutput, import("..").PcaConnectorScepClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteChallengeCommandInput): import("@smithy/core/client").CommandImpl<DeleteChallengeCommandInput, DeleteChallengeCommandOutput, import("..").PcaConnectorScepClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes the specified <a href="https://docs.aws.amazon.com/pca-connector-scep/latest/APIReference/API_Challenge.html">Challenge</a>.</p>